@fluid-topics/ft-filter 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,1323 +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 h={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,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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 h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(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=c(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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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(mi){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 h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(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 v=t=>new u("string"==typeof t?t:t+"",d),b=(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)},x=(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)}))},y=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
59
- /**
60
- * @license
61
- * Copyright 2017 Google LLC
62
- * SPDX-License-Identifier: BSD-3-Clause
63
- */;var g;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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:O};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=S){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)||S}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(y(t))}else void 0!==t&&e.push(y(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 x(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=S){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||O)(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 E;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:C}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const N=globalThis.trustedTypes,z=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,B=`<${M}>`,F=document,j=(t="")=>F.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,L=t=>{var e;return D(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,P=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,H=/"/g,W=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),J=new WeakMap,q=F.createTreeWalker(F,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=T;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===T?"!--"===a[1]?r=A:void 0!==a[1]?r=P:void 0!==a[2]?(W.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:T,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?H:I):r===H||r===I?r=_:r===A||r===P?r=T:(r=_,s=void 0);const p=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===T?i+B:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+R+p):i+R+(-2===h?(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!==z?z.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,h]=X(t,e);if(this.el=Y.createElement(a,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.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(R)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),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(W.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),q.nextNode(),l.push({type:2,index:++s});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===M)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(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=G(t,a._$AS(t,e.values),a,o)),e}class Q{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:F).importNode(i,!0);q.currentNode=s;let n=q.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=q.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=Z,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=G(this,t,e),U(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==V&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):L(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!==Z&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.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 Q(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Y(t)),e}S(t){D(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(j()),this.M(j()),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=Z,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=Z}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=G(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=G(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!U(l)||l!==this._$AH[r]),l===Z?t=Z:t!==Z&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===Z?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===Z?void 0:t}}const ot=N?N.emptyScript:"";class st extends et{constructor(){super(...arguments),this.type=4}C(t){t&&t!==Z?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=G(this,t,e,0))&&void 0!==i?i:Z)===V)return;const o=this._$AH,s=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Z&&(o===Z||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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){G(this,t)}}const lt={L:"$lit$",P:R,V:M,I:1,N:X,R:Q,j:L,D:G,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 ht,ct;null==at||at(Y,tt),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?E: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(j(),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 V}}pt.finalized=!0,pt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:pt});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:pt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct: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 b`var(${v(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):v(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 v(`${t.name}: ${e}`)}const vt={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 bt=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 xt 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 x(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 h=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));l.push(...h)}}this.setAttribute("exportparts",l.join(", "))}contentAvailableCallback(t){}}bt([i()],xt.prototype,"exportpartsPrefix",void 0),bt([c([])],xt.prototype,"exportpartsPrefixes",void 0);const yt=b`
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
- `;function gt(t){var e;let i;if("elementDefinitions"in t){i={};const e=t.elementDefinitions;for(let t in e)i[t]=gt(e[t])}return e=class extends t{render(){var e;let i=null!==(e=t.styles)&&void 0!==e?e:[];return Array.isArray(i)||(i=[i]),K`
95
- ${i.map((t=>K`
96
- <style>${t}</style>
97
- `))}
98
- ${super.render()}
99
- `}},e.styles=void 0,e.elementDefinitions=i,e}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:""),Ot=Symbol.for(""),St=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Ot)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ct=t=>({_$litStatic$:t,r:Ot}),Et=new Map,Nt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(n=i[h],s=St(n));)a+=s+e[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Et.get(t))&&(r.raw=r,Et.set(t,e=r)),i=l}return t(e,...i)})(K);
100
- /**
101
- * @license
102
- * Copyright 2020 Google LLC
103
- * SPDX-License-Identifier: BSD-3-Clause
104
- */var zt,Rt=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"}(zt||(zt={}));const Mt=ft.extend("--ft-typography-font-family",vt.titleFont),Bt=ft.extend("--ft-typography-font-family",vt.contentFont),Ft={fontFamily:Bt,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")},jt=ft.extend("--ft-typography-title-font-family",Mt),Ut=ft.extend("--ft-typography-title-font-size",Ft.fontSize,"20px"),Dt=ft.extend("--ft-typography-title-font-weight",Ft.fontWeight,"normal"),Lt=ft.extend("--ft-typography-title-letter-spacing",Ft.letterSpacing,"0.15px"),Tt=ft.extend("--ft-typography-title-line-height",Ft.lineHeight,"1.2"),At=ft.extend("--ft-typography-title-text-transform",Ft.textTransform,"inherit"),Pt=ft.extend("--ft-typography-title-dense-font-family",Mt),_t=ft.extend("--ft-typography-title-dense-font-size",Ft.fontSize,"14px"),It=ft.extend("--ft-typography-title-dense-font-weight",Ft.fontWeight,"normal"),Ht=ft.extend("--ft-typography-title-dense-letter-spacing",Ft.letterSpacing,"0.105px"),Wt=ft.extend("--ft-typography-title-dense-line-height",Ft.lineHeight,"1.7"),Kt=ft.extend("--ft-typography-title-dense-text-transform",Ft.textTransform,"inherit"),Vt=ft.extend("--ft-typography-subtitle1-font-family",Bt),Zt=ft.extend("--ft-typography-subtitle1-font-size",Ft.fontSize,"16px"),Jt=ft.extend("--ft-typography-subtitle1-font-weight",Ft.fontWeight,"600"),qt=ft.extend("--ft-typography-subtitle1-letter-spacing",Ft.letterSpacing,"0.144px"),Xt=ft.extend("--ft-typography-subtitle1-line-height",Ft.lineHeight,"1.5"),Yt=ft.extend("--ft-typography-subtitle1-text-transform",Ft.textTransform,"inherit"),Gt=ft.extend("--ft-typography-subtitle2-font-family",Bt),Qt=ft.extend("--ft-typography-subtitle2-font-size",Ft.fontSize,"14px"),te=ft.extend("--ft-typography-subtitle2-font-weight",Ft.fontWeight,"normal"),ee=ft.extend("--ft-typography-subtitle2-letter-spacing",Ft.letterSpacing,"0.098px"),ie=ft.extend("--ft-typography-subtitle2-line-height",Ft.lineHeight,"1.7"),oe=ft.extend("--ft-typography-subtitle2-text-transform",Ft.textTransform,"inherit"),se=ft.extend("--ft-typography-body1-font-family",Bt),ne=ft.extend("--ft-typography-body1-font-size",Ft.fontSize,"16px"),re=ft.extend("--ft-typography-body1-font-weight",Ft.fontWeight,"normal"),le=ft.extend("--ft-typography-body1-letter-spacing",Ft.letterSpacing,"0.496px"),ae=ft.extend("--ft-typography-body1-line-height",Ft.lineHeight,"1.5"),he=ft.extend("--ft-typography-body1-text-transform",Ft.textTransform,"inherit"),ce={fontFamily:ft.extend("--ft-typography-body2-font-family",Bt),fontSize:ft.extend("--ft-typography-body2-font-size",Ft.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-body2-font-weight",Ft.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body2-letter-spacing",Ft.letterSpacing,"0.252px"),lineHeight:ft.extend("--ft-typography-body2-line-height",Ft.lineHeight,"1.4"),textTransform:ft.extend("--ft-typography-body2-text-transform",Ft.textTransform,"inherit")},pe=ft.extend("--ft-typography-caption-font-family",Bt),de=ft.extend("--ft-typography-caption-font-size",Ft.fontSize,"12px"),fe=ft.extend("--ft-typography-caption-font-weight",Ft.fontWeight,"normal"),ue=ft.extend("--ft-typography-caption-letter-spacing",Ft.letterSpacing,"0.396px"),ve=ft.extend("--ft-typography-caption-line-height",Ft.lineHeight,"1.33"),be=ft.extend("--ft-typography-caption-text-transform",Ft.textTransform,"inherit"),xe=ft.extend("--ft-typography-breadcrumb-font-family",Bt),ye=ft.extend("--ft-typography-breadcrumb-font-size",Ft.fontSize,"10px"),ge=ft.extend("--ft-typography-breadcrumb-font-weight",Ft.fontWeight,"normal"),me=ft.extend("--ft-typography-breadcrumb-letter-spacing",Ft.letterSpacing,"0.33px"),$e=ft.extend("--ft-typography-breadcrumb-line-height",Ft.lineHeight,"1.6"),we=ft.extend("--ft-typography-breadcrumb-text-transform",Ft.textTransform,"inherit"),ke=ft.extend("--ft-typography-overline-font-family",Bt),Oe=ft.extend("--ft-typography-overline-font-size",Ft.fontSize,"10px"),Se=ft.extend("--ft-typography-overline-font-weight",Ft.fontWeight,"normal"),Ce=ft.extend("--ft-typography-overline-letter-spacing",Ft.letterSpacing,"1.5px"),Ee=ft.extend("--ft-typography-overline-line-height",Ft.lineHeight,"1.6"),Ne=ft.extend("--ft-typography-overline-text-transform",Ft.textTransform,"uppercase"),ze={fontFamily:ft.extend("--ft-typography-button-font-family",Bt),fontSize:ft.extend("--ft-typography-button-font-size",Ft.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Ft.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Ft.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Ft.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Ft.textTransform,"uppercase")},Re=b`
105
- .ft-typography--title {
106
- font-family: ${jt};
107
- font-size: ${Ut};
108
- font-weight: ${Dt};
109
- letter-spacing: ${Lt};
110
- line-height: ${Tt};
111
- text-transform: ${At};
112
- }
113
- `,Me=b`
114
- .ft-typography--title-dense {
115
- font-family: ${Pt};
116
- font-size: ${_t};
117
- font-weight: ${It};
118
- letter-spacing: ${Ht};
119
- line-height: ${Wt};
120
- text-transform: ${Kt};
121
- }
122
- `,Be=b`
123
- .ft-typography--subtitle1 {
124
- font-family: ${Vt};
125
- font-size: ${Zt};
126
- font-weight: ${Jt};
127
- letter-spacing: ${qt};
128
- line-height: ${Xt};
129
- text-transform: ${Yt};
130
- }
131
- `,Fe=b`
132
- .ft-typography--subtitle2 {
133
- font-family: ${Gt};
134
- font-size: ${Qt};
135
- font-weight: ${te};
136
- letter-spacing: ${ee};
137
- line-height: ${ie};
138
- text-transform: ${oe};
139
- }
140
-
141
- `,je=b`
142
- .ft-typography--body1 {
143
- font-family: ${se};
144
- font-size: ${ne};
145
- font-weight: ${re};
146
- letter-spacing: ${le};
147
- line-height: ${ae};
148
- text-transform: ${he};
149
- }
150
- `,Ue=b`
151
- .ft-typography--body2 {
152
- font-family: ${ce.fontFamily};
153
- font-size: ${ce.fontSize};
154
- font-weight: ${ce.fontWeight};
155
- letter-spacing: ${ce.letterSpacing};
156
- line-height: ${ce.lineHeight};
157
- text-transform: ${ce.textTransform};
158
- }
159
- `,De=b`
160
- .ft-typography--caption {
161
- font-family: ${pe};
162
- font-size: ${de};
163
- font-weight: ${fe};
164
- letter-spacing: ${ue};
165
- line-height: ${ve};
166
- text-transform: ${be};
167
- }
168
- `,Le=b`
169
- .ft-typography--breadcrumb {
170
- font-family: ${xe};
171
- font-size: ${ye};
172
- font-weight: ${ge};
173
- letter-spacing: ${me};
174
- line-height: ${$e};
175
- text-transform: ${we};
176
- }
177
- `,Te=b`
178
- .ft-typography--overline {
179
- font-family: ${ke};
180
- font-size: ${Oe};
181
- font-weight: ${Se};
182
- letter-spacing: ${Ce};
183
- line-height: ${Ee};
184
- text-transform: ${Ne};
185
- }
186
- `,Ae=b`
187
- .ft-typography--button {
188
- font-family: ${ze.fontFamily};
189
- font-size: ${ze.fontSize};
190
- font-weight: ${ze.fontWeight};
191
- letter-spacing: ${ze.letterSpacing};
192
- line-height: ${ze.lineHeight};
193
- text-transform: ${ze.textTransform};
194
- }
195
- `;class Pe extends xt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Nt`
196
- <${Ct(this.element)}
197
- class="ft-typography ft-typography--${this.variant}">
198
- <slot></slot>
199
- </${Ct(this.element)}>
200
- `:Nt`
201
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
202
- `}}function _e(t,e){return t.flatMap((t=>[t,..._e(e(t),e)]))}
203
- /**
204
- * @license
205
- * Copyright 2017 Google LLC
206
- * SPDX-License-Identifier: BSD-3-Clause
207
- */Pe.styles=[Re,Me,Be,Fe,je,Ue,De,Le,Te,Ae,b`
208
- .ft-typography {
209
- vertical-align: inherit;
210
- }
211
- `],Rt([i()],Pe.prototype,"element",void 0),Rt([i()],Pe.prototype,"variant",void 0),h("ft-typography")(Pe);const Ie=1,He=2,We=t=>(...e)=>({_$litDirective$:t,values:e});class Ke{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)}}
212
- /**
213
- * @license
214
- * Copyright 2020 Google LLC
215
- * SPDX-License-Identifier: BSD-3-Clause
216
- */const{H:Ve}=lt,Ze=()=>document.createComment(""),Je=(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(Ze(),n),o=s.insertBefore(Ze(),n);i=new Ve(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},qe=(t,e,i=t)=>(t._$AI(e,i),t),Xe={},Ye=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}},Ge=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Qe=We(class extends Ke{constructor(t){if(super(t),t.type!==He)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=[],h=[];let c,p,d=0,f=n.length-1,u=0,v=r.length-1;for(;d<=f&&u<=v;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])h[u]=qe(n[d],r[u]),d++,u++;else if(a[f]===l[v])h[v]=qe(n[f],r[v]),f--,v--;else if(a[d]===l[v])h[v]=qe(n[d],r[v]),Je(t,h[v+1],n[d]),d++,v--;else if(a[f]===l[u])h[u]=qe(n[f],r[u]),Je(t,n[d],n[f]),f--,u++;else if(void 0===c&&(c=Ge(l,u,v),p=Ge(a,d,f)),c.has(a[d]))if(c.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Je(t,n[d]);qe(e,r[u]),h[u]=e}else h[u]=qe(i,r[u]),Je(t,n[d],i),n[e]=null;u++}else Ye(n[f]),f--;else Ye(n[d]),d++;for(;u<=v;){const e=Je(t,h[v+1]);qe(e,r[u]),h[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&Ye(t)}return this.ut=l,((t,e=Xe)=>{t._$AH=e})(t,h),V}}),ti=We(class extends Ke{constructor(t){var e;if(super(t),t.type!==Ie||"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 V}});
217
- /**
218
- * @license
219
- * Copyright 2017 Google LLC
220
- * SPDX-License-Identifier: BSD-3-Clause
221
- */var ei=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 ii=ft.extend("--ft-ripple-color",vt.colorContent),oi={color:ii,backgroundColor:ft.extend("--ft-ripple-background-color",ii),opacityContentOnSurfacePressed:ft.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(vt.opacityContentOnSurfaceSelected,"Design system")},si=ft.extend("--ft-ripple-color",vt.colorPrimary),ni=si,ri=ft.extend("--ft-ripple-background-color",si),li=ft.extend("--ft-ripple-color",vt.colorSecondary),ai=li,hi=ft.extend("--ft-ripple-background-color",li);class ci extends xt{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`
222
- <style>
223
- .ft-ripple .ft-ripple--effect,
224
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
225
- width: ${this.rippleSize}px;
226
- height: ${this.rippleSize}px;
227
- }
228
-
229
- .ft-ripple .ft-ripple--effect {
230
- left: ${this.originX}px;
231
- top: ${this.originY}px;
232
- }
233
- </style>
234
- <div class="${ti(t)}">
235
- <div class="ft-ripple--background"></div>
236
- <div class="ft-ripple--effect"></div>
237
- </div>
238
- `}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()}}ci.elementDefinitions={},ci.styles=b`
239
- :host {
240
- display: contents;
241
- }
242
-
243
- .ft-ripple {
244
- position: absolute;
245
- inset: 0;
246
- pointer-events: none;
247
- }
248
-
249
- .ft-ripple:not(.ft-ripple--unbounded) {
250
- overflow: hidden;
251
- }
252
-
253
- .ft-ripple .ft-ripple--background,
254
- .ft-ripple .ft-ripple--effect {
255
- position: absolute;
256
- opacity: 0;
257
- }
258
-
259
- .ft-ripple .ft-ripple--background {
260
- background-color: ${oi.backgroundColor};
261
- }
262
-
263
- .ft-ripple .ft-ripple--effect {
264
- background-color: ${oi.color};
265
- }
266
-
267
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
268
- background-color: ${hi};
269
- }
270
-
271
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
272
- background-color: ${ai};
273
- }
274
-
275
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
276
- background-color: ${ri};
277
- }
278
-
279
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
280
- background-color: ${ni};
281
- }
282
-
283
- .ft-ripple .ft-ripple--background {
284
- top: 0;
285
- left: 0;
286
- height: 100%;
287
- width: 100%;
288
- transition: opacity 75ms linear;
289
- }
290
-
291
- .ft-ripple .ft-ripple--effect,
292
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
293
- border-radius: 50%;
294
- }
295
-
296
- .ft-ripple .ft-ripple--effect {
297
- transform: translate(-50%, -50%) scale(0.15);
298
- transition: transform 300ms ease, opacity 75ms linear;
299
- }
300
-
301
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
302
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
303
- left: 50%;
304
- top: 50%;
305
- }
306
-
307
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
308
- transform: translate(-50%, -50%);
309
- }
310
-
311
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
312
- opacity: ${oi.opacityContentOnSurfaceHover};
313
- }
314
-
315
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
316
- opacity: ${oi.opacityContentOnSurfaceSelected};
317
- }
318
-
319
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
320
- opacity: ${oi.opacityContentOnSurfaceFocused};
321
- }
322
-
323
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
324
- opacity: ${oi.opacityContentOnSurfacePressed};
325
- transform: translate(-50%, -50%) scale(1);
326
- }
327
- `,ei([i({type:Boolean})],ci.prototype,"primary",void 0),ei([i({type:Boolean})],ci.prototype,"secondary",void 0),ei([i({type:Boolean})],ci.prototype,"unbounded",void 0),ei([i({type:Boolean})],ci.prototype,"activated",void 0),ei([i({type:Boolean})],ci.prototype,"selected",void 0),ei([i({type:Boolean})],ci.prototype,"disabled",void 0),ei([o()],ci.prototype,"hovered",void 0),ei([o()],ci.prototype,"focused",void 0),ei([o()],ci.prototype,"pressed",void 0),ei([o()],ci.prototype,"rippling",void 0),ei([o()],ci.prototype,"rippleSize",void 0),ei([o()],ci.prototype,"originX",void 0),ei([o()],ci.prototype,"originY",void 0),ei([n(".ft-ripple")],ci.prototype,"ripple",void 0),ei([n(".ft-ripple--effect")],ci.prototype,"rippleEffect",void 0),h("ft-ripple")(ci);var pi=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 di=ft.create("--ft-tooltip-distance","SIZE","4px"),fi=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),ui=ft.create("--ft-tooltip-background-color","COLOR","#666666"),vi=ft.create("--ft-tooltip-z-index","NUMBER","1"),bi=ft.external(vt.borderRadiusS,"Design system");class xi extends xt{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`
328
- <div part="container"
329
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
330
- @mouseenter=${this.onHover}
331
- @mouseleave=${this.onOut}
332
- @focusin=${this.onHover}
333
- @focusout=${this.onOut}
334
- @touchstart=${this.onTouch}>
335
- <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
336
- <div part="tooltip-content" class="ft-tooltip--content">
337
- <ft-typography variant="caption">${this.text}</ft-typography>
338
- </div>
339
- </div>
340
- <slot></slot>
341
- </div>
342
- `}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())}}xi.elementDefinitions={"ft-typography":Pe},xi.styles=b`
343
- .ft-tooltip--container {
344
- display: block;
345
- position: relative;
346
- }
347
-
348
- .ft-tooltip--inline {
349
- display: inline-block;
350
- max-width: 100%;
351
- }
352
-
353
- .ft-tooltip {
354
- position: absolute;
355
- box-sizing: border-box;
356
- overflow: hidden;
357
- width: max-content;
358
- max-width: 150px;
359
- text-align: center;
360
- padding: ${di};
361
- z-index: ${vi};
362
- }
363
-
364
- .ft-tooltip--content {
365
- padding: 4px 8px;
366
- border-radius: ${bi};
367
- background-color: ${ui};
368
- color: ${fi};
369
- top: -500px;
370
- left: -500px;
371
- position: relative;
372
- word-break: break-word;
373
- }
374
- `,pi([i()],xi.prototype,"text",void 0),pi([i({type:Boolean})],xi.prototype,"manual",void 0),pi([i({type:Boolean})],xi.prototype,"inline",void 0),pi([i({type:Number})],xi.prototype,"delay",void 0),pi([i()],xi.prototype,"position",void 0),pi([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)],xi.prototype,"slotNodes",void 0),pi([n(".ft-tooltip--container")],xi.prototype,"container",void 0),pi([n("slot")],xi.prototype,"target",void 0),pi([n(".ft-tooltip")],xi.prototype,"tooltip",void 0),pi([n(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),pi([o()],xi.prototype,"visible",void 0),h("ft-tooltip")(xi);const yi={color:ft.extend("--ft-loader-color",vt.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class gi extends xt{static get styles(){return b`
375
- :host {
376
- line-height: 0;
377
- }
378
-
379
- .ft-loader {
380
- display: inline-block;
381
- position: relative;
382
-
383
- width: ${yi.size};
384
- height: ${yi.size};
385
- }
386
-
387
- .ft-loader div {
388
- position: absolute;
389
- top: 37.5%;
390
- width: 25%;
391
- height: 25%;
392
- border-radius: 50%;
393
- background: ${yi.color};
394
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
395
- }
396
-
397
- .ft-loader div:nth-child(1) {
398
- left: 2.5%;
399
- animation: appear 0.6s infinite;
400
- }
401
-
402
- .ft-loader div:nth-child(2) {
403
- left: 2.5%;
404
- animation: move 0.6s infinite;
405
- }
406
-
407
- .ft-loader div:nth-child(3) {
408
- left: 37.5%;
409
- animation: move 0.6s infinite;
410
- }
411
-
412
- .ft-loader div:nth-child(4) {
413
- left: 72.5%;
414
- animation: disappear 0.6s infinite;
415
- }
416
-
417
- @keyframes appear {
418
- 0% {
419
- transform: scale(0);
420
- }
421
- 100% {
422
- transform: scale(1);
423
- }
424
- }
425
-
426
- @keyframes disappear {
427
- 0% {
428
- transform: scale(1);
429
- }
430
- 100% {
431
- transform: scale(0);
432
- }
433
- }
434
-
435
- @keyframes move {
436
- 0% {
437
- transform: translate(0, 0);
438
- }
439
- 100% {
440
- transform: translate(calc(0.35 * ${yi.size}), 0);
441
- }
442
- }
443
- `}render(){return K`
444
- <div class="ft-loader">
445
- <div></div>
446
- <div></div>
447
- <div></div>
448
- <div></div>
449
- </div>
450
- `}}h("ft-loader")(gi);
451
- /**
452
- * @license
453
- * Copyright 2017 Google LLC
454
- * SPDX-License-Identifier: BSD-3-Clause
455
- */
456
- class mi extends Ke{constructor(t){if(super(t),this.it=Z,t.type!==He)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this.ft=void 0,this.it=t;if(t===V)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:[]}}}mi.directiveName="unsafeHTML",mi.resultType=1;const $i=We(mi);var wi,ki;!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;"}(wi||(wi={})),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;"}(ki||(ki={})),new Map([...["abw"].map((t=>[t,ki.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ki.AUDIO])),...["avi"].map((t=>[t,ki.AVI])),...["chm","xhs"].map((t=>[t,ki.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ki.CODE])),...["csv"].map((t=>[t,ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ki.DITA])),...["epub"].map((t=>[t,ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ki.EXCEL])),...["flac"].map((t=>[t,ki.FLAC])),...["gif"].map((t=>[t,ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,ki.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ki.JPEG])),...["json"].map((t=>[t,ki.JSON])),...["m4a","m4p"].map((t=>[t,ki.M4A])),...["mov","qt"].map((t=>[t,ki.MOV])),...["mp3"].map((t=>[t,ki.MP3])),...["mp4","m4v"].map((t=>[t,ki.MP4])),...["ogg","oga"].map((t=>[t,ki.OGG])),...["pdf","ps"].map((t=>[t,ki.PDF])),...["png"].map((t=>[t,ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ki.POWERPOINT])),...["rar"].map((t=>[t,ki.RAR])),...["stp"].map((t=>[t,ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ki.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ki.VIDEO])),...["wav"].map((t=>[t,ki.WAV])),...["wma"].map((t=>[t,ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ki.YAML])),...["zip"].map((t=>[t,ki.ZIP]))]);var Oi,Si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));const Ci={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 Ei extends xt{constructor(){super(...arguments),this.variant=Oi.fluid_topics}render(){return K`
457
- <i class="ft-icon ${"ft-icon--"+this.variant}">
458
- ${$i(this.getIcon())}
459
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
460
- </i>
461
- `}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===Oi.file_format?null!==(t=ki[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Oi.fluid_topics?null!==(e=wi[i.toUpperCase()])&&void 0!==e?e:i:Z}}Ei.elementDefinitions={},Ei.styles=b`
462
- :host {
463
- display: inline-block;
464
- }
465
- :host, i.ft-icon {
466
- width: ${Ci.size};
467
- height: ${Ci.size};
468
- text-align: center;
469
- }
470
-
471
- i.ft-icon {
472
- font-size: ${Ci.size};
473
- line-height: 1;
474
- font-weight: normal;
475
- text-transform: none;
476
- font-style: normal;
477
- font-variant: normal;
478
- speak: none;
479
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
480
- text-rendering: auto;
481
- -webkit-font-smoothing: antialiased;
482
- -moz-osx-font-smoothing: grayscale;
483
- }
484
-
485
- .ft-icon--fluid-topics {
486
- font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
487
- }
488
-
489
- .ft-icon--file-format {
490
- font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
491
- }
492
-
493
- .ft-icon--material {
494
- font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
495
- }
496
- `,Si([i()],Ei.prototype,"variant",void 0),Si([n("slot")],Ei.prototype,"slottedContent",void 0),h("ft-icon")(Ei);var Ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const zi=ft.extend("--ft-button-color",vt.colorPrimary),Ri={backgroundColor:ft.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",vt.borderRadiusL),color:zi,fontSize:ft.extend("--ft-button-font-size",ze.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",zi),opacityDisabled:ft.external(vt.colorOpacityDisabled,"Design system")},Mi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",vt.colorOnPrimary)),Bi={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",vt.colorPrimary)),color:Mi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Mi)},Fi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",vt.borderRadiusM));class ji extends xt{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[yt,b`
497
- :host {
498
- display: inline-block;
499
- max-width: 100%;
500
- pointer-events: none;
501
- }
502
-
503
- button {
504
- box-shadow: 0px 0px 0px transparent;
505
- border: 0px solid transparent;
506
- text-shadow: 0px 0px 0px transparent;
507
- font-size: inherit;
508
- }
509
-
510
- button:hover {
511
- box-shadow: 0px 0px 0px transparent;
512
- border: 0px solid transparent;
513
- text-shadow: 0px 0px 0px transparent;
514
- }
515
-
516
- button:active {
517
- outline: none;
518
- border: none;
519
- }
520
-
521
- button:focus {
522
- outline: 0;
523
- }
524
-
525
- .ft-button {
526
- position: relative;
527
- display: flex;
528
- justify-content: center;
529
- align-items: center;
530
- width: 100%;
531
- overflow: hidden;
532
- box-sizing: border-box;
533
- border: none;
534
- pointer-events: auto;
535
- line-height: 0;
536
-
537
- --ft-button-internal-font-size: ${Ri.fontSize};
538
- --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
539
- --ft-button-internal-color: ${Ri.color};
540
- ${ut(Ci.size,Ri.iconSize)};
541
- --ft-button-internal-vertical-padding: 6px;
542
- --ft-button-internal-horizontal-padding: 8px;
543
- ${ut(oi.color,Ri.rippleColor)};
544
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ri.iconSize});
545
-
546
- border-radius: ${Ri.borderRadius};
547
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
548
- background-color: ${Ri.backgroundColor};
549
- color: var(--ft-button-internal-color);
550
- -webkit-mask-image: radial-gradient(white, black);
551
- }
552
-
553
- .ft-button:not([disabled]):hover {
554
- cursor: pointer;
555
- }
556
-
557
- .ft-button--dense {
558
- --ft-button-internal-vertical-padding: 2px;
559
- --ft-button-internal-horizontal-padding: 4px;
560
- border-radius: ${Fi};
561
- }
562
-
563
- .ft-button--round {
564
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
565
- }
566
-
567
- .ft-button[disabled] {
568
- filter: grayscale(1);
569
- opacity: ${Ri.opacityDisabled};
570
- }
571
-
572
- .ft-button.ft-button--primary {
573
- background-color: ${Bi.backgroundColor};
574
- --ft-button-internal-color: ${Bi.color};
575
- ${ut(oi.color,Bi.rippleColor)};
576
- }
577
-
578
- .ft-button.ft-button--outlined {
579
- border: 1px solid var(--ft-button-internal-color);
580
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
581
- }
582
-
583
- .ft-button:focus {
584
- outline: none;
585
- }
586
-
587
- .ft-button--label {
588
- position: relative;
589
- overflow: hidden;
590
- white-space: nowrap;
591
- text-overflow: ellipsis;
592
- display: block;
593
- margin: 0 var(--ft-button-internal-horizontal-padding);
594
- ${ut(ze.fontSize,"var(--ft-button-internal-font-size)")};
595
- ${ut(ze.lineHeight,"var(--ft-button-internal-content-height)")};
596
- }
597
-
598
- .ft-button--safari-fix .ft-button--label {
599
- margin-right: 0;
600
- }
601
-
602
- .ft-button--safari-fix .ft-button--label:after {
603
- content: "\\0000a0";
604
- display: inline-block;
605
- width: 0;
606
- }
607
-
608
- .ft-button--label[hidden] {
609
- display: none;
610
- }
611
-
612
- ft-icon {
613
- flex-shrink: 0;
614
- position: relative;
615
- }
616
-
617
- .ft-button--label[hidden] + ft-icon {
618
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
619
- padding: 0 var(--ft-button-internal-vertical-padding);
620
- }
621
-
622
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
623
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
624
- order: -1;
625
- }
626
-
627
- ft-loader {
628
- ${ut(yi.size,Ri.iconSize)};
629
- ${ut(yi.color,"var(--ft-button-internal-color)")};
630
- }
631
- `]}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`
632
- <button part="button"
633
- class="${ti(t)}"
634
- aria-label="${this.getLabel()}"
635
- ?disabled=${this.isDisabled()}>
636
- <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
637
- <ft-typography part="label"
638
- variant="button"
639
- class="ft-button--label"
640
- ?hidden=${!this.hasTextContent()}>
641
- <slot @slotchange=${this.onSlotchange}></slot>
642
- </ft-typography>
643
- ${this.resolveIcon()}
644
- </button>
645
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:K`
646
- <ft-tooltip part="tooltip"
647
- text="${this.getLabel()}"
648
- position="${this.tooltipPosition}">
649
- ${t}
650
- </ft-tooltip>
651
- `}resolveIcon(){return this.loading?K`
652
- <ft-loader></ft-loader> `:this.icon?K`
653
- <ft-icon variant="material">${this.icon}</ft-icon> `:Z}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}}ji.elementDefinitions={"ft-ripple":ci,"ft-tooltip":xi,"ft-typography":Pe,"ft-icon":Ei,"ft-loader":gi},Ni([i({type:Boolean})],ji.prototype,"primary",void 0),Ni([i({type:Boolean})],ji.prototype,"outlined",void 0),Ni([i({type:Boolean})],ji.prototype,"disabled",void 0),Ni([i({type:Boolean})],ji.prototype,"dense",void 0),Ni([i({type:Boolean})],ji.prototype,"round",void 0),Ni([i({type:String})],ji.prototype,"label",void 0),Ni([i({type:String})],ji.prototype,"icon",void 0),Ni([i({type:Boolean})],ji.prototype,"trailingIcon",void 0),Ni([i({type:Boolean})],ji.prototype,"loading",void 0),Ni([i({type:String})],ji.prototype,"tooltipPosition",void 0),Ni([n(".ft-button")],ji.prototype,"button",void 0),Ni([n(".ft-button--label slot")],ji.prototype,"slottedContent",void 0),h("ft-button")(ji);var Ui=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 Di=ft.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),Li=ft.external(vt.colorPrimary,"Design system"),Ti=ft.external(vt.colorOnPrimary,"Design system"),Ai=ft.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),Pi=ft.external(vt.colorOnSurfaceDisabled,"Design system");class _i extends xt{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`
654
- <label class="${ti(t)}">
655
- <div class="ft-checkbox--box-container">
656
- <input type="checkbox"
657
- name=${this.name}
658
- .checked=${this.checked}
659
- .disabled=${this.disabled}
660
- @change=${this.onChange}
661
- >
662
- <ft-ripple
663
- ?disabled=${this.disabled}
664
- ?primary=${this.checked||this.indeterminate}
665
- unbounded>
666
- </ft-ripple>
667
- <div class="ft-checkbox--box">
668
- <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
669
- <path class="ft-checkbox--checkmark-path" fill="none"
670
- d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
671
- </svg>
672
- </div>
673
- </div>
674
- <ft-typography variant="body2">
675
- <slot></slot>
676
- </ft-typography>
677
- </label>
678
- `}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)}}_i.elementDefinitions={"ft-ripple":ci,"ft-typography":Pe},_i.styles=b`
679
- * {
680
- box-sizing: border-box;
681
- }
682
-
683
- .ft-checkbox {
684
- box-sizing: border-box;
685
- color: ${Di};
686
-
687
- display: inline-flex;
688
- align-items: center;
689
- gap: 4px;
690
- }
691
-
692
- .ft-checkbox--disabled {
693
- color: ${Pi};
694
- }
695
-
696
- input {
697
- opacity: 0;
698
- position: absolute;
699
- width: 40px;
700
- height: 40px;
701
- margin: 0;
702
- }
703
-
704
- .ft-checkbox--box-container {
705
- position: relative;
706
- width: 40px;
707
- height: 40px;
708
-
709
- display: flex;
710
- justify-content: center;
711
- align-items: center;
712
- flex-shrink: 0;
713
- }
714
-
715
- .ft-checkbox--box {
716
- display: flex;
717
- border: 2px solid ${Ai};
718
- border-radius: 2px;
719
-
720
- width: 18px;
721
- height: 18px;
722
-
723
- color: ${Ti};
724
- }
725
-
726
-
727
- .ft-checkbox--checked .ft-checkbox--box,
728
- .ft-checkbox--indeterminate .ft-checkbox--box {
729
- border-color: ${Li};
730
- background-color: ${Li};
731
- }
732
-
733
- .ft-checkbox--disabled .ft-checkbox--box {
734
- border-color: ${Pi};
735
- background-color: transparent;
736
- color: ${Pi};
737
- }
738
-
739
- .ft-checkbox--checkmark {
740
- transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
741
- opacity: 0;
742
- }
743
-
744
- .ft-checkbox--checkmark-path {
745
- stroke-dashoffset: 0;
746
- stroke: currentcolor;
747
- stroke-width: 3px;
748
- stroke-dasharray: 30;
749
- }
750
-
751
- .ft-checkbox--checked .ft-checkbox--checkmark,
752
- .ft-checkbox--indeterminate .ft-checkbox--checkmark {
753
- opacity: 1;
754
- }
755
- `,Ui([i()],_i.prototype,"name",void 0),Ui([i({type:Boolean})],_i.prototype,"checked",void 0),Ui([i({type:Boolean})],_i.prototype,"indeterminate",void 0),Ui([i({type:Boolean})],_i.prototype,"disabled",void 0),Ui([n(".ft-checkbox")],_i.prototype,"container",void 0),Ui([n("ft-ripple")],_i.prototype,"ripple",void 0),h("ft-checkbox")(_i);var Ii=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 Hi=ft.extend("--ft-radio-text-color",vt.colorOnSurfaceHigh),Wi=ft.external(vt.colorPrimary,"Design system"),Ki=(ft.external(vt.colorOnPrimary,"Design system"),ft.extend("--ft-radio-border-color",vt.colorOnSurfaceMedium)),Vi=ft.external(vt.colorOnSurfaceDisabled,"Design system");class Zi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ji extends xt{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`
756
- <div class="${ti(t)}">
757
- <div class="ft-radio--box-container">
758
- <input id="radio-button"
759
- type="radio"
760
- name="${this.name}"
761
- value="${this.value}"
762
- .checked=${this.checked}
763
- .disabled=${this.disabled}
764
- @change=${this.onChange}
765
- >
766
- <ft-ripple
767
- ?disabled=${this.disabled}
768
- ?primary=${this.checked}
769
- unbounded>
770
- </ft-ripple>
771
- <div class="ft-radio--box">
772
- </div>
773
- </div>
774
- <label for="radio-button" @click=${t=>t.stopPropagation()}>
775
- <ft-typography variant="body2">
776
- <slot></slot>
777
- </ft-typography>
778
- </label>
779
- </div>
780
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zi(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 Zi(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ji.elementDefinitions={"ft-ripple":ci,"ft-typography":Pe},Ji.styles=b`
781
- * {
782
- box-sizing: border-box;
783
- }
784
-
785
- .ft-radio {
786
- box-sizing: border-box;
787
- color: ${Hi};
788
-
789
- display: inline-flex;
790
- align-items: center;
791
- gap: 4px;
792
- }
793
-
794
- .ft-radio--disabled {
795
- color: ${Vi};
796
- }
797
-
798
- input {
799
- opacity: 0;
800
- position: absolute;
801
- width: 40px;
802
- height: 40px;
803
- margin: 0;
804
- }
805
-
806
- .ft-radio--box-container {
807
- position: relative;
808
- width: 40px;
809
- height: 40px;
810
-
811
- display: flex;
812
- justify-content: center;
813
- align-items: center;
814
- flex-shrink: 0;
815
- }
816
-
817
- .ft-radio--box {
818
- border: 2px solid ${Ki};
819
- border-radius: 50%;
820
-
821
- display: flex;
822
- justify-content: center;
823
- align-items: center;
824
-
825
- width: 20px;
826
- height: 20px;
827
- }
828
-
829
- .ft-radio--box:after {
830
- content: " ";
831
- background-color: ${Wi};
832
-
833
- border-radius: 50%;
834
-
835
- width: 12px;
836
- height: 12px;
837
-
838
- transform: scale(0);
839
- transition: transform 100ms ease;
840
- }
841
-
842
- .ft-radio--checked .ft-radio--box {
843
- border-color: ${Wi};
844
- }
845
-
846
-
847
- .ft-radio--checked .ft-radio--box:after {
848
- transform: scale(1);
849
- }
850
-
851
- .ft-radio--disabled .ft-radio--box {
852
- border-color: ${Vi};
853
- background-color: transparent;
854
- }
855
-
856
- .ft-radio--disabled .ft-radio--box:after {
857
- background-color: ${Vi};
858
- }
859
- `,Ii([i()],Ji.prototype,"value",void 0),Ii([i()],Ji.prototype,"name",void 0),Ii([i({type:Boolean})],Ji.prototype,"checked",void 0),Ii([i({type:Boolean})],Ji.prototype,"disabled",void 0),Ii([n(".ft-radio")],Ji.prototype,"container",void 0),Ii([n("ft-ripple")],Ji.prototype,"ripple",void 0),Ii([n("input")],Ji.prototype,"input",void 0);var qi=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 Xi extends xt{constructor(){super(...arguments),this.name=""}render(){return K`
860
- <slot @slotchange=${this.onSlotChange}
861
- @change=${this.onChange}
862
- @keydown=${this.onKeyDown}
863
- @focusin=${this.onFocusIn}
864
- ></slot>
865
- `}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)}}Xi.elementDefinitions={},Xi.styles=b`
866
- :host {
867
- display: contents;
868
- }
869
- `,qi([i()],Xi.prototype,"name",void 0),qi([a()],Xi.prototype,"radioButtons",void 0),h("ft-radio")(Ji),h("ft-radio-group")(Xi);var Yi=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 Gi={borderRadiusM:ft.external(vt.borderRadiusM,"Design system"),colorOutline:ft.external(vt.colorOutline,"Design system"),colorOnSurface:ft.external(vt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ft.external(vt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ft.external(vt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(vt.colorPrimary,"Design system"),colorOnPrimary:ft.external(vt.colorOnPrimary,"Design system"),fontFamily:ft.external(ce.fontFamily,"Body2 typography"),fontSize:ft.external(ce.fontSize,"Body2 typography"),fontWeight:ft.external(ce.fontWeight,"Body2 typography"),letterSpacing:ft.external(ce.letterSpacing,"Body2 typography"),lineHeight:ft.external(ce.lineHeight,"Body2 typography"),textTransform:ft.external(ce.textTransform,"Body2 typography")};class Qi extends xt{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`
870
- <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
871
- ${null==this.parent?null:K`
872
- <div tabindex="0"
873
- part="controls go-back"
874
- class="ft-filter-level--go-back"
875
- ?disabled=${this.disabled}
876
- @keyup=${this.goBackOnKeyPress}
877
- @click=${this.goBackOnClick}>
878
- <ft-ripple></ft-ripple>
879
- <ft-icon variant="material">chevron_left</ft-icon>
880
- <ft-typography variant="body2">${this.parent.label}</ft-typography>
881
- </div>
882
- `}
883
- ${0===this.options.length&&this.noValuesLabel?K`
884
- <ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
885
- ${this.noValuesLabel}
886
- </ft-typography>
887
- `:Z}
888
- ${Qe(e,(t=>t.value),(t=>{var e;return K`
889
- <div class="ft-filter-level--option" part="options">
890
- ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
891
- ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?Z:K`
892
- <ft-button icon="chevron_right"
893
- part="controls navigate-hierarchy"
894
- label="${t.label}"
895
- ?disabled=${this.disabled}
896
- tooltipPosition="left"
897
- @click=${()=>this.displayLevel(t)}></ft-button>
898
- `}
899
- </div>
900
- `}))}
901
- ${e.length<t.length?K`
902
- <ft-button
903
- class="ft-filter-level--display-more"
904
- icon="expand_more"
905
- dense trailingIcon
906
- part="controls display-more"
907
- @click=${this.displayMore}>
908
- ${this.moreValuesButtonLabel}
909
- </ft-button>
910
- `:Z}
911
- </div>
912
- `}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`
913
- <ft-checkbox name="${this.id}"
914
- part="multivalued-option"
915
- .checked=${t.selected}
916
- .disabled=${this.disabled}
917
- .indeterminate=${_e(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
918
- @change=${e=>this.optionsChanged(e,t)}>
919
- ${t.label}
920
- </ft-checkbox>
921
- `}buildMonoValuedOption(t){return K`
922
- <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
923
- part="monovalued-option"
924
- .checked=${t.selected}
925
- ?disabled=${this.disabled}
926
- @click=${e=>this.optionsChanged(e,t)}
927
- @keyup=${e=>this.onRadioKeyUp(e,t)}
928
- @change=${t=>t.stopPropagation()}>
929
-
930
- ${t.label}
931
- </ft-radio>
932
- `}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":ji,"ft-ripple":ci,"ft-typography":Pe,"ft-checkbox":_i,"ft-icon":Ei,"ft-radio":Ji},Qi.styles=[b`
933
- .ft-filter-level--container {
934
- display: flex;
935
- flex-direction: column;
936
- }
937
-
938
- .ft-filter-level--container > * {
939
- padding: 0 10px;
940
- }
941
-
942
- .ft-filter-level--go-back {
943
- flex-shrink: 0;
944
- text-decoration: none;
945
- position: relative;
946
- border-radius: ${Gi.borderRadiusM};
947
- overflow: hidden;
948
- display: flex;
949
- align-items: center;
950
- padding: 4px 4px;
951
- gap: 4px;
952
- cursor: pointer;
953
- color: ${Gi.colorOnSurface};
954
- }
955
-
956
- .ft-filter-level--go-back:focus {
957
- outline: none;
958
- }
959
-
960
- .ft-filter-level--go-back ft-icon {
961
- flex-shrink: 0;
962
- }
963
-
964
- .ft-filter-level--go-back ft-typography {
965
- display: block;
966
- flex-grow: 1;
967
- flex-shrink: 0;
968
- }
969
-
970
- .ft-filter-level--option {
971
- display: flex;
972
- align-items: center;
973
- max-width: 100%;
974
- }
975
-
976
- .ft-filter-level--option ft-button {
977
- margin-right: -10px;
978
- flex-shrink: 0;
979
- }
980
-
981
- ft-button {
982
- ${ut(Ri.color,Gi.colorOnSurface)};
983
- }
984
-
985
- ft-radio, ft-checkbox {
986
- flex-shrink: 1;
987
- flex-grow: 1;
988
- display: block;
989
- max-width: calc(100% + 10px);
990
- margin-left: -10px;
991
- word-break: break-word;
992
- }
993
-
994
- .ft-filter-level--no-values {
995
- margin: 10px 0;
996
- color: ${Gi.colorOnSurfaceMedium};
997
- }
998
- `],Yi([i({type:String})],Qi.prototype,"id",void 0),Yi([i({type:Object})],Qi.prototype,"parent",void 0),Yi([i({type:Array})],Qi.prototype,"options",void 0),Yi([i({type:Boolean})],Qi.prototype,"multivalued",void 0),Yi([i({type:Boolean})],Qi.prototype,"disabled",void 0),Yi([i({type:Boolean})],Qi.prototype,"hideSelectedOptions",void 0),Yi([i({type:Boolean})],Qi.prototype,"preventNavigation",void 0),Yi([i({type:String})],Qi.prototype,"filter",void 0),Yi([i({type:String})],Qi.prototype,"moreValuesButtonLabel",void 0),Yi([i({type:String})],Qi.prototype,"noValuesLabel",void 0),Yi([i({type:Number})],Qi.prototype,"displayedValuesLimit",void 0),Yi([n(".ft-filter-level--container")],Qi.prototype,"container",void 0),Yi([o()],Qi.prototype,"displayedPages",void 0);var to=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 eo={buttonsColor:ft.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:ft.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ft.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ft.external(vt.colorSurface,"Design system")};class io extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class oo extends xt{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=ti({"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`
999
- <div part="container" class="${t}">
1000
- <ft-button
1001
- class="ft-snap-scroll--previous"
1002
- part="controls"
1003
- primary
1004
- icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
1005
- ?hidden=${!e||this.startReached}
1006
- ?disabled=${!e||this.startReached}
1007
- @click=${this.previous}
1008
- ></ft-button>
1009
- <slot class="ft-snap-scroll--content"
1010
- part="content"
1011
- @slotchange=${this.onSlotChange}></slot>
1012
- <ft-button
1013
- class="ft-snap-scroll--next"
1014
- part="controls"
1015
- primary
1016
- icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
1017
- ?hidden=${!e||this.endReached}
1018
- ?disabled=${!e||this.endReached}
1019
- @click=${this.next}
1020
- ></ft-button>
1021
- </div>
1022
- `}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 io(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)}}oo.elementDefinitions={"ft-button":ji},oo.styles=b`
1023
- .ft-snap-scroll {
1024
- box-sizing: border-box;
1025
- position: relative;
1026
- display: flex;
1027
-
1028
- --ft-snap-scroll-transparent-color: transparent;
1029
- }
1030
-
1031
- .ft-snap-scroll.ft-snap-scroll--safari-fix {
1032
- /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
1033
- /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
1034
- --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
1035
- }
1036
-
1037
- .ft-snap-scroll,
1038
- .ft-snap-scroll--content {
1039
- overflow: hidden;
1040
- }
1041
-
1042
- .ft-snap-scroll--limit-size,
1043
- .ft-snap-scroll--limit-size .ft-snap-scroll--content {
1044
- width: 100%;
1045
- height: 100%;
1046
- }
1047
-
1048
- .ft-snap-scroll--content {
1049
- flex-grow: 1;
1050
- flex-shrink: 1;
1051
- box-sizing: border-box;
1052
- scroll-snap-align: start;
1053
- display: flex;
1054
- flex-wrap: nowrap;
1055
- align-items: flex-start;
1056
- justify-content: flex-start;
1057
- gap: ${eo.gap};
1058
- }
1059
-
1060
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
1061
- display: none;
1062
- }
1063
-
1064
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
1065
- -ms-overflow-style: none;
1066
- scrollbar-width: none;
1067
- }
1068
-
1069
- .ft-snap-scroll--content::slotted(*) {
1070
- flex-shrink: 0;
1071
- flex-grow: 1;
1072
- max-height: 100%;
1073
- max-width: 100%;
1074
- }
1075
-
1076
- .ft-snap-scroll--horizontal,
1077
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1078
- width: 100%;
1079
- }
1080
-
1081
- .ft-snap-scroll--vertical,
1082
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1083
- height: 100%;
1084
- }
1085
-
1086
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1087
- flex-direction: row;
1088
- overflow-x: auto;
1089
- }
1090
-
1091
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1092
- flex-direction: column;
1093
- overflow-y: auto;
1094
- }
1095
-
1096
- .ft-snap-scroll--previous,
1097
- .ft-snap-scroll--next {
1098
- position: absolute;
1099
- display: flex;
1100
- z-index: ${eo.buttonsZIndex};
1101
- opacity: 1;
1102
- transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1103
- ${ut(Ri.backgroundColor,"transparent")};
1104
- ${ut(Ri.color,eo.buttonsColor)};
1105
- }
1106
-
1107
- .ft-snap-scroll--previous[hidden],
1108
- .ft-snap-scroll--next[hidden] {
1109
- z-index: -1;
1110
- opacity: 0;
1111
- }
1112
-
1113
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
1114
- top: 0;
1115
- left: -1px;
1116
- bottom: 0;
1117
- background: linear-gradient(to right, ${eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1118
- }
1119
-
1120
- .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1121
- top: -1px;
1122
- left: 0;
1123
- right: 0;
1124
- background: linear-gradient(to bottom, ${eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1125
- }
1126
-
1127
- .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1128
- top: 0;
1129
- right: -1px;
1130
- bottom: 0;
1131
- background: linear-gradient(to left, ${eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1132
- }
1133
-
1134
- .ft-snap-scroll--vertical .ft-snap-scroll--next {
1135
- left: 0;
1136
- right: 0;
1137
- bottom: -1px;
1138
- background: linear-gradient(to top, ${eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1139
- }
1140
-
1141
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1142
- .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1143
- .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1144
- .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1145
- background-color: ${eo.colorSurface};
1146
- }
1147
- `,to([i({type:Boolean})],oo.prototype,"horizontal",void 0),to([i({type:Boolean})],oo.prototype,"hideScrollbar",void 0),to([i({type:Boolean})],oo.prototype,"controls",void 0),to([i({type:Boolean})],oo.prototype,"limitSize",void 0),to([o()],oo.prototype,"elements",void 0),to([o()],oo.prototype,"currentElement",void 0),to([o()],oo.prototype,"withScroll",void 0),to([o()],oo.prototype,"startReached",void 0),to([o()],oo.prototype,"endReached",void 0),to([n(".ft-snap-scroll--content")],oo.prototype,"contentSlot",void 0),h("ft-snap-scroll")(oo);var so=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 no=ft.external(vt.colorOutline,"Design system"),ro=ft.external(vt.colorOnSurface,"Design system"),lo=ft.external(vt.colorOnSurfaceMedium,"Design system"),ao=ft.external(vt.colorPrimary,"Design system"),ho=ft.external(vt.colorSurface,"Design system"),co=ft.external(vt.transitionDuration,"Design system"),po=ft.external(vt.transitionTimingFunction,"Design system");class fo extends CustomEvent{constructor(t){super("change",{detail:t})}}class uo extends xt{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 _e(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`
1148
- <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1149
- part="container">
1150
- ${this.label||i?K`
1151
- <div class="ft-filter--header" part="header">
1152
- <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1153
- </ft-typography>
1154
- ${i?K`
1155
- <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1156
- ${this.clearButtonLabel}
1157
- </ft-button>
1158
- `:null}
1159
- </div>
1160
- `:null}
1161
- <div class="ft-filter--filter" ?hidden=${!o}>
1162
- <input type="search"
1163
- part="input"
1164
- class="ft-typography--caption"
1165
- ?disabled=${!o}
1166
- placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
1167
- @search=${this.onFilterChange}
1168
- @keyup=${this.onFilterChange}>
1169
- </div>
1170
- <div class="ft-filter--values">
1171
- ${this.renderLevels()}
1172
- </div>
1173
- <slot class="ft-filter--slot"
1174
- @slotchange=${this.updateOptionsFromSlot}
1175
- @option-change=${this.optionsChanged}></slot>
1176
- </div>
1177
- `}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`
1178
- ${this.raiseSelectedOptions&&e.length>0?K`
1179
- <ft-filter-level
1180
- id="${this.id}"
1181
- ?multivalued=${this.multivalued}
1182
- ?disabled=${this.disabled}
1183
- preventNavigation
1184
- .options=${e}
1185
- @change=${this.onChange}
1186
- part="values selected-values"
1187
- .exportpartsPrefixes=${["values","selected-values"]}
1188
- ></ft-filter-level>
1189
- <div class="ft-filter--separator">
1190
- `:null}
1191
- <ft-snap-scroll horizontal hideScrollbar
1192
- class="ft-filter--levels"
1193
- @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
1194
- ${this.renderLevel(o,this.options)}
1195
- ${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)}))}
1196
- </ft-snap-scroll>
1197
- `}renderLevel(t,e,i){return K`
1198
- <ft-filter-level
1199
- class="${t}"
1200
- id="${this.id}"
1201
- filter="${this.filter}"
1202
- moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1203
- ?multivalued=${this.multivalued}
1204
- ?disabled=${this.disabled||"ft-filter--level-center"!==t}
1205
- ?hideSelectedOptions=${this.raiseSelectedOptions}
1206
- .parent=${i}
1207
- .options=${e}
1208
- .displayedValuesLimit=${this.displayedValuesLimit}
1209
- @change=${this.onChange}
1210
- @go-back=${this.goBack}
1211
- @display-level=${this.onDisplayLevel}
1212
- part="values available-values"
1213
- .exportpartsPrefixes=${["values","available-values"]}
1214
- noValuesLabel="${this.noValuesLabel}"
1215
- ></ft-filter-level>
1216
- `}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 fo(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)}}uo.elementDefinitions={"ft-button":ji,"ft-filter-level":Qi,"ft-snap-scroll":oo,"ft-typography":Pe},uo.styles=[De,b`
1217
- :host {
1218
- display: flex;
1219
- max-height: 100%;
1220
- max-width: 100%;
1221
- }
1222
-
1223
- .ft-filter--container {
1224
- flex-grow: 1;
1225
- display: flex;
1226
- flex-direction: column;
1227
- max-height: 100%;
1228
- max-width: 100%;
1229
- color: ${ro};
1230
- background: ${ho};
1231
- }
1232
-
1233
- .ft-filter--header {
1234
- display: flex;
1235
- flex-wrap: wrap;
1236
- gap: 4px;
1237
- flex-shrink: 0;
1238
- padding: 0 10px;
1239
- margin-bottom: 8px;
1240
- ${ut(Ft.fontSize,"14px")};
1241
- }
1242
-
1243
- .ft-filter--header ft-button {
1244
- flex-shrink: 0;
1245
- margin-left: auto;
1246
- ${ut(Ri.iconSize,"18px")};
1247
- }
1248
-
1249
- .ft-filter--label {
1250
- display: block;
1251
- flex-shrink: 1;
1252
- flex-grow: 1;
1253
- word-break: break-word;
1254
- ${ut(Ft.lineHeight,"22px")};
1255
- ${ut(Ft.fontWeight,"bold")};
1256
- }
1257
-
1258
- .ft-filter--filter {
1259
- flex-shrink: 0;
1260
- display: flex;
1261
- margin: 0;
1262
- margin-bottom: 8px;
1263
- padding: 0 10px;
1264
- overflow: hidden;
1265
- height: 32px;
1266
- transition: height ${co} ${po},
1267
- margin ${co} ${po};
1268
- transition-delay: 500ms;
1269
- }
1270
-
1271
- .ft-filter--filter[hidden] {
1272
- height: 0;
1273
- margin-bottom: 0;
1274
- }
1275
-
1276
- input {
1277
- display: block;
1278
- width: 100%;
1279
- border-radius: 4px;
1280
- border: 1px solid ${no};
1281
- padding: 4px;
1282
- background-color: ${ho};
1283
- color: ${lo};
1284
- outline-color: ${ao};
1285
- }
1286
-
1287
- .ft-filter--values {
1288
- flex-grow: 1;
1289
- flex-shrink: 1;
1290
- max-width: 100%;
1291
- overflow-x: hidden;
1292
- overflow-y: auto;
1293
- }
1294
-
1295
- .ft-filter--separator {
1296
- border-top: 1px solid ${no};
1297
- margin: 4px 10px;
1298
- }
1299
-
1300
- .ft-filter--levels-container {
1301
- position: relative;
1302
- overflow: hidden;
1303
- }
1304
-
1305
- .ft-filter--levels {
1306
- position: relative;
1307
- overflow: hidden;
1308
- }
1309
-
1310
- ft-filter-level {
1311
- width: 100%;
1312
- }
1313
-
1314
- .ft-filter--level-left {
1315
- height: 0;
1316
- }
1317
-
1318
- slot {
1319
- display: none;
1320
- }
1321
- `],so([i({type:String})],uo.prototype,"id",void 0),so([i({type:String})],uo.prototype,"label",void 0),so([i({type:String})],uo.prototype,"filterPlaceHolder",void 0),so([i({type:String})],uo.prototype,"clearButtonLabel",void 0),so([i({type:String})],uo.prototype,"moreValuesButtonLabel",void 0),so([i({type:String})],uo.prototype,"noValuesLabel",void 0),so([c([])],uo.prototype,"options",void 0),so([i({type:Boolean})],uo.prototype,"multivalued",void 0),so([i({type:Boolean})],uo.prototype,"disabled",void 0),so([i({type:Boolean})],uo.prototype,"raiseSelectedOptions",void 0),so([i({type:Number})],uo.prototype,"displayedValuesLimit",void 0),so([n(".ft-filter--slot")],uo.prototype,"slotElement",void 0),so([n(".ft-filter--container")],uo.prototype,"container",void 0),so([n(".ft-filter--values")],uo.prototype,"valuesContainer",void 0),so([n(".ft-filter--levels")],uo.prototype,"levelsContainer",void 0),so([n(".ft-filter--levels ft-filter-level:last-child")],uo.prototype,"lastLevel",void 0),so([n(".ft-filter--filter input")],uo.prototype,"filterInput",void 0),so([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")],uo.prototype,"levels",void 0),so([o()],uo.prototype,"withScroll",void 0),so([o()],uo.prototype,"filter",void 0),so([o()],uo.prototype,"slideIn",void 0),so([o()],uo.prototype,"slideOut",void 0);var vo=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 bo extends xt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return K`
1322
- <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1323
- `}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}))}}bo.elementDefinitions={},vo([i({type:String})],bo.prototype,"label",void 0),vo([i({type:Object,converter:t=>t})],bo.prototype,"value",void 0),vo([i({type:Boolean,reflect:!0})],bo.prototype,"selected",void 0),vo([i({type:Object})],bo.prototype,"subOptions",void 0),vo([n(".ft-filter-option--slot")],bo.prototype,"slotElement",void 0),h("ft-filter")(gt(uo)),h("ft-filter-option")(gt(bo))}();