@fluid-topics/ft-search-input 0.3.71 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/SearchInputMessages.d.ts +0 -1
- package/build/SearchInputMessages.js +0 -1
- package/build/ft-search-input-suggestion.css.d.ts +0 -1
- package/build/ft-search-input-suggestion.css.js +0 -1
- package/build/ft-search-input-suggestion.d.ts +0 -1
- package/build/ft-search-input-suggestion.js +1 -4
- package/build/ft-search-input-suggestion.properties.d.ts +0 -1
- package/build/ft-search-input-suggestion.properties.js +0 -1
- package/build/ft-search-input.css.d.ts +0 -1
- package/build/ft-search-input.css.js +0 -1
- package/build/ft-search-input.d.ts +0 -1
- package/build/ft-search-input.js +2 -2
- package/build/ft-search-input.light.js +169 -171
- package/build/ft-search-input.min.js +204 -216
- package/build/ft-search-input.properties.d.ts +0 -1
- package/build/ft-search-input.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +10 -10
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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 n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.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),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(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 y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(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(g(Element,"innerHTML"),g(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 n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(jo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Promise{constructor(t){super(((e,i)=>t((t=>{this.isCanceled?i(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?i(new Error("Promise has been canceled")):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class i{constructor(){this.loaders={},this.content={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.content[t]instanceof e&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,i){if(void 0===this.content[t]){if(null==(i=null!=i?i:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new e(((e,i)=>t.then(e).catch(i))))(i());return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -49,34 +49,24 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/
|
|
52
|
+
*/let g=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(v&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&y.set(e,t))}return t}toString(){return this.cssText}};const m=t=>new g("string"==typeof t?t:t+"",void 0,b),x=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>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[n+1]),t[0]);return new g(i,t,b)},w=(t,e)=>{v?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=d.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},$=v?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return m(e)})(t):t
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var O;const S=window,E=S.trustedTypes,k=E?E.emptyScript:"",j=S.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?k: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}},N=(t,e)=>e!==t&&(e==e||t==t),M={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};
|
|
57
|
+
*/;var O;const S=window,E=S.trustedTypes,k=E?E.emptyScript:"",j=S.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?k: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}},N=(t,e)=>e!==t&&(e==e||t==t),M={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};let R=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=M){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,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||M}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=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($(t))}else void 0!==t&&e.push($(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).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._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.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 w(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||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._$ES)||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)}_$EO(t,e,i=M){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:C).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:C;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||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._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||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)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var
|
|
63
|
+
var A;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:R}),(null!==(O=S.reactiveElementVersions)&&void 0!==O?O:S.reactiveElementVersions=[]).push("1.6.1");const U=window,P=U.trustedTypes,F=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,T="?"+z,B=`<${T}>`,L=document,D=()=>L.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,K=t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,V=/>/g,J=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,G=/"/g,Q=/^(?:script|style|textarea|title)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),tt=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),it=new WeakMap,nt=L.createTreeWalker(L,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=Z;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===Z?"!--"===l[1]?s=q:void 0!==l[1]?s=V:void 0!==l[2]?(Q.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=J):void 0!==l[3]&&(s=J):s===J?">"===l[0]?(s=null!=o?o:Z,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?J:'"'===l[3]?G:X):s===G||s===X?s=J:s===q||s===V?s=Z:(s=J,o=void 0);const f=s===J&&t[e+1].startsWith("/>")?" ":"";r+=s===Z?i+B:c>=0?(n.push(a),i.slice(0,c)+I+i.slice(c)+z+f):i+z+(-2===c?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,n]};class rt{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=rt.createElement(l,i),nt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=nt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(I)||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+I).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?ht:"@"===e[1]?pt:ct})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],D()),nt.nextNode(),a.push({type:2,index:++o});n.append(t[e],D())}}}else if(8===n.nodeType)if(n.data===T)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function st(t,e,i=t,n){var o,r,s,a;if(e===tt)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=st(t,l._$AS(t,e.values),l,n)),e}let at=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);nt.currentNode=o;let r=nt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new lt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new dt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=nt.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},lt=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=st(this,t,e),_(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):K(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==et&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=rt.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new at(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new rt(t)),e}T(e){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(D()),this.k(D()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ct=class{constructor(t,e,i,n,o){this.type=1,this._$AH=et,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=st(this,t,e,0),r=!_(t)||t!==this._$AH&&t!==tt,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=st(this,n[i+s],e,s),a===tt&&(a=this._$AH[s]),r||(r=!_(a)||a!==this._$AH[s]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}};const ft=P?P.emptyScript:"";let ht=class extends ct{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}},pt=class extends ct{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=st(this,t,e,0))&&void 0!==i?i:et)===tt)return;const n=this._$AH,o=t===et&&n!==et||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==et&&(n===et||o);o&&this.element.removeEventListener(this.name,this,n),r&&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)}},dt=class{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){st(this,t)}};const vt={O:I,P:z,A:T,C:1,M:ot,L:at,D:K,R:st,I:lt,V:ct,H:ht,N:pt,U:ut,F:dt},bt=U.litHtmlPolyfillSupport;null==bt||bt(rt,lt),(null!==(A=U.litHtmlVersions)&&void 0!==A?A:U.litHtmlVersions=[]).push("2.7.3");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new st(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Q}}yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:yt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.2.2");class mt{static create(t,e,i){let n=t=>m(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):m(null!=e?e:t.defaultValue),n=x`var(${m(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>x`var(${m(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function xt(t,e){return m(`${t.name}: ${e}`)}const wt={colorPrimary:mt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:mt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:mt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:mt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:mt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:mt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:mt.create("--ft-color-error","COLOR","#B00020"),colorOutline:mt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:mt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:mt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:mt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:mt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:mt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:mt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:mt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:mt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:mt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:mt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:mt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:mt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:mt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:mt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:mt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:mt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:mt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:mt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:mt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:mt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:mt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:mt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:mt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:mt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:mt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:mt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:mt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:mt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:mt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:mt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:mt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:mt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:mt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:mt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:mt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:mt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:mt.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:mt.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:mt.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:mt.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:mt.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:mt.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:mt.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:mt.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:mt.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:mt.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:mt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:mt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:mt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:mt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:mt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:mt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:mt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:mt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
70
|
-
/**
|
|
71
|
-
* @license
|
|
72
|
-
* Copyright 2021 Google LLC
|
|
73
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/var $t=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ot extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return w(o,this.constructor.elementStyles),o}}}(yt)){constructor(){super(),this.exportpartsDebouncer=new n(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),G`
|
|
75
|
-
${t.map((t=>G`
|
|
76
|
-
<style>${t}</style>
|
|
77
|
-
`))}
|
|
78
|
-
${this.getTemplate()}
|
|
79
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}$t([r()],Ot.prototype,"exportpartsPrefix",void 0),$t([p([])],Ot.prototype,"exportpartsPrefixes",void 0),$t([r()],Ot.prototype,"customStylesheet",void 0);const St=x`
|
|
69
|
+
var yt,gt;let mt=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new lt(e.insertBefore(D(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return tt}};mt.finalized=!0,mt._$litElement$=!0,null===(yt=globalThis.litElementHydrateSupport)||void 0===yt||yt.call(globalThis,{LitElement:mt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:mt}),(null!==(gt=globalThis.litElementVersions)&&void 0!==gt?gt:globalThis.litElementVersions=[]).push("3.3.2");class wt{static create(t,e,i){let n=t=>m(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):m(null!=e?e:t.defaultValue),n=x`var(${m(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>x`var(${m(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function $t(t,e){return m(`${t.name}: ${e}`)}const Ot={colorPrimary:wt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:wt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:wt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:wt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:wt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:wt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:wt.create("--ft-color-error","COLOR","#B00020"),colorOutline:wt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:wt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:wt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:wt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:wt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:wt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:wt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:wt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:wt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:wt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:wt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:wt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:wt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:wt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:wt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:wt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:wt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:wt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:wt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:wt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:wt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:wt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:wt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:wt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:wt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:wt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:wt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:wt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:wt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:wt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:wt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:wt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:wt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:wt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:wt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:wt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:wt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:wt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:wt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:wt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:wt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:wt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:wt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:wt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class St extends mt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return w(i,t.elementStyles),i}}var Et,kt=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Ct=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class Mt extends St{constructor(){super(),this[Et]=new n(5),this[Ct]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ct]&&Object.setPrototypeOf(this,this[jt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}Et=Nt,kt([r()],Mt.prototype,"exportpartsPrefix",void 0),kt([p([])],Mt.prototype,"exportpartsPrefixes",void 0),kt([r()],Mt.prototype,"customStylesheet",void 0);const Rt=x`
|
|
80
70
|
.ft-no-text-select {
|
|
81
71
|
-webkit-touch-callout: none;
|
|
82
72
|
-webkit-user-select: none;
|
|
@@ -85,7 +75,7 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
85
75
|
-ms-user-select: none;
|
|
86
76
|
user-select: none;
|
|
87
77
|
}
|
|
88
|
-
`,
|
|
78
|
+
`,At=x`
|
|
89
79
|
.ft-word-wrap {
|
|
90
80
|
white-space: normal;
|
|
91
81
|
word-wrap: break-word;
|
|
@@ -97,7 +87,7 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
97
87
|
-webkit-hyphens: auto;
|
|
98
88
|
hyphens: auto
|
|
99
89
|
}
|
|
100
|
-
`,
|
|
90
|
+
`,Ut=x`
|
|
101
91
|
.ft-safari-ellipsis-fix {
|
|
102
92
|
margin-right: 0;
|
|
103
93
|
|
|
@@ -108,17 +98,17 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
108
98
|
display: inline-block;
|
|
109
99
|
width: 0;
|
|
110
100
|
}
|
|
111
|
-
`;class jt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ct(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nt(t){return!!t&&!!t[ve]}function Mt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===be}(t)||Array.isArray(t)||!!t[de]||!!t.constructor[de]||zt(t)||It(t))}function Rt(t,e,i){void 0===i&&(i=!1),0===Ut(t)?(i?Object.keys:ye)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Ut(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:zt(t)?2:It(t)?3:0}function At(t,e){return 2===Ut(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Pt(t,e,i){var n=Ut(t);2===n?t.set(e,i):3===n?(t.delete(e),t.add(i)):t[e]=i}function Ft(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function zt(t){return ue&&t instanceof Map}function It(t){return fe&&t instanceof Set}function Bt(t){return t.o||t.t}function Tt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Lt(t,e){return void 0===e&&(e=!1),_t(t)||Nt(t)||!Mt(t)||(Ut(t)>1&&(t.set=t.add=t.clear=t.delete=Dt),Object.freeze(t),e&&Rt(t,(function(t,e){return Lt(e,!0)}),!0)),t}function Dt(){Ct(2)}function _t(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=me[t];return e||Ct(18,t),e}function Kt(){return le}function Ht(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function qt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function Xt(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,n),n?(i[ve].P&&(Zt(e),Ct(4)),Mt(t)&&(t=Gt(e,t),e.l||Yt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Gt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==pe?t:void 0}function Gt(t,e,i){if(_t(e))return e;var n=e[ve];if(!n)return Rt(e,(function(o,r){return Qt(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return Yt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Tt(n.k):n.o;Rt(3===n.i?new Set(o):o,(function(e,r){return Qt(t,n,o,e,r,i)})),Yt(t,o,!1),i&&t.u&&Wt("Patches").R(n,i,t.u,t.s)}return n.o}function Qt(t,e,i,n,o,r){if(Nt(o)){var s=Gt(t,o,r&&e&&3!==e.i&&!At(e.D,n)?r.concat(n):void 0);if(Pt(i,n,s),!Nt(s))return;t.m=!1}if(Mt(o)&&!_t(o)){if(!t.h.F&&t._<1)return;Gt(t,o),e&&e.A.l||Yt(t,o)}}function Yt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Lt(e,i)}function te(t,e){var i=t[ve];return(i?Bt(i):t)[e]}function ee(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function ne(t){t.o||(t.o=Tt(t.t))}function oe(t,e,i){var n=zt(e)?Wt("MapSet").N(e,i):It(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Kt(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=xe;i&&(o=[n],r=we);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Kt()).p.push(n),n}function re(t){return Nt(t)||Ct(22,t),function t(e){if(!Mt(e))return e;var i,n=e[ve],o=Ut(e);if(n){if(!n.P&&(n.i<4||!Wt("ES5").K(n)))return n.t;n.I=!0,i=se(e,o),n.I=!1}else i=se(e,o);return Rt(i,(function(e,o){n&&function(t,e){return 2===Ut(t)?t.get(e):t[e]}(n.t,e)===o||Pt(i,e,t(o))})),3===o?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Tt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ue="undefined"!=typeof Map,fe="undefined"!=typeof Set,he="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pe=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),de=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},me={},xe={get:function(t,e){if(e===ve)return t;var i=Bt(t);if(!At(i,e))return function(t,e,i){var n,o=ee(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Mt(n)?n:n===te(t.t,e)?(ne(t),t.o[e]=oe(t.A.h,n,t)):n},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,i){var n=ee(Bt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=te(Bt(t),e),r=null==o?void 0:o[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(Ft(i,o)&&(void 0!==i||At(t.t,e)))return!0;ne(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,ne(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Bt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ct(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ct(12)}},we={};Rt(xe,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return xe.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=he,this.F=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ct(6),void 0!==n&&"function"!=typeof n&&Ct(7),Mt(t)){var a=qt(e),l=oe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Ht(a,n),Xt(t,a)}),(function(t){throw Zt(a),t})):(Ht(a,n),Xt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===pe&&(s=void 0),e.F&&Lt(s,!0),n){var u=[],f=[];Wt("Patches").M(t,s,u,f),n(u,f)}return s}Ct(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Mt(t)||Ct(8),Nt(t)&&(t=re(t));var e=qt(this),i=oe(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Ht(i,e),Xt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!he&&Ct(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Wt("Patches").$;return Nt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Oe=new $e,Se=Oe.produce;Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseProxies.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);var Ee=Se;function ke(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ce(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?je(Object(i),!0).forEach((function(e){ke(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ne(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Me="function"==typeof Symbol&&Symbol.observable||"@@observable",Re=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ue={INIT:"@@redux/INIT"+Re(),REPLACE:"@@redux/REPLACE"+Re(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Re()}};function Ae(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ne(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ne(1));return i(Pe)(t,e)}if("function"!=typeof t)throw new Error(Ne(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ne(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ne(4));if(l)throw new Error(Ne(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ne(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!Ae(t))throw new Error(Ne(7));if(void 0===t.type)throw new Error(Ne(8));if(l)throw new Error(Ne(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function p(t){if("function"!=typeof t)throw new Error(Ne(10));o=t,h({type:Ue.REPLACE})}function d(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ne(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Me]=function(){return this},t}return h({type:Ue.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:p})[Me]=d,n}function Fe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ue.INIT}))throw new Error(Ne(12));if(void 0===i(void 0,{type:Ue.PROBE_UNKNOWN_ACTION()}))throw new Error(Ne(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ne(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ze(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ie(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ne(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ze.apply(void 0,r)(i.dispatch),Ce(Ce({},i),{},{dispatch:n})}}}function Be(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Te=Be();Te.withExtraArgument=Be;var Le,De=Te,_e=(Le=function(t,e){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Le(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Le(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ke=Object.defineProperty,He=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,qe=function(t,e,i){return e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&qe(t,i,e[i]);if(He)for(var n=0,o=He(e);n<o.length;n++){i=o[n];Ve.call(e,i)&&qe(t,i,e[i])}return t},Xe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ze:ze.apply(null,arguments)};var Ge=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return _e(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Qe(t){return Mt(t)?Ee(t,(function(){})):t}function Ye(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new Ge;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(De.withExtraArgument(i.extraArgument)):n.push(De));return n}(t)}}function ti(t){var e,i=Ye(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Fe(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ie.apply(void 0,d),b=ze;c&&(b=Xe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(p)?y=We([v],p):"function"==typeof p&&(y=p(y)),Pe(e,f,b.apply(void 0,y))}function ei(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ii(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ni(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:Qe(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=Je(Je({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?ii(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return Qe(t())};else{var c=Qe(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=We([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Nt(t))return void 0===(n=i(t,e))?t:n;if(Mt(t))return Ee(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,u,s,c)}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?ei(c,n):ei(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var oi="listenerMiddleware";ei(oi+"/add"),ei(oi+"/removeAll"),ei(oi+"/remove"),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ve];return xe.get(e,t)},set:function(e){var i=this[ve];xe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][ve];if(!o.P)switch(o.i){case 5:n(o)&&ie(o);break;case 4:i(o)&&ie(o)}}}function i(t){for(var e=t.t,i=t.k,n=ye(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==ve){var s=e[r];if(void 0===s&&!At(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!Ft(a,s))return!0}}var c=!!e[ve];return n.length!==ye(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){me[t]||(me[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ge(i);delete r[ve];for(var s=ye(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Kt(),P:!1,I:!1,D:{},l:i,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,ve,{value:r,writable:!0}),o},S:function(t,i,o){o?Nt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var o=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Rt(r,(function(e){e!==ve&&(void 0!==o[e]||At(o,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Rt(o,(function(t){void 0!==r[t]||At(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(n(i)&&(ie(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const n=ri(t)?t:{};return e=null!==(i=null!=e?e:n.hasChanged)&&void 0!==i?i:(t,e)=>!f(t,e),(i,o)=>{var r,s;i.constructor.createProperty(o,{hasChanged:e,attribute:null!==(r=n.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?n.selector:t)&&void 0!==s?s:t=>t[o];a.reduxProperties.set(o,{selector:l,store:n.store})}};class ai extends Ot{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(li(n))return n;if(null==i)return;const o=ni(i);if(n)return new ci(o,n);const r=ti({reducer:o.reducer});return window.ftReduxStores[i.name]=new ci(o,r)}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var ui,fi,hi;const pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(hi=null===(fi=null===(ui=window.safari)||void 0===ui?void 0:ui.pushNotification)||void 0===fi?void 0:fi.toString())&&void 0!==hi?hi:""),di=1,vi=2,bi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
101
|
+
`;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ft(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function It(t){return!!t&&!!t[$e]}function zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Oe}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Wt(t)||Kt(t))}function Tt(t,e,i){void 0===i&&(i=!1),0===Bt(t)?(i?Object.keys:Se)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Bt(t){var e=t[$e];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Wt(t)?2:Kt(t)?3:0}function Lt(t,e){return 2===Bt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dt(t,e,i){var n=Bt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function _t(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Wt(t){return ye&&t instanceof Map}function Kt(t){return ge&&t instanceof Set}function Ht(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ee(t);delete e[$e];for(var i=Se(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Jt(t)||It(t)||!zt(t)||(Bt(t)>1&&(t.set=t.add=t.clear=t.delete=Vt),Object.freeze(t),e&&Tt(t,(function(t,e){return qt(e,!0)}),!0)),t}function Vt(){Ft(2)}function Jt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=ke[t];return e||Ft(18,t),e}function Gt(){return ve}function Qt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function Yt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[$e];0===e.i||1===e.i?e.j():e.g=!0}function ne(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Xt("ES5").S(e,t,n),n?(i[$e].P&&(Yt(e),Ft(4)),zt(t)&&(t=oe(e,t),e.l||se(e,t)),e.u&&Xt("Patches").M(i[$e].t,t,e.u,e.s)):t=oe(e,i,[]),Yt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function oe(t,e,i){if(Jt(e))return e;var n=e[$e];if(!n)return Tt(e,(function(o,r){return re(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Zt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Tt(r,(function(e,r){return re(t,n,o,e,r,i,s)})),se(t,o,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function re(t,e,i,n,o,r,s){if(It(o)){var a=oe(t,o,r&&e&&3!==e.i&&!Lt(e.R,n)?r.concat(n):void 0);if(Dt(i,n,a),!It(a))return;t.m=!1}else s&&i.add(o);if(zt(o)&&!Jt(o)){if(!t.h.D&&t._<1)return;oe(t,o),e&&e.A.l||se(t,o)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function ae(t,e){var i=t[$e];return(i?Ht(i):t)[e]}function le(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function ue(t){t.o||(t.o=Zt(t.t))}function fe(t,e,i){var n=Wt(e)?Xt("MapSet").F(e,i):Kt(e)?Xt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Gt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=je;i&&(o=[n],r=Ce);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Xt("ES5").J(e,i);return(i?i.A:Gt()).p.push(n),n}function he(t){return It(t)||Ft(22,t),function t(e){if(!zt(e))return e;var i,n=e[$e],o=Bt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=pe(e,o),n.I=!1}else i=pe(e,o);return Tt(i,(function(e,o){n&&function(t,e){return 2===Bt(t)?t.get(e):t[e]}(n.t,e)===o||Dt(i,e,t(o))})),3===o?new Set(i):i}(t)}function pe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var de,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((de={})["immer-nothing"]=!0,de),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",$e=be?Symbol.for("immer-state"):"__$immer_state",Oe=""+Object.prototype.constructor,Se="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ee=Object.getOwnPropertyDescriptors||function(t){var e={};return Se(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ke={},je={get:function(t,e){if(e===$e)return t;var i=Ht(t);if(!Lt(i,e))return function(t,e,i){var n,o=le(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!zt(n)?n:n===ae(t.t,e)?(ue(t),t.o[e]=fe(t.A.h,n,t)):n},has:function(t,e){return e in Ht(t)},ownKeys:function(t){return Reflect.ownKeys(Ht(t))},set:function(t,e,i){var n=le(Ht(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=ae(Ht(t),e),r=null==o?void 0:o[$e];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(_t(i,o)&&(void 0!==i||Lt(t.t,e)))return!0;ue(t),ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ae(t.t,e)||e in t.t?(t.R[e]=!1,ue(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ht(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ft(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ft(12)}},Ce={};Tt(je,(function(t,e){Ce[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ce.deleteProperty=function(t,e){return Ce.set.call(this,t,e,void 0)},Ce.set=function(t,e,i){return je.set.call(this,t[0],e,i,t[0])};var Ne=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ft(6),void 0!==n&&"function"!=typeof n&&Ft(7),zt(t)){var a=ee(e),l=fe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Yt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Qt(a,n),ne(t,a)}),(function(t){throw Yt(a),t})):(Qt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&qt(s,!0),n){var u=[],f=[];Xt("Patches").M(t,s,u,f),n(u,f)}return s}Ft(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){zt(t)||Ft(8),It(t)&&(t=he(t));var e=ee(this),i=fe(this,t,void 0);return i[$e].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[$e]).A;return Qt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&Ft(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Xt("Patches").$;return It(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Me=new Ne,Re=Me.produce;function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function Ue(t){var e=function(t,e){if("object"!==Ae(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ae(e)?e:String(e)}function Pe(t,e,i){return(e=Ue(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Fe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ie(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Fe(Object(i),!0).forEach((function(e){Pe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Fe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Te="function"==typeof Symbol&&Symbol.observable||"@@observable",Be=function(){return Math.random().toString(36).substring(7).split("").join(".")},Le={INIT:"@@redux/INIT"+Be(),REPLACE:"@@redux/REPLACE"+Be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Be()}};function De(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ze(1));return i(De)(t,e)}if("function"!=typeof t)throw new Error(ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(ze(3));return r}function f(t){if("function"!=typeof t)throw new Error(ze(4));if(l)throw new Error(ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ze(7));if(void 0===t.type)throw new Error(ze(8));if(l)throw new Error(ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Le.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ze(10));o=t,h({type:Le.REPLACE})}})[Te]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Te]=function(){return this},t},n}function _e(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Le.INIT}))throw new Error(ze(12));if(void 0===i(void 0,{type:Le.PROBE_UNKNOWN_ACTION()}))throw new Error(ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=We.apply(void 0,r)(i.dispatch),Ie(Ie({},i),{},{dispatch:n})}}}function He(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Ze=He();Ze.withExtraArgument=He;var qe,Ve=Ze,Je=(qe=function(t,e){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},qe(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Xe=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Ge=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Qe=Object.defineProperty,Ye=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,oi=function(t,e,i){return e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},ri=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&oi(t,i,e[i]);if(ei)for(var n=0,o=ei(e);n<o.length;n++){i=o[n];ni.call(e,i)&&oi(t,i,e[i])}return t},si=function(t,e){return Ye(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?We:We.apply(null,arguments)};var li=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ge([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ge([void 0],t.concat(this))))},e}(Array),ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ge([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ge([void 0],t.concat(this))))},e}(Array);function ui(t){return zt(t)?Re(t,(function(){})):t}function fi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ve.withExtraArgument(i.extraArgument)):n.push(Ve));return n}(t)}}function hi(t){var e,i=fi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=_e(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ke.apply(void 0,d),b=We;c&&(b=ai(ri({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(p)?g=Ge([v],p):"function"==typeof p&&(g=p(y)),De(e,f,b.apply(void 0,g))}function pi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return ri(ri({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function di(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function vi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:ui(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?di(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=ri(ri({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?di(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return ui(t())};else{var c=ui(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Ge([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(It(t))return void 0===(n=i(t,e))?t:n;if(zt(t))return Re(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?pi(c,n):pi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function xi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=pi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(ri({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=pi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(ri({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=pi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(ri({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return Xe(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof yi?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(xi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,$i,Oi="listenerMiddleware";pi(Oi+"/add"),pi(Oi+"/removeAll"),pi(Oi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[$e];return je.get(e,t)},set:function(e){var i=this[$e];je.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][$e];if(!o.P)switch(o.i){case 5:n(o)&&ce(o);break;case 4:i(o)&&ce(o)}}}function i(t){for(var e=t.t,i=t.k,n=Se(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==$e){var s=e[r];if(void 0===s&&!Lt(e,r))return!0;var a=i[r],l=a&&a[$e];if(l?l.t!==s:!_t(a,s))return!0}}var c=!!e[$e];return n.length!==Se(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){ke[t]||(ke[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Ee(i);delete r[$e];for(var s=Se(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Gt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,$e,{value:r,writable:!0}),o},S:function(t,i,o){o?It(i)&&i[$e].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[$e];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Tt(r,(function(e){e!==$e&&(void 0!==o[e]||Lt(o,e)?s[e]||t(r[e]):(s[e]=!0,ce(i)))})),Tt(o,(function(t){void 0!==r[t]||Lt(r,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Si=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};r(o)(t,i);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ei=Symbol("internalStoresUnsubscribers"),ki=Symbol("internalStores");class ji extends Mt{constructor(){super(...arguments),this[wi]=new Map,this[$i]=new Map}getUnnamedStore(){if(this[ki].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ki].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ki].get(t)}addStore(t,e){e=null!=e?e:t.name,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ki].delete(e)}setupStore(t,e){this[ki].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ki].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Ei].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ei]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Ei].has(t)&&this[Ei].get(t)(),this[Ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}wi=Ei,$i=ki;class Ci{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(n))return n;if(null==i)return;const o=vi(i),r=hi({reducer:o.reducer});return window.ftReduxStores[i.name]=new Ci(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ni,Mi,Ri;const Ai=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ri=null===(Mi=null===(Ni=window.safari)||void 0===Ni?void 0:Ni.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ri?Ri:""),Ui=1,Pi=2,Fi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
112
102
|
/**
|
|
113
103
|
* @license
|
|
114
104
|
* Copyright 2017 Google LLC
|
|
115
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/class
|
|
106
|
+
*/class Ii{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)}}
|
|
117
107
|
/**
|
|
118
108
|
* @license
|
|
119
109
|
* Copyright 2018 Google LLC
|
|
120
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
121
|
-
*/const
|
|
111
|
+
*/const zi=Fi(class extends Ii{constructor(t){var e;if(super(t),t.type!==Ui||"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,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return tt}}),Ti=wt.extend("--ft-ripple-color",Ot.colorContent),Bi={color:Ti,backgroundColor:wt.extend("--ft-ripple-background-color",Ti),opacityContentOnSurfacePressed:wt.external(Ot.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:wt.external(Ot.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:wt.external(Ot.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:wt.external(Ot.opacityContentOnSurfaceSelected,"Design system")},Li=wt.extend("--ft-ripple-color",Ot.colorPrimary),Di=Li,_i=wt.extend("--ft-ripple-background-color",Li),Wi=wt.extend("--ft-ripple-color",Ot.colorSecondary),Ki=Wi,Hi=wt.extend("--ft-ripple-background-color",Wi),Zi=x`
|
|
122
112
|
:host {
|
|
123
113
|
display: contents;
|
|
124
114
|
}
|
|
@@ -140,27 +130,27 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
140
130
|
}
|
|
141
131
|
|
|
142
132
|
.ft-ripple .ft-ripple--background {
|
|
143
|
-
background-color: ${
|
|
133
|
+
background-color: ${Bi.backgroundColor};
|
|
144
134
|
}
|
|
145
135
|
|
|
146
136
|
.ft-ripple .ft-ripple--effect {
|
|
147
|
-
background-color: ${
|
|
137
|
+
background-color: ${Bi.color};
|
|
148
138
|
}
|
|
149
139
|
|
|
150
140
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
151
|
-
background-color: ${
|
|
141
|
+
background-color: ${Hi};
|
|
152
142
|
}
|
|
153
143
|
|
|
154
144
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
155
|
-
background-color: ${
|
|
145
|
+
background-color: ${Ki};
|
|
156
146
|
}
|
|
157
147
|
|
|
158
148
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
159
|
-
background-color: ${
|
|
149
|
+
background-color: ${_i};
|
|
160
150
|
}
|
|
161
151
|
|
|
162
152
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
163
|
-
background-color: ${
|
|
153
|
+
background-color: ${Di};
|
|
164
154
|
}
|
|
165
155
|
|
|
166
156
|
.ft-ripple .ft-ripple--background {
|
|
@@ -192,22 +182,22 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
192
182
|
}
|
|
193
183
|
|
|
194
184
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
195
|
-
opacity: ${
|
|
185
|
+
opacity: ${Bi.opacityContentOnSurfaceHover};
|
|
196
186
|
}
|
|
197
187
|
|
|
198
188
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
199
|
-
opacity: ${
|
|
189
|
+
opacity: ${Bi.opacityContentOnSurfaceSelected};
|
|
200
190
|
}
|
|
201
191
|
|
|
202
192
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
203
|
-
opacity: ${
|
|
193
|
+
opacity: ${Bi.opacityContentOnSurfaceFocused};
|
|
204
194
|
}
|
|
205
195
|
|
|
206
196
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
207
|
-
opacity: ${
|
|
197
|
+
opacity: ${Bi.opacityContentOnSurfacePressed};
|
|
208
198
|
transform: translate(-50%, -50%) scale(1);
|
|
209
199
|
}
|
|
210
|
-
`;var
|
|
200
|
+
`;var qi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vi extends Mt{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 n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=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!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.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 Y`
|
|
211
201
|
<style>
|
|
212
202
|
.ft-ripple .ft-ripple--effect,
|
|
213
203
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -220,119 +210,119 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
220
210
|
top: ${this.originY}px;
|
|
221
211
|
}
|
|
222
212
|
</style>
|
|
223
|
-
<div class="${
|
|
213
|
+
<div class="${zi(t)}">
|
|
224
214
|
<div class="ft-ripple--background"></div>
|
|
225
215
|
<div class="ft-ripple--effect"></div>
|
|
226
216
|
</div>
|
|
227
|
-
`}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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;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"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}}
|
|
217
|
+
`}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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;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"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}}Vi.elementDefinitions={},Vi.styles=Zi,qi([r({type:Boolean})],Vi.prototype,"primary",void 0),qi([r({type:Boolean})],Vi.prototype,"secondary",void 0),qi([r({type:Boolean})],Vi.prototype,"unbounded",void 0),qi([r({type:Boolean})],Vi.prototype,"activated",void 0),qi([r({type:Boolean})],Vi.prototype,"selected",void 0),qi([r({type:Boolean})],Vi.prototype,"disabled",void 0),qi([s()],Vi.prototype,"hovered",void 0),qi([s()],Vi.prototype,"focused",void 0),qi([s()],Vi.prototype,"pressed",void 0),qi([s()],Vi.prototype,"rippling",void 0),qi([s()],Vi.prototype,"rippleSize",void 0),qi([s()],Vi.prototype,"originX",void 0),qi([s()],Vi.prototype,"originY",void 0),qi([l(".ft-ripple")],Vi.prototype,"ripple",void 0),qi([l(".ft-ripple--effect")],Vi.prototype,"rippleEffect",void 0),h("ft-ripple")(Vi);
|
|
228
218
|
/**
|
|
229
219
|
* @license
|
|
230
220
|
* Copyright 2020 Google LLC
|
|
231
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
232
222
|
*/
|
|
233
|
-
const
|
|
223
|
+
const Ji=Symbol.for(""),Xi=t=>{if((null==t?void 0:t.r)===Ji)return null==t?void 0:t._$litStatic$},Gi=t=>({_$litStatic$:t,r:Ji}),Qi=new Map,Yi=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=Xi(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=Qi.get(t))&&(s.raw=s,Qi.set(t,e=s)),i=a}return t(e,...i)})(Y);var tn;!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"}(tn||(tn={}));const en=wt.extend("--ft-typography-font-family",Ot.titleFont),nn=wt.extend("--ft-typography-font-family",Ot.contentFont),on={fontFamily:nn,fontSize:wt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:wt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:wt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:wt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:wt.create("--ft-typography-text-transform","UNKNOWN","inherit")},rn=wt.extend("--ft-typography-title-font-family",en),sn=wt.extend("--ft-typography-title-font-size",on.fontSize,"20px"),an=wt.extend("--ft-typography-title-font-weight",on.fontWeight,"normal"),ln=wt.extend("--ft-typography-title-letter-spacing",on.letterSpacing,"0.15px"),cn=wt.extend("--ft-typography-title-line-height",on.lineHeight,"1.2"),un=wt.extend("--ft-typography-title-text-transform",on.textTransform,"inherit"),fn=wt.extend("--ft-typography-title-dense-font-family",en),hn=wt.extend("--ft-typography-title-dense-font-size",on.fontSize,"14px"),pn=wt.extend("--ft-typography-title-dense-font-weight",on.fontWeight,"normal"),dn=wt.extend("--ft-typography-title-dense-letter-spacing",on.letterSpacing,"0.105px"),vn=wt.extend("--ft-typography-title-dense-line-height",on.lineHeight,"1.7"),bn=wt.extend("--ft-typography-title-dense-text-transform",on.textTransform,"inherit"),yn=wt.extend("--ft-typography-subtitle1-font-family",nn),gn=wt.extend("--ft-typography-subtitle1-font-size",on.fontSize,"16px"),mn=wt.extend("--ft-typography-subtitle1-font-weight",on.fontWeight,"600"),xn=wt.extend("--ft-typography-subtitle1-letter-spacing",on.letterSpacing,"0.144px"),wn=wt.extend("--ft-typography-subtitle1-line-height",on.lineHeight,"1.5"),$n=wt.extend("--ft-typography-subtitle1-text-transform",on.textTransform,"inherit"),On=wt.extend("--ft-typography-subtitle2-font-family",nn),Sn=wt.extend("--ft-typography-subtitle2-font-size",on.fontSize,"14px"),En=wt.extend("--ft-typography-subtitle2-font-weight",on.fontWeight,"normal"),kn=wt.extend("--ft-typography-subtitle2-letter-spacing",on.letterSpacing,"0.098px"),jn=wt.extend("--ft-typography-subtitle2-line-height",on.lineHeight,"1.7"),Cn=wt.extend("--ft-typography-subtitle2-text-transform",on.textTransform,"inherit"),Nn=wt.extend("--ft-typography-body1-font-family",nn),Mn=wt.extend("--ft-typography-body1-font-size",on.fontSize,"16px"),Rn=wt.extend("--ft-typography-body1-font-weight",on.fontWeight,"normal"),An=wt.extend("--ft-typography-body1-letter-spacing",on.letterSpacing,"0.496px"),Un=wt.extend("--ft-typography-body1-line-height",on.lineHeight,"1.5"),Pn=wt.extend("--ft-typography-body1-text-transform",on.textTransform,"inherit"),Fn=wt.extend("--ft-typography-body2-font-family",nn),In=wt.extend("--ft-typography-body2-font-size",on.fontSize,"14px"),zn=wt.extend("--ft-typography-body2-font-weight",on.fontWeight,"normal"),Tn=wt.extend("--ft-typography-body2-letter-spacing",on.letterSpacing,"0.252px"),Bn=wt.extend("--ft-typography-body2-line-height",on.lineHeight,"1.4"),Ln=wt.extend("--ft-typography-body2-text-transform",on.textTransform,"inherit"),Dn=wt.extend("--ft-typography-caption-font-family",nn),_n=wt.extend("--ft-typography-caption-font-size",on.fontSize,"12px"),Wn=wt.extend("--ft-typography-caption-font-weight",on.fontWeight,"normal"),Kn=wt.extend("--ft-typography-caption-letter-spacing",on.letterSpacing,"0.396px"),Hn=wt.extend("--ft-typography-caption-line-height",on.lineHeight,"1.33"),Zn=wt.extend("--ft-typography-caption-text-transform",on.textTransform,"inherit"),qn=wt.extend("--ft-typography-breadcrumb-font-family",nn),Vn=wt.extend("--ft-typography-breadcrumb-font-size",on.fontSize,"10px"),Jn=wt.extend("--ft-typography-breadcrumb-font-weight",on.fontWeight,"normal"),Xn=wt.extend("--ft-typography-breadcrumb-letter-spacing",on.letterSpacing,"0.33px"),Gn=wt.extend("--ft-typography-breadcrumb-line-height",on.lineHeight,"1.6"),Qn=wt.extend("--ft-typography-breadcrumb-text-transform",on.textTransform,"inherit"),Yn=wt.extend("--ft-typography-overline-font-family",nn),to=wt.extend("--ft-typography-overline-font-size",on.fontSize,"10px"),eo=wt.extend("--ft-typography-overline-font-weight",on.fontWeight,"normal"),io=wt.extend("--ft-typography-overline-letter-spacing",on.letterSpacing,"1.5px"),no=wt.extend("--ft-typography-overline-line-height",on.lineHeight,"1.6"),oo=wt.extend("--ft-typography-overline-text-transform",on.textTransform,"uppercase"),ro={fontFamily:wt.extend("--ft-typography-button-font-family",nn),fontSize:wt.extend("--ft-typography-button-font-size",on.fontSize,"14px"),fontWeight:wt.extend("--ft-typography-button-font-weight",on.fontWeight,"600"),letterSpacing:wt.extend("--ft-typography-button-letter-spacing",on.letterSpacing,"1.246px"),lineHeight:wt.extend("--ft-typography-button-line-height",on.lineHeight,"1.15"),textTransform:wt.extend("--ft-typography-button-text-transform",on.textTransform,"uppercase")},so=x`
|
|
234
224
|
.ft-typography--title {
|
|
235
|
-
font-family: ${
|
|
236
|
-
font-size: ${
|
|
237
|
-
font-weight: ${
|
|
238
|
-
letter-spacing: ${
|
|
239
|
-
line-height: ${
|
|
240
|
-
text-transform: ${
|
|
241
|
-
}
|
|
242
|
-
`,
|
|
225
|
+
font-family: ${rn};
|
|
226
|
+
font-size: ${sn};
|
|
227
|
+
font-weight: ${an};
|
|
228
|
+
letter-spacing: ${ln};
|
|
229
|
+
line-height: ${cn};
|
|
230
|
+
text-transform: ${un};
|
|
231
|
+
}
|
|
232
|
+
`,ao=x`
|
|
243
233
|
.ft-typography--title-dense {
|
|
244
|
-
font-family: ${
|
|
245
|
-
font-size: ${
|
|
246
|
-
font-weight: ${
|
|
247
|
-
letter-spacing: ${
|
|
248
|
-
line-height: ${
|
|
249
|
-
text-transform: ${
|
|
250
|
-
}
|
|
251
|
-
`,
|
|
234
|
+
font-family: ${fn};
|
|
235
|
+
font-size: ${hn};
|
|
236
|
+
font-weight: ${pn};
|
|
237
|
+
letter-spacing: ${dn};
|
|
238
|
+
line-height: ${vn};
|
|
239
|
+
text-transform: ${bn};
|
|
240
|
+
}
|
|
241
|
+
`,lo=x`
|
|
252
242
|
.ft-typography--subtitle1 {
|
|
253
|
-
font-family: ${
|
|
254
|
-
font-size: ${
|
|
255
|
-
font-weight: ${
|
|
256
|
-
letter-spacing: ${
|
|
257
|
-
line-height: ${
|
|
258
|
-
text-transform: ${
|
|
259
|
-
}
|
|
260
|
-
`,
|
|
243
|
+
font-family: ${yn};
|
|
244
|
+
font-size: ${gn};
|
|
245
|
+
font-weight: ${mn};
|
|
246
|
+
letter-spacing: ${xn};
|
|
247
|
+
line-height: ${wn};
|
|
248
|
+
text-transform: ${$n};
|
|
249
|
+
}
|
|
250
|
+
`,co=x`
|
|
261
251
|
.ft-typography--subtitle2 {
|
|
262
|
-
font-family: ${
|
|
263
|
-
font-size: ${
|
|
264
|
-
font-weight: ${
|
|
265
|
-
letter-spacing: ${
|
|
266
|
-
line-height: ${
|
|
267
|
-
text-transform: ${
|
|
252
|
+
font-family: ${On};
|
|
253
|
+
font-size: ${Sn};
|
|
254
|
+
font-weight: ${En};
|
|
255
|
+
letter-spacing: ${kn};
|
|
256
|
+
line-height: ${jn};
|
|
257
|
+
text-transform: ${Cn};
|
|
268
258
|
}
|
|
269
259
|
|
|
270
|
-
`,
|
|
260
|
+
`,uo=x`
|
|
271
261
|
.ft-typography--body1 {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
275
|
-
letter-spacing: ${
|
|
276
|
-
line-height: ${dn};
|
|
277
|
-
text-transform: ${vn};
|
|
278
|
-
}
|
|
279
|
-
`,Zn=x`
|
|
280
|
-
.ft-typography--body2 {
|
|
281
|
-
font-family: ${bn};
|
|
282
|
-
font-size: ${yn};
|
|
283
|
-
font-weight: ${gn};
|
|
284
|
-
letter-spacing: ${mn};
|
|
285
|
-
line-height: ${xn};
|
|
286
|
-
text-transform: ${wn};
|
|
287
|
-
}
|
|
288
|
-
`,Vn=x`
|
|
289
|
-
.ft-typography--caption {
|
|
290
|
-
font-family: ${$n};
|
|
291
|
-
font-size: ${On};
|
|
292
|
-
font-weight: ${Sn};
|
|
293
|
-
letter-spacing: ${En};
|
|
294
|
-
line-height: ${kn};
|
|
295
|
-
text-transform: ${jn};
|
|
296
|
-
}
|
|
297
|
-
`,qn=x`
|
|
298
|
-
.ft-typography--breadcrumb {
|
|
299
|
-
font-family: ${Cn};
|
|
300
|
-
font-size: ${Nn};
|
|
301
|
-
font-weight: ${Mn};
|
|
302
|
-
letter-spacing: ${Rn};
|
|
262
|
+
font-family: ${Nn};
|
|
263
|
+
font-size: ${Mn};
|
|
264
|
+
font-weight: ${Rn};
|
|
265
|
+
letter-spacing: ${An};
|
|
303
266
|
line-height: ${Un};
|
|
304
|
-
text-transform: ${
|
|
267
|
+
text-transform: ${Pn};
|
|
305
268
|
}
|
|
306
|
-
`,
|
|
307
|
-
.ft-typography--
|
|
308
|
-
font-family: ${
|
|
309
|
-
font-size: ${
|
|
269
|
+
`,fo=x`
|
|
270
|
+
.ft-typography--body2 {
|
|
271
|
+
font-family: ${Fn};
|
|
272
|
+
font-size: ${In};
|
|
310
273
|
font-weight: ${zn};
|
|
311
|
-
letter-spacing: ${
|
|
274
|
+
letter-spacing: ${Tn};
|
|
312
275
|
line-height: ${Bn};
|
|
313
|
-
text-transform: ${
|
|
276
|
+
text-transform: ${Ln};
|
|
314
277
|
}
|
|
315
|
-
`,
|
|
278
|
+
`,ho=x`
|
|
279
|
+
.ft-typography--caption {
|
|
280
|
+
font-family: ${Dn};
|
|
281
|
+
font-size: ${_n};
|
|
282
|
+
font-weight: ${Wn};
|
|
283
|
+
letter-spacing: ${Kn};
|
|
284
|
+
line-height: ${Hn};
|
|
285
|
+
text-transform: ${Zn};
|
|
286
|
+
}
|
|
287
|
+
`,po=x`
|
|
288
|
+
.ft-typography--breadcrumb {
|
|
289
|
+
font-family: ${qn};
|
|
290
|
+
font-size: ${Vn};
|
|
291
|
+
font-weight: ${Jn};
|
|
292
|
+
letter-spacing: ${Xn};
|
|
293
|
+
line-height: ${Gn};
|
|
294
|
+
text-transform: ${Qn};
|
|
295
|
+
}
|
|
296
|
+
`,vo=x`
|
|
297
|
+
.ft-typography--overline {
|
|
298
|
+
font-family: ${Yn};
|
|
299
|
+
font-size: ${to};
|
|
300
|
+
font-weight: ${eo};
|
|
301
|
+
letter-spacing: ${io};
|
|
302
|
+
line-height: ${no};
|
|
303
|
+
text-transform: ${oo};
|
|
304
|
+
}
|
|
305
|
+
`,bo=x`
|
|
316
306
|
.ft-typography--button {
|
|
317
|
-
font-family: ${
|
|
318
|
-
font-size: ${
|
|
319
|
-
font-weight: ${
|
|
320
|
-
letter-spacing: ${
|
|
321
|
-
line-height: ${
|
|
322
|
-
text-transform: ${
|
|
323
|
-
}
|
|
324
|
-
`,
|
|
307
|
+
font-family: ${ro.fontFamily};
|
|
308
|
+
font-size: ${ro.fontSize};
|
|
309
|
+
font-weight: ${ro.fontWeight};
|
|
310
|
+
letter-spacing: ${ro.letterSpacing};
|
|
311
|
+
line-height: ${ro.lineHeight};
|
|
312
|
+
text-transform: ${ro.textTransform};
|
|
313
|
+
}
|
|
314
|
+
`,yo=x`
|
|
325
315
|
.ft-typography {
|
|
326
316
|
vertical-align: inherit;
|
|
327
317
|
}
|
|
328
|
-
`;var
|
|
329
|
-
<${
|
|
318
|
+
`;var go=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mo extends Mt{constructor(){super(...arguments),this.variant=tn.body1}render(){return this.element?Yi`
|
|
319
|
+
<${Gi(this.element)}
|
|
330
320
|
class="ft-typography ft-typography--${this.variant}">
|
|
331
321
|
<slot></slot>
|
|
332
|
-
</${
|
|
333
|
-
`:
|
|
322
|
+
</${Gi(this.element)}>
|
|
323
|
+
`:Yi`
|
|
334
324
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
335
|
-
`}}
|
|
325
|
+
`}}mo.styles=[so,ao,lo,co,uo,fo,ho,po,vo,bo,yo],go([r()],mo.prototype,"element",void 0),go([r()],mo.prototype,"variant",void 0),h("ft-typography")(mo);const xo={distance:wt.create("--ft-tooltip-distance","SIZE","4px"),color:wt.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:wt.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:wt.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:wt.external(Ot.borderRadiusS,"Design system"),maxWidth:wt.create("--ft-tooltip-max-width","SIZE","150px")},wo=x`
|
|
336
326
|
.ft-tooltip--container {
|
|
337
327
|
display: block;
|
|
338
328
|
position: relative;
|
|
@@ -348,23 +338,23 @@ const Mi=Symbol.for(""),Ri=t=>{if((null==t?void 0:t.r)===Mi)return null==t?void
|
|
|
348
338
|
box-sizing: border-box;
|
|
349
339
|
overflow: hidden;
|
|
350
340
|
width: max-content;
|
|
351
|
-
max-width: ${
|
|
341
|
+
max-width: ${xo.maxWidth};
|
|
352
342
|
text-align: center;
|
|
353
|
-
padding: ${
|
|
354
|
-
z-index: ${
|
|
343
|
+
padding: ${xo.distance};
|
|
344
|
+
z-index: ${xo.zIndex};
|
|
355
345
|
}
|
|
356
346
|
|
|
357
347
|
.ft-tooltip--content {
|
|
358
348
|
padding: 4px 8px;
|
|
359
|
-
border-radius: ${
|
|
360
|
-
background-color: ${
|
|
361
|
-
color: ${
|
|
349
|
+
border-radius: ${xo.borderRadiusS};
|
|
350
|
+
background-color: ${xo.backgroundColor};
|
|
351
|
+
color: ${xo.color};
|
|
362
352
|
top: -500px;
|
|
363
353
|
left: -500px;
|
|
364
354
|
position: relative;
|
|
365
355
|
word-break: break-word;
|
|
366
356
|
}
|
|
367
|
-
`;var
|
|
357
|
+
`;var $o=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Oo extends Mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Y`
|
|
368
358
|
<div part="container"
|
|
369
359
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
370
360
|
@mouseenter=${this.onHover}
|
|
@@ -382,13 +372,13 @@ const Mi=Symbol.for(""),Ri=t=>{if((null==t?void 0:t.r)===Mi)return null==t?void
|
|
|
382
372
|
</div>
|
|
383
373
|
</div>
|
|
384
374
|
</div>
|
|
385
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=0);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${
|
|
375
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=0);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${xo.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Oo.elementDefinitions={"ft-typography":mo},Oo.styles=wo,$o([r()],Oo.prototype,"text",void 0),$o([r({type:Boolean})],Oo.prototype,"manual",void 0),$o([r({type:Boolean})],Oo.prototype,"inline",void 0),$o([r({type:Number})],Oo.prototype,"delay",void 0),$o([r()],Oo.prototype,"position",void 0),$o([
|
|
386
376
|
/**
|
|
387
377
|
* @license
|
|
388
378
|
* Copyright 2017 Google LLC
|
|
389
379
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
390
380
|
*/
|
|
391
|
-
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return a({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?u(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
381
|
+
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return a({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?u(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Oo.prototype,"slotNodes",void 0),$o([l(".ft-tooltip--container")],Oo.prototype,"container",void 0),$o([l("slot")],Oo.prototype,"target",void 0),$o([l(".ft-tooltip")],Oo.prototype,"tooltip",void 0),$o([l(".ft-tooltip--content")],Oo.prototype,"tooltipContent",void 0),$o([s()],Oo.prototype,"visible",void 0),h("ft-tooltip")(Oo);const So={color:wt.extend("--ft-loader-color",Ot.colorPrimary),size:wt.create("--ft-loader-size","SIZE","80px")},Eo=x`
|
|
392
382
|
:host {
|
|
393
383
|
line-height: 0;
|
|
394
384
|
}
|
|
@@ -397,8 +387,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
397
387
|
display: inline-block;
|
|
398
388
|
position: relative;
|
|
399
389
|
|
|
400
|
-
width: ${
|
|
401
|
-
height: ${
|
|
390
|
+
width: ${So.size};
|
|
391
|
+
height: ${So.size};
|
|
402
392
|
}
|
|
403
393
|
|
|
404
394
|
.ft-loader div {
|
|
@@ -407,7 +397,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
407
397
|
width: 25%;
|
|
408
398
|
height: 25%;
|
|
409
399
|
border-radius: 50%;
|
|
410
|
-
background: ${
|
|
400
|
+
background: ${So.color};
|
|
411
401
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
412
402
|
}
|
|
413
403
|
|
|
@@ -454,23 +444,23 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
454
444
|
transform: translate(0, 0);
|
|
455
445
|
}
|
|
456
446
|
100% {
|
|
457
|
-
transform: translate(calc(0.35 * ${
|
|
447
|
+
transform: translate(calc(0.35 * ${So.size}), 0);
|
|
458
448
|
}
|
|
459
449
|
}
|
|
460
|
-
`;class
|
|
450
|
+
`;class ko extends Mt{render(){return Y`
|
|
461
451
|
<div class="ft-loader">
|
|
462
452
|
<div></div>
|
|
463
453
|
<div></div>
|
|
464
454
|
<div></div>
|
|
465
455
|
<div></div>
|
|
466
456
|
</div>
|
|
467
|
-
`}}
|
|
457
|
+
`}}ko.styles=Eo,h("ft-loader")(ko);
|
|
468
458
|
/**
|
|
469
459
|
* @license
|
|
470
460
|
* Copyright 2017 Google LLC
|
|
471
461
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
472
462
|
*/
|
|
473
|
-
class
|
|
463
|
+
class jo extends Ii{constructor(t){if(super(t),this.et=et,t.type!==Pi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.ft=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}jo.directiveName="unsafeHTML",jo.resultType=1;const Co=Fi(jo);var No,Mo;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(No||(No={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Mo||(Mo={}));const Ro=new Map([...["abw"].map((t=>[t,Mo.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,Mo.AUDIO])),...["avi"].map((t=>[t,Mo.AVI])),...["chm","xhs"].map((t=>[t,Mo.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,Mo.CODE])),...["csv"].map((t=>[t,Mo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mo.DITA])),...["epub"].map((t=>[t,Mo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mo.EXCEL])),...["flac"].map((t=>[t,Mo.FLAC])),...["gif"].map((t=>[t,Mo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mo.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,Mo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mo.JPEG])),...["json"].map((t=>[t,Mo.JSON])),...["m4a","m4p"].map((t=>[t,Mo.M4A])),...["mov","qt"].map((t=>[t,Mo.MOV])),...["mp3"].map((t=>[t,Mo.MP3])),...["mp4","m4v"].map((t=>[t,Mo.MP4])),...["ogg","oga"].map((t=>[t,Mo.OGG])),...["pdf","ps"].map((t=>[t,Mo.PDF])),...["png"].map((t=>[t,Mo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mo.POWERPOINT])),...["rar"].map((t=>[t,Mo.RAR])),...["stp"].map((t=>[t,Mo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mo.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,Mo.VIDEO])),...["wav"].map((t=>[t,Mo.WAV])),...["wma"].map((t=>[t,Mo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mo.YAML])),...["zip"].map((t=>[t,Mo.ZIP]))]),Ao=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Uo={size:wt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:wt.extend("--ft-icon-fluid-topics-font-family",wt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:wt.extend("--ft-icon-file-format-font-family",wt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:wt.extend("--ft-icon-material-font-family",wt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:wt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Po=x`
|
|
474
464
|
:host, i.ft-icon {
|
|
475
465
|
display: inline-flex;
|
|
476
466
|
align-items: center;
|
|
@@ -479,14 +469,14 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
479
469
|
}
|
|
480
470
|
|
|
481
471
|
:host {
|
|
482
|
-
width: ${
|
|
483
|
-
height: ${
|
|
472
|
+
width: ${Uo.size};
|
|
473
|
+
height: ${Uo.size};
|
|
484
474
|
}
|
|
485
475
|
|
|
486
476
|
i.ft-icon {
|
|
487
477
|
width: 100%;
|
|
488
478
|
height: 100%;
|
|
489
|
-
font-size: ${
|
|
479
|
+
font-size: ${Uo.size};
|
|
490
480
|
line-height: 1;
|
|
491
481
|
font-weight: normal;
|
|
492
482
|
text-transform: none;
|
|
@@ -497,32 +487,32 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
497
487
|
text-rendering: auto;
|
|
498
488
|
-webkit-font-smoothing: antialiased;
|
|
499
489
|
-moz-osx-font-smoothing: grayscale;
|
|
500
|
-
vertical-align: ${
|
|
490
|
+
vertical-align: ${Uo.verticalAlign};
|
|
501
491
|
}
|
|
502
492
|
|
|
503
493
|
i.ft-icon.ft-icon--fluid-topics {
|
|
504
|
-
font-family: ${
|
|
494
|
+
font-family: ${Uo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
505
495
|
|
|
506
496
|
/* Ugly fix because font is broken */
|
|
507
|
-
font-size: calc(0.
|
|
497
|
+
font-size: calc(0.75 * ${Uo.size});
|
|
508
498
|
position: relative;
|
|
509
|
-
top: -
|
|
499
|
+
top: -4%;
|
|
510
500
|
justify-content: center;
|
|
511
501
|
}
|
|
512
502
|
|
|
513
503
|
.ft-icon--file-format {
|
|
514
|
-
font-family: ${
|
|
504
|
+
font-family: ${Uo.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
515
505
|
}
|
|
516
506
|
|
|
517
507
|
.ft-icon--material {
|
|
518
|
-
font-family: ${
|
|
508
|
+
font-family: ${Uo.materialFontFamily}, "Material Icons", sans-serif;
|
|
519
509
|
}
|
|
520
|
-
`;var
|
|
521
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
522
|
-
${
|
|
523
|
-
<slot ?hidden=${
|
|
510
|
+
`;var Fo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fo||(Fo={}));var Io=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zo extends Mt{constructor(){super(...arguments),this.resolvedIcon=et}render(){const t=this.variant&&Object.values(Fo).includes(this.variant)?this.variant:Fo.fluid_topics,e=t!==Fo.material||!!this.value;return Y`
|
|
511
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
512
|
+
${Co(this.resolvedIcon)}
|
|
513
|
+
<slot ?hidden=${e}></slot>
|
|
524
514
|
</i>
|
|
525
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
515
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Fo.file_format:this.resolvedIcon=null!==(t=Mo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Fo.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=No[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zo.elementDefinitions={},zo.styles=Po,Io([r()],zo.prototype,"variant",void 0),Io([r()],zo.prototype,"value",void 0),Io([s()],zo.prototype,"resolvedIcon",void 0),Io([l("slot")],zo.prototype,"slottedContent",void 0),h("ft-icon")(zo);const To=wt.extend("--ft-button-color",Ot.colorPrimary),Bo={backgroundColor:wt.extend("--ft-button-background-color",Ot.colorSurface),borderRadius:wt.extend("--ft-button-border-radius",Ot.borderRadiusL),color:To,fontSize:wt.extend("--ft-button-font-size",ro.fontSize),iconSize:wt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:wt.extend("--ft-button-ripple-color",To),verticalPadding:wt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:wt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:wt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:wt.external(Ot.colorOpacityDisabled,"Design system")},Lo=wt.extend("--ft-button-primary-color",wt.extend("--ft-button-color",Ot.colorOnPrimary)),Do={backgroundColor:wt.extend("--ft-button-primary-background-color",wt.extend("--ft-button-background-color",Ot.colorPrimary)),color:Lo,rippleColor:wt.extend("--ft-button-primary-ripple-color",Lo)},_o=wt.extend("--ft-button-dense-border-radius",wt.extend("--ft-button-border-radius",Ot.borderRadiusM)),Wo=wt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ko=wt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ho=wt.create("--ft-button-dense-icon-padding","SIZE","4px"),Zo=[Rt,x`
|
|
526
516
|
:host {
|
|
527
517
|
display: inline-block;
|
|
528
518
|
max-width: 100%;
|
|
@@ -533,7 +523,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
533
523
|
box-shadow: 0px 0px 0px transparent;
|
|
534
524
|
border: 0px solid transparent;
|
|
535
525
|
text-shadow: 0px 0px 0px transparent;
|
|
536
|
-
font-size: ${
|
|
526
|
+
font-size: ${Bo.fontSize};
|
|
537
527
|
}
|
|
538
528
|
|
|
539
529
|
button:hover {
|
|
@@ -562,32 +552,32 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
562
552
|
border: none;
|
|
563
553
|
pointer-events: auto;
|
|
564
554
|
|
|
565
|
-
--ft-button-internal-line-height: calc(${
|
|
566
|
-
--ft-button-internal-color: ${
|
|
567
|
-
${
|
|
568
|
-
${
|
|
569
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
555
|
+
--ft-button-internal-line-height: calc(${Bo.fontSize} + 2px);
|
|
556
|
+
--ft-button-internal-color: ${Bo.color};
|
|
557
|
+
${$t(Uo.size,Bo.iconSize)};
|
|
558
|
+
${$t(Bi.color,Bo.rippleColor)};
|
|
559
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Bo.iconSize});
|
|
570
560
|
|
|
571
|
-
border-radius: ${
|
|
572
|
-
padding: ${
|
|
573
|
-
background-color: ${
|
|
561
|
+
border-radius: ${Bo.borderRadius};
|
|
562
|
+
padding: ${Bo.verticalPadding} ${Bo.horizontalPadding};
|
|
563
|
+
background-color: ${Bo.backgroundColor};
|
|
574
564
|
color: var(--ft-button-internal-color);
|
|
575
565
|
-webkit-mask-image: radial-gradient(white, black);
|
|
576
566
|
}
|
|
577
567
|
|
|
578
568
|
.ft-button.ft-button--outlined {
|
|
579
569
|
border: 1px solid var(--ft-button-internal-color);
|
|
580
|
-
padding: calc(${
|
|
570
|
+
padding: calc(${Bo.verticalPadding} - 1px) calc(${Bo.horizontalPadding} - 1px);
|
|
581
571
|
}
|
|
582
572
|
|
|
583
573
|
.ft-button.ft-button--dense {
|
|
584
|
-
padding: ${
|
|
585
|
-
border-radius: ${
|
|
586
|
-
gap: ${
|
|
574
|
+
padding: ${Wo} ${Ko};
|
|
575
|
+
border-radius: ${_o};
|
|
576
|
+
gap: ${Ho};
|
|
587
577
|
}
|
|
588
578
|
|
|
589
579
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
590
|
-
padding: calc(${
|
|
580
|
+
padding: calc(${Wo} - 1px) calc(${Ko} - 1px);
|
|
591
581
|
}
|
|
592
582
|
|
|
593
583
|
.ft-button:not([disabled]):hover {
|
|
@@ -595,22 +585,22 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
595
585
|
}
|
|
596
586
|
|
|
597
587
|
.ft-button--round {
|
|
598
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
588
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Bo.verticalPadding});
|
|
599
589
|
}
|
|
600
590
|
|
|
601
591
|
.ft-button--round.ft-button--dense {
|
|
602
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
592
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Wo});
|
|
603
593
|
}
|
|
604
594
|
|
|
605
595
|
.ft-button[disabled] {
|
|
606
596
|
filter: grayscale(1);
|
|
607
|
-
opacity: ${
|
|
597
|
+
opacity: ${Bo.opacityDisabled};
|
|
608
598
|
}
|
|
609
599
|
|
|
610
600
|
.ft-button.ft-button--primary {
|
|
611
|
-
background-color: ${
|
|
612
|
-
--ft-button-internal-color: ${
|
|
613
|
-
${
|
|
601
|
+
background-color: ${Do.backgroundColor};
|
|
602
|
+
--ft-button-internal-color: ${Do.color};
|
|
603
|
+
${$t(Bi.color,Do.rippleColor)};
|
|
614
604
|
}
|
|
615
605
|
|
|
616
606
|
.ft-button:focus {
|
|
@@ -623,13 +613,13 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
623
613
|
white-space: nowrap;
|
|
624
614
|
text-overflow: ellipsis;
|
|
625
615
|
display: block;
|
|
626
|
-
margin: 0 ${
|
|
627
|
-
${
|
|
628
|
-
${
|
|
616
|
+
margin: 0 ${Bo.iconPadding};
|
|
617
|
+
${$t(ro.fontSize,"1em")};
|
|
618
|
+
${$t(ro.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
629
619
|
}
|
|
630
620
|
|
|
631
621
|
.ft-button--dense .ft-button--label {
|
|
632
|
-
margin: 0 ${
|
|
622
|
+
margin: 0 ${Ho};
|
|
633
623
|
}
|
|
634
624
|
|
|
635
625
|
.ft-button--label[hidden] {
|
|
@@ -642,13 +632,13 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
642
632
|
}
|
|
643
633
|
|
|
644
634
|
.ft-button--label[hidden] + ft-icon {
|
|
645
|
-
margin: 0 calc(${
|
|
646
|
-
padding: 0 ${
|
|
635
|
+
margin: 0 calc(${Bo.horizontalPadding} * -1);
|
|
636
|
+
padding: 0 ${Bo.verticalPadding};
|
|
647
637
|
}
|
|
648
638
|
|
|
649
639
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
650
|
-
margin: 0 calc(${
|
|
651
|
-
padding: 0 ${
|
|
640
|
+
margin: 0 calc(${Ko} * -1);
|
|
641
|
+
padding: 0 ${Wo};
|
|
652
642
|
}
|
|
653
643
|
|
|
654
644
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -657,33 +647,33 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
657
647
|
}
|
|
658
648
|
|
|
659
649
|
ft-loader {
|
|
660
|
-
${
|
|
661
|
-
${
|
|
650
|
+
${$t(So.size,Bo.iconSize)};
|
|
651
|
+
${$t(So.color,"var(--ft-button-internal-color)")};
|
|
662
652
|
}
|
|
663
|
-
`];var
|
|
653
|
+
`];var qo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vo extends Mt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Y`
|
|
664
654
|
<button part="button"
|
|
665
|
-
class="${
|
|
655
|
+
class="${zi(t)}"
|
|
666
656
|
aria-label="${this.getLabel()}"
|
|
667
657
|
?disabled=${this.isDisabled()}>
|
|
668
658
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
669
659
|
<ft-typography part="label"
|
|
670
660
|
variant="button"
|
|
671
661
|
element="span"
|
|
672
|
-
class="ft-button--label ${
|
|
662
|
+
class="ft-button--label ${Ai?"ft-safari-ellipsis-fix":""}"
|
|
673
663
|
?hidden=${!this.hasTextContent()}>
|
|
674
664
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
675
665
|
</ft-typography>
|
|
676
666
|
${this.resolveIcon()}
|
|
677
667
|
</button>
|
|
678
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
668
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Y`
|
|
679
669
|
<ft-tooltip part="tooltip"
|
|
680
670
|
text="${this.getLabel()}"
|
|
681
671
|
position="${this.tooltipPosition}">
|
|
682
672
|
${t}
|
|
683
673
|
</ft-tooltip>
|
|
684
|
-
`:t}resolveIcon(){return this.loading?
|
|
685
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
686
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
674
|
+
`:t}resolveIcon(){return this.loading?Y`
|
|
675
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Y`
|
|
676
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}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}}Vo.elementDefinitions={"ft-ripple":Vi,"ft-tooltip":Oo,"ft-typography":mo,"ft-icon":zo,"ft-loader":ko},Vo.styles=[Ut,Zo],qo([r({type:String,reflect:!0})],Vo.prototype,"role",void 0),qo([r({type:Boolean})],Vo.prototype,"primary",void 0),qo([r({type:Boolean})],Vo.prototype,"outlined",void 0),qo([r({type:Boolean})],Vo.prototype,"disabled",void 0),qo([r({type:Boolean})],Vo.prototype,"dense",void 0),qo([r({type:Boolean})],Vo.prototype,"round",void 0),qo([r()],Vo.prototype,"label",void 0),qo([r()],Vo.prototype,"icon",void 0),qo([r()],Vo.prototype,"iconVariant",void 0),qo([r({type:Boolean})],Vo.prototype,"trailingIcon",void 0),qo([r({type:Boolean})],Vo.prototype,"loading",void 0),qo([r()],Vo.prototype,"tooltipPosition",void 0),qo([r({type:Boolean})],Vo.prototype,"hideTooltip",void 0),qo([r({type:Boolean})],Vo.prototype,"forceTooltip",void 0),qo([l(".ft-button")],Vo.prototype,"button",void 0),qo([l(".ft-button--label slot")],Vo.prototype,"slottedContent",void 0),h("ft-button")(Vo);const Jo={height:wt.create("--ft-search-input-height","SIZE","38px"),borderRadius:wt.extend("--ft-search-input-border-radius",Ot.borderRadiusS),desktopFiltersHeight:wt.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:wt.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:wt.external(Ot.colorSurface,"Design system"),colorOnSurface:wt.external(Ot.colorOnSurface,"Design system"),colorOnSurfaceMedium:wt.external(Ot.colorOnSurfaceMedium,"Design system"),colorOutline:wt.external(Ot.colorOutline,"Design system"),colorPrimary:wt.external(Ot.colorPrimary,"Design system"),elevation02:wt.external(Ot.elevation02,"Design system"),buttonColor:wt.external(Bo.color,"Button"),buttonRippleColor:wt.external(Bo.rippleColor,"Button")},Xo=x`
|
|
687
677
|
* {
|
|
688
678
|
box-sizing: border-box;
|
|
689
679
|
}
|
|
@@ -693,11 +683,11 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
693
683
|
display: flex;
|
|
694
684
|
flex-direction: row;
|
|
695
685
|
align-items: center;
|
|
696
|
-
height: ${
|
|
686
|
+
height: ${Jo.height};
|
|
697
687
|
|
|
698
|
-
background: ${
|
|
699
|
-
border: 1px solid ${
|
|
700
|
-
border-radius: ${
|
|
688
|
+
background: ${Jo.colorSurface};
|
|
689
|
+
border: 1px solid ${Jo.colorOutline};
|
|
690
|
+
border-radius: ${Jo.borderRadius};
|
|
701
691
|
}
|
|
702
692
|
|
|
703
693
|
.ft-search-input--input-container {
|
|
@@ -712,23 +702,23 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
712
702
|
width: 100%;
|
|
713
703
|
display: grid;
|
|
714
704
|
padding: 0 8px;
|
|
715
|
-
border-radius: ${
|
|
705
|
+
border-radius: ${Jo.borderRadius};
|
|
716
706
|
}
|
|
717
707
|
|
|
718
708
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
719
|
-
outline: 2px solid ${
|
|
709
|
+
outline: 2px solid ${Jo.colorPrimary};
|
|
720
710
|
}
|
|
721
711
|
|
|
722
712
|
.ft-search-input--input {
|
|
723
713
|
height: 100%;
|
|
724
714
|
border: none;
|
|
725
715
|
background-color: transparent;
|
|
726
|
-
color: ${
|
|
716
|
+
color: ${Jo.colorOnSurface};
|
|
727
717
|
outline: none;
|
|
728
718
|
}
|
|
729
719
|
|
|
730
720
|
.ft-search-input--input::placeholder {
|
|
731
|
-
color: ${
|
|
721
|
+
color: ${Jo.colorOnSurfaceMedium};
|
|
732
722
|
}
|
|
733
723
|
|
|
734
724
|
.ft-search-input--actions {
|
|
@@ -738,13 +728,13 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
738
728
|
align-items: center;
|
|
739
729
|
height: 100%;
|
|
740
730
|
|
|
741
|
-
${
|
|
731
|
+
${$t(xo.zIndex,`calc(${Jo.floatingZIndex} + 1)`)};
|
|
742
732
|
}
|
|
743
733
|
|
|
744
734
|
.ft-search-input > ft-button,
|
|
745
735
|
.ft-search-input--actions ft-button {
|
|
746
736
|
flex-shrink: 0;
|
|
747
|
-
${
|
|
737
|
+
${$t(Bo.backgroundColor,"transparent")};
|
|
748
738
|
}
|
|
749
739
|
|
|
750
740
|
.ft-search-input .ft-search-input--launch-search {
|
|
@@ -758,27 +748,27 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
758
748
|
.ft-search-input.ft-search-input--with-suggestions:focus-within:not(.ft-search-input--with-suggestions-closed) ft-search-input-suggestion {
|
|
759
749
|
display: block;
|
|
760
750
|
}
|
|
761
|
-
`,
|
|
762
|
-
`,
|
|
751
|
+
`,Go=x`
|
|
752
|
+
`,Qo=Ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Yo{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Qo.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Yo.build(t):null!==(e=Yo.API)&&void 0!==e?e:Yo.API=Yo.build()}static await(t){return new Promise((e=>{let i=Yo.get(t);if(i)e(i);else{const n=Qo.subscribe((()=>{i=Yo.get(t),i&&(n(),e(i))}))}}))}}var tr;const er=Symbol("clearAfterUnitTest");class ir{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[tr]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Qo.getState().uiLocale,Qo.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qo.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Pt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}tr=er,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ir((async(t,e)=>(await Yo.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new ir((async(t,e)=>(await Yo.await()).getCustomMessageContext(t,e))));const nr=window.FluidTopicsI18nService,or=window.FluidTopicsCustomI18nService;var rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class sr extends Mt{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Yo.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return Y`
|
|
763
753
|
<slot></slot>
|
|
764
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
765
|
-
`;var
|
|
754
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Qo.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qo.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qo.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qo.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qo.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qo.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qo.actions.setSession(this.session),t.has("availableUiLocales")&&Qo.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>nr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}sr.elementDefinitions={},sr.styles=Go,rr([r()],sr.prototype,"baseUrl",void 0),rr([r()],sr.prototype,"apiIntegrationIdentifier",void 0),rr([r()],sr.prototype,"uiLocale",void 0),rr([p([])],sr.prototype,"availableUiLocales",void 0),rr([r({type:Boolean})],sr.prototype,"editorMode",void 0),rr([r({type:Boolean})],sr.prototype,"noCustom",void 0),rr([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],sr.prototype,"noCustomComponent",void 0),rr([r({type:Boolean})],sr.prototype,"withManualResources",void 0),rr([p([])],sr.prototype,"messageContexts",void 0),rr([p(void 0)],sr.prototype,"session",void 0),rr([r({type:Object})],sr.prototype,"apiProvider",void 0),h("ft-app-context")(sr);var ar=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const cr=Symbol("registerInterval");class ur extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[cr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[cr]):this.dispatchEvent(new lr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=cr,ar([s()],i.prototype,"stateManager",void 0),i}(ji)){}const fr=x`
|
|
755
|
+
`;var hr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const pr=Symbol("i18nProperties"),dr=Symbol("i18nUnsubs");function vr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?or:nr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[pr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[pr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[pr]&&new Set([...this[pr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[dr].has(t)||this[dr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[dr].forEach((t=>t())),this[dr].clear()}}return e=dr,hr([r({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class br extends(vr(Mt)){}class yr extends(vr(ji)){}var gr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mr extends yr{constructor(){super(),this.editorMode=!1,this.addStore(Qo)}render(){return this.key&&this.context?Y`
|
|
766
756
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
767
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
757
|
+
`:this.editorMode?"Select a context and a label key.":et}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}mr.elementDefinitions={},mr.styles=fr,gr([Si()],mr.prototype,"editorMode",void 0),gr([r()],mr.prototype,"context",void 0),gr([r()],mr.prototype,"key",void 0),gr([p([])],mr.prototype,"args",void 0),gr([r()],mr.prototype,"defaultMessage",void 0);class xr{static build(t){return new xr(t)}static fromGwt(t){return new xr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>nr.resolveMessage(this.name,e,...t)})}}h("ft-i18n")(mr);const wr=xr.build("designedSearchInput"),$r=x`
|
|
768
758
|
* {
|
|
769
759
|
box-sizing: border-box;
|
|
770
760
|
}
|
|
771
761
|
|
|
772
762
|
.ft-search-input-suggestion {
|
|
773
763
|
position: absolute;
|
|
774
|
-
z-index: ${
|
|
764
|
+
z-index: ${Jo.floatingZIndex};
|
|
775
765
|
top: calc(100% + 2px);
|
|
776
766
|
left: -1px;
|
|
777
767
|
right: -1px;
|
|
778
|
-
background: ${
|
|
779
|
-
border: 1px solid ${
|
|
780
|
-
border-radius: 0 0 ${
|
|
781
|
-
box-shadow: ${
|
|
768
|
+
background: ${Jo.colorSurface};
|
|
769
|
+
border: 1px solid ${Jo.colorOutline};
|
|
770
|
+
border-radius: 0 0 ${Jo.borderRadius} ${Jo.borderRadius};
|
|
771
|
+
box-shadow: ${Jo.elevation02};
|
|
782
772
|
}
|
|
783
773
|
|
|
784
774
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -789,7 +779,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
789
779
|
padding: 8px;
|
|
790
780
|
gap: 8px;
|
|
791
781
|
cursor: pointer;
|
|
792
|
-
color: ${
|
|
782
|
+
color: ${Jo.colorOnSurface};
|
|
793
783
|
min-height: 44px;
|
|
794
784
|
}
|
|
795
785
|
|
|
@@ -811,11 +801,11 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
811
801
|
* @license
|
|
812
802
|
* Copyright 2020 Google LLC
|
|
813
803
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
814
|
-
*/,{I:
|
|
804
|
+
*/,{I:Or}=vt,Sr=()=>document.createComment(""),Er=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Sr(),r),n=o.insertBefore(Sr(),r);i=new Or(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},kr=(t,e,i=t)=>(t._$AI(e,i),t),jr={},Cr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Nr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Mr=Fi(class extends Ii{constructor(t){if(super(t),t.type!==Pi)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,f,h=0,p=r.length-1,d=0,v=s.length-1;for(;h<=p&&d<=v;)if(null===r[h])h++;else if(null===r[p])p--;else if(l[h]===a[d])c[d]=kr(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=kr(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=kr(r[h],s[v]),Er(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=kr(r[p],s[d]),Er(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=Nr(a,d,v),f=Nr(l,h,p)),u.has(l[h]))if(u.has(l[p])){const e=f.get(a[d]),i=void 0!==e?r[e]:null;if(null===i){const e=Er(t,r[h]);kr(e,s[d]),c[d]=e}else c[d]=kr(i,s[d]),Er(t,r[h],i),r[e]=null;d++}else Cr(r[p]),p--;else Cr(r[h]),h++;for(;d<=v;){const e=Er(t,c[v+1]);kr(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Cr(t)}return this.ht=a,((t,e=jr)=>{t._$AH=e})(t,c),tt}});var Rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ar extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Ur=class extends ur{constructor(){super(...arguments),this.suggestResults=[]}render(){return Y`
|
|
815
805
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
816
806
|
part="container"
|
|
817
807
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
818
|
-
${
|
|
808
|
+
${Mr(this.suggestResults,(t=>t.value),(t=>Y`
|
|
819
809
|
<a href="#"
|
|
820
810
|
part="suggestion"
|
|
821
811
|
class="ft-search-input-suggestion--suggestion"
|
|
@@ -827,18 +817,16 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
827
817
|
</a>
|
|
828
818
|
`))}
|
|
829
819
|
</div>
|
|
830
|
-
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new
|
|
831
|
-
<ft-icon variant="${e}" part="suggestion-icon">
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};dr.elementDefinitions={"ft-ripple":Ni,"ft-typography":Yn,"ft-icon":go},dr.styles=[Et,nr],hr([si()],dr.prototype,"suggestResults",void 0),dr=hr([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],dr);var vr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class br extends(Xo(Ho)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(ir)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return G`
|
|
835
|
-
<div class="${gi(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
820
|
+
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Ar(e))}getIcon(t){const e="DOCUMENT"===t.type?Fo.file_format:Fo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?No.BOOK:No.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,n,o,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,a]=((null!==(i=Ao.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(o=null!==(n=Ro.get(a))&&void 0!==n?n:Ro.get(e))&&void 0!==o?o:Ro.get(s))&&void 0!==r?r:Mo.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=No.TOPICS}return Y`
|
|
821
|
+
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
822
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Ur.elementDefinitions={"ft-ripple":Vi,"ft-typography":mo,"ft-icon":zo},Ur.styles=[At,$r],Rr([Si()],Ur.prototype,"suggestResults",void 0),Ur=Rr([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],Ur);var Pr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Fr extends(vr(ur)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(wr)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return Y`
|
|
823
|
+
<div class="${zi(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
836
824
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
837
825
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
838
826
|
<input class="ft-search-input--input ft-typography--body2"
|
|
839
827
|
part="input"
|
|
840
828
|
type="text"
|
|
841
|
-
placeholder="${
|
|
829
|
+
placeholder="${wr.messages.placeholder()}"
|
|
842
830
|
.value="${this.liveQuery}"
|
|
843
831
|
@keydown=${t=>this.onSearchBarKeyDown(t)}
|
|
844
832
|
@keyup=${t=>this.onSearchBarKeyUp(t)}>
|
|
@@ -852,9 +840,9 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
|
|
|
852
840
|
part="launch-search-in-input"
|
|
853
841
|
icon="search"
|
|
854
842
|
round dense
|
|
855
|
-
label="${
|
|
843
|
+
label="${wr.messages.searchButton()}"
|
|
856
844
|
@click=${()=>this.launchSearch()}
|
|
857
845
|
></ft-button>
|
|
858
846
|
</div>
|
|
859
847
|
</div>
|
|
860
|
-
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}
|
|
848
|
+
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Fr.elementDefinitions={"ft-search-input-suggestion":Ur,"ft-button":Vo},Fr.styles=[fo,Xo],Pr([Si()],Fr.prototype,"request",void 0),Pr([Si()],Fr.prototype,"liveQuery",void 0),Pr([Si()],Fr.prototype,"suggestResults",void 0),Pr([s()],Fr.prototype,"forceCloseSuggestion",void 0),Pr([l(".ft-search-input--input")],Fr.prototype,"input",void 0),Pr([l("ft-search-input-suggestion")],Fr.prototype,"suggestion",void 0),h("ft-search-input")(Fr),t.FtSearchInput=Fr,t.FtSearchInputCssVariables=Jo,t.styles=Xo}({});
|