@fluid-topics/ft-search-locale-selector 1.0.4
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/README.md +24 -0
- package/build/SearchLocaleSelectorMessages.d.ts +7 -0
- package/build/SearchLocaleSelectorMessages.js +6 -0
- package/build/ft-search-locale-selector.css.d.ts +5 -0
- package/build/ft-search-locale-selector.css.js +19 -0
- package/build/ft-search-locale-selector.d.ts +20 -0
- package/build/ft-search-locale-selector.js +88 -0
- package/build/ft-search-locale-selector.light.js +1279 -0
- package/build/ft-search-locale-selector.min.js +1405 -0
- package/build/ft-search-locale-selector.properties.d.ts +2 -0
- package/build/ft-search-locale-selector.properties.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +6 -0
- package/package.json +37 -0
|
@@ -0,0 +1,1405 @@
|
|
|
1
|
+
!function(t){
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
|
+
*/
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);u(n,a,l);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,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 o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.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 o=h(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){d(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 o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};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 o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const 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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(nr){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},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){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t]),this.content[t]instanceof i&&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,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=o&&(this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),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 o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const r=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function s(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):r(t,e)
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/}function l(t){return s({...t,state:!0})}
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*/const a=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function c(t,e){return a({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2017 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2021 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/
|
|
48
|
+
var h;const f=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function u(t){const{slot:e,selector:i}=null!=t?t:{};return a({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}
|
|
49
|
+
/**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2017 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
+
*/function d(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!d(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!d(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!d(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function v(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!d(t,e),...null!=e?e:{}})}const b=window,y=b.ShadowRoot&&(void 0===b.ShadyCSS||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,g=Symbol(),x=new WeakMap;
|
|
54
|
+
/**
|
|
55
|
+
* @license
|
|
56
|
+
* Copyright 2019 Google LLC
|
|
57
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
+
*/let m=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==g)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(y&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&x.set(e,t))}return t}toString(){return this.cssText}};const w=t=>new m("string"==typeof t?t:t+"",void 0,g),$=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new m(i,t,g)},O=(t,e)=>{y?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=b.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},k=y?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return w(e)})(t):t
|
|
59
|
+
/**
|
|
60
|
+
* @license
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
62
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
+
*/;var S;const j=window,C=j.trustedTypes,E=C?C.emptyScript:"",N=j.reactiveElementPolyfillSupport,R={toAttribute(t,e){switch(e){case Boolean:t=t?E: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}},M=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:M};let z=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 o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}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(k(t))}else void 0!==t&&e.push(k(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 O(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=A){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:R).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:R;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||M)(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))):o=!1),!this.isUpdatePending&&o&&(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){}};
|
|
64
|
+
/**
|
|
65
|
+
* @license
|
|
66
|
+
* Copyright 2017 Google LLC
|
|
67
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
|
+
*/
|
|
69
|
+
var P;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==N||N({ReactiveElement:z}),(null!==(S=j.reactiveElementVersions)&&void 0!==S?S:j.reactiveElementVersions=[]).push("1.6.1");const U=window,I=U.trustedTypes,B=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,T="?"+F,D=`<${T}>`,_=document,W=()=>_.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,V=t=>K(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,X=/>/g,G=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),it=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),nt=new WeakMap,rt=_.createTreeWalker(_,129,null,!1),st=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,a=s.exec(i),null!==a);)h=s.lastIndex,s===q?"!--"===a[1]?s=J:void 0!==a[1]?s=X:void 0!==a[2]?(tt.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=G):void 0!==a[3]&&(s=G):s===G?">"===a[0]?(s=null!=n?n:q,c=-1):void 0===a[1]?c=-2:(c=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?G:'"'===a[3]?Q:Y):s===Q||s===Y?s=G:s===J||s===X?s=q:(s=G,n=void 0);const f=s===G&&t[e+1].startsWith("/>")?" ":"";r+=s===q?i+D:c>=0?(o.push(l),i.slice(0,c)+L+i.slice(c)+F+f):i+F+(-2===c?(o.push(void 0),e):f)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(l):l,o]};class lt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[a,c]=st(t,e);if(this.el=lt.createElement(a,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=rt.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(L)||e.startsWith(F)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+L).split(F),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?pt:"@"===e[1]?vt:ft})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(tt.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],W()),rt.nextNode(),l.push({type:2,index:++n});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===T)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)l.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const i=_.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,o){var n,r,s,l;if(e===it)return e;let a=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=H(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(s=(l=i)._$Co)&&void 0!==s?s:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=at(t,a._$AS(t,e.values),a,o)),e}let ct=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:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(i,!0);rt.currentNode=n;let r=rt.nextNode(),s=0,l=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new ht(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new bt(r,this,t)),this._$AV.push(e),a=o[++l]}s!==(null==a?void 0:a.index)&&(r=rt.nextNode(),s++)}return n}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++}},ht=class t{constructor(t,e,i,o){var n;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=at(this,t,e),H(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(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!==ot&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=lt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new ct(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new lt(t)),e}T(e){K(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,n=0;for(const r of e)n===i.length?i.push(o=new t(this.k(W()),this.k(W()),this,this.options)):o=i[n],o._$AI(r),n++;n<i.length&&(this._$AR(o&&o._$AB.nextSibling,n),i.length=n)}_$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))}},ft=class{constructor(t,e,i,o,n){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ot}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=at(this,t,e,0),r=!H(t)||t!==this._$AH&&t!==it,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=at(this,o[i+s],e,s),l===it&&(l=this._$AH[s]),r||(r=!H(l)||l!==this._$AH[s]),l===ot?t=ot:t!==ot&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}};const dt=I?I.emptyScript:"";let pt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ot?this.element.setAttribute(this.name,dt):this.element.removeAttribute(this.name)}},vt=class extends ft{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:ot)===it)return;const o=this._$AH,n=t===ot&&o!==ot||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ot&&(o===ot||n);n&&this.element.removeEventListener(this.name,this,o),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)}},bt=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){at(this,t)}};const yt={O:L,P:F,A:T,C:1,M:st,L:ct,D:V,R:at,I:ht,V:ft,H:pt,N:vt,U:ut,F:bt},gt=U.litHtmlPolyfillSupport;null==gt||gt(lt,ht),(null!==(P=U.litHtmlVersions)&&void 0!==P?P:U.litHtmlVersions=[]).push("2.7.3");
|
|
70
|
+
/**
|
|
71
|
+
* @license
|
|
72
|
+
* Copyright 2017 Google LLC
|
|
73
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
+
*/
|
|
75
|
+
var xt,mt;let wt=class extends z{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 o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ht(e.insertBefore(W(),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 it}};wt.finalized=!0,wt._$litElement$=!0,null===(xt=globalThis.litElementHydrateSupport)||void 0===xt||xt.call(globalThis,{LitElement:wt});const $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:wt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class Ot{static create(t,e,i){let o=t=>w(null!=t?t:i),n=$`var(${w(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>$`var(${w(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=$`var(${w(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>$`var(${w(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.defaultValue),o=$`var(${w(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>$`var(${w(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function kt(t,e){return w(`${t.name}: ${e}`)}const St={colorPrimary:Ot.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ot.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ot.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ot.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ot.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ot.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ot.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ot.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ot.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ot.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ot.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ot.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ot.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ot.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ot.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ot.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ot.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ot.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ot.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ot.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ot.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ot.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ot.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ot.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ot.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ot.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ot.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ot.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ot.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ot.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ot.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ot.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ot.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ot.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ot.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ot.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ot.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ot.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ot.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ot.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ot.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ot.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ot.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ot.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ot.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ot.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ot.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ot.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ot.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ot.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ot.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class jt extends wt{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 O(i,t.elementStyles),i}}var Ct,Et=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),Mt=Symbol("exportpartsDebouncer");class At extends jt{constructor(){super(),this[Ct]=new n(5),this[Rt]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[Nt])}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[Mt].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,o,n,r,s;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],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(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ct=Mt,Et([s()],At.prototype,"exportpartsPrefix",void 0),Et([v([])],At.prototype,"exportpartsPrefixes",void 0),Et([s()],At.prototype,"customStylesheet",void 0);const zt=$`
|
|
76
|
+
.ft-no-text-select {
|
|
77
|
+
-webkit-touch-callout: none;
|
|
78
|
+
-webkit-user-select: none;
|
|
79
|
+
-khtml-user-select: none;
|
|
80
|
+
-moz-user-select: none;
|
|
81
|
+
-ms-user-select: none;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
`;$`
|
|
85
|
+
.ft-word-wrap {
|
|
86
|
+
white-space: normal;
|
|
87
|
+
word-wrap: break-word;
|
|
88
|
+
-ms-word-break: break-all;
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
word-break: break-word;
|
|
91
|
+
-ms-hyphens: auto;
|
|
92
|
+
-moz-hyphens: auto;
|
|
93
|
+
-webkit-hyphens: auto;
|
|
94
|
+
hyphens: auto
|
|
95
|
+
}
|
|
96
|
+
`;const Pt=$`
|
|
97
|
+
.ft-safari-ellipsis-fix {
|
|
98
|
+
margin-right: 0;
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ft-safari-ellipsis-fix:after {
|
|
103
|
+
content: "\\0000a0";
|
|
104
|
+
display: inline-block;
|
|
105
|
+
width: 0;
|
|
106
|
+
}
|
|
107
|
+
`;class Ut{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}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 It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];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 Bt(t){return!!t&&!!t[Oe]}function Lt(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)===ke}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Ht(t)||Kt(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Tt(t)?(i?Object.keys:Se)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Tt(t){var e=t[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ht(t)?2:Kt(t)?3:0}function Dt(t,e){return 2===Tt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function _t(t,e,i){var o=Tt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ht(t){return ge&&t instanceof Map}function Kt(t){return xe&&t instanceof Set}function Vt(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=je(t);delete e[Oe];for(var i=Se(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Xt(t)||Bt(t)||!Lt(t)||(Tt(t)>1&&(t.set=t.add=t.clear=t.delete=Jt),Object.freeze(t),e&&Ft(t,(function(t,e){return qt(e,!0)}),!0)),t}function Jt(){It(2)}function Xt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Gt(t){var e=Ce[t];return e||It(18,t),e}function Yt(){return be}function Qt(t,e){e&&(Gt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(oe),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function oe(t){var e=t[Oe];0===e.i||1===e.i?e.j():e.g=!0}function ne(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||Gt("ES5").S(e,t,o),o?(i[Oe].P&&(te(e),It(4)),Lt(t)&&(t=re(e,t),e.l||le(e,t)),e.u&&Gt("Patches").M(i[Oe].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Xt(e))return e;var o=e[Oe];if(!o)return Ft(e,(function(n,r){return se(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return le(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=Zt(o.k):o.o,r=n,s=!1;3===o.i&&(r=new Set(n),n.clear(),s=!0),Ft(r,(function(e,r){return se(t,o,n,e,r,i,s)})),le(t,n,!1),i&&t.u&&Gt("Patches").N(o,i,t.u,t.s)}return o.o}function se(t,e,i,o,n,r,s){if(Bt(n)){var l=re(t,n,r&&e&&3!==e.i&&!Dt(e.R,o)?r.concat(o):void 0);if(_t(i,o,l),!Bt(l))return;t.m=!1}else s&&i.add(n);if(Lt(n)&&!Xt(n)){if(!t.h.D&&t._<1)return;re(t,n),e&&e.A.l||le(t,n)}}function le(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[Oe];return(i?Vt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function he(t){t.P||(t.P=!0,t.l&&he(t.l))}function fe(t){t.o||(t.o=Zt(t.t))}function ue(t,e,i){var o=Ht(e)?Gt("MapSet").F(e,i):Kt(e)?Gt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Yt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=Ee;i&&(n=[o],r=Ne);var s=Proxy.revocable(n,r),l=s.revoke,a=s.proxy;return o.k=a,o.j=l,a}(e,i):Gt("ES5").J(e,i);return(i?i.A:Yt()).p.push(o),o}function de(t){return Bt(t)||It(22,t),function t(e){if(!Lt(e))return e;var i,o=e[Oe],n=Tt(e);if(o){if(!o.P&&(o.i<4||!Gt("ES5").K(o)))return o.t;o.I=!0,i=pe(e,n),o.I=!1}else i=pe(e,n);return Ft(i,(function(e,n){o&&function(t,e){return 2===Tt(t)?t.get(e):t[e]}(o.t,e)===n||_t(i,e,t(n))})),3===n?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 ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,xe="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=ye?Symbol.for("immer-state"):"__$immer_state",ke=""+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,je=Object.getOwnPropertyDescriptors||function(t){var e={};return Se(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ce={},Ee={get:function(t,e){if(e===Oe)return t;var i=Vt(t);if(!Dt(i,e))return function(t,e,i){var o,n=ce(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!Lt(o)?o:o===ae(t.t,e)?(fe(t),t.o[e]=ue(t.A.h,o,t)):o},has:function(t,e){return e in Vt(t)},ownKeys:function(t){return Reflect.ownKeys(Vt(t))},set:function(t,e,i){var o=ce(Vt(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=ae(Vt(t),e),r=null==n?void 0:n[Oe];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,n)&&(void 0!==i||Dt(t.t,e)))return!0;fe(t),he(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,fe(t),he(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Vt(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},Ne={};Ft(Ee,(function(t,e){Ne[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ne.deleteProperty=function(t,e){return Ne.set.call(this,t,e,void 0)},Ne.set=function(t,e,i){return Ee.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==o&&"function"!=typeof o&&It(7),Lt(t)){var l=ie(e),a=ue(e,t,void 0),c=!0;try{s=i(a),c=!1}finally{c?te(l):ee(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Qt(l,o),ne(t,l)}),(function(t){throw te(l),t})):(Qt(l,o),ne(s,l))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&qt(s,!0),o){var h=[],f=[];Gt("Patches").M(t,s,h,f),o(h,f)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"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){Lt(t)||It(8),Bt(t)&&(t=de(t));var e=ie(this),i=ue(this,t,void 0);return i[Oe].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Oe]).A;return Qt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=Gt("Patches").$;return Bt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Me=new Re,Ae=Me.produce;function ze(t){return ze="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},ze(t)}function Pe(t){var e=function(t,e){if("object"!==ze(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==ze(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ze(e)?e:String(e)}function Ue(t,e,i){return(e=Pe(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Ue(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Le(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 Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Te=function(){return Math.random().toString(36).substring(7).split("").join(".")},De={INIT:"@@redux/INIT"+Te(),REPLACE:"@@redux/REPLACE"+Te(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Te()}};function _e(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Le(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Le(1));return i(_e)(t,e)}if("function"!=typeof t)throw new Error(Le(2));var n=t,r=e,s=[],l=s,a=!1;function c(){l===s&&(l=s.slice())}function h(){if(a)throw new Error(Le(3));return r}function f(t){if("function"!=typeof t)throw new Error(Le(4));if(a)throw new Error(Le(5));var e=!0;return c(),l.push(t),function(){if(e){if(a)throw new Error(Le(6));e=!1,c();var i=l.indexOf(t);l.splice(i,1),s=null}}}function u(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(Le(7));if(void 0===t.type)throw new Error(Le(8));if(a)throw new Error(Le(9));try{a=!0,r=n(r,t)}finally{a=!1}for(var e=s=l,i=0;i<e.length;i++){(0,e[i])()}return t}return u({type:De.INIT}),(o={dispatch:u,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Le(10));n=t,u({type:De.REPLACE})}})[Fe]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Le(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},o}function We(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}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:De.INIT}))throw new Error(Le(12));if(void 0===i(void 0,{type:De.PROBE_UNKNOWN_ACTION()}))throw new Error(Le(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},l=0;l<s.length;l++){var a=s[l],c=i[a],h=t[a],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(Le(14));n[a]=f,o=o||f!==h}return(o=o||s.length!==Object.keys(t).length)?n:t}}function He(){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),o=function(){throw new Error(Le(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=He.apply(void 0,r)(i.dispatch),Be(Be({},i),{},{dispatch:o})}}}function Ve(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var Ze=Ve();Ze.withExtraArgument=Ve;var qe,Je=Ze,Xe=(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)}),Ge=function(t,e){var i,o,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},Ye=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},Qe=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))oi.call(e,i)&&ri(t,i,e[i]);if(ii)for(var o=0,n=ii(e);o<n.length;o++){i=n[o];ni.call(e,i)&&ri(t,i,e[i])}return t},li=function(t,e){return ti(t,ei(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]?He:He.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return Xe(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array),hi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return Xe(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array);function fi(t){return Lt(t)?Ae(t,(function(){})):t}function ui(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Je.withExtraArgument(i.extraArgument)):o.push(Je));return o}(t)}}function di(t){var e,i=ui(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,l=void 0===s?i():s,a=o.devTools,c=void 0===a||a,h=o.preloadedState,f=void 0===h?void 0:h,u=o.enhancers,d=void 0===u?void 0:u;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=We(r)}var p=l;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=He;c&&(b=ai(si({trace:!1},"object"==typeof c&&c)));var y=new hi(v),g=y;return Array.isArray(d)?g=Ye([v],d):"function"==typeof d&&(g=d(y)),_e(e,f,b.apply(void 0,g))}function pi(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.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 vi(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:fi(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},l={},a={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,a=e[2],c=void 0===a?void 0:a,h=si(si({},n),l);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?vi(e):[e,i,o],s=r[0],l=r[1],a=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return fi(t())};else{var c=fi(t);n=function(){return c}}function h(t,e){void 0===t&&(t=n());var i=Ye([s[e.type]],l.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[a]),i.reduce((function(t,i){if(i){var o;if(Bt(t))return void 0===(o=i(t,e))?t:o;if(Lt(t))return Ae(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=n,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=s;i<o.length;i++){var n=o[i];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,l[c]=i,a[t]=o?pi(c,o):pi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:a,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},xi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=yi;i<o.length;i++){var n=o[i];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function wi(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 o=pi(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:li(si({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),n=pi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:li(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=pi(t+"/rejected",(function(t,e,o,n,r){return{payload:n,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:li(si({},r||{}),{arg:o,requestId:e,rejectedWithValue:!!n,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(l,a,c){var h,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}(),u=new s;function d(t){h=t,u.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Ge(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:a,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),l(n(f,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:f,arg:t},{getState:a,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:l,getState:a,extra:c,requestId:f,signal:u.signal,abort:d,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new xi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof xi?o(e.payload,f,t,e.meta):o(e,f,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof gi?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||l(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{n(v.next(t))}catch(t){e(t)}},o=function(t){try{n(v.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};n((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:f,arg:t,unwrap:function(){return p.then(wi)}})}}),{pending:n,rejected:r,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Oi,ki="listenerMiddleware";pi(ki+"/add"),pi(ki+"/removeAll"),pi(ki+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Oe];return Ee.get(e,t)},set:function(e){var i=this[Oe];Ee.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Oe];if(!n.P)switch(n.i){case 5:o(n)&&he(n);break;case 4:i(n)&&he(n)}}}function i(t){for(var e=t.t,i=t.k,o=Se(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==Oe){var s=e[r];if(void 0===s&&!Dt(e,r))return!0;var l=i[r],a=l&&l[Oe];if(a?a.t!==s:!Wt(l,s))return!0}}var c=!!e[Oe];return o.length!==Se(e).length+(c?0:1)}function o(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 o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){Ce[t]||(Ce[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=je(i);delete r[Oe];for(var s=Se(r),l=0;l<s.length;l++){var a=s[l];r[a]=t(a,e||!!r[a].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:Yt(),P:!1,I:!1,R:{},l:i,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Oe,{value:r,writable:!0}),n},S:function(t,i,n){n?Bt(i)&&i[Oe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Oe];if(i){var n=i.t,r=i.k,s=i.R,l=i.i;if(4===l)Ft(r,(function(e){e!==Oe&&(void 0!==n[e]||Dt(n,e)?s[e]||t(r[e]):(s[e]=!0,he(i)))})),Ft(n,(function(t){void 0!==r[t]||Dt(r,t)||(s[t]=!1,he(i))}));else if(5===l){if(o(i)&&(he(i),s.length=!0),r.length<n.length)for(var a=r.length;a<n.length;a++)s[a]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,n.length),f=0;f<h;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):o(t)}})}();const Si=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const n={hasChanged:(t,e)=>!d(t,e),attribute:!1,...e};s(n)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},ji=Symbol("internalStoresUnsubscribers"),Ci=Symbol("internalStores");class Ei extends At{constructor(){super(...arguments),this[$i]=new Map,this[Oi]=new Map}getUnnamedStore(){if(this[Ci].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ci].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ci].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[Ci].delete(e)}setupStore(t,e){this[Ci].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ci].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[ji].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[ji]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[ji].has(t)&&this[ji].get(t)(),this[ji].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}$i=ji,Oi=Ci;class Ni{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(o))return o;if(null==i)return;const n=bi(i),r=di({reducer:n.reducer});return window.ftReduxStores[i.name]=new Ni(n,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 o=t[e];if(o)return(...t)=>{const e=o(...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 Ri,Mi,Ai;const zi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Mi=null===(Ri=window.safari)||void 0===Ri?void 0:Ri.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ai?Ai:""),Pi={distance:Ot.create("--ft-tooltip-distance","SIZE","4px"),color:Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:Ot.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:Ot.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:Ot.external(St.borderRadiusS,"Design system"),maxWidth:Ot.create("--ft-tooltip-max-width","SIZE","150px")},Ui=$`
|
|
108
|
+
.ft-tooltip--container {
|
|
109
|
+
display: block;
|
|
110
|
+
position: relative;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ft-tooltip--inline {
|
|
114
|
+
display: inline-block;
|
|
115
|
+
max-width: 100%;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ft-tooltip {
|
|
119
|
+
position: absolute;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
width: max-content;
|
|
123
|
+
max-width: ${Pi.maxWidth};
|
|
124
|
+
text-align: center;
|
|
125
|
+
padding: ${Pi.distance};
|
|
126
|
+
z-index: ${Pi.zIndex};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ft-tooltip--content {
|
|
130
|
+
padding: 4px 8px;
|
|
131
|
+
border-radius: ${Pi.borderRadiusS};
|
|
132
|
+
background-color: ${Pi.backgroundColor};
|
|
133
|
+
color: ${Pi.color};
|
|
134
|
+
top: -500px;
|
|
135
|
+
left: -500px;
|
|
136
|
+
position: relative;
|
|
137
|
+
word-break: break-word;
|
|
138
|
+
}
|
|
139
|
+
`,Ii={warningIconColor:Ot.extend("--ft-search-locale-selector-warning-icon-color",St.colorError),warningTooltipMaxWidth:Ot.create("--ft-search-locale-selector-warning-tooltip-max-width","SIZE","250px")},Bi=$`
|
|
140
|
+
|
|
141
|
+
[part="warning-tooltip"] {
|
|
142
|
+
${kt(Pi.maxWidth,Ii.warningTooltipMaxWidth)};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[part="warning-icon"] {
|
|
146
|
+
color: ${Ii.warningIconColor};
|
|
147
|
+
cursor: help;
|
|
148
|
+
}
|
|
149
|
+
`
|
|
150
|
+
/**
|
|
151
|
+
* @license
|
|
152
|
+
* Copyright 2017 Google LLC
|
|
153
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
154
|
+
*/,Li=1,Fi=2,Ti=t=>(...e)=>({_$litDirective$:t,values:e});class Di{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)}}
|
|
155
|
+
/**
|
|
156
|
+
* @license
|
|
157
|
+
* Copyright 2020 Google LLC
|
|
158
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
159
|
+
*/const{I:_i}=yt,Wi=()=>document.createComment(""),Hi=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Wi(),r),o=n.insertBefore(Wi(),r);i=new _i(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,l=s!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},Ki=(t,e,i=t)=>(t._$AI(e,i),t),Vi={},Zi=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},qi=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ji=Ti(class extends Di{constructor(t){if(super(t),t.type!==Fi)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:l}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=l,s;const a=null!==(n=this.ht)&&void 0!==n?n:this.ht=[],c=[];let h,f,u=0,d=r.length-1,p=0,v=s.length-1;for(;u<=d&&p<=v;)if(null===r[u])u++;else if(null===r[d])d--;else if(a[u]===l[p])c[p]=Ki(r[u],s[p]),u++,p++;else if(a[d]===l[v])c[v]=Ki(r[d],s[v]),d--,v--;else if(a[u]===l[v])c[v]=Ki(r[u],s[v]),Hi(t,c[v+1],r[u]),u++,v--;else if(a[d]===l[p])c[p]=Ki(r[d],s[p]),Hi(t,r[u],r[d]),d--,p++;else if(void 0===h&&(h=qi(l,p,v),f=qi(a,u,d)),h.has(a[u]))if(h.has(a[d])){const e=f.get(l[p]),i=void 0!==e?r[e]:null;if(null===i){const e=Hi(t,r[u]);Ki(e,s[p]),c[p]=e}else c[p]=Ki(i,s[p]),Hi(t,r[u],i),r[e]=null;p++}else Zi(r[d]),d--;else Zi(r[u]),u++;for(;p<=v;){const e=Hi(t,c[v+1]);Ki(e,s[p]),c[p++]=e}for(;u<=d;){const t=r[u++];null!==t&&Zi(t)}return this.ht=l,((t,e=Vi)=>{t._$AH=e})(t,c),it}}),Xi=$`
|
|
160
|
+
`,Gi=$`
|
|
161
|
+
`,Yi=Ni.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}});
|
|
162
|
+
/**
|
|
163
|
+
* @license
|
|
164
|
+
* Copyright 2017 Google LLC
|
|
165
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
166
|
+
*/class Qi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Yi.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Qi.build(t):null!==(e=Qi.API)&&void 0!==e?e:Qi.API=Qi.build()}static await(t){return new Promise((e=>{let i=Qi.get(t);if(i)e(i);else{const o=Yi.subscribe((()=>{i=Qi.get(t),i&&(o(),e(i))}))}}))}}var to;const eo=Symbol("clearAfterUnitTest");class io{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[to]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Yi.getState().uiLocale,Yi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Yi.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 o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};d(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new Ut(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})))}}to=eo,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new io((async(t,e)=>(await Qi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new io((async(t,e)=>(await Qi.await()).getCustomMessageContext(t,e))));const oo=window.FluidTopicsI18nService,no=window.FluidTopicsCustomI18nService;var ro=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class so extends At{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=()=>Qi.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return et`
|
|
167
|
+
<slot></slot>
|
|
168
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Yi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Yi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Yi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Yi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Yi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Yi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Yi.actions.setSession(this.session),t.has("availableUiLocales")&&Yi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>oo.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()))))}}so.elementDefinitions={},so.styles=Gi,ro([s()],so.prototype,"baseUrl",void 0),ro([s()],so.prototype,"apiIntegrationIdentifier",void 0),ro([s()],so.prototype,"uiLocale",void 0),ro([v([])],so.prototype,"availableUiLocales",void 0),ro([s({type:Boolean})],so.prototype,"editorMode",void 0),ro([s({type:Boolean})],so.prototype,"noCustom",void 0),ro([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],so.prototype,"noCustomComponent",void 0),ro([s({type:Boolean})],so.prototype,"withManualResources",void 0),ro([v([])],so.prototype,"messageContexts",void 0),ro([v(void 0)],so.prototype,"session",void 0),ro([s({type:Object})],so.prototype,"apiProvider",void 0),p("ft-app-context")(so);var lo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ao=Symbol("i18nProperties"),co=Symbol("i18nUnsubs");function ho(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?no:oo}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[ao])||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[ao])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ao]&&new Set([...this[ao].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[co].has(t)||this[co].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[co].forEach((t=>t())),this[co].clear()}}return e=co,lo([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class fo extends(ho(At)){}class uo extends(ho(Ei)){}var po=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vo extends uo{constructor(){super(),this.editorMode=!1,this.addStore(Yi)}render(){return this.key&&this.context?et`
|
|
169
|
+
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
170
|
+
`:this.editorMode?"Select a context and a label key.":ot}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}vo.elementDefinitions={},vo.styles=Xi,po([Si()],vo.prototype,"editorMode",void 0),po([s()],vo.prototype,"context",void 0),po([s()],vo.prototype,"key",void 0),po([v([])],vo.prototype,"args",void 0),po([s()],vo.prototype,"defaultMessage",void 0);class bo{static build(t){return new bo(t)}static fromGwt(t){return new bo(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)=>oo.resolveMessage(this.name,e,...t)})}}p("ft-i18n")(vo);var yo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class go extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const xo=Symbol("registerInterval");class mo 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[xo]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[xo]):this.dispatchEvent(new go)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=xo,yo([l()],i.prototype,"stateManager",void 0),i}(Ei)){}
|
|
171
|
+
/**
|
|
172
|
+
* @license
|
|
173
|
+
* Copyright 2020 Google LLC
|
|
174
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
175
|
+
*/const wo=Symbol.for(""),$o=t=>{if((null==t?void 0:t.r)===wo)return null==t?void 0:t._$litStatic$},Oo=t=>({_$litStatic$:t,r:wo}),ko=new Map,So=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],n=$o(r));)a+=n+e[++c],h=!0;c!==o&&l.push(r),s.push(a),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=ko.get(t))&&(s.raw=s,ko.set(t,e=s)),i=l}return t(e,...i)})(et);var jo;!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"}(jo||(jo={}));const Co=Ot.extend("--ft-typography-font-family",St.titleFont),Eo=Ot.extend("--ft-typography-font-family",St.contentFont),No={fontFamily:Eo,fontSize:Ot.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Ot.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Ot.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Ot.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:Ot.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ro=Ot.extend("--ft-typography-title-font-family",Co),Mo=Ot.extend("--ft-typography-title-font-size",No.fontSize,"20px"),Ao=Ot.extend("--ft-typography-title-font-weight",No.fontWeight,"normal"),zo=Ot.extend("--ft-typography-title-letter-spacing",No.letterSpacing,"0.15px"),Po=Ot.extend("--ft-typography-title-line-height",No.lineHeight,"1.2"),Uo=Ot.extend("--ft-typography-title-text-transform",No.textTransform,"inherit"),Io=Ot.extend("--ft-typography-title-dense-font-family",Co),Bo=Ot.extend("--ft-typography-title-dense-font-size",No.fontSize,"14px"),Lo=Ot.extend("--ft-typography-title-dense-font-weight",No.fontWeight,"normal"),Fo=Ot.extend("--ft-typography-title-dense-letter-spacing",No.letterSpacing,"0.105px"),To=Ot.extend("--ft-typography-title-dense-line-height",No.lineHeight,"1.7"),Do=Ot.extend("--ft-typography-title-dense-text-transform",No.textTransform,"inherit"),_o=Ot.extend("--ft-typography-subtitle1-font-family",Eo),Wo=Ot.extend("--ft-typography-subtitle1-font-size",No.fontSize,"16px"),Ho=Ot.extend("--ft-typography-subtitle1-font-weight",No.fontWeight,"600"),Ko=Ot.extend("--ft-typography-subtitle1-letter-spacing",No.letterSpacing,"0.144px"),Vo=Ot.extend("--ft-typography-subtitle1-line-height",No.lineHeight,"1.5"),Zo=Ot.extend("--ft-typography-subtitle1-text-transform",No.textTransform,"inherit"),qo=Ot.extend("--ft-typography-subtitle2-font-family",Eo),Jo=Ot.extend("--ft-typography-subtitle2-font-size",No.fontSize,"14px"),Xo=Ot.extend("--ft-typography-subtitle2-font-weight",No.fontWeight,"normal"),Go=Ot.extend("--ft-typography-subtitle2-letter-spacing",No.letterSpacing,"0.098px"),Yo=Ot.extend("--ft-typography-subtitle2-line-height",No.lineHeight,"1.7"),Qo=Ot.extend("--ft-typography-subtitle2-text-transform",No.textTransform,"inherit"),tn=Ot.extend("--ft-typography-body1-font-family",Eo),en=Ot.extend("--ft-typography-body1-font-size",No.fontSize,"16px"),on=Ot.extend("--ft-typography-body1-font-weight",No.fontWeight,"normal"),nn=Ot.extend("--ft-typography-body1-letter-spacing",No.letterSpacing,"0.496px"),rn=Ot.extend("--ft-typography-body1-line-height",No.lineHeight,"1.5"),sn=Ot.extend("--ft-typography-body1-text-transform",No.textTransform,"inherit"),ln={fontFamily:Ot.extend("--ft-typography-body2-font-family",Eo),fontSize:Ot.extend("--ft-typography-body2-font-size",No.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-body2-font-weight",No.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-body2-letter-spacing",No.letterSpacing,"0.252px"),lineHeight:Ot.extend("--ft-typography-body2-line-height",No.lineHeight,"1.4"),textTransform:Ot.extend("--ft-typography-body2-text-transform",No.textTransform,"inherit")},an=Ot.extend("--ft-typography-caption-font-family",Eo),cn=Ot.extend("--ft-typography-caption-font-size",No.fontSize,"12px"),hn=Ot.extend("--ft-typography-caption-font-weight",No.fontWeight,"normal"),fn=Ot.extend("--ft-typography-caption-letter-spacing",No.letterSpacing,"0.396px"),un=Ot.extend("--ft-typography-caption-line-height",No.lineHeight,"1.33"),dn=Ot.extend("--ft-typography-caption-text-transform",No.textTransform,"inherit"),pn=Ot.extend("--ft-typography-breadcrumb-font-family",Eo),vn=Ot.extend("--ft-typography-breadcrumb-font-size",No.fontSize,"10px"),bn=Ot.extend("--ft-typography-breadcrumb-font-weight",No.fontWeight,"normal"),yn=Ot.extend("--ft-typography-breadcrumb-letter-spacing",No.letterSpacing,"0.33px"),gn=Ot.extend("--ft-typography-breadcrumb-line-height",No.lineHeight,"1.6"),xn=Ot.extend("--ft-typography-breadcrumb-text-transform",No.textTransform,"inherit"),mn=Ot.extend("--ft-typography-overline-font-family",Eo),wn=Ot.extend("--ft-typography-overline-font-size",No.fontSize,"10px"),$n=Ot.extend("--ft-typography-overline-font-weight",No.fontWeight,"normal"),On=Ot.extend("--ft-typography-overline-letter-spacing",No.letterSpacing,"1.5px"),kn=Ot.extend("--ft-typography-overline-line-height",No.lineHeight,"1.6"),Sn=Ot.extend("--ft-typography-overline-text-transform",No.textTransform,"uppercase"),jn={fontFamily:Ot.extend("--ft-typography-button-font-family",Eo),fontSize:Ot.extend("--ft-typography-button-font-size",No.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-button-font-weight",No.fontWeight,"600"),letterSpacing:Ot.extend("--ft-typography-button-letter-spacing",No.letterSpacing,"1.246px"),lineHeight:Ot.extend("--ft-typography-button-line-height",No.lineHeight,"1.15"),textTransform:Ot.extend("--ft-typography-button-text-transform",No.textTransform,"uppercase")},Cn=$`
|
|
176
|
+
.ft-typography--title {
|
|
177
|
+
font-family: ${Ro};
|
|
178
|
+
font-size: ${Mo};
|
|
179
|
+
font-weight: ${Ao};
|
|
180
|
+
letter-spacing: ${zo};
|
|
181
|
+
line-height: ${Po};
|
|
182
|
+
text-transform: ${Uo};
|
|
183
|
+
}
|
|
184
|
+
`,En=$`
|
|
185
|
+
.ft-typography--title-dense {
|
|
186
|
+
font-family: ${Io};
|
|
187
|
+
font-size: ${Bo};
|
|
188
|
+
font-weight: ${Lo};
|
|
189
|
+
letter-spacing: ${Fo};
|
|
190
|
+
line-height: ${To};
|
|
191
|
+
text-transform: ${Do};
|
|
192
|
+
}
|
|
193
|
+
`,Nn=$`
|
|
194
|
+
.ft-typography--subtitle1 {
|
|
195
|
+
font-family: ${_o};
|
|
196
|
+
font-size: ${Wo};
|
|
197
|
+
font-weight: ${Ho};
|
|
198
|
+
letter-spacing: ${Ko};
|
|
199
|
+
line-height: ${Vo};
|
|
200
|
+
text-transform: ${Zo};
|
|
201
|
+
}
|
|
202
|
+
`,Rn=$`
|
|
203
|
+
.ft-typography--subtitle2 {
|
|
204
|
+
font-family: ${qo};
|
|
205
|
+
font-size: ${Jo};
|
|
206
|
+
font-weight: ${Xo};
|
|
207
|
+
letter-spacing: ${Go};
|
|
208
|
+
line-height: ${Yo};
|
|
209
|
+
text-transform: ${Qo};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
`,Mn=$`
|
|
213
|
+
.ft-typography--body1 {
|
|
214
|
+
font-family: ${tn};
|
|
215
|
+
font-size: ${en};
|
|
216
|
+
font-weight: ${on};
|
|
217
|
+
letter-spacing: ${nn};
|
|
218
|
+
line-height: ${rn};
|
|
219
|
+
text-transform: ${sn};
|
|
220
|
+
}
|
|
221
|
+
`,An=$`
|
|
222
|
+
.ft-typography--body2 {
|
|
223
|
+
font-family: ${ln.fontFamily};
|
|
224
|
+
font-size: ${ln.fontSize};
|
|
225
|
+
font-weight: ${ln.fontWeight};
|
|
226
|
+
letter-spacing: ${ln.letterSpacing};
|
|
227
|
+
line-height: ${ln.lineHeight};
|
|
228
|
+
text-transform: ${ln.textTransform};
|
|
229
|
+
}
|
|
230
|
+
`,zn=$`
|
|
231
|
+
.ft-typography--caption {
|
|
232
|
+
font-family: ${an};
|
|
233
|
+
font-size: ${cn};
|
|
234
|
+
font-weight: ${hn};
|
|
235
|
+
letter-spacing: ${fn};
|
|
236
|
+
line-height: ${un};
|
|
237
|
+
text-transform: ${dn};
|
|
238
|
+
}
|
|
239
|
+
`,Pn=$`
|
|
240
|
+
.ft-typography--breadcrumb {
|
|
241
|
+
font-family: ${pn};
|
|
242
|
+
font-size: ${vn};
|
|
243
|
+
font-weight: ${bn};
|
|
244
|
+
letter-spacing: ${yn};
|
|
245
|
+
line-height: ${gn};
|
|
246
|
+
text-transform: ${xn};
|
|
247
|
+
}
|
|
248
|
+
`,Un=$`
|
|
249
|
+
.ft-typography--overline {
|
|
250
|
+
font-family: ${mn};
|
|
251
|
+
font-size: ${wn};
|
|
252
|
+
font-weight: ${$n};
|
|
253
|
+
letter-spacing: ${On};
|
|
254
|
+
line-height: ${kn};
|
|
255
|
+
text-transform: ${Sn};
|
|
256
|
+
}
|
|
257
|
+
`,In=$`
|
|
258
|
+
.ft-typography--button {
|
|
259
|
+
font-family: ${jn.fontFamily};
|
|
260
|
+
font-size: ${jn.fontSize};
|
|
261
|
+
font-weight: ${jn.fontWeight};
|
|
262
|
+
letter-spacing: ${jn.letterSpacing};
|
|
263
|
+
line-height: ${jn.lineHeight};
|
|
264
|
+
text-transform: ${jn.textTransform};
|
|
265
|
+
}
|
|
266
|
+
`,Bn=$`
|
|
267
|
+
.ft-typography {
|
|
268
|
+
vertical-align: inherit;
|
|
269
|
+
}
|
|
270
|
+
`;var Ln=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Fn extends At{constructor(){super(...arguments),this.variant=jo.body1}render(){return this.element?So`
|
|
271
|
+
<${Oo(this.element)}
|
|
272
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
273
|
+
<slot></slot>
|
|
274
|
+
</${Oo(this.element)}>
|
|
275
|
+
`:So`
|
|
276
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
277
|
+
`}}function Tn(t,e){return t.flatMap((t=>[t,...Tn(e(t),e)]))}
|
|
278
|
+
/**
|
|
279
|
+
* @license
|
|
280
|
+
* Copyright 2018 Google LLC
|
|
281
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
282
|
+
*/Fn.styles=[Cn,En,Nn,Rn,Mn,An,zn,Pn,Un,In,Bn],Ln([s()],Fn.prototype,"element",void 0),Ln([s()],Fn.prototype,"variant",void 0),p("ft-typography")(Fn);const Dn=Ti(class extends Di{constructor(t){var e;if(super(t),t.type!==Li||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.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 n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return it}}),_n=Ot.extend("--ft-ripple-color",St.colorContent),Wn={color:_n,backgroundColor:Ot.extend("--ft-ripple-background-color",_n),opacityContentOnSurfacePressed:Ot.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ot.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ot.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ot.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ot.create("--ft-ripple-border-radius","SIZE","0px")},Hn=Ot.extend("--ft-ripple-color",St.colorPrimary),Kn=Hn,Vn=Ot.extend("--ft-ripple-background-color",Hn),Zn=Ot.extend("--ft-ripple-color",St.colorSecondary),qn=Zn,Jn=Ot.extend("--ft-ripple-background-color",Zn),Xn=$`
|
|
283
|
+
:host {
|
|
284
|
+
display: contents;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.ft-ripple {
|
|
288
|
+
position: absolute;
|
|
289
|
+
inset: 0;
|
|
290
|
+
pointer-events: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
border-radius: ${Wn.borderRadius};
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.ft-ripple .ft-ripple--background,
|
|
299
|
+
.ft-ripple .ft-ripple--effect {
|
|
300
|
+
position: absolute;
|
|
301
|
+
opacity: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.ft-ripple .ft-ripple--background {
|
|
305
|
+
background-color: ${Wn.backgroundColor};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ft-ripple .ft-ripple--effect {
|
|
309
|
+
background-color: ${Wn.color};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
313
|
+
background-color: ${Jn};
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
317
|
+
background-color: ${qn};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
321
|
+
background-color: ${Vn};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
325
|
+
background-color: ${Kn};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ft-ripple .ft-ripple--background {
|
|
329
|
+
top: 0;
|
|
330
|
+
left: 0;
|
|
331
|
+
height: 100%;
|
|
332
|
+
width: 100%;
|
|
333
|
+
transition: opacity 75ms linear;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ft-ripple .ft-ripple--effect,
|
|
337
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
338
|
+
border-radius: 50%;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.ft-ripple .ft-ripple--effect {
|
|
342
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
343
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
347
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
348
|
+
left: 50%;
|
|
349
|
+
top: 50%;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
353
|
+
transform: translate(-50%, -50%);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
357
|
+
opacity: ${Wn.opacityContentOnSurfaceHover};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
361
|
+
opacity: ${Wn.opacityContentOnSurfaceSelected};
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
365
|
+
opacity: ${Wn.opacityContentOnSurfaceFocused};
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
369
|
+
opacity: ${Wn.opacityContentOnSurfacePressed};
|
|
370
|
+
transform: translate(-50%, -50%) scale(1);
|
|
371
|
+
}
|
|
372
|
+
`;var Gn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yn extends At{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:o,y:n}=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!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-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 et`
|
|
373
|
+
<style>
|
|
374
|
+
.ft-ripple .ft-ripple--effect,
|
|
375
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
376
|
+
width: ${this.rippleSize}px;
|
|
377
|
+
height: ${this.rippleSize}px;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.ft-ripple .ft-ripple--effect {
|
|
381
|
+
left: ${this.originX}px;
|
|
382
|
+
top: ${this.originY}px;
|
|
383
|
+
}
|
|
384
|
+
</style>
|
|
385
|
+
<div class="${Dn(t)}">
|
|
386
|
+
<div class="ft-ripple--background"></div>
|
|
387
|
+
<div class="ft-ripple--effect"></div>
|
|
388
|
+
</div>
|
|
389
|
+
`}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((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Yn.elementDefinitions={},Yn.styles=Xn,Gn([s({type:Boolean})],Yn.prototype,"primary",void 0),Gn([s({type:Boolean})],Yn.prototype,"secondary",void 0),Gn([s({type:Boolean})],Yn.prototype,"unbounded",void 0),Gn([s({type:Boolean})],Yn.prototype,"activated",void 0),Gn([s({type:Boolean})],Yn.prototype,"selected",void 0),Gn([s({type:Boolean})],Yn.prototype,"disabled",void 0),Gn([l()],Yn.prototype,"hovered",void 0),Gn([l()],Yn.prototype,"focused",void 0),Gn([l()],Yn.prototype,"pressed",void 0),Gn([l()],Yn.prototype,"rippling",void 0),Gn([l()],Yn.prototype,"rippleSize",void 0),Gn([l()],Yn.prototype,"originX",void 0),Gn([l()],Yn.prototype,"originY",void 0),Gn([c(".ft-ripple")],Yn.prototype,"ripple",void 0),Gn([c(".ft-ripple--effect")],Yn.prototype,"rippleEffect",void 0),p("ft-ripple")(Yn);var Qn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class tr extends At{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 et`
|
|
390
|
+
<div part="container"
|
|
391
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
392
|
+
@mouseenter=${this.onHover}
|
|
393
|
+
@mouseleave=${this.onOut}
|
|
394
|
+
@focusin=${this.onHover}
|
|
395
|
+
@focusout=${this.onOut}
|
|
396
|
+
@touchstart=${this.onTouch}>
|
|
397
|
+
<slot></slot>
|
|
398
|
+
<div part="tooltip" role="tooltip" inert
|
|
399
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
400
|
+
?hidden=${!this.visible}>
|
|
401
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
402
|
+
<slot name="text"></slot>
|
|
403
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${Pi.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())}}tr.elementDefinitions={"ft-typography":Fn},tr.styles=Ui,Qn([s()],tr.prototype,"text",void 0),Qn([s({type:Boolean})],tr.prototype,"manual",void 0),Qn([s({type:Boolean})],tr.prototype,"inline",void 0),Qn([s({type:Number})],tr.prototype,"delay",void 0),Qn([s()],tr.prototype,"position",void 0),Qn([function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?u({slot:n,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],tr.prototype,"slotNodes",void 0),Qn([c(".ft-tooltip--container")],tr.prototype,"container",void 0),Qn([c("slot")],tr.prototype,"target",void 0),Qn([c(".ft-tooltip")],tr.prototype,"tooltip",void 0),Qn([c(".ft-tooltip--content")],tr.prototype,"tooltipContent",void 0),Qn([l()],tr.prototype,"visible",void 0),p("ft-tooltip")(tr);const er={color:Ot.extend("--ft-loader-color",St.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},ir=$`
|
|
408
|
+
:host {
|
|
409
|
+
line-height: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ft-loader {
|
|
413
|
+
display: inline-block;
|
|
414
|
+
position: relative;
|
|
415
|
+
|
|
416
|
+
width: ${er.size};
|
|
417
|
+
height: ${er.size};
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ft-loader div {
|
|
421
|
+
position: absolute;
|
|
422
|
+
top: 37.5%;
|
|
423
|
+
width: 25%;
|
|
424
|
+
height: 25%;
|
|
425
|
+
border-radius: 50%;
|
|
426
|
+
background: ${er.color};
|
|
427
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.ft-loader div:nth-child(1) {
|
|
431
|
+
left: 2.5%;
|
|
432
|
+
animation: appear 0.6s infinite;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ft-loader div:nth-child(2) {
|
|
436
|
+
left: 2.5%;
|
|
437
|
+
animation: move 0.6s infinite;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.ft-loader div:nth-child(3) {
|
|
441
|
+
left: 37.5%;
|
|
442
|
+
animation: move 0.6s infinite;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ft-loader div:nth-child(4) {
|
|
446
|
+
left: 72.5%;
|
|
447
|
+
animation: disappear 0.6s infinite;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@keyframes appear {
|
|
451
|
+
0% {
|
|
452
|
+
transform: scale(0);
|
|
453
|
+
}
|
|
454
|
+
100% {
|
|
455
|
+
transform: scale(1);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@keyframes disappear {
|
|
460
|
+
0% {
|
|
461
|
+
transform: scale(1);
|
|
462
|
+
}
|
|
463
|
+
100% {
|
|
464
|
+
transform: scale(0);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@keyframes move {
|
|
469
|
+
0% {
|
|
470
|
+
transform: translate(0, 0);
|
|
471
|
+
}
|
|
472
|
+
100% {
|
|
473
|
+
transform: translate(calc(0.35 * ${er.size}), 0);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
`;class or extends At{render(){return et`
|
|
477
|
+
<div class="ft-loader">
|
|
478
|
+
<div></div>
|
|
479
|
+
<div></div>
|
|
480
|
+
<div></div>
|
|
481
|
+
<div></div>
|
|
482
|
+
</div>
|
|
483
|
+
`}}or.styles=ir,p("ft-loader")(or);
|
|
484
|
+
/**
|
|
485
|
+
* @license
|
|
486
|
+
* Copyright 2017 Google LLC
|
|
487
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
488
|
+
*/
|
|
489
|
+
class nr extends Di{constructor(t){if(super(t),this.et=ot,t.type!==Fi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ot||null==t)return this.ft=void 0,this.et=t;if(t===it)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:[]}}}nr.directiveName="unsafeHTML",nr.resultType=1;const rr=Ti(nr);var sr,lr;!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=""}(sr||(sr={})),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=""}(lr||(lr={})),new Map([...["abw"].map((t=>[t,lr.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,lr.AUDIO])),...["avi"].map((t=>[t,lr.AVI])),...["chm","xhs"].map((t=>[t,lr.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,lr.CODE])),...["csv"].map((t=>[t,lr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,lr.DITA])),...["epub"].map((t=>[t,lr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,lr.EXCEL])),...["flac"].map((t=>[t,lr.FLAC])),...["gif"].map((t=>[t,lr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,lr.GZIP])),...["html","htm","xhtml"].map((t=>[t,lr.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,lr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,lr.JPEG])),...["json"].map((t=>[t,lr.JSON])),...["m4a","m4p"].map((t=>[t,lr.M4A])),...["mov","qt"].map((t=>[t,lr.MOV])),...["mp3"].map((t=>[t,lr.MP3])),...["mp4","m4v"].map((t=>[t,lr.MP4])),...["ogg","oga"].map((t=>[t,lr.OGG])),...["pdf","ps"].map((t=>[t,lr.PDF])),...["png"].map((t=>[t,lr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,lr.POWERPOINT])),...["rar"].map((t=>[t,lr.RAR])),...["stp"].map((t=>[t,lr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,lr.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,lr.VIDEO])),...["wav"].map((t=>[t,lr.WAV])),...["wma"].map((t=>[t,lr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,lr.WORD])),...["xml","xsl","rdf"].map((t=>[t,lr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,lr.YAML])),...["zip"].map((t=>[t,lr.ZIP]))]);const ar={size:Ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:Ot.extend("--ft-icon-fluid-topics-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:Ot.extend("--ft-icon-file-format-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:Ot.extend("--ft-icon-material-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:Ot.create("--ft-icon-vertical-align","UNKNOWN","unset")},cr=$`
|
|
490
|
+
:host, i.ft-icon {
|
|
491
|
+
display: inline-flex;
|
|
492
|
+
align-items: center;
|
|
493
|
+
flex-shrink: 0;
|
|
494
|
+
flex-grow: 0;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
:host {
|
|
498
|
+
width: ${ar.size};
|
|
499
|
+
height: ${ar.size};
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
i.ft-icon {
|
|
503
|
+
width: 100%;
|
|
504
|
+
height: 100%;
|
|
505
|
+
font-size: ${ar.size};
|
|
506
|
+
line-height: 1;
|
|
507
|
+
font-weight: normal;
|
|
508
|
+
text-transform: none;
|
|
509
|
+
font-style: normal;
|
|
510
|
+
font-variant: normal;
|
|
511
|
+
speak: none;
|
|
512
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
513
|
+
text-rendering: auto;
|
|
514
|
+
-webkit-font-smoothing: antialiased;
|
|
515
|
+
-moz-osx-font-smoothing: grayscale;
|
|
516
|
+
vertical-align: ${ar.verticalAlign};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
520
|
+
font-family: ${ar.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
521
|
+
|
|
522
|
+
/* Ugly fix because font is broken */
|
|
523
|
+
font-size: calc(0.75 * ${ar.size});
|
|
524
|
+
line-height: ${ar.size};
|
|
525
|
+
position: relative;
|
|
526
|
+
top: -4%;
|
|
527
|
+
justify-content: center;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.ft-icon--file-format {
|
|
531
|
+
font-family: ${ar.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.ft-icon--material {
|
|
535
|
+
font-family: ${ar.materialFontFamily}, "Material Icons", sans-serif;
|
|
536
|
+
}
|
|
537
|
+
`;var hr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(hr||(hr={}));var fr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ur extends At{constructor(){super(...arguments),this.resolvedIcon=ot}render(){const t=this.variant&&Object.values(hr).includes(this.variant)?this.variant:hr.fluid_topics,e=t!==hr.material||!!this.value;return et`
|
|
538
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
539
|
+
${rr(this.resolvedIcon)}
|
|
540
|
+
<slot ?hidden=${e}></slot>
|
|
541
|
+
</i>
|
|
542
|
+
`}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 hr.file_format:this.resolvedIcon=null!==(t=lr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case hr.material:this.resolvedIcon=this.value||ot;break;default:this.resolvedIcon=null!==(e=sr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ur.elementDefinitions={},ur.styles=cr,fr([s()],ur.prototype,"variant",void 0),fr([s()],ur.prototype,"value",void 0),fr([l()],ur.prototype,"resolvedIcon",void 0),fr([c("slot")],ur.prototype,"slottedContent",void 0),p("ft-icon")(ur);const dr=Ot.extend("--ft-button-color",St.colorPrimary),pr={backgroundColor:Ot.extend("--ft-button-background-color",St.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",St.borderRadiusL),color:dr,fontSize:Ot.extend("--ft-button-font-size",jn.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",dr),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(St.colorOpacityDisabled,"Design system")},vr=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",St.colorOnPrimary)),br={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",St.colorPrimary)),color:vr,rippleColor:Ot.extend("--ft-button-primary-ripple-color",vr)},yr=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",St.borderRadiusM)),gr=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),xr=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),mr=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),wr=[$`
|
|
543
|
+
:host {
|
|
544
|
+
display: inline-block;
|
|
545
|
+
max-width: 100%;
|
|
546
|
+
pointer-events: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
button {
|
|
550
|
+
box-shadow: 0px 0px 0px transparent;
|
|
551
|
+
border: 0px solid transparent;
|
|
552
|
+
text-shadow: 0px 0px 0px transparent;
|
|
553
|
+
font-size: ${pr.fontSize};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
button:hover {
|
|
557
|
+
box-shadow: 0px 0px 0px transparent;
|
|
558
|
+
border: 0px solid transparent;
|
|
559
|
+
text-shadow: 0px 0px 0px transparent;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
button:active {
|
|
563
|
+
outline: none;
|
|
564
|
+
border: none;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
button:focus {
|
|
568
|
+
outline: 0;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.ft-button {
|
|
572
|
+
position: relative;
|
|
573
|
+
display: flex;
|
|
574
|
+
justify-content: center;
|
|
575
|
+
align-items: center;
|
|
576
|
+
width: 100%;
|
|
577
|
+
overflow: hidden;
|
|
578
|
+
box-sizing: border-box;
|
|
579
|
+
border: none;
|
|
580
|
+
pointer-events: auto;
|
|
581
|
+
|
|
582
|
+
--ft-button-internal-line-height: max(calc(${pr.fontSize} + 2px), ${pr.iconSize});
|
|
583
|
+
--ft-button-internal-color: ${pr.color};
|
|
584
|
+
${kt(ar.size,pr.iconSize)};
|
|
585
|
+
${kt(Wn.color,pr.rippleColor)};
|
|
586
|
+
|
|
587
|
+
border-radius: ${pr.borderRadius};
|
|
588
|
+
padding: ${pr.verticalPadding} ${pr.horizontalPadding};
|
|
589
|
+
background-color: ${pr.backgroundColor};
|
|
590
|
+
color: var(--ft-button-internal-color);
|
|
591
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.ft-button.ft-button--outlined {
|
|
595
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
596
|
+
padding: calc(${pr.verticalPadding} - 1px) calc(${pr.horizontalPadding} - 1px);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.ft-button.ft-button--dense {
|
|
600
|
+
padding: ${gr} ${xr};
|
|
601
|
+
border-radius: ${yr};
|
|
602
|
+
gap: ${mr};
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
606
|
+
padding: calc(${gr} - 1px) calc(${xr} - 1px);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.ft-button:not([disabled]):hover {
|
|
610
|
+
cursor: pointer;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.ft-button--round {
|
|
614
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${pr.verticalPadding});
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.ft-button--round.ft-button--dense {
|
|
618
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${gr});
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.ft-button[disabled] {
|
|
622
|
+
filter: grayscale(1);
|
|
623
|
+
opacity: ${pr.opacityDisabled};
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.ft-button.ft-button--primary {
|
|
627
|
+
background-color: ${br.backgroundColor};
|
|
628
|
+
--ft-button-internal-color: ${br.color};
|
|
629
|
+
${kt(Wn.color,br.rippleColor)};
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.ft-button:focus {
|
|
633
|
+
outline: none;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.ft-button--label {
|
|
637
|
+
position: relative;
|
|
638
|
+
overflow: hidden;
|
|
639
|
+
white-space: nowrap;
|
|
640
|
+
text-overflow: ellipsis;
|
|
641
|
+
display: block;
|
|
642
|
+
margin: 0 ${pr.iconPadding};
|
|
643
|
+
${kt(jn.fontSize,"1em")};
|
|
644
|
+
${kt(jn.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.ft-button--dense .ft-button--label {
|
|
648
|
+
margin: 0 ${mr};
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.ft-button--label[hidden] {
|
|
652
|
+
display: none;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
ft-icon {
|
|
656
|
+
flex-shrink: 0;
|
|
657
|
+
position: relative;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.ft-button--label[hidden] + ft-icon {
|
|
661
|
+
margin: 0 calc(${pr.horizontalPadding} * -1);
|
|
662
|
+
padding: 0 ${pr.verticalPadding};
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
666
|
+
margin: 0 calc(${xr} * -1);
|
|
667
|
+
padding: 0 ${gr};
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
671
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
672
|
+
order: -1;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
ft-loader {
|
|
676
|
+
${kt(er.size,pr.iconSize)};
|
|
677
|
+
${kt(er.color,"var(--ft-button-internal-color)")};
|
|
678
|
+
}
|
|
679
|
+
`,zt];var $r=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Or extends At{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(et`
|
|
680
|
+
<button part="button"
|
|
681
|
+
class="${Dn(t)}"
|
|
682
|
+
aria-label="${this.getLabel()}"
|
|
683
|
+
?disabled=${this.isDisabled()}>
|
|
684
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
685
|
+
<ft-typography part="label"
|
|
686
|
+
variant="button"
|
|
687
|
+
element="span"
|
|
688
|
+
class="ft-button--label ${zi?"ft-safari-ellipsis-fix":""}"
|
|
689
|
+
?hidden=${!this.hasTextContent()}>
|
|
690
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
691
|
+
</ft-typography>
|
|
692
|
+
${this.resolveIcon()}
|
|
693
|
+
</button>
|
|
694
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?et`
|
|
695
|
+
<ft-tooltip part="tooltip"
|
|
696
|
+
text="${this.getLabel()}"
|
|
697
|
+
position="${this.tooltipPosition}">
|
|
698
|
+
${t}
|
|
699
|
+
</ft-tooltip>
|
|
700
|
+
`:t}resolveIcon(){return this.loading?et`
|
|
701
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?et`
|
|
702
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ot}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}}Or.elementDefinitions={"ft-ripple":Yn,"ft-tooltip":tr,"ft-typography":Fn,"ft-icon":ur,"ft-loader":or},Or.styles=[Pt,wr],$r([s({type:String,reflect:!0})],Or.prototype,"role",void 0),$r([s({type:Boolean})],Or.prototype,"primary",void 0),$r([s({type:Boolean})],Or.prototype,"outlined",void 0),$r([s({type:Boolean})],Or.prototype,"disabled",void 0),$r([s({type:Boolean})],Or.prototype,"dense",void 0),$r([s({type:Boolean})],Or.prototype,"round",void 0),$r([s()],Or.prototype,"label",void 0),$r([s()],Or.prototype,"icon",void 0),$r([s()],Or.prototype,"iconVariant",void 0),$r([s({type:Boolean})],Or.prototype,"trailingIcon",void 0),$r([s({type:Boolean})],Or.prototype,"loading",void 0),$r([s()],Or.prototype,"tooltipPosition",void 0),$r([s({type:Boolean})],Or.prototype,"hideTooltip",void 0),$r([s({type:Boolean})],Or.prototype,"forceTooltip",void 0),$r([c(".ft-button")],Or.prototype,"button",void 0),$r([c(".ft-button--label slot")],Or.prototype,"slottedContent",void 0),p("ft-button")(Or);const kr=Ot.extend("--ft-checkbox-text-color",St.colorOnSurfaceHigh),Sr=Ot.external(St.colorPrimary,"Design system"),jr=Ot.external(St.colorOnPrimary,"Design system"),Cr=Ot.extend("--ft-checkbox-border-color",St.colorOnSurfaceMedium),Er=Ot.external(St.colorOnSurfaceDisabled,"Design system"),Nr=$`
|
|
703
|
+
* {
|
|
704
|
+
box-sizing: border-box;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.ft-checkbox {
|
|
708
|
+
box-sizing: border-box;
|
|
709
|
+
color: ${kr};
|
|
710
|
+
|
|
711
|
+
display: inline-flex;
|
|
712
|
+
align-items: center;
|
|
713
|
+
gap: 4px;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.ft-checkbox--disabled {
|
|
717
|
+
color: ${Er};
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
input {
|
|
721
|
+
opacity: 0;
|
|
722
|
+
position: absolute;
|
|
723
|
+
width: 40px;
|
|
724
|
+
height: 40px;
|
|
725
|
+
margin: 0;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ft-checkbox--box-container {
|
|
729
|
+
position: relative;
|
|
730
|
+
width: 40px;
|
|
731
|
+
height: 40px;
|
|
732
|
+
|
|
733
|
+
display: flex;
|
|
734
|
+
justify-content: center;
|
|
735
|
+
align-items: center;
|
|
736
|
+
flex-shrink: 0;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.ft-checkbox--box {
|
|
740
|
+
display: flex;
|
|
741
|
+
border: 2px solid ${Cr};
|
|
742
|
+
border-radius: 2px;
|
|
743
|
+
|
|
744
|
+
width: 18px;
|
|
745
|
+
height: 18px;
|
|
746
|
+
|
|
747
|
+
color: ${jr};
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
.ft-checkbox--checked .ft-checkbox--box,
|
|
752
|
+
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
753
|
+
border-color: ${Sr};
|
|
754
|
+
background-color: ${Sr};
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.ft-checkbox--disabled .ft-checkbox--box {
|
|
758
|
+
border-color: ${Er};
|
|
759
|
+
background-color: transparent;
|
|
760
|
+
color: ${Er};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.ft-checkbox--checkmark {
|
|
764
|
+
transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
765
|
+
opacity: 0;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.ft-checkbox--checkmark-path {
|
|
769
|
+
stroke-dashoffset: 0;
|
|
770
|
+
stroke: currentcolor;
|
|
771
|
+
stroke-width: 3px;
|
|
772
|
+
stroke-dasharray: 30;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.ft-checkbox--checked .ft-checkbox--checkmark,
|
|
776
|
+
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
777
|
+
opacity: 1;
|
|
778
|
+
}
|
|
779
|
+
`;var Rr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Mr extends At{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return et`
|
|
780
|
+
<label class="${Dn(t)}" for="checkbox-input">
|
|
781
|
+
<div class="ft-checkbox--box-container">
|
|
782
|
+
<ft-ripple
|
|
783
|
+
?disabled=${this.disabled}
|
|
784
|
+
?primary=${this.checked||this.indeterminate}
|
|
785
|
+
unbounded>
|
|
786
|
+
</ft-ripple>
|
|
787
|
+
<div class="ft-checkbox--box">
|
|
788
|
+
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
|
|
789
|
+
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
790
|
+
d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
|
|
791
|
+
</svg>
|
|
792
|
+
</div>
|
|
793
|
+
<input type="checkbox"
|
|
794
|
+
id="checkbox-input"
|
|
795
|
+
name="${this.name}"
|
|
796
|
+
.checked=${this.checked}
|
|
797
|
+
.disabled=${this.disabled}
|
|
798
|
+
@change=${this.onChange}
|
|
799
|
+
>
|
|
800
|
+
</div>
|
|
801
|
+
<ft-typography variant="body2">
|
|
802
|
+
<slot></slot>
|
|
803
|
+
</ft-typography>
|
|
804
|
+
</label>
|
|
805
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Mr.elementDefinitions={"ft-ripple":Yn,"ft-typography":Fn},Mr.styles=Nr,Rr([s()],Mr.prototype,"name",void 0),Rr([s({type:Boolean,reflect:!0})],Mr.prototype,"checked",void 0),Rr([s({type:Boolean})],Mr.prototype,"indeterminate",void 0),Rr([s({type:Boolean})],Mr.prototype,"disabled",void 0),Rr([c(".ft-checkbox")],Mr.prototype,"container",void 0),Rr([c("ft-ripple")],Mr.prototype,"ripple",void 0),p("ft-checkbox")(Mr);const Ar=Ot.extend("--ft-radio-text-color",St.colorOnSurfaceHigh),zr=Ot.external(St.colorPrimary,"Design system"),Pr=(Ot.external(St.colorOnPrimary,"Design system"),Ot.extend("--ft-radio-border-color",St.colorOnSurfaceMedium)),Ur=Ot.external(St.colorOnSurfaceDisabled,"Design system"),Ir=$`
|
|
806
|
+
* {
|
|
807
|
+
box-sizing: border-box;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.ft-radio {
|
|
811
|
+
box-sizing: border-box;
|
|
812
|
+
color: ${Ar};
|
|
813
|
+
|
|
814
|
+
display: inline-flex;
|
|
815
|
+
align-items: center;
|
|
816
|
+
gap: 4px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.ft-radio--disabled {
|
|
820
|
+
color: ${Ur};
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
input {
|
|
824
|
+
opacity: 0;
|
|
825
|
+
position: absolute;
|
|
826
|
+
width: 40px;
|
|
827
|
+
height: 40px;
|
|
828
|
+
margin: 0;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.ft-radio--box-container {
|
|
832
|
+
position: relative;
|
|
833
|
+
width: 40px;
|
|
834
|
+
height: 40px;
|
|
835
|
+
|
|
836
|
+
display: flex;
|
|
837
|
+
justify-content: center;
|
|
838
|
+
align-items: center;
|
|
839
|
+
flex-shrink: 0;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.ft-radio--box {
|
|
843
|
+
border: 2px solid ${Pr};
|
|
844
|
+
border-radius: 50%;
|
|
845
|
+
|
|
846
|
+
display: flex;
|
|
847
|
+
justify-content: center;
|
|
848
|
+
align-items: center;
|
|
849
|
+
|
|
850
|
+
width: 20px;
|
|
851
|
+
height: 20px;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.ft-radio--box:after {
|
|
855
|
+
content: " ";
|
|
856
|
+
background-color: ${zr};
|
|
857
|
+
|
|
858
|
+
border-radius: 50%;
|
|
859
|
+
|
|
860
|
+
width: 12px;
|
|
861
|
+
height: 12px;
|
|
862
|
+
|
|
863
|
+
transform: scale(0);
|
|
864
|
+
transition: transform 100ms ease;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.ft-radio--checked .ft-radio--box {
|
|
868
|
+
border-color: ${zr};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
.ft-radio--checked .ft-radio--box:after {
|
|
873
|
+
transform: scale(1);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.ft-radio--disabled .ft-radio--box {
|
|
877
|
+
border-color: ${Ur};
|
|
878
|
+
background-color: transparent;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.ft-radio--disabled .ft-radio--box:after {
|
|
882
|
+
background-color: ${Ur};
|
|
883
|
+
}
|
|
884
|
+
`;var Br=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lr extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Fr extends At{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return et`
|
|
885
|
+
<div class="${Dn(t)}">
|
|
886
|
+
<div class="ft-radio--box-container">
|
|
887
|
+
<ft-ripple
|
|
888
|
+
?disabled=${this.disabled}
|
|
889
|
+
?primary=${this.checked}
|
|
890
|
+
unbounded>
|
|
891
|
+
</ft-ripple>
|
|
892
|
+
<div class="ft-radio--box">
|
|
893
|
+
</div>
|
|
894
|
+
<input id="radio-button"
|
|
895
|
+
type="radio"
|
|
896
|
+
name="${this.name}"
|
|
897
|
+
value="${this.value}"
|
|
898
|
+
.checked=${this.checked}
|
|
899
|
+
.disabled=${this.disabled}
|
|
900
|
+
@change=${this.onChange}
|
|
901
|
+
>
|
|
902
|
+
</div>
|
|
903
|
+
<label for="radio-button" @click=${t=>t.stopPropagation()}>
|
|
904
|
+
<ft-typography variant="body2">
|
|
905
|
+
<slot></slot>
|
|
906
|
+
</ft-typography>
|
|
907
|
+
</label>
|
|
908
|
+
</div>
|
|
909
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Lr(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Lr(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Fr.elementDefinitions={"ft-ripple":Yn,"ft-typography":Fn},Fr.styles=Ir,Br([s()],Fr.prototype,"value",void 0),Br([s()],Fr.prototype,"name",void 0),Br([s({type:Boolean,reflect:!0})],Fr.prototype,"checked",void 0),Br([s({type:Boolean})],Fr.prototype,"disabled",void 0),Br([c(".ft-radio")],Fr.prototype,"container",void 0),Br([c("ft-ripple")],Fr.prototype,"ripple",void 0),Br([c("input")],Fr.prototype,"input",void 0);const Tr=$`
|
|
910
|
+
:host {
|
|
911
|
+
display: contents;
|
|
912
|
+
}
|
|
913
|
+
`;var Dr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _r extends At{constructor(){super(...arguments),this.name=""}render(){return et`
|
|
914
|
+
<slot @slotchange=${this.onSlotChange}
|
|
915
|
+
@change=${this.onChange}
|
|
916
|
+
@keydown=${this.onKeyDown}
|
|
917
|
+
@focusin=${this.focusCurrentValue}
|
|
918
|
+
></slot>
|
|
919
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}_r.elementDefinitions={},_r.styles=Tr,Dr([s()],_r.prototype,"name",void 0),Dr([u()],_r.prototype,"radioButtons",void 0),p("ft-radio")(Fr),p("ft-radio-group")(_r);const Wr={borderRadiusM:Ot.external(St.borderRadiusM,"Design system"),colorOutline:Ot.external(St.colorOutline,"Design system"),colorOnSurface:Ot.external(St.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ot.external(St.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ot.external(St.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ot.external(St.colorPrimary,"Design system"),colorOnPrimary:Ot.external(St.colorOnPrimary,"Design system"),fontFamily:Ot.external(ln.fontFamily,"Body2 typography"),fontSize:Ot.external(ln.fontSize,"Body2 typography"),fontWeight:Ot.external(ln.fontWeight,"Body2 typography"),letterSpacing:Ot.external(ln.letterSpacing,"Body2 typography"),lineHeight:Ot.external(ln.lineHeight,"Body2 typography"),textTransform:Ot.external(ln.textTransform,"Body2 typography")},Hr=$`
|
|
920
|
+
.ft-filter-level--container {
|
|
921
|
+
display: flex;
|
|
922
|
+
flex-direction: column;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.ft-filter-level--container > * {
|
|
926
|
+
padding: 0 10px;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.ft-filter-level--go-back {
|
|
930
|
+
flex-shrink: 0;
|
|
931
|
+
text-decoration: none;
|
|
932
|
+
position: relative;
|
|
933
|
+
border-radius: ${Wr.borderRadiusM};
|
|
934
|
+
overflow: hidden;
|
|
935
|
+
display: flex;
|
|
936
|
+
align-items: center;
|
|
937
|
+
padding: 4px 4px;
|
|
938
|
+
gap: 4px;
|
|
939
|
+
cursor: pointer;
|
|
940
|
+
color: ${Wr.colorOnSurface};
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.ft-filter-level--go-back:focus {
|
|
944
|
+
outline: none;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.ft-filter-level--go-back ft-icon {
|
|
948
|
+
flex-shrink: 0;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.ft-filter-level--go-back ft-typography {
|
|
952
|
+
display: block;
|
|
953
|
+
flex-grow: 1;
|
|
954
|
+
flex-shrink: 0;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.ft-filter-level--option {
|
|
958
|
+
display: flex;
|
|
959
|
+
align-items: center;
|
|
960
|
+
max-width: 100%;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.ft-filter-level--option ft-button {
|
|
964
|
+
margin-right: -10px;
|
|
965
|
+
flex-shrink: 0;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
ft-button {
|
|
969
|
+
${kt(pr.color,Wr.colorOnSurface)};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
ft-radio, ft-checkbox {
|
|
973
|
+
flex-shrink: 1;
|
|
974
|
+
flex-grow: 1;
|
|
975
|
+
display: flex;
|
|
976
|
+
max-width: calc(100% + 10px);
|
|
977
|
+
margin-left: -10px;
|
|
978
|
+
word-break: break-word;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.ft-filter-level--no-values {
|
|
982
|
+
margin: 10px 0;
|
|
983
|
+
color: ${Wr.colorOnSurfaceMedium};
|
|
984
|
+
}
|
|
985
|
+
`;var Kr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vr extends At{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return et`
|
|
986
|
+
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
987
|
+
${null==this.parent?null:et`
|
|
988
|
+
<div tabindex="0"
|
|
989
|
+
part="controls go-back"
|
|
990
|
+
class="ft-filter-level--go-back"
|
|
991
|
+
?disabled=${this.disabled}
|
|
992
|
+
@keyup=${this.goBackOnKeyPress}
|
|
993
|
+
@click=${this.goBackOnClick}>
|
|
994
|
+
<ft-ripple></ft-ripple>
|
|
995
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
996
|
+
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
997
|
+
</div>
|
|
998
|
+
`}
|
|
999
|
+
${0===this.options.length&&this.noValuesLabel?et`
|
|
1000
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1001
|
+
${this.noValuesLabel}
|
|
1002
|
+
</ft-typography>
|
|
1003
|
+
`:ot}
|
|
1004
|
+
${Ji(e,(t=>t.value),(t=>{var e;return et`
|
|
1005
|
+
<div class="ft-filter-level--option" part="options">
|
|
1006
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1007
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?ot:et`
|
|
1008
|
+
<ft-button icon="thin_arrow_right"
|
|
1009
|
+
part="controls navigate-hierarchy"
|
|
1010
|
+
label="${t.label}"
|
|
1011
|
+
?disabled=${this.disabled}
|
|
1012
|
+
tooltipPosition="left"
|
|
1013
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
1014
|
+
`}
|
|
1015
|
+
</div>
|
|
1016
|
+
`}))}
|
|
1017
|
+
${e.length<t.length?et`
|
|
1018
|
+
<ft-button
|
|
1019
|
+
class="ft-filter-level--display-more"
|
|
1020
|
+
icon="thin_arrow"
|
|
1021
|
+
dense trailingIcon
|
|
1022
|
+
part="controls display-more"
|
|
1023
|
+
@click=${this.displayMore}>
|
|
1024
|
+
${this.moreValuesButtonLabel}
|
|
1025
|
+
</ft-button>
|
|
1026
|
+
`:ot}
|
|
1027
|
+
</div>
|
|
1028
|
+
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return et`
|
|
1029
|
+
<ft-checkbox name="${this.filterId}"
|
|
1030
|
+
part="multivalued-option"
|
|
1031
|
+
data-value="${t.value}"
|
|
1032
|
+
.checked=${t.selected}
|
|
1033
|
+
.disabled=${this.disabled}
|
|
1034
|
+
.indeterminate=${Tn(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
1035
|
+
@change=${e=>this.optionsChanged(e,t)}>
|
|
1036
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1037
|
+
</ft-checkbox>
|
|
1038
|
+
`}buildMonoValuedOption(t){return et`
|
|
1039
|
+
<ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
|
|
1040
|
+
part="monovalued-option"
|
|
1041
|
+
data-value="${t.value}"
|
|
1042
|
+
.checked=${t.selected}
|
|
1043
|
+
.disabled=${this.disabled}
|
|
1044
|
+
@click=${e=>this.optionsChanged(e,t)}
|
|
1045
|
+
@keyup=${e=>this.onRadioKeyUp(e,t)}
|
|
1046
|
+
@change=${t=>t.stopPropagation()}>
|
|
1047
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1048
|
+
</ft-radio>
|
|
1049
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Vr.elementDefinitions={"ft-button":Or,"ft-ripple":Yn,"ft-typography":Fn,"ft-checkbox":Mr,"ft-icon":ur,"ft-radio":Fr},Vr.styles=Hr,Kr([s({type:String})],Vr.prototype,"filterId",void 0),Kr([s({type:Object})],Vr.prototype,"parent",void 0),Kr([s({type:Array})],Vr.prototype,"options",void 0),Kr([s({type:Boolean})],Vr.prototype,"multivalued",void 0),Kr([s({type:Boolean})],Vr.prototype,"disabled",void 0),Kr([s({type:Boolean})],Vr.prototype,"hideSelectedOptions",void 0),Kr([s({type:Boolean})],Vr.prototype,"preventNavigation",void 0),Kr([s({type:String})],Vr.prototype,"filter",void 0),Kr([s({type:String})],Vr.prototype,"moreValuesButtonLabel",void 0),Kr([s({type:String})],Vr.prototype,"noValuesLabel",void 0),Kr([s({type:Number})],Vr.prototype,"displayedValuesLimit",void 0),Kr([c(".ft-filter-level--container")],Vr.prototype,"container",void 0),Kr([l()],Vr.prototype,"displayedPages",void 0);const Zr={buttonsColor:Ot.extend("--ft-snap-scroll-buttons-color",St.colorPrimary),buttonsZIndex:Ot.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:Ot.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:Ot.external(St.colorSurface,"Design system")},qr=$`
|
|
1050
|
+
.ft-snap-scroll {
|
|
1051
|
+
box-sizing: border-box;
|
|
1052
|
+
position: relative;
|
|
1053
|
+
display: flex;
|
|
1054
|
+
|
|
1055
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
1059
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
1060
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
1061
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.ft-snap-scroll,
|
|
1065
|
+
.ft-snap-scroll--content {
|
|
1066
|
+
overflow: hidden;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.ft-snap-scroll--limit-size,
|
|
1070
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
1071
|
+
width: 100%;
|
|
1072
|
+
height: 100%;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.ft-snap-scroll--content {
|
|
1076
|
+
flex-grow: 1;
|
|
1077
|
+
flex-shrink: 1;
|
|
1078
|
+
box-sizing: border-box;
|
|
1079
|
+
scroll-snap-align: start;
|
|
1080
|
+
display: flex;
|
|
1081
|
+
flex-wrap: nowrap;
|
|
1082
|
+
align-items: flex-start;
|
|
1083
|
+
justify-content: flex-start;
|
|
1084
|
+
gap: ${Zr.gap};
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
1088
|
+
display: none;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
1092
|
+
-ms-overflow-style: none;
|
|
1093
|
+
scrollbar-width: none;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
1097
|
+
flex-shrink: 0;
|
|
1098
|
+
flex-grow: 1;
|
|
1099
|
+
max-height: 100%;
|
|
1100
|
+
max-width: 100%;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.ft-snap-scroll--horizontal,
|
|
1104
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1105
|
+
width: 100%;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.ft-snap-scroll--vertical,
|
|
1109
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1110
|
+
height: 100%;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1114
|
+
flex-direction: row;
|
|
1115
|
+
overflow-x: auto;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1119
|
+
flex-direction: column;
|
|
1120
|
+
overflow-y: auto;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.ft-snap-scroll--previous,
|
|
1124
|
+
.ft-snap-scroll--next {
|
|
1125
|
+
position: absolute;
|
|
1126
|
+
display: flex;
|
|
1127
|
+
z-index: ${Zr.buttonsZIndex};
|
|
1128
|
+
opacity: 1;
|
|
1129
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1130
|
+
${kt(pr.backgroundColor,"transparent")};
|
|
1131
|
+
${kt(pr.color,Zr.buttonsColor)};
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.ft-snap-scroll--previous[hidden],
|
|
1135
|
+
.ft-snap-scroll--next[hidden] {
|
|
1136
|
+
z-index: -1;
|
|
1137
|
+
opacity: 0;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
1141
|
+
top: 0;
|
|
1142
|
+
left: -1px;
|
|
1143
|
+
bottom: 0;
|
|
1144
|
+
background: linear-gradient(to right, ${Zr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1148
|
+
top: -1px;
|
|
1149
|
+
left: 0;
|
|
1150
|
+
right: 0;
|
|
1151
|
+
background: linear-gradient(to bottom, ${Zr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1155
|
+
top: 0;
|
|
1156
|
+
right: -1px;
|
|
1157
|
+
bottom: 0;
|
|
1158
|
+
background: linear-gradient(to left, ${Zr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1162
|
+
left: 0;
|
|
1163
|
+
right: 0;
|
|
1164
|
+
bottom: -1px;
|
|
1165
|
+
background: linear-gradient(to top, ${Zr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1169
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1170
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1171
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1172
|
+
background-color: ${Zr.colorSurface};
|
|
1173
|
+
}
|
|
1174
|
+
`;var Jr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xr extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Gr extends At{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new n(200),this.updateScrollDebouncer=new n(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Dn({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":zi}),e=this.controls&&this.withScroll;return et`
|
|
1175
|
+
<div part="container" class="${t}">
|
|
1176
|
+
<ft-button
|
|
1177
|
+
class="ft-snap-scroll--previous"
|
|
1178
|
+
part="controls"
|
|
1179
|
+
primary
|
|
1180
|
+
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1181
|
+
?hidden=${!e||this.startReached}
|
|
1182
|
+
?disabled=${!e||this.startReached}
|
|
1183
|
+
@click=${this.previous}
|
|
1184
|
+
></ft-button>
|
|
1185
|
+
<slot class="ft-snap-scroll--content"
|
|
1186
|
+
part="content"
|
|
1187
|
+
@slotchange=${this.onSlotChange}></slot>
|
|
1188
|
+
<ft-button
|
|
1189
|
+
class="ft-snap-scroll--next"
|
|
1190
|
+
part="controls"
|
|
1191
|
+
primary
|
|
1192
|
+
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1193
|
+
?hidden=${!e||this.endReached}
|
|
1194
|
+
?disabled=${!e||this.endReached}
|
|
1195
|
+
@click=${this.next}
|
|
1196
|
+
></ft-button>
|
|
1197
|
+
</div>
|
|
1198
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Xr(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Gr.elementDefinitions={"ft-button":Or},Gr.styles=qr,Jr([s({type:Boolean})],Gr.prototype,"horizontal",void 0),Jr([s({type:Boolean})],Gr.prototype,"hideScrollbar",void 0),Jr([s({type:Boolean})],Gr.prototype,"controls",void 0),Jr([s({type:Boolean})],Gr.prototype,"limitSize",void 0),Jr([l()],Gr.prototype,"elements",void 0),Jr([l()],Gr.prototype,"currentElement",void 0),Jr([l()],Gr.prototype,"withScroll",void 0),Jr([l()],Gr.prototype,"startReached",void 0),Jr([l()],Gr.prototype,"endReached",void 0),Jr([c(".ft-snap-scroll--content")],Gr.prototype,"contentSlot",void 0),p("ft-snap-scroll")(Gr);const Yr=Ot.external(St.colorOutline,"Design system"),Qr=Ot.external(St.colorOnSurface,"Design system"),ts=Ot.external(St.colorOnSurfaceMedium,"Design system"),es=Ot.external(St.colorPrimary,"Design system"),is=Ot.external(St.colorSurface,"Design system"),os=Ot.external(St.transitionDuration,"Design system"),ns=Ot.external(St.transitionTimingFunction,"Design system"),rs=[zn,$`
|
|
1199
|
+
:host {
|
|
1200
|
+
display: flex;
|
|
1201
|
+
max-height: 100%;
|
|
1202
|
+
max-width: 100%;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.ft-filter--container {
|
|
1206
|
+
flex-grow: 1;
|
|
1207
|
+
display: flex;
|
|
1208
|
+
flex-direction: column;
|
|
1209
|
+
max-height: 100%;
|
|
1210
|
+
max-width: 100%;
|
|
1211
|
+
color: ${Qr};
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.ft-filter--header {
|
|
1215
|
+
display: flex;
|
|
1216
|
+
flex-wrap: wrap;
|
|
1217
|
+
gap: 4px;
|
|
1218
|
+
flex-shrink: 0;
|
|
1219
|
+
padding: 0 10px;
|
|
1220
|
+
margin-bottom: 8px;
|
|
1221
|
+
${kt(No.fontSize,"14px")};
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.ft-filter--header ft-button {
|
|
1225
|
+
flex-shrink: 0;
|
|
1226
|
+
margin-left: auto;
|
|
1227
|
+
${kt(pr.iconSize,"18px")};
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.ft-filter--label {
|
|
1231
|
+
display: block;
|
|
1232
|
+
flex-shrink: 1;
|
|
1233
|
+
flex-grow: 1;
|
|
1234
|
+
word-break: break-word;
|
|
1235
|
+
${kt(No.lineHeight,"22px")};
|
|
1236
|
+
${kt(No.fontWeight,"bold")};
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.ft-filter--filter {
|
|
1240
|
+
flex-shrink: 0;
|
|
1241
|
+
display: flex;
|
|
1242
|
+
margin: 0;
|
|
1243
|
+
margin-bottom: 8px;
|
|
1244
|
+
padding: 0 10px;
|
|
1245
|
+
overflow: hidden;
|
|
1246
|
+
height: 32px;
|
|
1247
|
+
transition: height ${os} ${ns},
|
|
1248
|
+
margin ${os} ${ns};
|
|
1249
|
+
transition-delay: 500ms;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.ft-filter--filter[hidden] {
|
|
1253
|
+
height: 0;
|
|
1254
|
+
margin-bottom: 0;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
input {
|
|
1258
|
+
display: block;
|
|
1259
|
+
width: 100%;
|
|
1260
|
+
border-radius: 4px;
|
|
1261
|
+
border: 1px solid ${Yr};
|
|
1262
|
+
padding: 4px;
|
|
1263
|
+
background-color: ${is};
|
|
1264
|
+
color: ${Qr};
|
|
1265
|
+
outline-color: ${es};
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
input::placeholder {
|
|
1269
|
+
color: ${ts};
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
input:placeholder-shown {
|
|
1273
|
+
text-overflow: ellipsis;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.ft-filter--values {
|
|
1277
|
+
flex-grow: 1;
|
|
1278
|
+
flex-shrink: 1;
|
|
1279
|
+
max-width: 100%;
|
|
1280
|
+
overflow-x: hidden;
|
|
1281
|
+
overflow-y: auto;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.ft-filter--separator {
|
|
1285
|
+
border-top: 1px solid ${Yr};
|
|
1286
|
+
margin: 4px 10px;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.ft-filter--levels-container {
|
|
1290
|
+
position: relative;
|
|
1291
|
+
overflow: hidden;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.ft-filter--levels {
|
|
1295
|
+
position: relative;
|
|
1296
|
+
overflow: hidden;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
ft-filter-level {
|
|
1300
|
+
width: 100%;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.ft-filter--level-left {
|
|
1304
|
+
height: 0;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
slot:not([name]) {
|
|
1308
|
+
display: none;
|
|
1309
|
+
}
|
|
1310
|
+
`];var ss=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ls extends CustomEvent{constructor(t){super("change",{detail:t})}}class as extends At{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return Tn(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return et`
|
|
1311
|
+
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1312
|
+
part="container">
|
|
1313
|
+
${this.label||t?et`
|
|
1314
|
+
<div class="ft-filter--header" part="header">
|
|
1315
|
+
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
1316
|
+
${this.label}
|
|
1317
|
+
</ft-typography>
|
|
1318
|
+
<slot name="label"></slot>
|
|
1319
|
+
${t&&!this.hideClearButton?et`
|
|
1320
|
+
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1321
|
+
${this.clearButtonLabel}
|
|
1322
|
+
</ft-button>
|
|
1323
|
+
`:null}
|
|
1324
|
+
</div>
|
|
1325
|
+
`:null}
|
|
1326
|
+
<div class="ft-filter--filter" ?hidden=${!e}>
|
|
1327
|
+
<input type="search"
|
|
1328
|
+
part="input"
|
|
1329
|
+
class="ft-typography--caption"
|
|
1330
|
+
?disabled=${!e}
|
|
1331
|
+
placeholder="${i}"
|
|
1332
|
+
size="${e?i.length:0}"
|
|
1333
|
+
@search=${this.onFilterChange}
|
|
1334
|
+
@keyup=${this.onFilterChange}>
|
|
1335
|
+
</div>
|
|
1336
|
+
<div class="ft-filter--values">
|
|
1337
|
+
${this.renderLevels()}
|
|
1338
|
+
</div>
|
|
1339
|
+
<slot class="ft-filter--slot"
|
|
1340
|
+
@slotchange=${this.updateOptionsFromSlot}
|
|
1341
|
+
@option-change=${this.optionsChanged}></slot>
|
|
1342
|
+
</div>
|
|
1343
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i,o,n,r;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(r=null===(n=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===n?void 0:n.hasHiddenValues)&&void 0!==r&&r}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return et`
|
|
1344
|
+
${this.raiseSelectedOptions&&e.length>0?et`
|
|
1345
|
+
<ft-filter-level
|
|
1346
|
+
filterId="${this.id}"
|
|
1347
|
+
?multivalued=${this.multivalued}
|
|
1348
|
+
?disabled=${this.disabled}
|
|
1349
|
+
preventNavigation
|
|
1350
|
+
.options=${e}
|
|
1351
|
+
@change=${this.onChange}
|
|
1352
|
+
part="values selected-values"
|
|
1353
|
+
.exportpartsPrefixes=${["values","selected-values"]}
|
|
1354
|
+
></ft-filter-level>
|
|
1355
|
+
<div class="ft-filter--separator">
|
|
1356
|
+
`:null}
|
|
1357
|
+
<ft-snap-scroll horizontal hideScrollbar
|
|
1358
|
+
class="ft-filter--levels"
|
|
1359
|
+
@current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
|
|
1360
|
+
${this.renderLevel(o,this.options)}
|
|
1361
|
+
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var o;const n=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(n,null!==(o=null==t?void 0:t.subOptions)&&void 0!==o?o:[],t)}))}
|
|
1362
|
+
</ft-snap-scroll>
|
|
1363
|
+
`}renderLevel(t,e,i){return et`
|
|
1364
|
+
<ft-filter-level
|
|
1365
|
+
class="${t}"
|
|
1366
|
+
filterId="${this.id}"
|
|
1367
|
+
.filter="${this.filter}"
|
|
1368
|
+
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
1369
|
+
?multivalued=${this.multivalued}
|
|
1370
|
+
?disabled=${this.disabled||"ft-filter--level-center"!==t}
|
|
1371
|
+
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1372
|
+
.parent=${i}
|
|
1373
|
+
.options=${e}
|
|
1374
|
+
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1375
|
+
@change=${this.onChange}
|
|
1376
|
+
@go-back=${this.goBack}
|
|
1377
|
+
@display-level=${this.onDisplayLevel}
|
|
1378
|
+
part="values available-values"
|
|
1379
|
+
.exportpartsPrefixes=${["values","available-values"]}
|
|
1380
|
+
noValuesLabel="${this.noValuesLabel}"
|
|
1381
|
+
></ft-filter-level>
|
|
1382
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;d(this.lastDispatchedValues,t)||(this.dispatchEvent(new ls(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}as.elementDefinitions={"ft-button":Or,"ft-filter-level":Vr,"ft-snap-scroll":Gr,"ft-typography":Fn},as.styles=rs,ss([s({type:String})],as.prototype,"id",void 0),ss([s({type:String})],as.prototype,"label",void 0),ss([s({type:String})],as.prototype,"filterPlaceHolder",void 0),ss([s({type:String})],as.prototype,"clearButtonLabel",void 0),ss([s({type:String})],as.prototype,"moreValuesButtonLabel",void 0),ss([s({type:String})],as.prototype,"noValuesLabel",void 0),ss([v([])],as.prototype,"options",void 0),ss([s({type:Boolean})],as.prototype,"multivalued",void 0),ss([s({type:Boolean})],as.prototype,"disabled",void 0),ss([s({type:Boolean})],as.prototype,"raiseSelectedOptions",void 0),ss([s({type:Number})],as.prototype,"displayedValuesLimit",void 0),ss([s({type:Boolean})],as.prototype,"hideClearButton",void 0),ss([c(".ft-filter--slot")],as.prototype,"slotElement",void 0),ss([c(".ft-filter--container")],as.prototype,"container",void 0),ss([c(".ft-filter--values")],as.prototype,"valuesContainer",void 0),ss([c(".ft-filter--levels")],as.prototype,"levelsContainer",void 0),ss([l()],as.prototype,"lastLevelHasHiddenvalues",void 0),ss([c(".ft-filter--filter input")],as.prototype,"filterInput",void 0),ss([function(t){return a({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],as.prototype,"levels",void 0),ss([l()],as.prototype,"withScroll",void 0),ss([l()],as.prototype,"filter",void 0),ss([l()],as.prototype,"slideIn",void 0),ss([l()],as.prototype,"slideOut",void 0);var cs=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class hs extends At{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return et`
|
|
1383
|
+
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1384
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}hs.elementDefinitions={},cs([s({type:String})],hs.prototype,"label",void 0),cs([s({type:Object,converter:t=>t})],hs.prototype,"value",void 0),cs([s({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),cs([s({type:Object})],hs.prototype,"subOptions",void 0),cs([v({})],hs.prototype,"renderOption",void 0),cs([c(".ft-filter-option--slot")],hs.prototype,"slotElement",void 0),p("ft-filter")(as),p("ft-filter-option")(hs);const fs=bo.build("designedSearchLocaleSelector"),us={label:"Select a language",allLanguagesWarningMessage:"Only recommended when searching for language-agnostic keywords such as product references"};var ds=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ps extends(ho(mo)){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(fs,us)}render(){var t;return et`
|
|
1385
|
+
<ft-filter
|
|
1386
|
+
exportpartsPrefix="filter"
|
|
1387
|
+
label="${fs.messages.label()}"
|
|
1388
|
+
hideClearButton
|
|
1389
|
+
@change=${t=>this.setContentLocale(t)}
|
|
1390
|
+
>
|
|
1391
|
+
${null==this.currentSearchLocale?et`
|
|
1392
|
+
<ft-tooltip slot="label"
|
|
1393
|
+
part="warning-tooltip"
|
|
1394
|
+
position="${this.warningTooltipPosition}"
|
|
1395
|
+
text="${fs.messages.allLanguagesWarningMessage()}">
|
|
1396
|
+
<ft-icon value="warning" part="warning-icon"></ft-icon>
|
|
1397
|
+
</ft-tooltip>
|
|
1398
|
+
`:ot}
|
|
1399
|
+
${Ji(null!==(t=this.locales)&&void 0!==t?t:[],(t=>t.lang),(t=>et`
|
|
1400
|
+
<ft-filter-option label="${t.label}"
|
|
1401
|
+
.value=${t.lang}
|
|
1402
|
+
?selected=${t.lang==this.selectedSearchLocale}></ft-filter-option>
|
|
1403
|
+
`))}
|
|
1404
|
+
</ft-filter>
|
|
1405
|
+
`}setContentLocale(t){this.selectedSearchLocale=t.detail[0],setTimeout((()=>{var e;t.detail.length>0?this.selectedSearchLocale=null===(e=this.stateManager)||void 0===e?void 0:e.setContentLocale(t.detail[0]):this.selectedSearchLocale=this.currentSearchLocale}),0)}updated(t){super.updated(t),t.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}}ps.elementDefinitions={"ft-icon":ur,"ft-tooltip":tr,"ft-filter":as,"ft-filter-option":hs},ps.styles=Bi,ds([s()],ps.prototype,"warningTooltipPosition",void 0),ds([Si()],ps.prototype,"locales",void 0),ds([Si({selector:t=>t.request.contentLocale})],ps.prototype,"currentSearchLocale",void 0),ds([l()],ps.prototype,"selectedSearchLocale",void 0),p("ft-search-locale-selector")(ps),t.FtSearchLocaleSelector=ps,t.FtSearchLocaleSelectorCssVariables=Ii,t.styles=Bi}({});
|