@fluid-topics/ft-search-bar 0.2.17 → 0.2.20

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,2637 +0,0 @@
1
- !function(){
2
- /**
3
- * @license
4
- * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- *
15
- * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
- */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(r.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(fi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
- /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
23
- /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */}function o(t){return i({...t,state:!0})}
28
- /**
29
- * @license
30
- * Copyright 2017 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */const s=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
33
- /**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */;function n(t,e){return s({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
38
- /**
39
- * @license
40
- * Copyright 2017 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- */
43
- /**
44
- * @license
45
- * Copyright 2021 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- var r;const l=null!=(null===(r=window.HTMLSlotElement)||void 0===r?void 0:r.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function a(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?l(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}
49
- /**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function h(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}
54
- /**
55
- * @license
56
- * Copyright 2019 Google LLC
57
- * SPDX-License-Identifier: BSD-3-Clause
58
- */const p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new Map;class u{constructor(t,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=f.get(this.cssText);return p&&void 0===t&&(f.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const b=t=>new u("string"==typeof t?t:t+"",d),v=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new u(i,d)},g=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return b(e)})(t):t
59
- /**
60
- * @license
61
- * Copyright 2017 Google LLC
62
- * SPDX-License-Identifier: BSD-3-Clause
63
- */;var y;const m=window.trustedTypes,$=m?m.emptyScript:"",w=window.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:S};class C extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=O){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:k.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:k.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
64
- /**
65
- * @license
66
- * Copyright 2017 Google LLC
67
- * SPDX-License-Identifier: BSD-3-Clause
68
- */
69
- var z;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:C}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const E=globalThis.trustedTypes,B=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,N="?"+M,F=`<${N}>`,R=document,L=(t="")=>R.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,j=t=>{var e;return I(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,A=/>/g,T=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,_=/'/g,H=/"/g,Z=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,J=R.createTreeWalker(R,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=U;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===U?"!--"===a[1]?r=P:void 0!==a[1]?r=A:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=T):void 0!==a[3]&&(r=T):r===T?">"===a[0]?(r=null!=s?s:U,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?T:'"'===a[3]?H:_):r===H||r===_?r=T:r===P||r===A?r=U:(r=T,s=void 0);const p=r===T&&t[e+1].startsWith("/>")?" ":"";n+=r===U?i+F:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+M+p):i+M+(-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!==B?B.createHTML(l):l,o]};class Y{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]=X(t,e);if(this.el=Y.createElement(a,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.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(M)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?st:"@"===e[1]?nt:et})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),J.nextNode(),l.push({type:2,index:++s});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===N)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)l.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,n,r,l;if(e===W)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=D(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=Q(t,a._$AS(t,e.values),a,o)),e}class G{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:R).importNode(i,!0);J.currentNode=s;let n=J.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new tt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new rt(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=J.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 tt{constructor(t,e,i,o){var s;this.type=2,this._$AH=V,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=Q(this,t,e),D(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==W&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):j(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==V&&D(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.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=Y.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 G(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Y(t)),e}S(t){I(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 tt(this.M(L()),this.M(L()),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 et{constructor(t,e,i,o,s){this.type=1,this._$AH=V,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=V}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=Q(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==W,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[i+r],e,r),l===W&&(l=this._$AH[r]),n||(n=!D(l)||l!==this._$AH[r]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===V?void 0:t}}const ot=E?E.emptyScript:"";class st extends et{constructor(){super(...arguments),this.type=4}C(t){t&&t!==V?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends et{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=Q(this,t,e,0))&&void 0!==i?i:V)===W)return;const o=this._$AH,s=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==V&&(o===V||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 rt{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){Q(this,t)}}const lt={L:"$lit$",P:M,V:N,I:1,N:X,R:G,j,D:Q,H:tt,F:et,O:st,W:nt,B:it,Z:rt},at=window.litHtmlPolyfillSupport;
70
- /**
71
- * @license
72
- * Copyright 2017 Google LLC
73
- * SPDX-License-Identifier: BSD-3-Clause
74
- */
75
- var ct,ht;null==at||at(Y,tt),(null!==(z=globalThis.litHtmlVersions)&&void 0!==z?z:globalThis.litHtmlVersions=[]).push("2.2.4");class pt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new tt(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return W}}pt.finalized=!0,pt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:pt});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:pt}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.0");class ft{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ft(t,e,void 0,i)}static extend(t,e,i){return new ft(t,e.category,e,i)}static external(t,e){return new ft(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return v`var(${b(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):b(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ut(t,e){return b(`${t.name}: ${e}`)}const bt={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ft.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ft.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ft.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ft.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ft.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ft.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ft.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ft.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ft.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
76
- /**
77
- * @license
78
- * Copyright 2021 Google LLC
79
- * SPDX-License-Identifier: BSD-3-Clause
80
- */var vt=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 gt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(s,this.constructor.elementStyles),s}}}(pt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
81
- ${t.map((t=>K`
82
- <style>${t}</style>
83
- `))}
84
- ${this.getTemplate()}
85
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,n,r;let l=[];for(let a of t){let t=null==a?void 0:a.trim();if(t)for(let a of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(s=null===(o=a.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=a.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];const c=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));l.push(...c)}}this.setAttribute("exportparts",l.join(", "))}contentAvailableCallback(t){}}vt([i()],gt.prototype,"exportpartsPrefix",void 0),vt([h([])],gt.prototype,"exportpartsPrefixes",void 0);const xt=v`
86
- .ft-no-text-select {
87
- -webkit-touch-callout: none;
88
- -webkit-user-select: none;
89
- -khtml-user-select: none;
90
- -moz-user-select: none;
91
- -ms-user-select: none;
92
- user-select: none;
93
- }
94
- `;class yt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;let s=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>s=s.replace(new RegExp(`\\{${e}\\}`,"g"),t))),s}}var mt,$t,wt;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===($t=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==wt?wt:""),St=1,Ot=2,Ct=t=>(...e)=>({_$litDirective$:t,values:e});
95
- /**
96
- * @license
97
- * Copyright 2017 Google LLC
98
- * SPDX-License-Identifier: BSD-3-Clause
99
- */class zt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
100
- /**
101
- * @license
102
- * Copyright 2020 Google LLC
103
- * SPDX-License-Identifier: BSD-3-Clause
104
- */const{H:Et}=lt,Bt=()=>document.createComment(""),Mt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Bt(),n),o=s.insertBefore(Bt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Nt=(t,e,i=t)=>(t._$AI(e,i),t),Ft={},Rt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Lt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Dt=Ct(class extends zt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,p,d=0,f=n.length-1,u=0,b=r.length-1;for(;d<=f&&u<=b;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])c[u]=Nt(n[d],r[u]),d++,u++;else if(a[f]===l[b])c[b]=Nt(n[f],r[b]),f--,b--;else if(a[d]===l[b])c[b]=Nt(n[d],r[b]),Mt(t,c[b+1],n[d]),d++,b--;else if(a[f]===l[u])c[u]=Nt(n[f],r[u]),Mt(t,n[d],n[f]),f--,u++;else if(void 0===h&&(h=Lt(l,u,b),p=Lt(a,d,f)),h.has(a[d]))if(h.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Mt(t,n[d]);Nt(e,r[u]),c[u]=e}else c[u]=Nt(i,r[u]),Mt(t,n[d],i),n[e]=null;u++}else Rt(n[f]),f--;else Rt(n[d]),d++;for(;u<=b;){const e=Mt(t,c[b+1]);Nt(e,r[u]),c[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&Rt(t)}return this.ut=l,((t,e=Ft)=>{t._$AH=e})(t,c),W}}),It=Ct(class extends zt{constructor(t){var e;if(super(t),t.type!==St||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return W}});
105
- /**
106
- * @license
107
- * Copyright 2017 Google LLC
108
- * SPDX-License-Identifier: BSD-3-Clause
109
- */var jt,Ut=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"}(jt||(jt={}));class Pt extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class At extends gt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=jt.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new t}render(){return K`
110
- <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
111
- <div class="ft-size-watcher--watcher"></div>
112
- </div>
113
- `}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=jt.S:this.size<976?this.category=jt.M:this.size<1024?this.category=jt.L:this.size<1440?this.category=jt.XL:this.category=jt.XXL,this.dispatchEvent(new Pt(this.size,this.category)))}),this.debounceTimeout)}}At.elementDefinitions={},At.styles=v`
114
- .ft-size-watcher--pixel {
115
- width: 0;
116
- height: 0;
117
- overflow: hidden;
118
- }
119
-
120
- .ft-size-watcher--pixel.ft-size-watcher--local {
121
- width: 100%;
122
- }
123
-
124
- .ft-size-watcher--watcher {
125
- height: 1px;
126
- width: 100vw;
127
- }
128
-
129
- .ft-size-watcher--local .ft-size-watcher--watcher {
130
- width: 100%;
131
- }
132
- `,Ut([i({type:Number})],At.prototype,"debounceTimeout",void 0),Ut([i({type:Boolean})],At.prototype,"local",void 0),Ut([i({type:Number,reflect:!0})],At.prototype,"size",void 0),Ut([i({type:String,reflect:!0})],At.prototype,"category",void 0),Ut([n(".ft-size-watcher--watcher")],At.prototype,"watcher",void 0),c("ft-size-watcher")(At);
133
- /**
134
- * @license
135
- * Copyright 2020 Google LLC
136
- * SPDX-License-Identifier: BSD-3-Clause
137
- */
138
- const Tt=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Tt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ht=t=>({_$litStatic$:t,r:Tt}),Zt=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=_t(n));)a+=s+e[++c],h=!0;l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=Zt.get(t))&&(r.raw=r,Zt.set(t,e=r)),i=l}return t(e,...i)})(K);var Wt,Vt=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"}(Wt||(Wt={}));const qt=ft.extend("--ft-typography-font-family",bt.titleFont),Jt=ft.extend("--ft-typography-font-family",bt.contentFont),Xt={fontFamily:Jt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=ft.extend("--ft-typography-title-font-family",qt),Qt=ft.extend("--ft-typography-title-font-size",Xt.fontSize,"20px"),Gt=ft.extend("--ft-typography-title-font-weight",Xt.fontWeight,"normal"),te=ft.extend("--ft-typography-title-letter-spacing",Xt.letterSpacing,"0.15px"),ee=ft.extend("--ft-typography-title-line-height",Xt.lineHeight,"1.2"),ie=ft.extend("--ft-typography-title-text-transform",Xt.textTransform,"inherit"),oe=ft.extend("--ft-typography-title-dense-font-family",qt),se=ft.extend("--ft-typography-title-dense-font-size",Xt.fontSize,"14px"),ne=ft.extend("--ft-typography-title-dense-font-weight",Xt.fontWeight,"normal"),re=ft.extend("--ft-typography-title-dense-letter-spacing",Xt.letterSpacing,"0.105px"),le=ft.extend("--ft-typography-title-dense-line-height",Xt.lineHeight,"1.7"),ae=ft.extend("--ft-typography-title-dense-text-transform",Xt.textTransform,"inherit"),ce=ft.extend("--ft-typography-subtitle1-font-family",Jt),he=ft.extend("--ft-typography-subtitle1-font-size",Xt.fontSize,"16px"),pe=ft.extend("--ft-typography-subtitle1-font-weight",Xt.fontWeight,"600"),de=ft.extend("--ft-typography-subtitle1-letter-spacing",Xt.letterSpacing,"0.144px"),fe=ft.extend("--ft-typography-subtitle1-line-height",Xt.lineHeight,"1.5"),ue=ft.extend("--ft-typography-subtitle1-text-transform",Xt.textTransform,"inherit"),be=ft.extend("--ft-typography-subtitle2-font-family",Jt),ve=ft.extend("--ft-typography-subtitle2-font-size",Xt.fontSize,"14px"),ge=ft.extend("--ft-typography-subtitle2-font-weight",Xt.fontWeight,"normal"),xe=ft.extend("--ft-typography-subtitle2-letter-spacing",Xt.letterSpacing,"0.098px"),ye=ft.extend("--ft-typography-subtitle2-line-height",Xt.lineHeight,"1.7"),me=ft.extend("--ft-typography-subtitle2-text-transform",Xt.textTransform,"inherit"),$e={fontFamily:ft.extend("--ft-typography-body1-font-family",Jt),fontSize:ft.extend("--ft-typography-body1-font-size",Xt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Xt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Xt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Xt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Xt.textTransform,"inherit")},we={fontFamily:ft.extend("--ft-typography-body2-font-family",Jt),fontSize:ft.extend("--ft-typography-body2-font-size",Xt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-body2-font-weight",Xt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body2-letter-spacing",Xt.letterSpacing,"0.252px"),lineHeight:ft.extend("--ft-typography-body2-line-height",Xt.lineHeight,"1.4"),textTransform:ft.extend("--ft-typography-body2-text-transform",Xt.textTransform,"inherit")},ke={fontFamily:ft.extend("--ft-typography-caption-font-family",Jt),fontSize:ft.extend("--ft-typography-caption-font-size",Xt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Xt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Xt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Xt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Xt.textTransform,"inherit")},Se=ft.extend("--ft-typography-breadcrumb-font-family",Jt),Oe=ft.extend("--ft-typography-breadcrumb-font-size",Xt.fontSize,"10px"),Ce=ft.extend("--ft-typography-breadcrumb-font-weight",Xt.fontWeight,"normal"),ze=ft.extend("--ft-typography-breadcrumb-letter-spacing",Xt.letterSpacing,"0.33px"),Ee=ft.extend("--ft-typography-breadcrumb-line-height",Xt.lineHeight,"1.6"),Be=ft.extend("--ft-typography-breadcrumb-text-transform",Xt.textTransform,"inherit"),Me=ft.extend("--ft-typography-overline-font-family",Jt),Ne=ft.extend("--ft-typography-overline-font-size",Xt.fontSize,"10px"),Fe=ft.extend("--ft-typography-overline-font-weight",Xt.fontWeight,"normal"),Re=ft.extend("--ft-typography-overline-letter-spacing",Xt.letterSpacing,"1.5px"),Le=ft.extend("--ft-typography-overline-line-height",Xt.lineHeight,"1.6"),De=ft.extend("--ft-typography-overline-text-transform",Xt.textTransform,"uppercase"),Ie={fontFamily:ft.extend("--ft-typography-button-font-family",Jt),fontSize:ft.extend("--ft-typography-button-font-size",Xt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Xt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Xt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Xt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Xt.textTransform,"uppercase")},je=v`
139
- .ft-typography--title {
140
- font-family: ${Yt};
141
- font-size: ${Qt};
142
- font-weight: ${Gt};
143
- letter-spacing: ${te};
144
- line-height: ${ee};
145
- text-transform: ${ie};
146
- }
147
- `,Ue=v`
148
- .ft-typography--title-dense {
149
- font-family: ${oe};
150
- font-size: ${se};
151
- font-weight: ${ne};
152
- letter-spacing: ${re};
153
- line-height: ${le};
154
- text-transform: ${ae};
155
- }
156
- `,Pe=v`
157
- .ft-typography--subtitle1 {
158
- font-family: ${ce};
159
- font-size: ${he};
160
- font-weight: ${pe};
161
- letter-spacing: ${de};
162
- line-height: ${fe};
163
- text-transform: ${ue};
164
- }
165
- `,Ae=v`
166
- .ft-typography--subtitle2 {
167
- font-family: ${be};
168
- font-size: ${ve};
169
- font-weight: ${ge};
170
- letter-spacing: ${xe};
171
- line-height: ${ye};
172
- text-transform: ${me};
173
- }
174
-
175
- `,Te=v`
176
- .ft-typography--body1 {
177
- font-family: ${$e.fontFamily};
178
- font-size: ${$e.fontSize};
179
- font-weight: ${$e.fontWeight};
180
- letter-spacing: ${$e.letterSpacing};
181
- line-height: ${$e.lineHeight};
182
- text-transform: ${$e.textTransform};
183
- }
184
- `,_e=v`
185
- .ft-typography--body2 {
186
- font-family: ${we.fontFamily};
187
- font-size: ${we.fontSize};
188
- font-weight: ${we.fontWeight};
189
- letter-spacing: ${we.letterSpacing};
190
- line-height: ${we.lineHeight};
191
- text-transform: ${we.textTransform};
192
- }
193
- `,He=v`
194
- .ft-typography--caption {
195
- font-family: ${ke.fontFamily};
196
- font-size: ${ke.fontSize};
197
- font-weight: ${ke.fontWeight};
198
- letter-spacing: ${ke.letterSpacing};
199
- line-height: ${ke.lineHeight};
200
- text-transform: ${ke.textTransform};
201
- }
202
- `,Ze=v`
203
- .ft-typography--breadcrumb {
204
- font-family: ${Se};
205
- font-size: ${Oe};
206
- font-weight: ${Ce};
207
- letter-spacing: ${ze};
208
- line-height: ${Ee};
209
- text-transform: ${Be};
210
- }
211
- `,Ke=v`
212
- .ft-typography--overline {
213
- font-family: ${Me};
214
- font-size: ${Ne};
215
- font-weight: ${Fe};
216
- letter-spacing: ${Re};
217
- line-height: ${Le};
218
- text-transform: ${De};
219
- }
220
- `,We=v`
221
- .ft-typography--button {
222
- font-family: ${Ie.fontFamily};
223
- font-size: ${Ie.fontSize};
224
- font-weight: ${Ie.fontWeight};
225
- letter-spacing: ${Ie.letterSpacing};
226
- line-height: ${Ie.lineHeight};
227
- text-transform: ${Ie.textTransform};
228
- }
229
- `;class Ve extends gt{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?Kt`
230
- <${Ht(this.element)}
231
- class="ft-typography ft-typography--${this.variant}">
232
- <slot></slot>
233
- </${Ht(this.element)}>
234
- `:Kt`
235
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
236
- `}}function qe(t,e){return t.flatMap((t=>[t,...qe(e(t),e)]))}function Je(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Xe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Xe(e,t.selected))),value:t.value}}function Ye(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Xe(t,!1)))}}Ve.styles=[je,Ue,Pe,Ae,Te,_e,He,Ze,Ke,We,v`
237
- .ft-typography {
238
- vertical-align: inherit;
239
- }
240
- `],Vt([i()],Ve.prototype,"element",void 0),Vt([i()],Ve.prototype,"variant",void 0),c("ft-typography")(Ve);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 Ge=ft.extend("--ft-ripple-color",bt.colorContent),ti={color:Ge,backgroundColor:ft.extend("--ft-ripple-background-color",Ge),opacityContentOnSurfacePressed:ft.external(bt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(bt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(bt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(bt.opacityContentOnSurfaceSelected,"Design system")},ei=ft.extend("--ft-ripple-color",bt.colorPrimary),ii=ei,oi=ft.extend("--ft-ripple-background-color",ei),si=ft.extend("--ft-ripple-color",bt.colorSecondary),ni=si,ri=ft.extend("--ft-ripple-background-color",si);class li extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new t(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.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 K`
241
- <style>
242
- .ft-ripple .ft-ripple--effect,
243
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
244
- width: ${this.rippleSize}px;
245
- height: ${this.rippleSize}px;
246
- }
247
-
248
- .ft-ripple .ft-ripple--effect {
249
- left: ${this.originX}px;
250
- top: ${this.originY}px;
251
- }
252
- </style>
253
- <div class="${It(t)}">
254
- <div class="ft-ripple--background"></div>
255
- <div class="ft-ripple--effect"></div>
256
- </div>
257
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){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()}}li.elementDefinitions={},li.styles=v`
258
- :host {
259
- display: contents;
260
- }
261
-
262
- .ft-ripple {
263
- position: absolute;
264
- inset: 0;
265
- pointer-events: none;
266
- }
267
-
268
- .ft-ripple:not(.ft-ripple--unbounded) {
269
- overflow: hidden;
270
- }
271
-
272
- .ft-ripple .ft-ripple--background,
273
- .ft-ripple .ft-ripple--effect {
274
- position: absolute;
275
- opacity: 0;
276
- }
277
-
278
- .ft-ripple .ft-ripple--background {
279
- background-color: ${ti.backgroundColor};
280
- }
281
-
282
- .ft-ripple .ft-ripple--effect {
283
- background-color: ${ti.color};
284
- }
285
-
286
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
287
- background-color: ${ri};
288
- }
289
-
290
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
291
- background-color: ${ni};
292
- }
293
-
294
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
295
- background-color: ${oi};
296
- }
297
-
298
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
299
- background-color: ${ii};
300
- }
301
-
302
- .ft-ripple .ft-ripple--background {
303
- top: 0;
304
- left: 0;
305
- height: 100%;
306
- width: 100%;
307
- transition: opacity 75ms linear;
308
- }
309
-
310
- .ft-ripple .ft-ripple--effect,
311
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
312
- border-radius: 50%;
313
- }
314
-
315
- .ft-ripple .ft-ripple--effect {
316
- transform: translate(-50%, -50%) scale(0.15);
317
- transition: transform 300ms ease, opacity 75ms linear;
318
- }
319
-
320
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
321
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
322
- left: 50%;
323
- top: 50%;
324
- }
325
-
326
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
327
- transform: translate(-50%, -50%);
328
- }
329
-
330
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
331
- opacity: ${ti.opacityContentOnSurfaceHover};
332
- }
333
-
334
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
335
- opacity: ${ti.opacityContentOnSurfaceSelected};
336
- }
337
-
338
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
339
- opacity: ${ti.opacityContentOnSurfaceFocused};
340
- }
341
-
342
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
343
- opacity: ${ti.opacityContentOnSurfacePressed};
344
- transform: translate(-50%, -50%) scale(1);
345
- }
346
- `,Qe([i({type:Boolean})],li.prototype,"primary",void 0),Qe([i({type:Boolean})],li.prototype,"secondary",void 0),Qe([i({type:Boolean})],li.prototype,"unbounded",void 0),Qe([i({type:Boolean})],li.prototype,"activated",void 0),Qe([i({type:Boolean})],li.prototype,"selected",void 0),Qe([i({type:Boolean})],li.prototype,"disabled",void 0),Qe([o()],li.prototype,"hovered",void 0),Qe([o()],li.prototype,"focused",void 0),Qe([o()],li.prototype,"pressed",void 0),Qe([o()],li.prototype,"rippling",void 0),Qe([o()],li.prototype,"rippleSize",void 0),Qe([o()],li.prototype,"originX",void 0),Qe([o()],li.prototype,"originY",void 0),Qe([n(".ft-ripple")],li.prototype,"ripple",void 0),Qe([n(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),c("ft-ripple")(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};const ci={distance:ft.create("--ft-tooltip-distance","SIZE","4px"),color:ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:ft.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:ft.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:ft.external(bt.borderRadiusS,"Design system")};class hi extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return K`
347
- <div part="container"
348
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
349
- @mouseenter=${this.onHover}
350
- @mouseleave=${this.onOut}
351
- @focusin=${this.onHover}
352
- @focusout=${this.onOut}
353
- @touchstart=${this.onTouch}>
354
- <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
355
- <div part="tooltip-content" class="ft-tooltip--content">
356
- <ft-typography variant="caption">${this.text}</ft-typography>
357
- </div>
358
- </div>
359
- <slot></slot>
360
- </div>
361
- `}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())}}hi.elementDefinitions={"ft-typography":Ve},hi.styles=v`
362
- .ft-tooltip--container {
363
- display: block;
364
- position: relative;
365
- }
366
-
367
- .ft-tooltip--inline {
368
- display: inline-block;
369
- max-width: 100%;
370
- }
371
-
372
- .ft-tooltip {
373
- position: absolute;
374
- box-sizing: border-box;
375
- overflow: hidden;
376
- width: max-content;
377
- max-width: 150px;
378
- text-align: center;
379
- padding: ${ci.distance};
380
- z-index: ${ci.zIndex};
381
- }
382
-
383
- .ft-tooltip--content {
384
- padding: 4px 8px;
385
- border-radius: ${ci.borderRadiusS};
386
- background-color: ${ci.backgroundColor};
387
- color: ${ci.color};
388
- top: -500px;
389
- left: -500px;
390
- position: relative;
391
- word-break: break-word;
392
- }
393
- `,ai([i()],hi.prototype,"text",void 0),ai([i({type:Boolean})],hi.prototype,"manual",void 0),ai([i({type:Boolean})],hi.prototype,"inline",void 0),ai([i({type:Number})],hi.prototype,"delay",void 0),ai([i()],hi.prototype,"position",void 0),ai([function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?a({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],hi.prototype,"slotNodes",void 0),ai([n(".ft-tooltip--container")],hi.prototype,"container",void 0),ai([n("slot")],hi.prototype,"target",void 0),ai([n(".ft-tooltip")],hi.prototype,"tooltip",void 0),ai([n(".ft-tooltip--content")],hi.prototype,"tooltipContent",void 0),ai([o()],hi.prototype,"visible",void 0),c("ft-tooltip")(hi);const pi={color:ft.extend("--ft-loader-color",bt.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class di extends gt{static get styles(){return v`
394
- :host {
395
- line-height: 0;
396
- }
397
-
398
- .ft-loader {
399
- display: inline-block;
400
- position: relative;
401
-
402
- width: ${pi.size};
403
- height: ${pi.size};
404
- }
405
-
406
- .ft-loader div {
407
- position: absolute;
408
- top: 37.5%;
409
- width: 25%;
410
- height: 25%;
411
- border-radius: 50%;
412
- background: ${pi.color};
413
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
414
- }
415
-
416
- .ft-loader div:nth-child(1) {
417
- left: 2.5%;
418
- animation: appear 0.6s infinite;
419
- }
420
-
421
- .ft-loader div:nth-child(2) {
422
- left: 2.5%;
423
- animation: move 0.6s infinite;
424
- }
425
-
426
- .ft-loader div:nth-child(3) {
427
- left: 37.5%;
428
- animation: move 0.6s infinite;
429
- }
430
-
431
- .ft-loader div:nth-child(4) {
432
- left: 72.5%;
433
- animation: disappear 0.6s infinite;
434
- }
435
-
436
- @keyframes appear {
437
- 0% {
438
- transform: scale(0);
439
- }
440
- 100% {
441
- transform: scale(1);
442
- }
443
- }
444
-
445
- @keyframes disappear {
446
- 0% {
447
- transform: scale(1);
448
- }
449
- 100% {
450
- transform: scale(0);
451
- }
452
- }
453
-
454
- @keyframes move {
455
- 0% {
456
- transform: translate(0, 0);
457
- }
458
- 100% {
459
- transform: translate(calc(0.35 * ${pi.size}), 0);
460
- }
461
- }
462
- `}render(){return K`
463
- <div class="ft-loader">
464
- <div></div>
465
- <div></div>
466
- <div></div>
467
- <div></div>
468
- </div>
469
- `}}c("ft-loader")(di);
470
- /**
471
- * @license
472
- * Copyright 2017 Google LLC
473
- * SPDX-License-Identifier: BSD-3-Clause
474
- */
475
- class fi extends zt{constructor(t){if(super(t),this.it=V,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.ft=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}fi.directiveName="unsafeHTML",fi.resultType=1;const ui=Ct(fi);var bi,vi;!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;"}(bi||(bi={})),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;"}(vi||(vi={}));const gi=new Map([...["abw"].map((t=>[t,vi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,vi.AUDIO])),...["avi"].map((t=>[t,vi.AVI])),...["chm","xhs"].map((t=>[t,vi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,vi.CODE])),...["csv"].map((t=>[t,vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vi.DITA])),...["epub"].map((t=>[t,vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vi.EXCEL])),...["flac"].map((t=>[t,vi.FLAC])),...["gif"].map((t=>[t,vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,vi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vi.JPEG])),...["json"].map((t=>[t,vi.JSON])),...["m4a","m4p"].map((t=>[t,vi.M4A])),...["mov","qt"].map((t=>[t,vi.MOV])),...["mp3"].map((t=>[t,vi.MP3])),...["mp4","m4v"].map((t=>[t,vi.MP4])),...["ogg","oga"].map((t=>[t,vi.OGG])),...["pdf","ps"].map((t=>[t,vi.PDF])),...["png"].map((t=>[t,vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vi.POWERPOINT])),...["rar"].map((t=>[t,vi.RAR])),...["stp"].map((t=>[t,vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,vi.VIDEO])),...["wav"].map((t=>[t,vi.WAV])),...["wma"].map((t=>[t,vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vi.YAML])),...["zip"].map((t=>[t,vi.ZIP]))]),xi=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 yi,mi=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"}(yi||(yi={}));const $i={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class wi extends gt{constructor(){super(...arguments),this.variant=yi.fluid_topics}render(){return K`
476
- <i class="ft-icon ${"ft-icon--"+this.variant}">
477
- ${ui(this.getIcon())}
478
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
479
- </i>
480
- `}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 i=this.textContent;return this.variant===yi.file_format?null!==(t=vi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===yi.fluid_topics?null!==(e=bi[i.toUpperCase()])&&void 0!==e?e:i:V}}wi.elementDefinitions={},wi.styles=v`
481
- :host {
482
- display: inline-block;
483
- }
484
- :host, i.ft-icon {
485
- width: ${$i.size};
486
- height: ${$i.size};
487
- text-align: center;
488
- }
489
-
490
- i.ft-icon {
491
- font-size: ${$i.size};
492
- line-height: 1;
493
- font-weight: normal;
494
- text-transform: none;
495
- font-style: normal;
496
- font-variant: normal;
497
- speak: none;
498
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
499
- text-rendering: auto;
500
- -webkit-font-smoothing: antialiased;
501
- -moz-osx-font-smoothing: grayscale;
502
- }
503
-
504
- .ft-icon--fluid-topics {
505
- font-family: ${$i.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
506
- }
507
-
508
- .ft-icon--file-format {
509
- font-family: ${$i.fileFormatFontFamily}, ft-mime, sans-serif;
510
- }
511
-
512
- .ft-icon--material {
513
- font-family: ${$i.materialFontFamily}, "Material Icons", sans-serif;
514
- }
515
- `,mi([i()],wi.prototype,"variant",void 0),mi([n("slot")],wi.prototype,"slottedContent",void 0),c("ft-icon")(wi);var ki=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 Si=ft.extend("--ft-button-color",bt.colorPrimary),Oi={backgroundColor:ft.extend("--ft-button-background-color",bt.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",bt.borderRadiusL),color:Si,fontSize:ft.extend("--ft-button-font-size",Ie.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Si),opacityDisabled:ft.external(bt.colorOpacityDisabled,"Design system")},Ci=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",bt.colorOnPrimary)),zi={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",bt.colorPrimary)),color:Ci,rippleColor:ft.extend("--ft-button-primary-ripple-color",Ci)},Ei=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",bt.borderRadiusM));class Bi extends gt{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[xt,v`
516
- :host {
517
- display: inline-block;
518
- max-width: 100%;
519
- pointer-events: none;
520
- }
521
-
522
- button {
523
- box-shadow: 0px 0px 0px transparent;
524
- border: 0px solid transparent;
525
- text-shadow: 0px 0px 0px transparent;
526
- font-size: inherit;
527
- }
528
-
529
- button:hover {
530
- box-shadow: 0px 0px 0px transparent;
531
- border: 0px solid transparent;
532
- text-shadow: 0px 0px 0px transparent;
533
- }
534
-
535
- button:active {
536
- outline: none;
537
- border: none;
538
- }
539
-
540
- button:focus {
541
- outline: 0;
542
- }
543
-
544
- .ft-button {
545
- position: relative;
546
- display: flex;
547
- justify-content: center;
548
- align-items: center;
549
- width: 100%;
550
- overflow: hidden;
551
- box-sizing: border-box;
552
- border: none;
553
- pointer-events: auto;
554
- line-height: 0;
555
-
556
- --ft-button-internal-font-size: ${Oi.fontSize};
557
- --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
558
- --ft-button-internal-color: ${Oi.color};
559
- ${ut($i.size,Oi.iconSize)};
560
- --ft-button-internal-vertical-padding: 6px;
561
- --ft-button-internal-horizontal-padding: 8px;
562
- ${ut(ti.color,Oi.rippleColor)};
563
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Oi.iconSize});
564
-
565
- border-radius: ${Oi.borderRadius};
566
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
567
- background-color: ${Oi.backgroundColor};
568
- color: var(--ft-button-internal-color);
569
- -webkit-mask-image: radial-gradient(white, black);
570
- }
571
-
572
- .ft-button:not([disabled]):hover {
573
- cursor: pointer;
574
- }
575
-
576
- .ft-button--dense {
577
- --ft-button-internal-vertical-padding: 2px;
578
- --ft-button-internal-horizontal-padding: 4px;
579
- border-radius: ${Ei};
580
- }
581
-
582
- .ft-button--round {
583
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
584
- }
585
-
586
- .ft-button[disabled] {
587
- filter: grayscale(1);
588
- opacity: ${Oi.opacityDisabled};
589
- }
590
-
591
- .ft-button.ft-button--primary {
592
- background-color: ${zi.backgroundColor};
593
- --ft-button-internal-color: ${zi.color};
594
- ${ut(ti.color,zi.rippleColor)};
595
- }
596
-
597
- .ft-button.ft-button--outlined {
598
- border: 1px solid var(--ft-button-internal-color);
599
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
600
- }
601
-
602
- .ft-button:focus {
603
- outline: none;
604
- }
605
-
606
- .ft-button--label {
607
- position: relative;
608
- overflow: hidden;
609
- white-space: nowrap;
610
- text-overflow: ellipsis;
611
- display: block;
612
- margin: 0 var(--ft-button-internal-horizontal-padding);
613
- ${ut(Ie.fontSize,"var(--ft-button-internal-font-size)")};
614
- ${ut(Ie.lineHeight,"var(--ft-button-internal-content-height)")};
615
- }
616
-
617
- .ft-button--safari-fix .ft-button--label {
618
- margin-right: 0;
619
- }
620
-
621
- .ft-button--safari-fix .ft-button--label:after {
622
- content: "\\0000a0";
623
- display: inline-block;
624
- width: 0;
625
- }
626
-
627
- .ft-button--label[hidden] {
628
- display: none;
629
- }
630
-
631
- ft-icon {
632
- flex-shrink: 0;
633
- position: relative;
634
- }
635
-
636
- .ft-button--label[hidden] + ft-icon {
637
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
638
- padding: 0 var(--ft-button-internal-vertical-padding);
639
- }
640
-
641
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
642
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
643
- order: -1;
644
- }
645
-
646
- ft-loader {
647
- ${ut(pi.size,Oi.iconSize)};
648
- ${ut(pi.color,"var(--ft-button-internal-color)")};
649
- }
650
- `]}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":kt,"ft-no-text-select":!0};return this.addTooltip(K`
651
- <button part="button"
652
- class="${It(t)}"
653
- aria-label="${this.getLabel()}"
654
- ?disabled=${this.isDisabled()}>
655
- <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
656
- <ft-typography part="label"
657
- variant="button"
658
- class="ft-button--label"
659
- ?hidden=${!this.hasTextContent()}>
660
- <slot @slotchange=${this.onSlotchange}></slot>
661
- </ft-typography>
662
- ${this.resolveIcon()}
663
- </button>
664
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:K`
665
- <ft-tooltip part="tooltip"
666
- text="${this.getLabel()}"
667
- position="${this.tooltipPosition}">
668
- ${t}
669
- </ft-tooltip>
670
- `}resolveIcon(){return this.loading?K`
671
- <ft-loader></ft-loader> `:this.icon?K`
672
- <ft-icon variant="material">${this.icon}</ft-icon> `:V}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}}Bi.elementDefinitions={"ft-ripple":li,"ft-tooltip":hi,"ft-typography":Ve,"ft-icon":wi,"ft-loader":di},ki([i({type:Boolean})],Bi.prototype,"primary",void 0),ki([i({type:Boolean})],Bi.prototype,"outlined",void 0),ki([i({type:Boolean})],Bi.prototype,"disabled",void 0),ki([i({type:Boolean})],Bi.prototype,"dense",void 0),ki([i({type:Boolean})],Bi.prototype,"round",void 0),ki([i({type:String})],Bi.prototype,"label",void 0),ki([i({type:String})],Bi.prototype,"icon",void 0),ki([i({type:Boolean})],Bi.prototype,"trailingIcon",void 0),ki([i({type:Boolean})],Bi.prototype,"loading",void 0),ki([i({type:String})],Bi.prototype,"tooltipPosition",void 0),ki([n(".ft-button")],Bi.prototype,"button",void 0),ki([n(".ft-button--label slot")],Bi.prototype,"slottedContent",void 0),c("ft-button")(Bi);var Mi=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 Ni=ft.extend("--ft-checkbox-text-color",bt.colorOnSurfaceHigh),Fi=ft.external(bt.colorPrimary,"Design system"),Ri=ft.external(bt.colorOnPrimary,"Design system"),Li=ft.extend("--ft-checkbox-border-color",bt.colorOnSurfaceMedium),Di=ft.external(bt.colorOnSurfaceDisabled,"Design system");class Ii extends gt{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 K`
673
- <label class="${It(t)}">
674
- <div class="ft-checkbox--box-container">
675
- <input type="checkbox"
676
- name=${this.name}
677
- .checked=${this.checked}
678
- .disabled=${this.disabled}
679
- @change=${this.onChange}
680
- >
681
- <ft-ripple
682
- ?disabled=${this.disabled}
683
- ?primary=${this.checked||this.indeterminate}
684
- unbounded>
685
- </ft-ripple>
686
- <div class="ft-checkbox--box">
687
- <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
688
- <path class="ft-checkbox--checkmark-path" fill="none"
689
- d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
690
- </svg>
691
- </div>
692
- </div>
693
- <ft-typography variant="body2">
694
- <slot></slot>
695
- </ft-typography>
696
- </label>
697
- `}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)}}Ii.elementDefinitions={"ft-ripple":li,"ft-typography":Ve},Ii.styles=v`
698
- * {
699
- box-sizing: border-box;
700
- }
701
-
702
- .ft-checkbox {
703
- box-sizing: border-box;
704
- color: ${Ni};
705
-
706
- display: inline-flex;
707
- align-items: center;
708
- gap: 4px;
709
- }
710
-
711
- .ft-checkbox--disabled {
712
- color: ${Di};
713
- }
714
-
715
- input {
716
- opacity: 0;
717
- position: absolute;
718
- width: 40px;
719
- height: 40px;
720
- margin: 0;
721
- }
722
-
723
- .ft-checkbox--box-container {
724
- position: relative;
725
- width: 40px;
726
- height: 40px;
727
-
728
- display: flex;
729
- justify-content: center;
730
- align-items: center;
731
- flex-shrink: 0;
732
- }
733
-
734
- .ft-checkbox--box {
735
- display: flex;
736
- border: 2px solid ${Li};
737
- border-radius: 2px;
738
-
739
- width: 18px;
740
- height: 18px;
741
-
742
- color: ${Ri};
743
- }
744
-
745
-
746
- .ft-checkbox--checked .ft-checkbox--box,
747
- .ft-checkbox--indeterminate .ft-checkbox--box {
748
- border-color: ${Fi};
749
- background-color: ${Fi};
750
- }
751
-
752
- .ft-checkbox--disabled .ft-checkbox--box {
753
- border-color: ${Di};
754
- background-color: transparent;
755
- color: ${Di};
756
- }
757
-
758
- .ft-checkbox--checkmark {
759
- transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
760
- opacity: 0;
761
- }
762
-
763
- .ft-checkbox--checkmark-path {
764
- stroke-dashoffset: 0;
765
- stroke: currentcolor;
766
- stroke-width: 3px;
767
- stroke-dasharray: 30;
768
- }
769
-
770
- .ft-checkbox--checked .ft-checkbox--checkmark,
771
- .ft-checkbox--indeterminate .ft-checkbox--checkmark {
772
- opacity: 1;
773
- }
774
- `,Mi([i()],Ii.prototype,"name",void 0),Mi([i({type:Boolean})],Ii.prototype,"checked",void 0),Mi([i({type:Boolean})],Ii.prototype,"indeterminate",void 0),Mi([i({type:Boolean})],Ii.prototype,"disabled",void 0),Mi([n(".ft-checkbox")],Ii.prototype,"container",void 0),Mi([n("ft-ripple")],Ii.prototype,"ripple",void 0),c("ft-checkbox")(Ii);var ji=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 Ui=ft.extend("--ft-radio-text-color",bt.colorOnSurfaceHigh),Pi=ft.external(bt.colorPrimary,"Design system"),Ai=(ft.external(bt.colorOnPrimary,"Design system"),ft.extend("--ft-radio-border-color",bt.colorOnSurfaceMedium)),Ti=ft.external(bt.colorOnSurfaceDisabled,"Design system");class _i extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Hi extends gt{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 K`
775
- <div class="${It(t)}">
776
- <div class="ft-radio--box-container">
777
- <input id="radio-button"
778
- type="radio"
779
- name="${this.name}"
780
- value="${this.value}"
781
- .checked=${this.checked}
782
- .disabled=${this.disabled}
783
- @change=${this.onChange}
784
- >
785
- <ft-ripple
786
- ?disabled=${this.disabled}
787
- ?primary=${this.checked}
788
- unbounded>
789
- </ft-ripple>
790
- <div class="ft-radio--box">
791
- </div>
792
- </div>
793
- <label for="radio-button" @click=${t=>t.stopPropagation()}>
794
- <ft-typography variant="body2">
795
- <slot></slot>
796
- </ft-typography>
797
- </label>
798
- </div>
799
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new _i(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 _i(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Hi.elementDefinitions={"ft-ripple":li,"ft-typography":Ve},Hi.styles=v`
800
- * {
801
- box-sizing: border-box;
802
- }
803
-
804
- .ft-radio {
805
- box-sizing: border-box;
806
- color: ${Ui};
807
-
808
- display: inline-flex;
809
- align-items: center;
810
- gap: 4px;
811
- }
812
-
813
- .ft-radio--disabled {
814
- color: ${Ti};
815
- }
816
-
817
- input {
818
- opacity: 0;
819
- position: absolute;
820
- width: 40px;
821
- height: 40px;
822
- margin: 0;
823
- }
824
-
825
- .ft-radio--box-container {
826
- position: relative;
827
- width: 40px;
828
- height: 40px;
829
-
830
- display: flex;
831
- justify-content: center;
832
- align-items: center;
833
- flex-shrink: 0;
834
- }
835
-
836
- .ft-radio--box {
837
- border: 2px solid ${Ai};
838
- border-radius: 50%;
839
-
840
- display: flex;
841
- justify-content: center;
842
- align-items: center;
843
-
844
- width: 20px;
845
- height: 20px;
846
- }
847
-
848
- .ft-radio--box:after {
849
- content: " ";
850
- background-color: ${Pi};
851
-
852
- border-radius: 50%;
853
-
854
- width: 12px;
855
- height: 12px;
856
-
857
- transform: scale(0);
858
- transition: transform 100ms ease;
859
- }
860
-
861
- .ft-radio--checked .ft-radio--box {
862
- border-color: ${Pi};
863
- }
864
-
865
-
866
- .ft-radio--checked .ft-radio--box:after {
867
- transform: scale(1);
868
- }
869
-
870
- .ft-radio--disabled .ft-radio--box {
871
- border-color: ${Ti};
872
- background-color: transparent;
873
- }
874
-
875
- .ft-radio--disabled .ft-radio--box:after {
876
- background-color: ${Ti};
877
- }
878
- `,ji([i()],Hi.prototype,"value",void 0),ji([i()],Hi.prototype,"name",void 0),ji([i({type:Boolean})],Hi.prototype,"checked",void 0),ji([i({type:Boolean})],Hi.prototype,"disabled",void 0),ji([n(".ft-radio")],Hi.prototype,"container",void 0),ji([n("ft-ripple")],Hi.prototype,"ripple",void 0),ji([n("input")],Hi.prototype,"input",void 0);var Zi=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 Ki extends gt{constructor(){super(...arguments),this.name=""}render(){return K`
879
- <slot @slotchange=${this.onSlotChange}
880
- @change=${this.onChange}
881
- @keydown=${this.onKeyDown}
882
- @focusin=${this.onFocusIn}
883
- ></slot>
884
- `}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)}}Ki.elementDefinitions={},Ki.styles=v`
885
- :host {
886
- display: contents;
887
- }
888
- `,Zi([i()],Ki.prototype,"name",void 0),Zi([a()],Ki.prototype,"radioButtons",void 0),c("ft-radio")(Hi),c("ft-radio-group")(Ki);var Wi=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={borderRadiusM:ft.external(bt.borderRadiusM,"Design system"),colorOutline:ft.external(bt.colorOutline,"Design system"),colorOnSurface:ft.external(bt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ft.external(bt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ft.external(bt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(bt.colorPrimary,"Design system"),colorOnPrimary:ft.external(bt.colorOnPrimary,"Design system"),fontFamily:ft.external(we.fontFamily,"Body2 typography"),fontSize:ft.external(we.fontSize,"Body2 typography"),fontWeight:ft.external(we.fontWeight,"Body2 typography"),letterSpacing:ft.external(we.letterSpacing,"Body2 typography"),lineHeight:ft.external(we.lineHeight,"Body2 typography"),textTransform:ft.external(we.textTransform,"Body2 typography")};class qi extends gt{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 K`
889
- <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
890
- ${null==this.parent?null:K`
891
- <div tabindex="0"
892
- part="controls go-back"
893
- class="ft-filter-level--go-back"
894
- ?disabled=${this.disabled}
895
- @keyup=${this.goBackOnKeyPress}
896
- @click=${this.goBackOnClick}>
897
- <ft-ripple></ft-ripple>
898
- <ft-icon variant="material">chevron_left</ft-icon>
899
- <ft-typography variant="body2">${this.parent.label}</ft-typography>
900
- </div>
901
- `}
902
- ${0===this.options.length&&this.noValuesLabel?K`
903
- <ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
904
- ${this.noValuesLabel}
905
- </ft-typography>
906
- `:V}
907
- ${Dt(e,(t=>t.value),(t=>{var e;return K`
908
- <div class="ft-filter-level--option" part="options">
909
- ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
910
- ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?V:K`
911
- <ft-button icon="chevron_right"
912
- part="controls navigate-hierarchy"
913
- label="${t.label}"
914
- ?disabled=${this.disabled}
915
- tooltipPosition="left"
916
- @click=${()=>this.displayLevel(t)}></ft-button>
917
- `}
918
- </div>
919
- `}))}
920
- ${e.length<t.length?K`
921
- <ft-button
922
- class="ft-filter-level--display-more"
923
- icon="expand_more"
924
- dense trailingIcon
925
- part="controls display-more"
926
- @click=${this.displayMore}>
927
- ${this.moreValuesButtonLabel}
928
- </ft-button>
929
- `:V}
930
- </div>
931
- `}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 K`
932
- <ft-checkbox name="${this.id}"
933
- part="multivalued-option"
934
- .checked=${t.selected}
935
- .disabled=${this.disabled}
936
- .indeterminate=${qe(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
937
- @change=${e=>this.optionsChanged(e,t)}>
938
- ${t.label}
939
- </ft-checkbox>
940
- `}buildMonoValuedOption(t){return K`
941
- <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
942
- part="monovalued-option"
943
- .checked=${t.selected}
944
- ?disabled=${this.disabled}
945
- @click=${e=>this.optionsChanged(e,t)}
946
- @keyup=${e=>this.onRadioKeyUp(e,t)}
947
- @change=${t=>t.stopPropagation()}>
948
-
949
- ${t.label}
950
- </ft-radio>
951
- `}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}))}}qi.elementDefinitions={"ft-button":Bi,"ft-ripple":li,"ft-typography":Ve,"ft-checkbox":Ii,"ft-icon":wi,"ft-radio":Hi},qi.styles=[v`
952
- .ft-filter-level--container {
953
- display: flex;
954
- flex-direction: column;
955
- }
956
-
957
- .ft-filter-level--container > * {
958
- padding: 0 10px;
959
- }
960
-
961
- .ft-filter-level--go-back {
962
- flex-shrink: 0;
963
- text-decoration: none;
964
- position: relative;
965
- border-radius: ${Vi.borderRadiusM};
966
- overflow: hidden;
967
- display: flex;
968
- align-items: center;
969
- padding: 4px 4px;
970
- gap: 4px;
971
- cursor: pointer;
972
- color: ${Vi.colorOnSurface};
973
- }
974
-
975
- .ft-filter-level--go-back:focus {
976
- outline: none;
977
- }
978
-
979
- .ft-filter-level--go-back ft-icon {
980
- flex-shrink: 0;
981
- }
982
-
983
- .ft-filter-level--go-back ft-typography {
984
- display: block;
985
- flex-grow: 1;
986
- flex-shrink: 0;
987
- }
988
-
989
- .ft-filter-level--option {
990
- display: flex;
991
- align-items: center;
992
- max-width: 100%;
993
- }
994
-
995
- .ft-filter-level--option ft-button {
996
- margin-right: -10px;
997
- flex-shrink: 0;
998
- }
999
-
1000
- ft-button {
1001
- ${ut(Oi.color,Vi.colorOnSurface)};
1002
- }
1003
-
1004
- ft-radio, ft-checkbox {
1005
- flex-shrink: 1;
1006
- flex-grow: 1;
1007
- display: block;
1008
- max-width: calc(100% + 10px);
1009
- margin-left: -10px;
1010
- word-break: break-word;
1011
- }
1012
-
1013
- .ft-filter-level--no-values {
1014
- margin: 10px 0;
1015
- color: ${Vi.colorOnSurfaceMedium};
1016
- }
1017
- `],Wi([i({type:String})],qi.prototype,"id",void 0),Wi([i({type:Object})],qi.prototype,"parent",void 0),Wi([i({type:Array})],qi.prototype,"options",void 0),Wi([i({type:Boolean})],qi.prototype,"multivalued",void 0),Wi([i({type:Boolean})],qi.prototype,"disabled",void 0),Wi([i({type:Boolean})],qi.prototype,"hideSelectedOptions",void 0),Wi([i({type:Boolean})],qi.prototype,"preventNavigation",void 0),Wi([i({type:String})],qi.prototype,"filter",void 0),Wi([i({type:String})],qi.prototype,"moreValuesButtonLabel",void 0),Wi([i({type:String})],qi.prototype,"noValuesLabel",void 0),Wi([i({type:Number})],qi.prototype,"displayedValuesLimit",void 0),Wi([n(".ft-filter-level--container")],qi.prototype,"container",void 0),Wi([o()],qi.prototype,"displayedPages",void 0);var Ji=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 Xi={buttonsColor:ft.extend("--ft-snap-scroll-buttons-color",bt.colorPrimary),buttonsZIndex:ft.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ft.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ft.external(bt.colorSurface,"Design system")};class Yi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Qi extends gt{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 t(200),this.updateScrollDebouncer=new t(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=It({"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":kt}),e=this.controls&&this.withScroll;return K`
1018
- <div part="container" class="${t}">
1019
- <ft-button
1020
- class="ft-snap-scroll--previous"
1021
- part="controls"
1022
- primary
1023
- icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
1024
- ?hidden=${!e||this.startReached}
1025
- ?disabled=${!e||this.startReached}
1026
- @click=${this.previous}
1027
- ></ft-button>
1028
- <slot class="ft-snap-scroll--content"
1029
- part="content"
1030
- @slotchange=${this.onSlotChange}></slot>
1031
- <ft-button
1032
- class="ft-snap-scroll--next"
1033
- part="controls"
1034
- primary
1035
- icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
1036
- ?hidden=${!e||this.endReached}
1037
- ?disabled=${!e||this.endReached}
1038
- @click=${this.next}
1039
- ></ft-button>
1040
- </div>
1041
- `}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 Yi(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)}}Qi.elementDefinitions={"ft-button":Bi},Qi.styles=v`
1042
- .ft-snap-scroll {
1043
- box-sizing: border-box;
1044
- position: relative;
1045
- display: flex;
1046
-
1047
- --ft-snap-scroll-transparent-color: transparent;
1048
- }
1049
-
1050
- .ft-snap-scroll.ft-snap-scroll--safari-fix {
1051
- /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
1052
- /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
1053
- --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
1054
- }
1055
-
1056
- .ft-snap-scroll,
1057
- .ft-snap-scroll--content {
1058
- overflow: hidden;
1059
- }
1060
-
1061
- .ft-snap-scroll--limit-size,
1062
- .ft-snap-scroll--limit-size .ft-snap-scroll--content {
1063
- width: 100%;
1064
- height: 100%;
1065
- }
1066
-
1067
- .ft-snap-scroll--content {
1068
- flex-grow: 1;
1069
- flex-shrink: 1;
1070
- box-sizing: border-box;
1071
- scroll-snap-align: start;
1072
- display: flex;
1073
- flex-wrap: nowrap;
1074
- align-items: flex-start;
1075
- justify-content: flex-start;
1076
- gap: ${Xi.gap};
1077
- }
1078
-
1079
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
1080
- display: none;
1081
- }
1082
-
1083
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
1084
- -ms-overflow-style: none;
1085
- scrollbar-width: none;
1086
- }
1087
-
1088
- .ft-snap-scroll--content::slotted(*) {
1089
- flex-shrink: 0;
1090
- flex-grow: 1;
1091
- max-height: 100%;
1092
- max-width: 100%;
1093
- }
1094
-
1095
- .ft-snap-scroll--horizontal,
1096
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1097
- width: 100%;
1098
- }
1099
-
1100
- .ft-snap-scroll--vertical,
1101
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1102
- height: 100%;
1103
- }
1104
-
1105
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1106
- flex-direction: row;
1107
- overflow-x: auto;
1108
- }
1109
-
1110
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1111
- flex-direction: column;
1112
- overflow-y: auto;
1113
- }
1114
-
1115
- .ft-snap-scroll--previous,
1116
- .ft-snap-scroll--next {
1117
- position: absolute;
1118
- display: flex;
1119
- z-index: ${Xi.buttonsZIndex};
1120
- opacity: 1;
1121
- transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1122
- ${ut(Oi.backgroundColor,"transparent")};
1123
- ${ut(Oi.color,Xi.buttonsColor)};
1124
- }
1125
-
1126
- .ft-snap-scroll--previous[hidden],
1127
- .ft-snap-scroll--next[hidden] {
1128
- z-index: -1;
1129
- opacity: 0;
1130
- }
1131
-
1132
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
1133
- top: 0;
1134
- left: -1px;
1135
- bottom: 0;
1136
- background: linear-gradient(to right, ${Xi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1137
- }
1138
-
1139
- .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1140
- top: -1px;
1141
- left: 0;
1142
- right: 0;
1143
- background: linear-gradient(to bottom, ${Xi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1144
- }
1145
-
1146
- .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1147
- top: 0;
1148
- right: -1px;
1149
- bottom: 0;
1150
- background: linear-gradient(to left, ${Xi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1151
- }
1152
-
1153
- .ft-snap-scroll--vertical .ft-snap-scroll--next {
1154
- left: 0;
1155
- right: 0;
1156
- bottom: -1px;
1157
- background: linear-gradient(to top, ${Xi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1158
- }
1159
-
1160
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1161
- .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1162
- .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1163
- .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1164
- background-color: ${Xi.colorSurface};
1165
- }
1166
- `,Ji([i({type:Boolean})],Qi.prototype,"horizontal",void 0),Ji([i({type:Boolean})],Qi.prototype,"hideScrollbar",void 0),Ji([i({type:Boolean})],Qi.prototype,"controls",void 0),Ji([i({type:Boolean})],Qi.prototype,"limitSize",void 0),Ji([o()],Qi.prototype,"elements",void 0),Ji([o()],Qi.prototype,"currentElement",void 0),Ji([o()],Qi.prototype,"withScroll",void 0),Ji([o()],Qi.prototype,"startReached",void 0),Ji([o()],Qi.prototype,"endReached",void 0),Ji([n(".ft-snap-scroll--content")],Qi.prototype,"contentSlot",void 0),c("ft-snap-scroll")(Qi);var Gi=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 to=ft.external(bt.colorOutline,"Design system"),eo=ft.external(bt.colorOnSurface,"Design system"),io=ft.external(bt.colorOnSurfaceMedium,"Design system"),oo=ft.external(bt.colorPrimary,"Design system"),so=ft.external(bt.colorSurface,"Design system"),no=ft.external(bt.transitionDuration,"Design system"),ro=ft.external(bt.transitionTimingFunction,"Design system");class lo extends CustomEvent{constructor(t){super("change",{detail:t})}}class ao extends gt{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",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 t(300),this.changeDebouncer=new t(10)}get flatOptions(){return qe(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected));let o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return K`
1167
- <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1168
- part="container">
1169
- ${this.label||i?K`
1170
- <div class="ft-filter--header" part="header">
1171
- <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1172
- </ft-typography>
1173
- ${i?K`
1174
- <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1175
- ${this.clearButtonLabel}
1176
- </ft-button>
1177
- `:null}
1178
- </div>
1179
- `:null}
1180
- <div class="ft-filter--filter" ?hidden=${!o}>
1181
- <input type="search"
1182
- part="input"
1183
- class="ft-typography--caption"
1184
- ?disabled=${!o}
1185
- placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
1186
- @search=${this.onFilterChange}
1187
- @keyup=${this.onFilterChange}>
1188
- </div>
1189
- <div class="ft-filter--values">
1190
- ${this.renderLevels()}
1191
- </div>
1192
- <slot class="ft-filter--slot"
1193
- @slotchange=${this.updateOptionsFromSlot}
1194
- @option-change=${this.optionsChanged}></slot>
1195
- </div>
1196
- `}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)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return K`
1197
- ${this.raiseSelectedOptions&&e.length>0?K`
1198
- <ft-filter-level
1199
- id="${this.id}"
1200
- ?multivalued=${this.multivalued}
1201
- ?disabled=${this.disabled}
1202
- preventNavigation
1203
- .options=${e}
1204
- @change=${this.onChange}
1205
- part="values selected-values"
1206
- .exportpartsPrefixes=${["values","selected-values"]}
1207
- ></ft-filter-level>
1208
- <div class="ft-filter--separator">
1209
- `:null}
1210
- <ft-snap-scroll horizontal hideScrollbar
1211
- class="ft-filter--levels"
1212
- @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
1213
- ${this.renderLevel(o,this.options)}
1214
- ${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var o;const s=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(s,null!==(o=null==t?void 0:t.subOptions)&&void 0!==o?o:[],t)}))}
1215
- </ft-snap-scroll>
1216
- `}renderLevel(t,e,i){return K`
1217
- <ft-filter-level
1218
- class="${t}"
1219
- id="${this.id}"
1220
- filter="${this.filter}"
1221
- moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1222
- ?multivalued=${this.multivalued}
1223
- ?disabled=${this.disabled||"ft-filter--level-center"!==t}
1224
- ?hideSelectedOptions=${this.raiseSelectedOptions}
1225
- .parent=${i}
1226
- .options=${e}
1227
- .displayedValuesLimit=${this.displayedValuesLimit}
1228
- @change=${this.onChange}
1229
- @go-back=${this.goBack}
1230
- @display-level=${this.onDisplayLevel}
1231
- part="values available-values"
1232
- .exportpartsPrefixes=${["values","available-values"]}
1233
- noValuesLabel="${this.noValuesLabel}"
1234
- ></ft-filter-level>
1235
- `}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 lo(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(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ao.elementDefinitions={"ft-button":Bi,"ft-filter-level":qi,"ft-snap-scroll":Qi,"ft-typography":Ve},ao.styles=[He,v`
1236
- :host {
1237
- display: flex;
1238
- max-height: 100%;
1239
- max-width: 100%;
1240
- }
1241
-
1242
- .ft-filter--container {
1243
- flex-grow: 1;
1244
- display: flex;
1245
- flex-direction: column;
1246
- max-height: 100%;
1247
- max-width: 100%;
1248
- color: ${eo};
1249
- background: ${so};
1250
- }
1251
-
1252
- .ft-filter--header {
1253
- display: flex;
1254
- flex-wrap: wrap;
1255
- gap: 4px;
1256
- flex-shrink: 0;
1257
- padding: 0 10px;
1258
- margin-bottom: 8px;
1259
- ${ut(Xt.fontSize,"14px")};
1260
- }
1261
-
1262
- .ft-filter--header ft-button {
1263
- flex-shrink: 0;
1264
- margin-left: auto;
1265
- ${ut(Oi.iconSize,"18px")};
1266
- }
1267
-
1268
- .ft-filter--label {
1269
- display: block;
1270
- flex-shrink: 1;
1271
- flex-grow: 1;
1272
- word-break: break-word;
1273
- ${ut(Xt.lineHeight,"22px")};
1274
- ${ut(Xt.fontWeight,"bold")};
1275
- }
1276
-
1277
- .ft-filter--filter {
1278
- flex-shrink: 0;
1279
- display: flex;
1280
- margin: 0;
1281
- margin-bottom: 8px;
1282
- padding: 0 10px;
1283
- overflow: hidden;
1284
- height: 32px;
1285
- transition: height ${no} ${ro},
1286
- margin ${no} ${ro};
1287
- transition-delay: 500ms;
1288
- }
1289
-
1290
- .ft-filter--filter[hidden] {
1291
- height: 0;
1292
- margin-bottom: 0;
1293
- }
1294
-
1295
- input {
1296
- display: block;
1297
- width: 100%;
1298
- border-radius: 4px;
1299
- border: 1px solid ${to};
1300
- padding: 4px;
1301
- background-color: ${so};
1302
- color: ${io};
1303
- outline-color: ${oo};
1304
- }
1305
-
1306
- .ft-filter--values {
1307
- flex-grow: 1;
1308
- flex-shrink: 1;
1309
- max-width: 100%;
1310
- overflow-x: hidden;
1311
- overflow-y: auto;
1312
- }
1313
-
1314
- .ft-filter--separator {
1315
- border-top: 1px solid ${to};
1316
- margin: 4px 10px;
1317
- }
1318
-
1319
- .ft-filter--levels-container {
1320
- position: relative;
1321
- overflow: hidden;
1322
- }
1323
-
1324
- .ft-filter--levels {
1325
- position: relative;
1326
- overflow: hidden;
1327
- }
1328
-
1329
- ft-filter-level {
1330
- width: 100%;
1331
- }
1332
-
1333
- .ft-filter--level-left {
1334
- height: 0;
1335
- }
1336
-
1337
- slot {
1338
- display: none;
1339
- }
1340
- `],Gi([i({type:String})],ao.prototype,"id",void 0),Gi([i({type:String})],ao.prototype,"label",void 0),Gi([i({type:String})],ao.prototype,"filterPlaceHolder",void 0),Gi([i({type:String})],ao.prototype,"clearButtonLabel",void 0),Gi([i({type:String})],ao.prototype,"moreValuesButtonLabel",void 0),Gi([i({type:String})],ao.prototype,"noValuesLabel",void 0),Gi([h([])],ao.prototype,"options",void 0),Gi([i({type:Boolean})],ao.prototype,"multivalued",void 0),Gi([i({type:Boolean})],ao.prototype,"disabled",void 0),Gi([i({type:Boolean})],ao.prototype,"raiseSelectedOptions",void 0),Gi([i({type:Number})],ao.prototype,"displayedValuesLimit",void 0),Gi([n(".ft-filter--slot")],ao.prototype,"slotElement",void 0),Gi([n(".ft-filter--container")],ao.prototype,"container",void 0),Gi([n(".ft-filter--values")],ao.prototype,"valuesContainer",void 0),Gi([n(".ft-filter--levels")],ao.prototype,"levelsContainer",void 0),Gi([n(".ft-filter--levels ft-filter-level:last-child")],ao.prototype,"lastLevel",void 0),Gi([n(".ft-filter--filter input")],ao.prototype,"filterInput",void 0),Gi([function(t){return s({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],ao.prototype,"levels",void 0),Gi([o()],ao.prototype,"withScroll",void 0),Gi([o()],ao.prototype,"filter",void 0),Gi([o()],ao.prototype,"slideIn",void 0),Gi([o()],ao.prototype,"slideOut",void 0);var co=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 ho extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return K`
1341
- <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1342
- `}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}))}}ho.elementDefinitions={},co([i({type:String})],ho.prototype,"label",void 0),co([i({type:Object,converter:t=>t})],ho.prototype,"value",void 0),co([i({type:Boolean,reflect:!0})],ho.prototype,"selected",void 0),co([i({type:Object})],ho.prototype,"subOptions",void 0),co([n(".ft-filter-option--slot")],ho.prototype,"slotElement",void 0),c("ft-filter")(ao),c("ft-filter-option")(ho);var po=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 fo extends gt{constructor(){super(...arguments),this.multi=!1}render(){return K`
1343
- <div class="ft-accordion">
1344
- <slot @activated=${this.onChange}></slot>
1345
- </div>
1346
- `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}fo.elementDefinitions={},fo.styles=v`
1347
- .ft-accordion {
1348
- box-sizing: border-box;
1349
- }
1350
- `,po([i({type:Boolean})],fo.prototype,"multi",void 0),po([n("slot")],fo.prototype,"content",void 0);var uo=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 bo=ft.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),vo=ft.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),go=ft.external(bt.colorOutline,"Design system");class xo extends gt{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return K`
1351
- <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1352
- <div class="ft-accordion-item--toggle"
1353
- part="toggle"
1354
- @click=${()=>this.active=!this.active}
1355
- @keydown=${this.onToggleKeyDown}
1356
- tabindex="0">
1357
- <ft-ripple part="toggle-ripple"></ft-ripple>
1358
- ${this.icon?K`
1359
- <ft-icon variant="material">${this.icon}</ft-icon>
1360
- `:null}
1361
- ${this.label?K`
1362
- <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1363
- </ft-typography>
1364
- `:K`
1365
- <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1366
- `}
1367
- <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
1368
- </div>
1369
- <div class="ft-accordion-item--content" part="content" @focusin=${()=>this.active=!0}>
1370
- <slot></slot>
1371
- </div>
1372
- <div class="ft-accordion-item--separator" part="separator"></div>
1373
- </div>
1374
- `}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)}}xo.elementDefinitions={"ft-ripple":li,"ft-typography":Ve,"ft-icon":wi},xo.styles=v`
1375
- .ft-accordion-item {
1376
- display: flex;
1377
- flex-direction: column;
1378
- }
1379
-
1380
- .ft-accordion-item--toggle {
1381
- flex-shrink: 0;
1382
- flex-grow: 0;
1383
- position: relative;
1384
- display: flex;
1385
- align-items: center;
1386
- cursor: pointer;
1387
- padding: ${vo} ${bo};
1388
- gap: calc(${bo} / 2);
1389
- outline: none;
1390
- }
1391
-
1392
- .ft-accordion-item--toggle > *:not(ft-ripple) {
1393
- position: relative;
1394
- }
1395
-
1396
- .ft-accordion-item--label {
1397
- flex-grow: 1;
1398
- flex-shrink: 1;
1399
- display: block;
1400
- }
1401
-
1402
- .ft-accordion-item--content {
1403
- box-sizing: border-box;
1404
- flex-shrink: 1;
1405
- flex-grow: 1;
1406
- overflow: hidden;
1407
- height: 0;
1408
- }
1409
-
1410
- .ft-accordion-item--active .ft-accordion-item--content {
1411
- height: initial;
1412
- overflow: visible;
1413
- padding: ${vo} ${bo};
1414
- }
1415
-
1416
- .ft-accordion-item--separator {
1417
- border-bottom: 1px solid ${go};
1418
- }
1419
- `,uo([i({type:String})],xo.prototype,"icon",void 0),uo([i({type:String})],xo.prototype,"label",void 0),uo([i({type:Boolean,reflect:!0})],xo.prototype,"active",void 0),c("ft-accordion")(fo),c("ft-accordion-item")(xo);var yo=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 mo=ft.extend("--ft-chip-color",bt.colorOnSurface),$o={backgroundColor:ft.extend("--ft-chip-background-color",bt.colorSurface),color:mo,fontSize:ft.extend("--ft-chip-font-size",we.fontSize),iconSize:ft.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:ft.extend("--ft-chip-ripple-color",mo),horizontalPadding:ft.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:ft.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:ft.external(bt.colorOutline,"Design system"),opacityDisabled:ft.external(bt.colorOpacityDisabled,"Design system")},wo=ft.extend("--ft-chip-highlighted-color",ft.extend("--ft-chip-color",bt.colorOnPrimary)),ko={backgroundColor:ft.extend("--ft-chip-highlighted-background-color",ft.extend("--ft-chip-background-color",bt.colorPrimary)),color:wo,rippleColor:ft.extend("--ft-chip-highlighted-ripple-color",wo)},So=ft.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Oo=ft.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Co extends CustomEvent{constructor(){super("icon-click")}}class zo extends gt{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[xt,v`
1420
- :host {
1421
- display: inline-block;
1422
- max-width: 100%;
1423
- pointer-events: none;
1424
- }
1425
-
1426
- .ft-chip {
1427
- position: relative;
1428
- display: flex;
1429
- justify-content: center;
1430
- align-items: center;
1431
- width: 100%;
1432
- overflow: hidden;
1433
- box-sizing: border-box;
1434
- pointer-events: auto;
1435
-
1436
- --ft-chip-internal-font-size: ${$o.fontSize};
1437
- --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1438
- ${ut($i.size,$o.iconSize)};
1439
- --ft-chip-internal-vertical-padding: ${$o.verticalPadding};
1440
- --ft-chip-internal-horizontal-padding: ${$o.horizontalPadding};
1441
- --ft-chip-internal-icon-padding: 3px;
1442
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${$o.iconSize});
1443
-
1444
- border: 1px solid ${$o.colorOutline};
1445
- color: ${$o.color};
1446
- ${ut(ti.color,$o.rippleColor)};
1447
- border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
1448
- padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1449
- background-color: ${$o.backgroundColor};
1450
- line-height: var(--ft-chip-internal-content-height);
1451
- }
1452
-
1453
- .ft-chip > *:not(ft-ripple) {
1454
- position: relative;
1455
- }
1456
-
1457
- .ft-chip--dense {
1458
- --ft-chip-internal-icon-padding: 3px;
1459
- --ft-chip-internal-vertical-padding: ${Oo};
1460
- --ft-chip-internal-horizontal-padding: ${So};
1461
- --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1462
- }
1463
-
1464
- .ft-chip--no-content {
1465
- --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
1466
- }
1467
-
1468
- .ft-chip--disabled {
1469
- cursor: default;
1470
- pointer-events: none;
1471
- filter: grayscale(1);
1472
- opacity: ${$o.opacityDisabled};
1473
- }
1474
-
1475
- .ft-chip--highlighted {
1476
- border: none;
1477
- padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1478
- background-color: ${ko.backgroundColor};
1479
- ${ut(ti.color,ko.rippleColor)};
1480
- color: ${ko.color};
1481
- }
1482
-
1483
- .ft-chip--clickable {
1484
- cursor: pointer;
1485
- -webkit-mask-image: radial-gradient(white, black);
1486
- }
1487
-
1488
- .ft-chip:focus {
1489
- outline: none;
1490
- }
1491
-
1492
- .ft-chip--icon-container {
1493
- display: inline-flex;
1494
- position: relative;
1495
- overflow: hidden;
1496
- border-radius: 100%;
1497
- justify-content: center;
1498
- align-items: center;
1499
- flex-shrink: 0;
1500
-
1501
- padding: var(--ft-chip-internal-icon-padding);
1502
- margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1503
- }
1504
-
1505
- .ft-chip--icon-container > *:not(ft-ripple) {
1506
- position: relative;
1507
- }
1508
-
1509
- .ft-chip--label {
1510
- vertical-align: bottom;
1511
- display: block;
1512
- margin: 0 var(--ft-chip-internal-horizontal-padding);
1513
- ${ut(we.fontSize,"var(--ft-chip-internal-font-size)")};
1514
- ${ut(we.lineHeight,"var(--ft-chip-internal-content-height)")};
1515
- }
1516
-
1517
- .ft-chip--safari-fix .ft-chip--label {
1518
- margin-right: 0;
1519
- }
1520
-
1521
- .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
1522
- overflow: hidden;
1523
- white-space: nowrap;
1524
- text-overflow: ellipsis;
1525
- }
1526
-
1527
- .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
1528
- content: "\\0000a0";
1529
- display: inline-block;
1530
- width: 0;
1531
- }
1532
-
1533
- .ft-chip--no-content .ft-chip--label {
1534
- display: none;
1535
- }
1536
-
1537
- .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
1538
- width: var(--ft-chip-internal-content-height);
1539
- height: var(--ft-chip-internal-content-height);
1540
- }
1541
-
1542
- .ft-chip--icon-container:focus {
1543
- outline: none;
1544
- }
1545
-
1546
- .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
1547
- order: -1;
1548
- }
1549
- `]}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":kt};return K`
1550
- <div class="${It(t)}"
1551
- aria-label="${this.getLabel()}"
1552
- tabindex="${this.interactionsOnChip?0:-1}"
1553
- @keyup=${this.onKeyUp}>
1554
- <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
1555
- <ft-typography variant="body2" element="span" class="ft-chip--label">
1556
- <slot @slotchange=${this.onSlotchange}></slot>
1557
- </ft-typography>
1558
- ${this.internalIcon?this.renderIcon():null}
1559
- </div>
1560
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return K`
1561
- <div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
1562
- tabindex="${this.interactionsOnIcon?0:-1}"
1563
- @click=${this.onIconClick}
1564
- @keyup=${this.onIconKeyUp}>
1565
- <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
1566
- <ft-icon variant="material">${this.internalIcon}</ft-icon>
1567
- </div>
1568
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Co))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Co))}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)}}zo.elementDefinitions={"ft-ripple":li,"ft-typography":Ve,"ft-icon":wi},yo([i({type:Boolean})],zo.prototype,"highlighted",void 0),yo([i({type:Boolean})],zo.prototype,"removable",void 0),yo([i({type:Boolean})],zo.prototype,"disabled",void 0),yo([i({type:Boolean})],zo.prototype,"clickable",void 0),yo([i({type:Boolean})],zo.prototype,"iconClickable",void 0),yo([i({type:Boolean})],zo.prototype,"dense",void 0),yo([i({type:Boolean})],zo.prototype,"multiLine",void 0),yo([i({type:String})],zo.prototype,"label",void 0),yo([i({type:String})],zo.prototype,"icon",void 0),yo([i({type:Boolean})],zo.prototype,"trailingIcon",void 0),yo([n("ft-typography slot")],zo.prototype,"slottedContent",void 0),c("ft-chip")(zo);var Eo=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 Bo={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",bt.colorOutline),textColor:ft.extend("--ft-input-label-text-color",bt.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",bt.colorOnSurfaceDisabled),colorSurface:ft.external(bt.colorSurface,"Design system"),borderRadiusS:ft.external(bt.borderRadiusS,"Design system"),colorError:ft.external(bt.colorError,"Design system")};class Mo extends gt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!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,"ft-input-label--in-error":this.error};return K`
1569
- <div class="${It(t)}">
1570
- ${this.text?K`
1571
- <div class="ft-input-label--text ft-typography--caption">
1572
- <span class="ft-input-label--floating-text">${this.text}</span>
1573
- <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1574
- </div>
1575
- `:null}
1576
- </div>
1577
- `}}Mo.elementDefinitions={},Mo.styles=[He,v`
1578
- .ft-input-label {
1579
- position: absolute;
1580
- inset: 0;
1581
- display: flex;
1582
- }
1583
-
1584
- .ft-input-label {
1585
- border-color: ${Bo.borderColor};
1586
- }
1587
-
1588
- .ft-input-label.ft-input-label--in-error {
1589
- border-color: ${Bo.colorError}
1590
- }
1591
-
1592
- .ft-input-label:before,
1593
- .ft-input-label:after {
1594
- content: "";
1595
- display: flex;
1596
- border-bottom-width: 1px;
1597
- border-bottom-style: solid;
1598
- border-color: inherit;
1599
- }
1600
-
1601
- .ft-input-label:before {
1602
- width: ${Bo.horizontalSpacing};
1603
- flex-shrink: 0;
1604
- }
1605
-
1606
- .ft-input-label:after {
1607
- flex-grow: 1;
1608
- flex-shrink: 1;
1609
- }
1610
-
1611
- .ft-input-label--text {
1612
- display: flex;
1613
- flex-shrink: 1;
1614
- position: relative;
1615
- border-bottom-width: 1px;
1616
- border-bottom-style: solid;
1617
- border-color: inherit;
1618
- color: ${Bo.textColor};
1619
- transition: font-size 250ms, line-height 250ms, color 250ms;
1620
- ${ut(ke.fontSize,Bo.fontSize)};
1621
- ${ut(ke.lineHeight,Bo.fontSize)};
1622
- }
1623
-
1624
- .ft-input-label--in-error .ft-input-label--text {
1625
- color: ${Bo.colorError}
1626
- }
1627
-
1628
- .ft-input-label--disabled .ft-input-label--text {
1629
- color: ${Bo.disabledTextColor};
1630
- }
1631
-
1632
- .ft-input-label--hidden-text {
1633
- padding: 0 4px;
1634
- opacity: 0;
1635
- }
1636
-
1637
- .ft-input-label--floating-text {
1638
- position: absolute;
1639
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
1640
- transition: top 250ms;
1641
- width: calc(100% - 8px);
1642
- overflow: hidden;
1643
- white-space: nowrap;
1644
- text-overflow: ellipsis;
1645
- padding: ${Bo.verticalSpacing} 4px;
1646
- margin: calc(${Bo.verticalSpacing} * -1) 0;
1647
- }
1648
-
1649
- .ft-input-label--raised .ft-input-label--text {
1650
- ${ut(ke.fontSize,Bo.raisedFontSize)};
1651
- ${ut(ke.lineHeight,Bo.raisedFontSize)};
1652
- }
1653
-
1654
- .ft-input-label--raised .ft-input-label--floating-text {
1655
- top: ${Bo.verticalSpacing};
1656
- }
1657
-
1658
- .ft-input-label--outlined .ft-input-label--text,
1659
- .ft-input-label--outlined:before,
1660
- .ft-input-label--outlined:after {
1661
- border-top-width: 1px;
1662
- border-top-style: solid;
1663
- }
1664
-
1665
- .ft-input-label--outlined:before {
1666
- border-left-width: 1px;
1667
- border-left-style: solid;
1668
- border-radius: ${Bo.borderRadiusS} 0 0 ${Bo.borderRadiusS};
1669
- }
1670
-
1671
- .ft-input-label--outlined:after {
1672
- border-right-width: 1px;
1673
- border-right-style: solid;
1674
- border-radius: 0 ${Bo.borderRadiusS} ${Bo.borderRadiusS} 0;
1675
- }
1676
-
1677
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1678
- padding: 2px 4px;
1679
- z-index: ${Bo.raisedZIndex};
1680
- background-color: ${Bo.colorSurface};
1681
- border-radius: ${Bo.borderRadiusS};
1682
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1683
- }
1684
-
1685
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1686
- border-top: none;
1687
- }
1688
- `],Eo([i({type:String})],Mo.prototype,"text",void 0),Eo([i({type:Boolean})],Mo.prototype,"raised",void 0),Eo([i({type:Boolean})],Mo.prototype,"outlined",void 0),Eo([i({type:Boolean})],Mo.prototype,"disabled",void 0),Eo([i({type:Boolean})],Mo.prototype,"error",void 0),c("ft-input-label")(Mo);var No=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 Fo extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return K``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Fo.elementDefinitions={},No([i({type:String})],Fo.prototype,"label",void 0),No([i({type:Object,converter:t=>t})],Fo.prototype,"value",void 0),No([i({type:Boolean,reflect:!0})],Fo.prototype,"selected",void 0);const Ro={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",bt.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",bt.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",bt.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(bt.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(bt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(bt.colorPrimary,"Design system"),borderRadiusS:ft.external(bt.borderRadiusS,"Design system"),elevation02:ft.external(bt.elevation02,"Design system"),colorError:ft.external(bt.colorError,"Design system")};class Lo extends gt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!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,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return K`
1689
- <div class="${It(a)}" part="container">
1690
- <div class="ft-select--main-panel" part="main-panel">
1691
- <ft-input-label text="${this.label}"
1692
- part="label"
1693
- ?disabled=${r}
1694
- ?outlined=${this.outlined}
1695
- ?raised=${l||n}
1696
- ?error=${this.error}
1697
- ></ft-input-label>
1698
- <div class="ft-select--input-panel"
1699
- part="selected-value"
1700
- tabindex="${r?"-1":"0"}"
1701
- @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
1702
- @keydown=${this.onMainPanelKeyDown}
1703
- aria-label="${this.label}"
1704
- aria-haspopup="listbox"
1705
- aria-expanded="${n}">
1706
- <ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
1707
- <ft-typography variant="body1" class="ft-select--selected-option">
1708
- ${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
1709
- </ft-typography>
1710
- <ft-icon variant="material">${n?"expand_less":"expand_more"}</ft-icon>
1711
- </div>
1712
- <div class="ft-select--options"
1713
- part="options"
1714
- @keydown=${this.onOptionsKeyDown}
1715
- innerrole="listbox">
1716
- ${Dt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
1717
- </div>
1718
- </div>
1719
- ${this.helper?K`
1720
- <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
1721
- </ft-typography>`:void 0}
1722
- </div>
1723
- <slot @slotchange=${this.updateOptionsFromSlot}
1724
- @option-change=${this.updateOptionsFromSlot}
1725
- ></slot>
1726
- `}renderOption(t){let e=this.selectedOption===t;return K`
1727
- <div class="${It({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
1728
- part="option"
1729
- tabindex="0"
1730
- data-value="${t.value}"
1731
- @keydown=${e=>this.onOptionKeyDown(e,t)}
1732
- @click=${()=>this.selectOption(t)}>
1733
- <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1734
- ${t.label}
1735
- </div>
1736
- `}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}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}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 hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}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)}}Lo.elementDefinitions={"ft-input-label":Mo,"ft-typography":Ve,"ft-ripple":li,"ft-icon":wi},Lo.styles=[_e,He,v`
1737
- *:focus {
1738
- outline: none;
1739
- }
1740
-
1741
- .ft-select {
1742
- display: flex;
1743
- flex-direction: column;
1744
- align-items: stretch;
1745
- }
1746
-
1747
- .ft-select--main-panel {
1748
- position: relative;
1749
- display: flex;
1750
- height: calc(4 * ${Ro.verticalSpacing} + ${Ro.labelSize} + ${Ro.selectedOptionSize});
1751
- }
1752
-
1753
- .ft-select--input-panel {
1754
- flex-grow: 1;
1755
- position: relative;
1756
- display: flex;
1757
- align-items: center;
1758
- overflow: hidden;
1759
- padding-left: 16px;
1760
- padding-right: 8px;
1761
- gap: 8px;
1762
- color: ${Ro.selectedOptionColor};
1763
- ${ut(ti.color,Ro.selectedOptionColor)};
1764
- }
1765
-
1766
- .ft-select--input-panel,
1767
- .ft-select--option {
1768
- ${ut(ti.opacityContentOnSurfaceHover,"0.08")};
1769
- ${ut(ti.opacityContentOnSurfacePressed,"0.04")};
1770
- }
1771
-
1772
- .ft-select--input-panel > *:not(ft-ripple),
1773
- .ft-select--option > *:not(ft-ripple) {
1774
- position: relative;
1775
- }
1776
-
1777
- .ft-select--disabled .ft-select--input-panel,
1778
- .ft-select--disabled .ft-select--option {
1779
- color: ${Ro.colorOnSurfaceDisabled};
1780
- }
1781
-
1782
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
1783
- .ft-select:not(.ft-select--disabled) .ft-select--option {
1784
- cursor: pointer;
1785
- }
1786
-
1787
- ft-input-label {
1788
- ${ut(Bo.fontSize,Ro.selectedOptionSize)};
1789
- ${ut(Bo.raisedFontSize,Ro.labelSize)};
1790
- ${ut(Bo.verticalSpacing,Ro.verticalSpacing)};
1791
- }
1792
-
1793
- .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1794
- color: ${Ro.colorPrimary};
1795
- }
1796
-
1797
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1798
- ${ut(Bo.borderColor,Ro.colorPrimary)};
1799
- ${ut(Bo.textColor,Ro.colorPrimary)};
1800
- }
1801
-
1802
- .ft-select--selected-option {
1803
- display: block;
1804
- flex-grow: 1;
1805
- flex-shrink: 1;
1806
- overflow: hidden;
1807
- white-space: nowrap;
1808
- text-overflow: ellipsis;
1809
- ${ut($e.fontSize,Ro.selectedOptionSize)};
1810
- ${ut($e.lineHeight,Ro.selectedOptionSize)};
1811
- }
1812
-
1813
- .ft-select--in-error .ft-select--selected-option {
1814
- color: ${Ro.colorError};
1815
- }
1816
-
1817
- ft-icon {
1818
- flex-shrink: 0;
1819
- }
1820
-
1821
- slot {
1822
- display: none;
1823
- }
1824
-
1825
- .ft-select--filled .ft-select--input-panel {
1826
- border-radius: ${Ro.borderRadiusS} ${Ro.borderRadiusS} 0 0;
1827
- }
1828
-
1829
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1830
- align-self: stretch;
1831
- padding-top: calc(${Ro.labelSize} + 2 * ${Ro.verticalSpacing});
1832
- }
1833
-
1834
- .ft-select--outlined .ft-select--input-panel {
1835
- border-radius: ${Ro.borderRadiusS};
1836
- }
1837
-
1838
- .ft-select--options {
1839
- display: none;
1840
- position: absolute;
1841
- top: 100%;
1842
- left: 0;
1843
- right: 0;
1844
- color: ${Ro.optionsColor};
1845
- background: ${Ro.colorSurface};
1846
- z-index: ${Ro.optionsZIndex};
1847
- box-shadow: ${Ro.elevation02};
1848
- }
1849
-
1850
- .ft-select--fixed .ft-select--options {
1851
- position: fixed;
1852
- right: unset;
1853
- /* left and top are set dynamically */
1854
- }
1855
-
1856
- .ft-select--options-displayed .ft-select--options {
1857
- display: block;
1858
- max-height: ${Ro.optionsHeight};
1859
- overflow-y: auto;
1860
- }
1861
-
1862
- .ft-select--option {
1863
- position: relative;
1864
- padding: 4px 16px;
1865
- min-height: 32px;
1866
- display: flex;
1867
- align-items: center;
1868
- }
1869
-
1870
- .ft-select--helper-text {
1871
- padding: 0 12px 0 16px;
1872
- color: ${Ro.helperColor};
1873
- }
1874
-
1875
- .ft-select--in-error .ft-select--helper-text {
1876
- color: ${Ro.colorError};
1877
- }
1878
- `],No([i({type:String})],Lo.prototype,"label",void 0),No([i({type:String})],Lo.prototype,"helper",void 0),No([i({type:Boolean})],Lo.prototype,"outlined",void 0),No([i({type:Boolean})],Lo.prototype,"disabled",void 0),No([i({type:Boolean})],Lo.prototype,"error",void 0),No([i({type:Boolean})],Lo.prototype,"fixedMenuPosition",void 0),No([i({type:Array})],Lo.prototype,"options",void 0),No([o()],Lo.prototype,"selectedOption",void 0),No([o()],Lo.prototype,"optionsDisplayed",void 0),No([o()],Lo.prototype,"focusOptions",void 0),No([n(".ft-select")],Lo.prototype,"container",void 0),No([n(".ft-select--options")],Lo.prototype,"optionsMenu",void 0),No([n(".ft-select--input-panel")],Lo.prototype,"mainPanel",void 0),No([n(".ft-select--option:first-child")],Lo.prototype,"firstOption",void 0),No([n(".ft-select--option:focus")],Lo.prototype,"focusedOption",void 0),No([n(".ft-select--option.ft-select--option-selected")],Lo.prototype,"selectedOptionElement",void 0),No([n(".ft-select--option:last-child")],Lo.prototype,"lastOption",void 0),No([n("slot")],Lo.prototype,"optionsSlot",void 0),c("ft-select")(Lo),c("ft-select-option")(Fo);const Do={display:ft.create("--ft-skeleton--display","DISPLAY","block"),width:ft.create("--ft-skeleton--width","SIZE","100%"),height:ft.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:ft.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:ft.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:ft.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:ft.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:ft.external(bt.borderRadiusM,"Design system")};class Io extends gt{render(){return K`
1879
- `}}Io.elementDefinitions={},Io.styles=v`
1880
- :host {
1881
- width: ${Do.width};
1882
- height: ${Do.height};
1883
- display: ${Do.display};
1884
- overflow: hidden;
1885
- border-radius: ${Do.borderRadiusM};
1886
- background: linear-gradient(
1887
- 90deg,
1888
- transparent,
1889
- ${Do.glareColor} calc(0.45 * ${Do.glareWidth}),
1890
- ${Do.glareColor} calc(0.55 * ${Do.glareWidth}),
1891
- transparent ${Do.glareWidth}
1892
- ), ${Do.backgroundColor};
1893
- background-repeat: repeat-y;
1894
- background-size: 100vw 100vh;
1895
- background-attachment: fixed;
1896
- background-position: calc(${Do.glareWidth} * -1) 0;
1897
- animation: shine ${Do.animationDuration} infinite;
1898
- animation-timing-function: linear;
1899
- }
1900
-
1901
- @keyframes shine {
1902
- to {
1903
- background-position: calc(100vw + ${Do.glareWidth}) 0, calc(${Do.glareWidth} * -1) 0;
1904
- }
1905
- }
1906
- `,c("ft-skeleton")(Io);const jo={height:ft.create("--ft-search-bar-height","SIZE","38px"),borderRadius:ft.extend("--ft-search-bar-border-radius",bt.borderRadiusS),mobileOpenPosition:ft.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:ft.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:ft.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:ft.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:ft.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:ft.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:ft.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:ft.external(bt.colorSurface,"Design system"),colorOnSurface:ft.external(bt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ft.external(bt.colorOnSurfaceMedium,"Design system"),colorOutline:ft.external(bt.colorOutline,"Design system"),colorPrimary:ft.external(bt.colorPrimary,"Design system"),elevation02:ft.external(bt.elevation02,"Design system"),buttonColor:ft.external(Oi.color,"Button"),buttonRippleColor:ft.external(Oi.rippleColor,"Button")},Uo=v`
1907
- * {
1908
- box-sizing: border-box;
1909
- }
1910
-
1911
- .ft-search-bar--container {
1912
- display: flex;
1913
- flex-direction: column;
1914
- gap: 8px;
1915
- color: ${jo.colorOnSurface};
1916
- outline: none;
1917
- }
1918
-
1919
- .ft-search-bar--container > * {
1920
- flex-shrink: 0;
1921
- }
1922
-
1923
- .ft-search-bar--mobile-menu-open {
1924
- position: ${jo.mobileOpenPosition};
1925
- top: ${jo.mobileOpenTop};
1926
- bottom: ${jo.mobileOpenBottom};
1927
- left: ${jo.mobileOpenLeft};
1928
- right: ${jo.mobileOpenRight};
1929
- z-index: ${jo.floatingZIndex};
1930
- padding: 16px;
1931
- background: ${jo.colorSurface};
1932
- }
1933
-
1934
- .ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
1935
- position: ${jo.mobileOpenPosition.get("static")};
1936
- }
1937
-
1938
- .ft-search-bar {
1939
- position: relative;
1940
- display: flex;
1941
- flex-direction: row;
1942
- align-items: center;
1943
- height: ${jo.height};
1944
-
1945
- background: ${jo.colorSurface};
1946
- border: 1px solid ${jo.colorOutline};
1947
- border-radius: ${jo.borderRadius};
1948
- }
1949
-
1950
- .ft-search-bar--skeleton {
1951
- ${ut(Do.height,jo.height)};
1952
- ${ut(Do.borderRadiusM,jo.borderRadius)};
1953
- }
1954
-
1955
- .ft-search-bar--floating-panel-open .ft-search-bar {
1956
- border-radius: ${jo.borderRadius} ${jo.borderRadius} 0 0;
1957
- }
1958
-
1959
- .ft-search-bar--input-container {
1960
- flex-grow: 1;
1961
- flex-shrink: 1;
1962
- position: relative;
1963
- height: calc(100% - 2px);
1964
- }
1965
-
1966
- .ft-search-bar--input-outline {
1967
- flex-grow: 1;
1968
- flex-shrink: 1;
1969
- height: 100%;
1970
- width: 100%;
1971
- align-self: stretch;
1972
- display: grid;
1973
- padding: 0 8px;
1974
- border-radius: ${jo.borderRadius};
1975
- }
1976
-
1977
- .ft-search-bar--dense .ft-search-bar--input-outline {
1978
- grid-template-columns: auto minmax(200px, 1fr);
1979
- gap: 8px;
1980
- }
1981
-
1982
- .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
1983
- outline: 2px solid ${jo.colorPrimary};
1984
- }
1985
-
1986
- .ft-search-bar--input {
1987
- height: 100%;
1988
- flex-grow: 1;
1989
- border: none;
1990
- background-color: transparent;
1991
- outline: none;
1992
- }
1993
-
1994
- .ft-search-bar--desktop .ft-search-bar--input {
1995
- flex-shrink: 0;
1996
- min-width: 250px;
1997
- }
1998
-
1999
- .ft-search-bar--actions {
2000
- flex-shrink: 0;
2001
- display: flex;
2002
- flex-direction: row;
2003
- align-items: center;
2004
- height: 100%;
2005
-
2006
- ${ut(ci.zIndex,`calc(${jo.floatingZIndex} + 1)`)};
2007
- }
2008
-
2009
- .ft-search-bar > ft-button,
2010
- .ft-search-bar--actions ft-button {
2011
- flex-shrink: 0;
2012
- }
2013
-
2014
- .ft-search-bar--left-action {
2015
- ${ut(Oi.borderRadius,v`calc(${jo.borderRadius} - 1px) 0 0 calc(${jo.borderRadius} - 1px)`)};
2016
- border-right: 1px solid ${jo.colorOutline};
2017
- height: 100%;
2018
- }
2019
-
2020
- .ft-search-bar--left-action::part(button) {
2021
- height: 100%;
2022
- }
2023
-
2024
- .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2025
- ${ut(Oi.borderRadius,v`calc(${jo.borderRadius} - 1px) 0 0 0`)};
2026
- }
2027
-
2028
- .ft-search-bar .ft-search-bar--launch-search,
2029
- .ft-search-bar--clear-query {
2030
- margin: 0 4px;
2031
- }
2032
-
2033
- .ft-search-bar--separator {
2034
- height: 20px;
2035
- border-right: 1px solid ${jo.colorOutline};
2036
- }
2037
-
2038
- .ft-search-bar--left-action.ft-search-bar--content-locale {
2039
- ${ut(Bo.borderColor,"transparent")};
2040
- ${ut(Bo.borderRadiusS,v`calc(${jo.borderRadius} - 1px)`)};
2041
- ${ut(Ro.selectedOptionColor,jo.buttonColor)};
2042
- }
2043
-
2044
- .ft-search-bar--left-action.ft-search-bar--content-locale,
2045
- .ft-search-bar--left-action.ft-search-bar--content-locale::part(container),
2046
- .ft-search-bar--left-action.ft-search-bar--content-locale::part(main-panel) {
2047
- height: 100%;
2048
- }
2049
-
2050
- .ft-search-bar--left-action.ft-search-bar--content-locale::part(options) {
2051
- top: calc(100% + 1px);
2052
- right: unset;
2053
- width: max-content;
2054
- min-width: 100%;
2055
- }
2056
-
2057
- .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
2058
- border-radius: calc(${jo.borderRadius} - 1px) 0 0 calc(${jo.borderRadius} - 1px);
2059
- }
2060
-
2061
- `,Po=v`
2062
- .ft-search-bar--desktop-menu .ft-search-bar--presets {
2063
- margin-right: auto;
2064
- }
2065
-
2066
- .ft-search-bar--desktop-menu .ft-search-bar--presets {
2067
- min-width: 250px;
2068
- ${ut(Ro.optionsZIndex,"2")};
2069
- }
2070
-
2071
- .ft-search-bar--desktop-menu {
2072
- display: flex;
2073
- flex-direction: column;
2074
- gap: 16px;
2075
- }
2076
-
2077
- .ft-search-bar + .ft-search-bar--desktop-menu {
2078
- margin-top: 8px;
2079
- }
2080
-
2081
- .ft-search-bar--floating-panel {
2082
- padding: 16px;
2083
- }
2084
-
2085
- .ft-search-bar--floating-panel-open .ft-search-bar--floating-panel {
2086
- display: block;
2087
- }
2088
-
2089
- .ft-search-bar--desktop .ft-search-bar--facets-actions {
2090
- display: flex;
2091
- align-items: center;
2092
- justify-content: flex-end;
2093
- gap: 8px;
2094
- }
2095
-
2096
- .ft-search-bar--floating-panel .ft-search-bar--facets-actions {
2097
- padding: 0 10px;
2098
- }
2099
-
2100
- .ft-search-bar--mobile .ft-search-bar--facets-actions {
2101
- flex-shrink: 0;
2102
- flex-grow: 0;
2103
- display: flex;
2104
- gap: 16px;
2105
- align-items: center;
2106
- justify-content: space-evenly;
2107
- }
2108
-
2109
- .ft-search-bar--mobile .ft-search-bar--facets-actions > * {
2110
- flex-grow: 1;
2111
- flex-basis: 0;
2112
- }
2113
-
2114
- ft-filter::part(clear-button) {
2115
- display: none;
2116
- }
2117
-
2118
- .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2119
- display: block;
2120
- height: ${jo.desktopFiltersHeight};
2121
- --ft-snap-scroll-gap: 16px;
2122
- }
2123
-
2124
- .ft-search-bar--desktop-menu ft-filter {
2125
- display: flex;
2126
- flex-grow: 0;
2127
- max-height: 100%;
2128
- max-width: 250px;
2129
- }
2130
-
2131
- .ft-search-bar--hierarchical-filter {
2132
- width: 250px;
2133
- }
2134
-
2135
- .ft-search-bar--mobile .ft-search-bar--filters-container {
2136
- flex-grow: 1;
2137
- flex-shrink: 1;
2138
- overflow-y: auto;
2139
- margin: 0 -16px;
2140
- padding: 0 16px;
2141
- }
2142
-
2143
- .ft-search-bar--mobile .ft-search-bar--filters-container ft-filter {
2144
- display: flex;
2145
- max-height: 60vh;
2146
- }
2147
-
2148
- .ft-search-bar--mobile ft-filter::part(container) {
2149
- flex-grow: 1;
2150
- }
2151
-
2152
- .ft-search-bar--filter-label {
2153
- display: flex;
2154
- justify-content: space-between;
2155
- align-items: baseline;
2156
- gap: 8px;
2157
- }
2158
-
2159
- .ft-search-bar--filter-label > * {
2160
- white-space: nowrap;
2161
- overflow: hidden;
2162
- text-overflow: ellipsis;
2163
- }
2164
-
2165
- .ft-search-bar--filter-label > :first-child {
2166
- flex-shrink: 0;
2167
- }
2168
-
2169
- .ft-search-bar--filter-label > :last-child {
2170
- flex-shrink: 1;
2171
- color: ${jo.colorOnSurfaceMedium};
2172
- }
2173
-
2174
- ft-accordion-item::part(toggle) {
2175
- margin-left: -16px;
2176
- margin-right: -16px;
2177
- }
2178
-
2179
- ft-accordion-item::part(label) {
2180
- overflow: hidden;
2181
- }
2182
-
2183
- ft-accordion-item::part(content) {
2184
- padding-left: 0;
2185
- padding-right: 0;
2186
- }
2187
-
2188
- .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2189
- margin: 0;
2190
- }
2191
- `,Ao=v`
2192
- .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2193
- flex-shrink: 0;
2194
- display: flex;
2195
- flex-direction: row;
2196
- flex-wrap: wrap;
2197
- gap: 8px;
2198
- }
2199
-
2200
- ft-snap-scroll.ft-search-bar--selected-filters {
2201
- overflow: hidden;
2202
- ${ut(Xi.gap,"4px")};
2203
- }
2204
-
2205
- ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
2206
- align-items: center;
2207
- }
2208
-
2209
- .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2210
- ${ut($o.iconSize,"17px")};
2211
- ${ut($o.fontSize,"12px")};
2212
- }
2213
-
2214
- .ft-search-bar--selected-filters * {
2215
- max-width: 100%;
2216
- }
2217
-
2218
- .ft-search-bar--selected-filters ft-chip {
2219
- flex-grow: 0;
2220
- }
2221
- `,To=v`
2222
- .ft-search-bar--mobile .ft-search-bar--suggestions {
2223
- flex-grow: 1;
2224
- flex-shrink: 1;
2225
- overflow-y: auto;
2226
- height: 0;
2227
- }
2228
-
2229
- .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2230
- border-top: 1px solid ${jo.colorOutline};
2231
- }
2232
-
2233
- .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2234
- height: initial;
2235
- }
2236
-
2237
- .ft-search-bar--floating-panel,
2238
- .ft-search-bar--desktop .ft-search-bar--suggestions {
2239
- position: absolute;
2240
- z-index: ${jo.floatingZIndex};
2241
- top: 100%;
2242
- left: -1px;
2243
- right: -1px;
2244
- display: none;
2245
- background: ${jo.colorSurface};
2246
- border: 1px solid ${jo.colorOutline};
2247
- border-radius: 0 0 ${jo.borderRadius} ${jo.borderRadius};
2248
- box-shadow: ${jo.elevation02};
2249
- outline: none;
2250
- }
2251
-
2252
- .ft-search-bar--desktop .ft-search-bar--suggestions {
2253
- top: calc(100% + 2px);
2254
- }
2255
-
2256
- .ft-search-bar--input-container:focus-within .ft-search-bar--suggestions-not-empty {
2257
- display: block;
2258
- }
2259
-
2260
- .ft-search-bar--no-suggestions {
2261
- text-align: center;
2262
- padding: 8px;
2263
- color: ${jo.colorOnSurface};
2264
- }
2265
-
2266
- .ft-search-bar--suggestion {
2267
- text-decoration: none;
2268
- position: relative;
2269
- display: flex;
2270
- align-items: center;
2271
- padding: 8px;
2272
- gap: 8px;
2273
- cursor: pointer;
2274
- color: ${jo.colorOnSurface};
2275
- min-height: 52px;
2276
- }
2277
-
2278
- .ft-search-bar--suggestion > *:not(ft-ripple) {
2279
- position: relative;
2280
- }
2281
-
2282
- .ft-search-bar--desktop .ft-search-bar--suggestion {
2283
- min-height: 44px;
2284
- }
2285
-
2286
- .ft-search-bar--suggestion:focus {
2287
- outline: none;
2288
- }
2289
-
2290
- .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2291
- border-top: 1px solid ${jo.colorOutline};
2292
- }
2293
-
2294
- .ft-search-bar--suggestion ft-typography {
2295
- display: block;
2296
- flex-grow: 1;
2297
- flex-shrink: 1;
2298
- }
2299
- `;var _o=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 Ho={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class Zo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Ko extends CustomEvent{constructor(t){super("change",{detail:t})}}const Wo=()=>{};class Vo extends gt{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new yt(Ho,{}),this.displayedFilters=[],this.presets=[],this.priors=[],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=jt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new t(500),this.suggestDebouncer=new t(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 isMobileMenuOpen(){return this.isMobile&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,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(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===jt.S}}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.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(){return K`
2300
- <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2301
- ${this.renderSearchBar()}
2302
- `}renderSearchBar(){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&&!this.forceMenuOpen,"ft-search-bar--mobile-menu-open":this.isMobileMenuOpen,"ft-search-bar--forced-open":this.forceMenuOpen||this.forceMobileMenuOpen};return this.facetsInitialized&&this.availableContentLocalesInitialized?K`
2303
- <div class="${It(t)}" part="container" tabindex="-1">
2304
- ${this.isMobile?this.renderMobileSearchBar():this.renderDesktopSearchBar()}
2305
- </div>
2306
- `:K`
2307
- <ft-skeleton class="ft-search-bar--skeleton" part="loader"></ft-skeleton>
2308
- `}renderMobileSearchBar(){return K`
2309
- <div class="ft-search-bar">
2310
- <div class="ft-search-bar--input-container" part="input-container">
2311
- <div class="ft-search-bar--input-outline" part="input-outline">
2312
- <input class="ft-search-bar--input ft-typography--body2"
2313
- part="input"
2314
- type="text"
2315
- placeholder="${this.labelResolver.resolve("inputPlaceHolder")}"
2316
- value="${this.query}"
2317
- @keyup=${this.onSearchBarKeyUp}
2318
- @focus=${()=>{this.mobileMenuOpen=!0,this.displayFacets=!1}}>
2319
- </div>
2320
- </div>
2321
- ${this.renderMobileSearchBarButtons()}
2322
- </div>
2323
- ${this.displayFacets?this.renderFacetsActions():this.renderSelectedFacets()}
2324
- ${this.displayFacets?this.renderMobileFacets():this.renderSuggestions()}
2325
- ${this.isMobileMenuOpen||this.displayFacets?K`
2326
- <ft-button class="ft-search-bar--launch-search"
2327
- part="launch-search-in-panel"
2328
- icon="search"
2329
- @click=${this.launchSearch}>
2330
- ${this.labelResolver.resolve("searchButton")}
2331
- </ft-button>
2332
- `:V}
2333
- `}renderMobileSearchBarButtons(){const t=this.query||this.isMobileMenuOpen&&!this.forceMobileMenuOpen;return K`
2334
- ${t?K`
2335
- <div class="ft-search-bar--actions"
2336
- part="search-bar-actions">
2337
- <ft-button class="ft-search-bar--clear-query"
2338
- part="clear-query"
2339
- icon="close"
2340
- round
2341
- label="${this.labelResolver.resolve("clearInputButton")}"
2342
- tooltipPosition="left"
2343
- @click=${()=>{this.setQuery(""),this.mobileMenuOpen=!1,this.displayFacets=!1}}
2344
- ></ft-button>
2345
- </div>
2346
- `:V}
2347
- <div class="ft-search-bar--actions"
2348
- part="search-bar-actions">
2349
- <ft-button class="ft-search-bar--launch-search"
2350
- part="launch-search-in-bar"
2351
- icon="search"
2352
- round
2353
- label="${this.labelResolver.resolve("searchButton")}"
2354
- tooltipPosition="left"
2355
- @click=${()=>{var t;return this.isMobileMenuOpen?this.launchSearch():null===(t=this.input)||void 0===t?void 0:t.focus()}}
2356
- ></ft-button>
2357
- </div>
2358
- `}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop();return K`
2359
- <ft-accordion class="ft-search-bar--filters-container">
2360
- ${this.hasLocaleSelector?K`
2361
- <ft-accordion-item data-facet-key="ft:contentLocale">
2362
- <div class="ft-search-bar--filter-label" slot="toggle">
2363
- <ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
2364
- </ft-typography>
2365
- <ft-typography variant="body2">
2366
- ${null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""}
2367
- </ft-typography>
2368
- </div>
2369
- <ft-filter
2370
- part="filters filter-ft-locale"
2371
- .exportpartsPrefixes=${["filter","filter-ft-locale"]}
2372
- class="ft-search-bar--content-locale"
2373
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}"
2374
- .options=${this.contentLocalesAsFilterOptions()}
2375
- @change=${t=>this.contentLocale=t.detail[0]}
2376
- ></ft-filter>
2377
- </ft-accordion-item>
2378
- `:null}
2379
- ${Dt(this.facets,(t=>t.key),(t=>{const e=Ye(t),i=t.key.replace(":","-");return t.rootNodes.length>0?K`
2380
- <ft-accordion-item data-facet-key="${t.key}">
2381
- <div class="ft-search-bar--filter-label" slot="toggle">
2382
- <ft-typography variant="button">${t.label}</ft-typography>
2383
- <ft-typography variant="body2">
2384
- ${function(t){return qe(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}
2385
- </ft-typography>
2386
- </div>
2387
- <ft-filter
2388
- part="filters filter filter-${i}"
2389
- .exportpartsPrefixes=${["filter","filter-"+i]}
2390
- id="${e.id}"
2391
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2392
- clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2393
- moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2394
- noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
2395
- ?multivalued=${e.multivalued}
2396
- raiseSelectedOptions
2397
- .options=${e.options}
2398
- .displayedValuesLimit=${10}
2399
- @change=${t=>this.setFilter(e.id,t.detail)}
2400
- ></ft-filter>
2401
- </ft-accordion-item>
2402
- `:V}))}
2403
- </ft-accordion>
2404
- `}contentLocalesAsFilterOptions(){return this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale})))}renderDesktopSearchBar(){return K`
2405
- <div class="ft-search-bar" part="search-bar">
2406
- ${this.renderSearchBarLeftAction()}
2407
- <div class="ft-search-bar--input-container" part="input-container">
2408
- <div class="ft-search-bar--input-outline" part="input-outline">
2409
- ${this.dense?this.renderSelectedFacets():V}
2410
- <input class="ft-search-bar--input ft-typography--body2"
2411
- part="input"
2412
- type="text"
2413
- placeholder="${this.labelResolver.resolve("inputPlaceHolder")}"
2414
- value="${this.query}"
2415
- @keydown=${this.onSearchBarKeyDown}
2416
- @keyup=${this.onSearchBarKeyUp}>
2417
- </div>
2418
- ${this.renderSuggestions()}
2419
- </div>
2420
- ${this.renderDesktopSearchBarButtons()}
2421
- ${this.forceMenuOpen?V:K`
2422
- <div class="ft-search-bar--floating-panel" @keyup=${this.onFloatingContainerKeyUp}
2423
- tabindex="-1">
2424
- ${this.renderDesktopMenu()}
2425
- </div>`}
2426
- </div>
2427
- ${this.dense||this.forceMenuOpen?this.forceMenuOpen?this.renderDesktopMenu():V:this.renderSelectedFacets()}
2428
- `}renderDesktopMenu(){return this.hasFacets?K`
2429
- <div class="ft-search-bar--desktop-menu">
2430
- ${this.renderFacetsActions()}
2431
- ${this.renderDesktopFacets()}
2432
- <div class="ft-search-bar--facets-actions">
2433
- ${this.forceMenuOpen?this.renderDesktopClearFilters():V}
2434
- <ft-button class="ft-search-bar--launch-search"
2435
- part="launch-search-in-panel"
2436
- icon="search"
2437
- @click=${this.launchSearch}>
2438
- ${this.labelResolver.resolve("searchButton")}
2439
- </ft-button>
2440
- </div>
2441
- </div>
2442
- `:V}renderSearchBarLeftAction(){return this.hasFacets?this.forceMenuOpen?V:K`
2443
- <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2444
- part="filters-opener"
2445
- trailingIcon
2446
- icon="${this.displayFacets?"expand_less":"expand_more"}"
2447
- @click=${t=>{t.stopPropagation(),this.displayFacets=!this.displayFacets}}
2448
- @focusin=${t=>t.stopPropagation()}>
2449
- ${this.labelResolver.resolve("filtersButton")}
2450
- </ft-button>
2451
- `:this.hasLocaleSelector?K`
2452
- <ft-select outlined
2453
- class="ft-search-bar--content-locale ft-search-bar--left-action"
2454
- part="content-locale"
2455
- @change=${t=>this.contentLocale=null==t.detail?void 0:t.detail}>
2456
- ${Dt(this.availableContentLocales,(t=>t.lang),(t=>K`
2457
- <ft-select-option .value=${t.lang}
2458
- label="${t.label}"
2459
- ?selected=${t.lang===this.contentLocale}>
2460
- </ft-select-option>
2461
- `))}
2462
- </ft-select>
2463
- `:V}renderDesktopSearchBarButtons(){return K`
2464
- <div class="ft-search-bar--actions"
2465
- part="search-bar-actions">
2466
- ${this.query?K`
2467
- <ft-button class="ft-search-bar--clear-query"
2468
- part="clear-query"
2469
- icon="close"
2470
- round dense
2471
- label="${this.labelResolver.resolve("clearInputButton")}"
2472
- @click=${()=>this.setQuery("")}
2473
- ></ft-button>
2474
- <div class="ft-search-bar--separator"></div>
2475
- `:null}
2476
- <ft-button class="ft-search-bar--launch-search"
2477
- part="launch-search-in-bar"
2478
- icon="search"
2479
- round dense
2480
- label="${this.labelResolver.resolve("searchButton")}"
2481
- @click=${this.launchSearch}
2482
- ></ft-button>
2483
- </div>
2484
- `}renderFacetsActions(){var t;return K`
2485
- <div class="ft-search-bar--facets-actions">
2486
- ${this.hasPresets?K`
2487
- <ft-select
2488
- class="ft-search-bar--presets"
2489
- part="presets"
2490
- label="${this.labelResolver.resolve("presetsSelector")}"
2491
- outlined
2492
- @change=${t=>this.selectedPreset=t.detail}>
2493
- ${Dt(null!==(t=this.presets)&&void 0!==t?t:[],(t=>t.name),(t=>K`
2494
- <ft-select-option value="${t.name}"
2495
- label="${t.name}"
2496
- ?selected=${t.name===this.selectedPreset}>
2497
- </ft-select-option>
2498
- `))}
2499
- </ft-select>
2500
- `:V}
2501
- <slot name="facets-actions"></slot>
2502
- ${this.forceMenuOpen&&!this.isMobile?V:this.renderDesktopClearFilters()}
2503
- </div>
2504
- `}renderDesktopClearFilters(){return this.searchFilters.length>0?K`
2505
- <ft-button part="facets-actions"
2506
- @click=${this.clearFilters}>
2507
- ${this.labelResolver.resolve("clearFilters")}
2508
- </ft-button>
2509
- `:V}renderDesktopFacets(){return this.hasFacets?K`
2510
- <ft-snap-scroll horizontal limitSize controls
2511
- class="ft-search-bar--filters-container"
2512
- part="filters-container"
2513
- exportpartsPrefix="filters-container">
2514
- ${this.hasLocaleSelector?K`
2515
- <ft-filter class="ft-search-bar--content-locale"
2516
- part="filters filter-ft-locale"
2517
- .exportpartsPrefixes=${["filter","filter-ft-locale"]}
2518
- label="${this.labelResolver.resolve("contentLocaleSelector")}"
2519
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}"
2520
- .options=${this.contentLocalesAsFilterOptions()}
2521
- @change=${t=>this.contentLocale=t.detail[0]}
2522
- ></ft-filter>
2523
- `:V}
2524
- ${Dt(this.facets,(t=>t.key),(t=>{const e=Ye(t),i=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})),o=t.key.replace(":","-");return K`
2525
- <ft-filter
2526
- class="${i?"ft-search-bar--hierarchical-filter":""}"
2527
- part="filters filter filter-${o}"
2528
- .exportpartsPrefixes=${["filter","filter-"+o]}
2529
- id="${e.id}"
2530
- label="${e.label}"
2531
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2532
- clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2533
- moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2534
- noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
2535
- ?multivalued=${e.multivalued}
2536
- raiseSelectedOptions
2537
- .options=${e.options}
2538
- .displayedValuesLimit=${10}
2539
- @change=${t=>this.setFilter(e.id,t.detail)}
2540
- ></ft-filter>
2541
- `}))}
2542
- </ft-snap-scroll>
2543
- `:V}renderSelectedFacets(){if(!this.hasLocaleSelector&&!this.hasFacets)return null;const t=!this.isMobile&&this.dense||this.isMobile&&this.isMobileMenuOpen,e=K`
2544
- ${this.hasLocaleSelector&&(this.hasFacets||this.isMobile)?K`
2545
- <ft-chip part="selected-filters selected-filter-ft-locale"
2546
- ?dense=${this.dense&&!this.isMobile}
2547
- ?clickable=${this.isMobile}
2548
- @click=${()=>this.openMobileFilters("ft:contentLocale")}>
2549
- ${this.getLocaleLabel(this.contentLocale)}
2550
- </ft-chip>
2551
- `:null}
2552
- ${Dt(this.facets,(t=>t.key),(e=>{const i=function(t){return qe(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(e);return Dt(i,(o=>{let s=e.label+": "+function(t){return Je(t).split("|").join(" > ")}(o);const n=e.key.replace(":","-"),r=K`
2553
- <ft-chip
2554
- part="selected-filters selected-filter-${n}"
2555
- ?dense=${this.dense&&!this.isMobile}
2556
- ?clickable=${this.isMobile}
2557
- ?removable=${!this.isMobile}
2558
- icon=${this.isMobile?V:"close"}
2559
- label="${s}"
2560
- title=${t?s:V}
2561
- @click=${()=>this.openMobileFilters(e.key)}
2562
- @icon-click=${()=>this.setFilter(e.key,i.filter((t=>t!==o)))}>
2563
- ${function(t){return Je(t).split("|").pop()}(o)}
2564
- </ft-chip>
2565
- `;return t?r:K`
2566
- <ft-tooltip inline text="${s}">
2567
- ${r}
2568
- </ft-tooltip>
2569
- `}))}))}
2570
- ${this.isMobile?K`
2571
- <ft-chip part="selected-filters mobile-filters-opener"
2572
- icon="add"
2573
- clickable
2574
- @click=${()=>{this.mobileMenuOpen=!0,this.displayFacets=!0}}>
2575
- ${this.labelResolver.resolve("filtersButton")}
2576
- </ft-chip>
2577
- `:V}
2578
- `;return t?K`
2579
- <ft-snap-scroll horizontal controls hideScrollbar limitSize
2580
- class="ft-search-bar--selected-filters"
2581
- part="selected-filters-container"
2582
- exportpartsPrefix="selected-filters-container">
2583
- ${e}
2584
- </ft-snap-scroll>
2585
- `:K`
2586
- <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2587
- ${e}
2588
- </div>
2589
- `}renderSuggestions(){const t=this.recentSearches.filter((t=>t.toLowerCase().includes(this.query.toLowerCase()))),e=this.query.length>2||t.length>0;return K`
2590
- <div class="ft-search-bar--suggestions ${e?"ft-search-bar--suggestions-not-empty":""}"
2591
- @keydown=${this.onSuggestKeyDown}>
2592
- ${Dt(t.slice(0,5),(t=>t),(t=>K`
2593
- <a href="${this.searchRequestSerializer({...this.request,query:t})}"
2594
- part="suggestions"
2595
- class="ft-search-bar--suggestion ft-search-bar--recent-search"
2596
- @keyup=${e=>this.onSuggestKeyUp(e,t)}
2597
- @click=${e=>this.onSuggestClick(e,t)}>
2598
- <ft-ripple></ft-ripple>
2599
- <ft-icon variant="material" part="suggestion-icon">history</ft-icon>
2600
- <ft-typography variant="body1">${t}</ft-typography>
2601
- <ft-button icon="close"
2602
- round
2603
- part="remove-suggestion"
2604
- ?dense=${!this.isMobile}
2605
- label="${this.labelResolver.resolve("removeRecentSearch")}"
2606
- tooltipPosition="left"
2607
- @click=${e=>this.removeRecentSearch(e,t)}></ft-button>
2608
- </a>
2609
- `))}
2610
- ${Dt(this.suggestions,(t=>t.value),(t=>K`
2611
- <a href="${this.searchRequestSerializer({...this.request,query:t.value})}"
2612
- part="suggestions"
2613
- class="ft-search-bar--suggestion"
2614
- @keyup=${e=>this.onSuggestKeyUp(e,t.value)}
2615
- @click=${e=>this.onSuggestClick(e,t.value)}>
2616
- <ft-ripple></ft-ripple>
2617
- ${this.getIcon(t)}
2618
- <ft-typography variant="body1">${t.value}</ft-typography>
2619
- </a>
2620
- `))}
2621
- ${0===t.length&&0===this.suggestions.length&&this.query.length>2&&this.suggestionsLoaded?K`
2622
- <ft-typography class="ft-search-bar--no-suggestions" element="p"
2623
- variant="body2">
2624
- ${this.labelResolver.resolve("noSuggestions")}
2625
- </ft-typography>
2626
- `:null}
2627
- </div>
2628
- `}getIcon(t){const e="DOCUMENT"===t.type?yi.file_format:yi.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?bi.BOOK:bi.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,o,s,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[r,l]=((null!==(i=xi.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=gi.get(l))&&void 0!==o?o:gi.get(e))&&void 0!==s?s:gi.get(r))&&void 0!==n?n:vi.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=bi.TOPICS}return K`
2629
- <ft-icon variant="${e}" part="suggestion-icon">
2630
- ${i}
2631
- </ft-icon>
2632
- `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){super.firstUpdated(t),this.initApi()}update(t){var e,i,o,s,n,r;if(t.has("labels")&&(this.labelResolver=new yt(Ho,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("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>Je(t))))))),t.has("selectedPreset")){const t=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(r=(null!==(n=this.presets)&&void 0!==n?n:[]).find((t=>this.compareRequests(t,this.request))))||void 0===r?void 0:r.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi(),this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1),t.has("api")&&this.updateAvailableContentLocales(),["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 Ko(this.request))}async updateAvailableContentLocales(){this.api&&(this.availableContentLocales=await this.api.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])),this.availableContentLocalesInitialized=!0)}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.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),100))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch(Wo)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1});this.facetsLoaded=!0,this.facetsInitialized=!0}))):(this.facets=[],this.facetsInitialized=!0))}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 Zo(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&&qe(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=>qe(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()}}}Vo.elementDefinitions={"ft-accordion":fo,"ft-accordion-item":xo,"ft-button":Bi,"ft-chip":zo,"ft-filter":ao,"ft-filter-option":ho,"ft-icon":wi,"ft-ripple":li,"ft-select":Lo,"ft-select-option":Fo,"ft-size-watcher":At,"ft-skeleton":Io,"ft-snap-scroll":Qi,"ft-tooltip":hi,"ft-typography":Ve},Vo.styles=[_e,Uo,Po,Ao,To],_o([i({type:Boolean})],Vo.prototype,"dense",void 0),_o([i()],Vo.prototype,"mode",void 0),_o([i({type:Boolean})],Vo.prototype,"forceMobileMenuOpen",void 0),_o([i({type:Boolean})],Vo.prototype,"forceMenuOpen",void 0),_o([i()],Vo.prototype,"baseUrl",void 0),_o([i()],Vo.prototype,"apiIntegrationIdentifier",void 0),_o([i()],Vo.prototype,"contentLocale",void 0),_o([o()],Vo.prototype,"availableContentLocales",void 0),_o([o()],Vo.prototype,"availableContentLocalesInitialized",void 0),_o([i()],Vo.prototype,"uiLocale",void 0),_o([h({})],Vo.prototype,"labels",void 0),_o([h([])],Vo.prototype,"displayedFilters",void 0),_o([h([])],Vo.prototype,"presets",void 0),_o([i({type:String,reflect:!0})],Vo.prototype,"selectedPreset",void 0),_o([h([])],Vo.prototype,"priors",void 0),_o([i()],Vo.prototype,"searchRequestSerializer",void 0),_o([o()],Vo.prototype,"searchFilters",void 0),_o([o()],Vo.prototype,"sizeCategory",void 0),_o([o()],Vo.prototype,"displayFacets",void 0),_o([o()],Vo.prototype,"mobileMenuOpen",void 0),_o([o()],Vo.prototype,"facets",void 0),_o([o()],Vo.prototype,"facetsInitialized",void 0),_o([n(".ft-search-bar--container")],Vo.prototype,"container",void 0),_o([n(".ft-search-bar--filters-opener")],Vo.prototype,"filtersOpener",void 0),_o([n(".ft-search-bar--floating-panel")],Vo.prototype,"floatingContainer",void 0),_o([n("ft-snap-scroll.ft-search-bar--filters-container")],Vo.prototype,"scrollingFiltersContainer",void 0),_o([n(".ft-search-bar--input")],Vo.prototype,"input",void 0),_o([o()],Vo.prototype,"query",void 0),_o([o()],Vo.prototype,"suggestions",void 0),_o([o()],Vo.prototype,"suggestionsLoaded",void 0),_o([o()],Vo.prototype,"recentSearches",void 0),_o([o()],Vo.prototype,"scrollToFacet",void 0),_o([n(".ft-search-bar--suggestion:first-child")],Vo.prototype,"firstSuggestion",void 0),_o([n(".ft-search-bar--suggestion:focus-within")],Vo.prototype,"focusedSuggestion",void 0),_o([n(".ft-search-bar--suggestion:last-child")],Vo.prototype,"lastSuggestion",void 0),_o([o()],Vo.prototype,"api",void 0),c("ft-search-bar")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),K`
2633
- ${i.map((t=>K`
2634
- <style>${t}</style>
2635
- `))}
2636
- ${super.render()}
2637
- `}},i.styles=void 0,i.elementDefinitions=o,i}(Vo))}();