@fluid-topics/ft-search-type 1.0.61
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 +19 -0
- package/build/FtSearchTypeMessages.d.ts +7 -0
- package/build/FtSearchTypeMessages.js +6 -0
- package/build/ft-search-type.css.d.ts +2 -0
- package/build/ft-search-type.css.js +5 -0
- package/build/ft-search-type.d.ts +14 -0
- package/build/ft-search-type.js +54 -0
- package/build/ft-search-type.light.js +1502 -0
- package/build/ft-search-type.min.js +1624 -0
- package/build/ft-search-type.properties.d.ts +2 -0
- package/build/ft-search-type.properties.js +1 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +7 -0
- package/package.json +26 -0
|
@@ -0,0 +1,1624 @@
|
|
|
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,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,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 o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=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=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t||"HTMLElement"===o?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(v(Element,"innerHTML"),v(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,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0!==r.get(o).formAssociated)throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`);i?.call(this,...e)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(an){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{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){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[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 r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),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 o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!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 a=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(o){o.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(o){o.createProperty(e.key,t)}};function s(t){return(e,o)=>void 0!==o?((t,e,o)=>{e.constructor.createProperty(o,t)})(t,e,o):a(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 c=({finisher:t,descriptor:e})=>(o,i)=>{var r;if(void 0===i){const i=null!==(r=o.originalKey)&&void 0!==r?r:o.key,n=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(o.key)}:{...o,key:i};return null!=t&&(n.finisher=function(e){t(e,i)}),n}{const r=o.constructor;void 0!==e&&Object.defineProperty(o,i,e(i)),null==t||t(r,i)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function f(t,e){return c({descriptor:o=>{const i={get(){var e,o;return null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof o?Symbol():"__"+o;i.get=function(){var o,i;return void 0===this[e]&&(this[e]=null!==(i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})}
|
|
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 p=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:o}=null!=t?t:{};return c({descriptor:i=>({get(){var i;const r="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(r),a=null!=n?p(n,t):[];return o?a.filter((t=>t.matches(o))):a},enumerable:!0,configurable:!0})})}
|
|
49
|
+
/**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2017 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
+
*/const d=t=>new Promise((e=>setTimeout(e,t)));function y(t,e){return t.flatMap((t=>[t,...y(e(t),e)]))}function b(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 o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!b(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!b(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!b(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const g=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function v(t,e){const o=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!b(t,e),...null!=e?e:{}})}
|
|
54
|
+
/**
|
|
55
|
+
* @license
|
|
56
|
+
* Copyright 2019 Google LLC
|
|
57
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
+
*/const m=window,x=m.ShadowRoot&&(void 0===m.ShadyCSS||m.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,O=Symbol(),w=new WeakMap;let S=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==O)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(x&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&w.set(e,t))}return t}toString(){return this.cssText}};const N=t=>new S("string"==typeof t?t:t+"",void 0,O),C=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>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.")})(o)+t[i+1]),t[0]);return new S(o,t,O)},$=(t,e)=>{x?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=m.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))},E=x?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return N(e)})(t):t
|
|
59
|
+
/**
|
|
60
|
+
* @license
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
62
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
+
*/;var k;const R=window,I=R.trustedTypes,U=I?I.emptyScript:"",L=R.reactiveElementPolyfillSupport,W={toAttribute(t,e){switch(e){case Boolean:t=t?U:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},A=(t,e)=>e!==t&&(e==e||t==t),j={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:A};let F=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,o)=>{const i=this._$Ep(o,e);void 0!==i&&(this._$Ev.set(i,o),t.push(i))})),t}static createProperty(t,e=j){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,o,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||j}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 o of e)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(E(t))}else void 0!==t&&e.push(E(t));return e}static _$Ep(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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,o;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.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 $(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,o){this._$AK(t,o)}_$EO(t,e,o=j){var i;const r=this.constructor._$Ep(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==(null===(i=o.converter)||void 0===i?void 0:i.toAttribute)?o.converter:W).toAttribute(e,o.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(o=t.converter)||void 0===o?void 0:o.fromAttribute)?t.converter:W;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,o){let i=!0;void 0!==t&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||A)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,o))):i=!1),!this.isUpdatePending&&i&&(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 o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),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(o)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(o)}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 D;F.finalized=!0,F.elementProperties=new Map,F.elementStyles=[],F.shadowRootOptions={mode:"open"},null==L||L({ReactiveElement:F}),(null!==(k=R.reactiveElementVersions)&&void 0!==k?k:R.reactiveElementVersions=[]).push("1.6.1");const B=window,z=B.trustedTypes,K=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,T="?"+M,Z=`<${T}>`,_=document,H=()=>_.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,q=t=>V(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Y="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Q=/>/g,tt=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,ot=/"/g,it=/^(?:script|style|textarea|title)$/i,rt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),nt=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),st=new WeakMap,lt=_.createTreeWalker(_,129,null,!1),ct=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=X;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===X?"!--"===l[1]?a=J:void 0!==l[1]?a=Q:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=tt):void 0!==l[3]&&(a=tt):a===tt?">"===l[0]?(a=null!=r?r:X,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?tt:'"'===l[3]?ot:et):a===ot||a===et?a=tt:a===J||a===Q?a=X:(a=tt,r=void 0);const h=a===tt&&t[e+1].startsWith("/>")?" ":"";n+=a===X?o+Z:c>=0?(i.push(s),o.slice(0,c)+P+o.slice(c)+M+h):o+M+(-2===c?(i.push(void 0),e):h)}const s=n+(t[o]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==K?K.createHTML(s):s,i]};class ft{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=ct(t,e);if(this.el=ft.createElement(l,o),lt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=lt.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith(P)||e.startsWith(M)){const o=c[n++];if(t.push(e),void 0!==o){const t=i.getAttribute(o.toLowerCase()+P).split(M),e=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?yt:"?"===e[1]?gt:"@"===e[1]?vt:dt})}else s.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(it.test(i.tagName)){const t=i.textContent.split(M),e=t.length-1;if(e>0){i.textContent=z?z.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],H()),lt.nextNode(),s.push({type:2,index:++r});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===T)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(M,t+1));)s.push({type:7,index:r}),t+=M.length-1}r++}}static createElement(t,e){const o=_.createElement("template");return o.innerHTML=t,o}}function ht(t,e,o=t,i){var r,n,a,s;if(e===nt)return e;let l=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const c=G(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,o,i)),void 0!==i?(null!==(a=(s=o)._$Co)&&void 0!==a?a:s._$Co=[])[i]=l:o._$Cl=l),void 0!==l&&(e=ht(t,l._$AS(t,e.values),l,i)),e}let pt=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:o},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(o,!0);lt.currentNode=r;let n=lt.nextNode(),a=0,s=0,l=i[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new ut(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new mt(n,this,t)),this._$AV.push(e),l=i[++s]}a!==(null==l?void 0:l.index)&&(n=lt.nextNode(),a++)}return r}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ut=class t{constructor(t,e,o,i){var r;this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$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=ht(this,t,e),G(t)?t===at||null==t||""===t?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):q(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!==at&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ft.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(o);else{const t=new pt(r,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ft(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(H()),this.k(H()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.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))}},dt=class{constructor(t,e,o,i,r){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=at}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ht(this,t,e,0),n=!G(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ht(this,i[o+a],e,a),s===nt&&(s=this._$AH[a]),n||(n=!G(s)||s!==this._$AH[a]),s===at?t=at:t!==at&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.j(t)}j(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},yt=class extends dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}};const bt=z?z.emptyScript:"";let gt=class extends dt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==at?this.element.setAttribute(this.name,bt):this.element.removeAttribute(this.name)}},vt=class extends dt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){var o;if((t=null!==(o=ht(this,t,e,0))&&void 0!==o?o:at)===nt)return;const i=this._$AH,r=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==at&&(i===at||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}},mt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};const xt={O:P,P:M,A:T,C:1,M:ct,L:pt,D:q,R:ht,I:ut,V:dt,H:gt,N:vt,U:yt,F:mt},Ot=B.litHtmlPolyfillSupport;null==Ot||Ot(ft,ut),(null!==(D=B.litHtmlVersions)&&void 0!==D?D:B.litHtmlVersions=[]).push("2.7.3");
|
|
70
|
+
/**
|
|
71
|
+
* @license
|
|
72
|
+
* Copyright 2017 Google LLC
|
|
73
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
+
*/
|
|
75
|
+
var wt,St;let Nt=class extends F{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{var i,r;const n=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:e;let a=n._$litPart$;if(void 0===a){const t=null!==(r=null==o?void 0:o.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new ut(e.insertBefore(H(),t),t,void 0,null!=o?o:{})}return a._$AI(t),a})(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 nt}};Nt.finalized=!0,Nt._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:Nt});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:Nt}),(null!==(St=globalThis.litElementVersions)&&void 0!==St?St:globalThis.litElementVersions=[]).push("3.3.2");const $t=t=>"string"==typeof t?N(t):t;class Et{static create(t,e,o,i){const r=t=>$t(null!=t?t:i),n=C`var(${$t(t)}, ${r(i)})`;return n.name=t,n.description=t,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>C`var(${$t(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=C`var(${$t(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>C`var(${$t(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$t(null!=e?e:t.lastResortDefaultValue()),i=C`var(${$t(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>C`var(${$t(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function kt(t,e){return $t(`${t.name}: ${e}`)}const Rt={colorWhite:Et.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Et.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Et.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Et.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Et.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Et.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Et.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Et.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Et.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Et.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Et.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Et.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Et.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Et.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Et.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Et.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Et.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Et.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Et.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Et.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Et.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Et.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Et.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Et.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Et.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Et.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Et.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Et.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Et.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Et.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Et.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Et.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Et.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Et.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Et.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Et.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Et.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Et.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Et.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Et.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Et.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Et.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Et.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Et.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Et.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Et.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Et.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Et.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Et.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Et.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Et.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Et.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Et.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Et.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Et.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Et.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Et.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Et.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Et.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Et.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Et.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Et.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Et.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Et.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Et.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Et.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Et.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Et.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Et.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Et.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Et.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Et.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Et.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Et.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Et.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Et.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Et.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Et.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Et.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Et.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Et.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Et.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Et.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Et.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Et.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Et.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Et.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Et.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Et.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Et.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Et.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Et.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Et.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Et.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Et.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Et.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Et.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Et.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Et.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Et.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Et.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Et.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Et.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Et.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Et.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Et.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Et.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Et.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Et.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Et.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Et.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Et.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Et.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Et.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Et.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Et.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Et.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Et.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Et.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Et.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Et.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Et.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Et.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Et.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Et.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Et.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Et.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Et.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Et.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Et.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Et.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Et.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Et.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Et.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Et.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Et.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Et.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Et.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Et.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Et.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Et.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Et.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Et.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Et.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Et.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Et.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Et.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Et.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Et.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Et.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Et.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Et.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Et.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Et.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Et.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Et.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Et.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Et.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Et.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Et.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Et.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Et.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Et.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Et.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Et.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Et.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Et.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Et.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Et.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Et.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Et.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Et.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Et.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Et.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Et.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Et.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Et.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Et.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Et.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Et.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Et.create("--ft-opacity-0","","NUMBER","0"),opacity8:Et.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Et.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Et.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Et.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Et.create("--ft-opacity-80","","NUMBER","0.8")},It={display:{fontFamily:Et.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Et.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Et.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Et.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Et.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Et.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Et.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Et.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Et.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Et.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Et.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Et.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Et.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Et.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Et.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Et.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Et.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Et.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Et.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Et.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Et.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Et.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Et.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Et.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Et.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Et.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Et.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Et.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Et.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Et.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Et.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Et.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Et.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Et.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Et.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Et.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Et.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Et.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Et.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Et.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Et.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Et.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Et.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Et.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Et.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Et.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Et.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Et.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Et.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Et.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Et.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Et.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Et.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Et.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Et.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Et.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Et.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Et.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Et.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Et.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Et.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Et.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ut={backgroundActionPrimary:Et.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Rt.colorBrand0),backgroundErrorPrimary:Et.extend("--ft-background-error-primary","Used as background of error components.",Rt.colorRed0),backgroundErrorSubtle:Et.extend("--ft-background-error-subtle","Used as background of subtle error components.",Rt.colorRed10),backgroundInfoPrimary:Et.extend("--ft-background-info-primary","Used as background of information components.",Rt.colorCyan200),backgroundInfoSubtle:Et.extend("--ft-background-info-subtle","Used as background of subtle information components.",Rt.colorCyan10),backgroundWarningPrimary:Et.extend("--ft-background-warning-primary","Used as background of warning components.",Rt.colorOrange300),backgroundWarningSubtle:Et.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Rt.colorOrange10),backgroundSuccessPrimary:Et.extend("--ft-background-success-primary","Used as background of success components.",Rt.colorGreen200),backgroundSuccessSubtle:Et.extend("--ft-background-success-subtle","Used as background of subtle success components.",Rt.colorGreen10),backgroundGlobalSurface:Et.extend("--ft-background-global-surface","Used as app background.",Rt.colorWhite),backgroundGlobalOnSurface:Et.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Rt.colorGray10),backgroundGlobalOnSurfaceDark:Et.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Rt.colorGray30),contentActionPrimary:Et.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Rt.colorBrand0),contentWarningPrimary:Et.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Rt.colorOrange300),contentWarningIconOnly:Et.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Rt.colorOrange0),contentErrorPrimary:Et.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Rt.colorRed0),contentErrorIconOnly:Et.extend("--ft-content-error-icon-only","Used on error status icons alone",Rt.colorRed0),contentInfoPrimary:Et.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Rt.colorCyan200),contentInfoIconOnly:Et.extend("--ft-content-info-icon-only","Used on info status icons alone",Rt.colorCyan0),contentSuccessIconOnly:Et.extend("--ft-content-success-icon-only","Used on success status icons alone",Rt.colorGreen0),contentSuccessPrimary:Et.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Rt.colorGreen200),contentGlobalPrimary:Et.extend("--ft-content-global-primary","Used for main content on the page.",Rt.colorGray500),contentGlobalSecondary:Et.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Rt.colorGray200),contentGlobalSubtle:Et.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Rt.colorGray0),contentGlobalOnColor:Et.extend("--ft-content-global-on-color","Used for content on a dominant color.",Rt.colorWhite),borderActionPrimary:Et.extend("--ft-border-action-primary","Used as border for primary action components.",Rt.colorBrand0),borderActionFocusRing:Et.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Rt.colorCyan0),borderWarningPrimary:Et.extend("--ft-border-warning-primary","Used as border for warning components.",Rt.colorOrange30),borderSuccessPrimary:Et.extend("--ft-border-success-primary","Used as border for success components.",Rt.colorGreen30),borderErrorPrimary:Et.extend("--ft-border-error-primary","Used as border for error components.",Rt.colorRed30),borderInfoPrimary:Et.extend("--ft-border-info-primary","Used as border for information components.",Rt.colorCyan30),borderGlobalSubtle:Et.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Rt.colorGray30),borderGlobalPrimary:Et.extend("--ft-border-global-primary","Used as border for element like input.",Rt.colorGray50),borderInputPrimary:Et.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Rt.colorGray80)},Lt={largeHeight:Et.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Et.extend("--ft-button-large-horizontal-padding","",Rt.spacing4),largeGap:Et.extend("--ft-button-large-gap","",Rt.spacing2),largeBorderRadius:Et.extend("--ft-button-large-border-radius","",Rt.borderRadiusS),largeIconSize:Et.extend("--ft-button-large-icon-size","",Rt.iconSize3),largeBorderWidth:Et.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Et.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Et.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Et.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Et.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Et.extend("--ft-button-small-horizontal-padding","",Rt.spacing3),smallGap:Et.extend("--ft-button-small-gap","",Rt.spacing2),smallBorderRadius:Et.extend("--ft-button-small-border-radius","",Rt.borderRadiusS),smallIconSize:Et.extend("--ft-button-small-icon-size","",Rt.iconSize2),smallBorderWidth:Et.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Et.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Et.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Et.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Et.extend("--ft-button-primary-background-color","",Ut.backgroundActionPrimary),primaryColor:Et.extend("--ft-button-primary-color","",Ut.contentGlobalOnColor),primaryIconColor:Et.extend("--ft-button-primary-icon-color","",Ut.contentGlobalOnColor),primaryStateLayerColor:Et.extend("--ft-button-primary-state-layer-color","",Ut.contentGlobalOnColor),primaryStateLayerOpacityHover:Et.extend("--ft-button-primary-state-layer-opacity-hover","",Rt.opacity16),primaryStateLayerOpacityFocus:Et.extend("--ft-button-primary-state-layer-opacity-focus","",Rt.opacity16),primaryStateLayerOpacityActive:Et.extend("--ft-button-primary-state-layer-opacity-active","",Rt.opacity24),primaryComponentOpacityDisabled:Et.extend("--ft-button-primary-component-opacity-disabled","",Rt.opacity40),focusFocusRingColor:Et.extend("--ft-button-focus-focus-ring-color","",Ut.borderActionFocusRing),tertiaryBackgroundColor:Et.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Et.extend("--ft-button-tertiary-color","",Ut.contentActionPrimary),tertiaryIconColor:Et.extend("--ft-button-tertiary-icon-color","",Ut.contentActionPrimary),tertiaryStateLayerColor:Et.extend("--ft-button-tertiary-state-layer-color","",Ut.contentActionPrimary),tertiaryStateLayerOpacityHover:Et.extend("--ft-button-tertiary-state-layer-opacity-hover","",Rt.opacity8),tertiaryStateLayerOpacityFocus:Et.extend("--ft-button-tertiary-state-layer-opacity-focus","",Rt.opacity8),tertiaryStateLayerOpacityActive:Et.extend("--ft-button-tertiary-state-layer-opacity-active","",Rt.opacity16),tertiaryComponentOpacityDisabled:Et.extend("--ft-button-tertiary-component-opacity-disabled","",Rt.opacity40),secondaryBackgroundColor:Et.extend("--ft-button-secondary-background-color","",Rt.colorWhite),secondaryColor:Et.extend("--ft-button-secondary-color","",Ut.contentActionPrimary),secondaryIconColor:Et.extend("--ft-button-secondary-icon-color","",Ut.contentActionPrimary),secondaryStateLayerColor:Et.extend("--ft-button-secondary-state-layer-color","",Ut.contentActionPrimary),secondaryStateLayerOpacityHover:Et.extend("--ft-button-secondary-state-layer-opacity-hover","",Rt.opacity8),secondaryStateLayerOpacityFocus:Et.extend("--ft-button-secondary-state-layer-opacity-focus","",Rt.opacity8),secondaryStateLayerOpacityActive:Et.extend("--ft-button-secondary-state-layer-opacity-active","",Rt.opacity16),secondaryComponentOpacityDisabled:Et.extend("--ft-button-secondary-component-opacity-disabled","",Rt.opacity40),secondaryBorderColor:Et.extend("--ft-button-secondary-border-color","",Ut.borderActionPrimary),neutralBackgroundColor:Et.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Et.extend("--ft-button-neutral-icon-color","",Ut.contentGlobalSecondary),neutralColor:Et.extend("--ft-button-neutral-color","",Ut.contentGlobalSecondary),neutralStateLayerColor:Et.extend("--ft-button-neutral-state-layer-color","",Ut.contentGlobalSecondary),neutralStateLayerOpacityHover:Et.extend("--ft-button-neutral-state-layer-opacity-hover","",Rt.opacity8),neutralStateLayerOpacityFocus:Et.extend("--ft-button-neutral-state-layer-opacity-focus","",Rt.opacity8),neutralStateLayerOpacityActive:Et.extend("--ft-button-neutral-state-layer-opacity-active","",Rt.opacity16),neutralComponentOpacityDisabled:Et.extend("--ft-button-neutral-component-opacity-disabled","",Rt.opacity40)};Et.extend("--ft-tabs-top-left-border-radius","",Rt.borderRadiusS),Et.extend("--ft-tabs-top-right-border-radius","",Rt.borderRadiusS),Et.extend("--ft-tabs-label-horizontal-padding","",Rt.spacing4),Et.extend("--ft-tabs-label-vertical-padding","",Rt.spacing3),Et.extend("--ft-tabs-label-gap","",Rt.spacing1),Et.extend("--ft-switch-group-horizontal-padding","",Rt.spacing1),Et.extend("--ft-switch-group-vertical-padding","",Rt.spacing1),Et.extend("--ft-switch-group-gap","",Rt.spacing1),Et.extend("--ft-switch-group-background-color","",Ut.backgroundGlobalSurface),Et.extend("--ft-switch-group-border-color","",Ut.borderGlobalSubtle),Et.create("--ft-switch-group-border-radius","","SIZE","6px"),Et.extend("--ft-switch-label-horizontal-padding","",Rt.spacing2),Et.extend("--ft-switch-label-vertical-padding","",Rt.spacing1),Et.extend("--ft-switch-icon-horizontal-padding","",Rt.spacing1),Et.extend("--ft-switch-icon-vertical-padding","",Rt.spacing1),Et.create("--ft-switch-focus-outline-width","","SIZE","2px"),Et.extend("--ft-switch-focus-focus-ring-color","",Ut.borderActionFocusRing),Et.extend("--ft-switch-option-border-radius","",Rt.borderRadiusS),Et.extend("--ft-switch-off-state-layer-opacity-hover","",Rt.opacity8),Et.extend("--ft-switch-off-state-layer-opacity-focus","",Rt.opacity8),Et.extend("--ft-switch-off-state-layer-opacity-active","",Rt.opacity16),Et.extend("--ft-switch-off-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-switch-off-color","",Ut.contentGlobalSubtle),Et.extend("--ft-switch-off-state-layer-color","",Ut.contentGlobalSubtle),Et.extend("--ft-chart-1-light","for area color charts",Rt.colorBrand40),Et.extend("--ft-chart-1-base","for line charts",Rt.colorBrand0),Et.extend("--ft-chart-2-light","for area color charts",Rt.colorYellow60),Et.extend("--ft-chart-2-base","for line charts",Rt.colorYellow100),Et.extend("--ft-chart-3-light","",Rt.colorUltramarine40),Et.extend("--ft-chart-3-base","",Rt.colorUltramarine70),Et.extend("--ft-chart-4-light","",Rt.colorCyan50),Et.extend("--ft-chart-4-base","",Rt.colorCyan100),Et.extend("--ft-chart-5-light","",Rt.colorRed40),Et.extend("--ft-chart-5-base","",Rt.colorRed60),Et.extend("--ft-chart-6-light","",Rt.colorGreen40),Et.extend("--ft-chart-6-base","",Rt.colorGreen70),Et.extend("--ft-chart-7-light","",Rt.colorOrange70),Et.extend("--ft-chart-7-base","",Rt.colorOrange100),Et.extend("--ft-chart-8-light","",Rt.colorAvocado70),Et.extend("--ft-chart-8-base","",Rt.colorAvocado200),Et.extend("--ft-chart-9-light","",Rt.colorBrown50),Et.extend("--ft-chart-9-base","",Rt.colorBrown200),Et.extend("--ft-chart-10-light","",Rt.colorGray50),Et.extend("--ft-chart-10-base","",Rt.colorGray80),Et.extend("--ft-chart-monochrome-10","",Rt.colorBrand10),Et.extend("--ft-chart-monochrome-20","",Rt.colorBrand20),Et.extend("--ft-chart-monochrome-30","",Rt.colorBrand40),Et.extend("--ft-chart-monochrome-40","",Rt.colorBrand60),Et.extend("--ft-chart-monochrome-50","",Rt.colorBrand0),Et.extend("--ft-chart-monochrome-60","",Rt.colorBrand200),Et.extend("--ft-chip-large-horizontal-padding","",Rt.spacing4),Et.extend("--ft-chip-large-vertical-padding","",Rt.spacing2),Et.extend("--ft-chip-large-gap","",Rt.spacing1),Et.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Et.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Et.extend("--ft-chip-large-border-radius","",Rt.borderRadiusPill),Et.create("--ft-chip-large-border-width","","SIZE","1px"),Et.extend("--ft-chip-large-icon-size","",Rt.iconSize3),Et.extend("--ft-chip-medium-horizontal-padding","",Rt.spacing3),Et.extend("--ft-chip-medium-vertical-padding","",Rt.spacing1),Et.extend("--ft-chip-medium-gap","",Rt.spacing1),Et.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Et.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Et.extend("--ft-chip-medium-border-radius","",Rt.borderRadiusPill),Et.create("--ft-chip-medium-border-width","","SIZE","1px"),Et.extend("--ft-chip-medium-icon-size","",Rt.iconSize2),Et.extend("--ft-chip-small-horizontal-padding","",Rt.spacing2),Et.extend("--ft-chip-small-vertical-padding","",Rt.spacing05),Et.extend("--ft-chip-small-gap","",Rt.spacing1),Et.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Et.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Et.extend("--ft-chip-small-border-radius","",Rt.borderRadiusPill),Et.create("--ft-chip-small-border-width","","SIZE","1px"),Et.extend("--ft-chip-small-icon-size","",Rt.iconSize1),Et.extend("--ft-chip-neutral-background-color","",Ut.backgroundGlobalOnSurface),Et.extend("--ft-chip-neutral-color","",Ut.contentGlobalPrimary),Et.extend("--ft-chip-neutral-border-color","",Ut.borderGlobalSubtle),Et.extend("--ft-chip-info-background-color","",Ut.backgroundInfoSubtle),Et.extend("--ft-chip-info-color","",Ut.contentInfoPrimary),Et.extend("--ft-chip-info-border-color","",Ut.borderInfoPrimary),Et.extend("--ft-chip-success-background-color","",Ut.backgroundSuccessSubtle),Et.extend("--ft-chip-success-color","",Ut.contentSuccessPrimary),Et.extend("--ft-chip-success-border-color","",Ut.borderSuccessPrimary),Et.extend("--ft-chip-warning-background-color","",Ut.backgroundWarningSubtle),Et.extend("--ft-chip-warning-color","",Ut.contentWarningPrimary),Et.extend("--ft-chip-warning-border-color","",Ut.borderWarningPrimary),Et.extend("--ft-chip-error-background-color","",Ut.backgroundErrorSubtle),Et.extend("--ft-chip-error-color","",Ut.contentErrorPrimary),Et.extend("--ft-chip-error-border-color","",Ut.borderErrorPrimary),Et.create("--ft-notice-border-width","","SIZE","1px"),Et.extend("--ft-notice-horizontal-padding","",Rt.spacing2),Et.extend("--ft-notice-vertical-padding","",Rt.spacing1),Et.extend("--ft-notice-border-radius","",Rt.borderRadiusS),Et.extend("--ft-notice-gap","",Rt.spacing2),Et.extend("--ft-notice-icon-size","",Rt.iconSize3),Et.extend("--ft-notice-info-background-color","",Ut.backgroundInfoSubtle),Et.extend("--ft-notice-info-border-color","",Ut.borderInfoPrimary),Et.extend("--ft-notice-info-color","",Ut.contentInfoPrimary),Et.extend("--ft-notice-warning-background-color","",Ut.backgroundWarningSubtle),Et.extend("--ft-notice-warning-border-color","",Ut.borderWarningPrimary),Et.extend("--ft-notice-warning-color","",Ut.contentWarningPrimary),Et.extend("--ft-checkbox-label-color","",Ut.contentGlobalPrimary),Et.extend("--ft-checkbox-checked-background-color","",Ut.contentActionPrimary),Et.extend("--ft-checkbox-checked-state-layer-color","",Ut.contentActionPrimary),Et.extend("--ft-checkbox-checked-color","",Ut.contentGlobalOnColor),Et.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-checkbox-checked-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-checkbox-checked-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-checkbox-unchecked-border-color","",Rt.colorGray80),Et.extend("--ft-checkbox-unchecked-state-layer-color","",Rt.colorGray80),Et.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-checkbox-focus-focus-ring-color","",Ut.borderActionFocusRing),Et.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Et.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Et.extend("--ft-checkbox-gap","",Rt.spacing3),Et.extend("--ft-toggle-off-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-toggle-off-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-toggle-off-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-toggle-off-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-toggle-off-background-color","",Ut.contentGlobalSubtle),Et.extend("--ft-toggle-off-icon-color","",Ut.contentGlobalSubtle),Et.extend("--ft-toggle-off-state-layer-color","",Ut.contentGlobalSubtle),Et.extend("--ft-toggle-on-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-toggle-on-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-toggle-on-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-toggle-on-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-toggle-on-background-color","",Ut.contentActionPrimary),Et.extend("--ft-toggle-on-icon-color","",Ut.contentActionPrimary),Et.extend("--ft-toggle-on-state-layer-color","",Ut.contentActionPrimary),Et.extend("--ft-toggle-label-color","",Ut.contentGlobalPrimary),Et.extend("--ft-toggle-focus-focus-ring-color","",Ut.borderActionFocusRing),Et.extend("--ft-toggle-gap","",Rt.spacing3),Et.extend("--ft-radio-label-color","",Ut.contentGlobalPrimary),Et.extend("--ft-radio-selected-color","",Ut.contentActionPrimary),Et.extend("--ft-radio-selected-state-layer-color","",Ut.contentActionPrimary),Et.extend("--ft-radio-selected-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-radio-selected-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-radio-selected-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-radio-selected-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-radio-unselected-state-layer-color","",Rt.colorGray80),Et.extend("--ft-radio-unselected-state-layer-opacity-hover","",Rt.opacity16),Et.extend("--ft-radio-unselected-state-layer-opacity-focus","",Rt.opacity16),Et.extend("--ft-radio-unselected-state-layer-opacity-active","",Rt.opacity24),Et.extend("--ft-radio-unselected-component-opacity-disabled","",Rt.opacity40),Et.extend("--ft-radio-focus-focus-ring-color","",Ut.borderActionFocusRing),Et.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Et.create("--ft-radio-focus-outline-width","","SIZE","2px"),Et.extend("--ft-radio-gap","",Rt.spacing3),Et.extend("--ft-notification-icon-size","",Rt.iconSize4),Et.extend("--ft-notification-horizontal-padding","",Rt.spacing4),Et.extend("--ft-notification-vertical-padding","",Rt.spacing4),Et.extend("--ft-notification-info-background-color","",Ut.backgroundInfoSubtle),Et.extend("--ft-notification-info-color","",Ut.contentInfoPrimary),Et.extend("--ft-notification-info-border-color","",Ut.borderInfoPrimary),Et.extend("--ft-notification-success-background-color","",Ut.backgroundSuccessSubtle),Et.extend("--ft-notification-success-color","",Ut.contentSuccessPrimary),Et.extend("--ft-notification-success-border-color","",Ut.borderSuccessPrimary),Et.extend("--ft-notification-warning-background-color","",Ut.backgroundWarningSubtle),Et.extend("--ft-notification-warning-color","",Ut.contentWarningPrimary),Et.extend("--ft-notification-warning-border-color","",Ut.borderWarningPrimary),Et.extend("--ft-notification-error-background-color","",Ut.backgroundErrorSubtle),Et.extend("--ft-notification-error-color","",Ut.contentErrorPrimary),Et.extend("--ft-notification-error-border-color","",Ut.borderErrorPrimary),Et.extend("--ft-notification-border-radius","",Rt.borderRadiusPill),Et.create("--ft-notification-border-width","","SIZE","1px"),Et.extend("--ft-notification-gap-leading","",Rt.spacing2),Et.extend("--ft-notification-gap-trailing","",Rt.spacing8);const Wt={colorPrimary:Et.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Et.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Et.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Et.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Et.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Et.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Et.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Et.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Et.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Et.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Et.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Et.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Et.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Et.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Et.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Et.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Et.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Et.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Et.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Et.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Et.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Et.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Et.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Et.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Et.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Et.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Et.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Et.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Et.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Et.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Et.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Et.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Et.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Et.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Et.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Et.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Et.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Et.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Et.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Et.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Et.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Et.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Et.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Et.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Et.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Et.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Et.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Et.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Et.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Et.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Et.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class At extends Nt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return $(o,t.elementStyles),o}}var jt,Ft=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Dt=Symbol("constructorPrototype"),Bt=Symbol("constructorName"),zt=Symbol("exportpartsDebouncer");class Kt extends At{constructor(){super(),this[jt]=new n(5),this[Bt]=this.constructor.name,this[Dt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Bt]&&Object.setPrototypeOf(this,this[Dt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[zt].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,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}jt=zt,Ft([s()],Kt.prototype,"exportpartsPrefix",void 0),Ft([v([])],Kt.prototype,"exportpartsPrefixes",void 0),Ft([s()],Kt.prototype,"customStylesheet",void 0);const Pt=C`
|
|
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
|
+
`;C`
|
|
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 Mt=C`
|
|
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 Tt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Zt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var _t,Ht,Gt;const Vt=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores");class Xt extends Kt{constructor(){super(...arguments),this[_t]=new Map,this[Ht]=new Map,this[Gt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Yt].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Zt(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Yt].delete(e)}setupStore(t,e){this[Yt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Yt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[qt].has(t.store):this[qt].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[qt].set(t,e.subscribe((()=>this.updateFromStores()))),Zt(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Vt].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[qt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Vt].forEach((t=>t())),this[Vt]=[]}unsubscribeFromStore(t){this[qt].has(t)&&this[qt].get(t)(),this[qt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Jt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qt(t){return!!t&&!!t[ze]}function te(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ke}(t)||Array.isArray(t)||!!t[Be]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Be])||ae(t)||se(t))}function ee(t,e,o){void 0===o&&(o=!1),0===oe(t)?(o?Object.keys:Pe)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function oe(t){var e=t[ze];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ae(t)?2:se(t)?3:0}function ie(t,e){return 2===oe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function re(t,e,o){var i=oe(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function ne(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ae(t){return Ae&&t instanceof Map}function se(t){return je&&t instanceof Set}function le(t){return t.o||t.t}function ce(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[ze];for(var o=Pe(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function fe(t,e){return void 0===e&&(e=!1),pe(t)||Qt(t)||!te(t)||(oe(t)>1&&(t.set=t.add=t.clear=t.delete=he),Object.freeze(t),e&&ee(t,(function(t,e){return fe(e,!0)}),!0)),t}function he(){Jt(2)}function pe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Te[t];return e||Jt(18,t),e}function de(){return Le}function ye(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function be(t){ge(t),t.p.forEach(me),t.p=null}function ge(t){t===Le&&(Le=t.l)}function ve(t){return Le={p:[],l:Le,h:t,m:!0,_:0}}function me(t){var e=t[ze];0===e.i||1===e.i?e.j():e.g=!0}function xe(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||ue("ES5").S(e,t,i),i?(o[ze].P&&(be(e),Jt(4)),te(t)&&(t=Oe(e,t),e.l||Se(e,t)),e.u&&ue("Patches").M(o[ze].t,t,e.u,e.s)):t=Oe(e,o,[]),be(e),e.u&&e.v(e.u,e.s),t!==De?t:void 0}function Oe(t,e,o){if(pe(e))return e;var i=e[ze];if(!i)return ee(e,(function(r,n){return we(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Se(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=ce(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),ee(n,(function(e,n){return we(t,i,r,e,n,o,a)})),Se(t,r,!1),o&&t.u&&ue("Patches").N(i,o,t.u,t.s)}return i.o}function we(t,e,o,i,r,n,a){if(Qt(r)){var s=Oe(t,r,n&&e&&3!==e.i&&!ie(e.R,i)?n.concat(i):void 0);if(re(o,i,s),!Qt(s))return;t.m=!1}else a&&o.add(r);if(te(r)&&!pe(r)){if(!t.h.D&&t._<1)return;Oe(t,r),e&&e.A.l||Se(t,r)}}function Se(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fe(e,o)}function Ne(t,e){var o=t[ze];return(o?le(o):t)[e]}function Ce(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function $e(t){t.P||(t.P=!0,t.l&&$e(t.l))}function Ee(t){t.o||(t.o=ce(t.t))}function ke(t,e,o){var i=ae(e)?ue("MapSet").F(e,o):se(e)?ue("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:de(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Ze;o&&(r=[i],n=_e);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):ue("ES5").J(e,o);return(o?o.A:de()).p.push(i),i}function Re(t){return Qt(t)||Jt(22,t),function t(e){if(!te(e))return e;var o,i=e[ze],r=oe(e);if(i){if(!i.P&&(i.i<4||!ue("ES5").K(i)))return i.t;i.I=!0,o=Ie(e,r),i.I=!1}else o=Ie(e,r);return ee(o,(function(e,r){i&&function(t,e){return 2===oe(t)?t.get(e):t[e]}(i.t,e)===r||re(o,e,t(r))})),3===r?new Set(o):o}(t)}function Ie(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ce(t)}_t=qt,Ht=Yt,Gt=Vt;var Ue,Le,We="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ae="undefined"!=typeof Map,je="undefined"!=typeof Set,Fe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,De=We?Symbol.for("immer-nothing"):((Ue={})["immer-nothing"]=!0,Ue),Be=We?Symbol.for("immer-draftable"):"__$immer_draftable",ze=We?Symbol.for("immer-state"):"__$immer_state",Ke=""+Object.prototype.constructor,Pe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Pe(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Te={},Ze={get:function(t,e){if(e===ze)return t;var o=le(t);if(!ie(o,e))return function(t,e,o){var i,r=Ce(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!te(i)?i:i===Ne(t.t,e)?(Ee(t),t.o[e]=ke(t.A.h,i,t)):i},has:function(t,e){return e in le(t)},ownKeys:function(t){return Reflect.ownKeys(le(t))},set:function(t,e,o){var i=Ce(le(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ne(le(t),e),n=null==r?void 0:r[ze];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ne(o,r)&&(void 0!==o||ie(t.t,e)))return!0;Ee(t),$e(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ne(t.t,e)||e in t.t?(t.R[e]=!1,Ee(t),$e(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=le(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){Jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Jt(12)}},_e={};ee(Ze,(function(t,e){_e[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_e.deleteProperty=function(t,e){return _e.set.call(this,t,e,void 0)},_e.set=function(t,e,o){return Ze.set.call(this,t[0],e,o,t[0])};var He=function(){function t(t){var e=this;this.O=Fe,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Jt(6),void 0!==i&&"function"!=typeof i&&Jt(7),te(t)){var s=ve(e),l=ke(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?be(s):ge(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ye(s,i),xe(t,s)}),(function(t){throw be(s),t})):(ye(s,i),xe(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===De&&(a=void 0),e.D&&fe(a,!0),i){var f=[],h=[];ue("Patches").M(t,a,f,h),i(f,h)}return a}Jt(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"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){te(t)||Jt(8),Qt(t)&&(t=Re(t));var e=ve(this),o=ke(this,t,void 0);return o[ze].C=!0,ge(e),o},e.finishDraft=function(t,e){var o=(t&&t[ze]).A;return ye(o,e),xe(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Fe&&Jt(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=ue("Patches").$;return Qt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ge=new He,Ve=Ge.produce;function qe(t){return qe="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},qe(t)}function Ye(t){var e=function(t,e){if("object"!==qe(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==qe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qe(e)?e:String(e)}function Xe(t,e,o){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Je(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Qe(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(o),!0).forEach((function(e){Xe(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Je(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function to(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. "}Ge.produceWithPatches.bind(Ge),Ge.setAutoFreeze.bind(Ge),Ge.setUseProxies.bind(Ge),Ge.applyPatches.bind(Ge),Ge.createDraft.bind(Ge),Ge.finishDraft.bind(Ge);var eo="function"==typeof Symbol&&Symbol.observable||"@@observable",oo=function(){return Math.random().toString(36).substring(7).split("").join(".")},io={INIT:"@@redux/INIT"+oo(),REPLACE:"@@redux/REPLACE"+oo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+oo()}};function ro(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(to(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(to(1));return o(ro)(t,e)}if("function"!=typeof t)throw new Error(to(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(to(3));return n}function h(t){if("function"!=typeof t)throw new Error(to(4));if(l)throw new Error(to(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(to(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(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(to(7));if(void 0===t.type)throw new Error(to(8));if(l)throw new Error(to(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:io.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(to(10));r=t,p({type:io.REPLACE})}})[eo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(to(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[eo]=function(){return this},t},i}function no(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:io.INIT}))throw new Error(to(12));if(void 0===o(void 0,{type:io.PROBE_UNKNOWN_ACTION()}))throw new Error(to(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(to(14));r[l]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function ao(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 so(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(to(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=ao.apply(void 0,n)(o.dispatch),Qe(Qe({},o),{},{dispatch:i})}}}function lo(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var co=lo();co.withExtraArgument=lo;var fo,ho=co,po=(fo=function(t,e){return fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},fo(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 o(){this.constructor=t}fo(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),uo=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},yo=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},bo=Object.defineProperty,go=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,mo=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,wo=function(t,e,o){return e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},So=function(t,e){for(var o in e||(e={}))xo.call(e,o)&&wo(t,o,e[o]);if(mo)for(var i=0,r=mo(e);i<r.length;i++){o=r[i];Oo.call(e,o)&&wo(t,o,e[o])}return t},No=function(t,e){return go(t,vo(e))},Co="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ao:ao.apply(null,arguments)};var $o=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return po(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yo([void 0],t[0].concat(this)))):new(e.bind.apply(e,yo([void 0],t.concat(this))))},e}(Array),Eo=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return po(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yo([void 0],t[0].concat(this)))):new(e.bind.apply(e,yo([void 0],t.concat(this))))},e}(Array);function ko(t){return te(t)?Ve(t,(function(){})):t}function Ro(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new $o;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(ho.withExtraArgument(o.extraArgument)):i.push(ho));return i}(t)}}function Io(t){var e,o=Ro(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))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=no(n)}var d=s;"function"==typeof d&&(d=d(o));var y=so.apply(void 0,d),b=ao;c&&(b=Co(So({trace:!1},"object"==typeof c&&c)));var g=new Eo(y),v=g;return Array.isArray(u)?v=yo([y],u):"function"==typeof u&&(v=u(g)),ro(e,h,b.apply(void 0,v))}function Uo(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return So(So({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Lo(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Wo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:ko(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Lo(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=So(So({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Lo(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return ko(t())};else{var c=ko(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=yo([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(Qt(t))return void 0===(i=o(t,e))?t:i;if(te(t))return Ve(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?Uo(c,i):Uo(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ao=["name","message","stack","code"],jo=function(t,e){this.payload=t,this.meta=e},Fo=function(t,e){this.payload=t,this.meta=e},Do=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ao;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Bo(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Uo(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:No(So({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Uo(t+"/pending",(function(t,e,o){return{payload:void 0,meta:No(So({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Uo(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Do)(t||"Rejected"),meta:No(So({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new a;function u(t){f=t,p.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,b,g,v;return uo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new jo(t,e)},fulfillWithValue:function(t,e){return new Fo(t,e)}})).then((function(e){if(e instanceof jo)throw e;return e instanceof Fo?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof jo?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:u,requestId:h,arg:t,unwrap:function(){return d.then(Bo)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var zo="listenerMiddleware";Uo(zo+"/add"),Uo(zo+"/removeAll"),Uo(zo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ze];return Ze.get(e,t)},set:function(e){var o=this[ze];Ze.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ze];if(!r.P)switch(r.i){case 5:i(r)&&$e(r);break;case 4:o(r)&&$e(r)}}}function o(t){for(var e=t.t,o=t.k,i=Pe(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==ze){var a=e[n];if(void 0===a&&!ie(e,n))return!0;var s=o[n],l=s&&s[ze];if(l?l.t!==a:!ne(s,a))return!0}}var c=!!e[ze];return i.length!==Pe(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Te[t]||(Te[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Me(o);delete n[ze];for(var a=Pe(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:de(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ze,{value:n,writable:!0}),r},S:function(t,o,r){r?Qt(o)&&o[ze].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ze];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)ee(n,(function(e){e!==ze&&(void 0!==r[e]||ie(r,e)?a[e]||t(n[e]):(a[e]=!0,$e(o)))})),ee(r,(function(t){void 0!==n[t]||ie(n,t)||(a[t]=!1,$e(o))}));else if(5===s){if(i(o)&&($e(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ko{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Zt(r))return r;if(null==i)return;const n=Wo({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Io({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Ko(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}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()}}const Po=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!b(t,e),attribute:!1,...e};s(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Mo=Symbol("elementInternals");var To,Zo,_o;const Ho=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(_o=null===(Zo=null===(To=window.safari)||void 0===To?void 0:To.pushNotification)||void 0===Zo?void 0:Zo.toString())&&void 0!==_o?_o:""),Go=C`
|
|
108
|
+
`
|
|
109
|
+
/**
|
|
110
|
+
* @license
|
|
111
|
+
* Copyright 2020 Google LLC
|
|
112
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
+
*/,Vo=Symbol.for(""),qo=t=>{if((null==t?void 0:t.r)===Vo)return null==t?void 0:t._$litStatic$},Yo=t=>({_$litStatic$:t,r:Vo}),Xo=new Map,Jo=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=qo(n));)l+=r+e[++c],f=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),f){const t=a.join("$$lit$$");void 0===(e=Xo.get(t))&&(a.raw=a,Xo.set(t,e=a)),o=s}return t(e,...o)})(rt);var Qo;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Qo||(Qo={}));const ti=Et.extend("--ft-typography-font-family","",Wt.titleFont),ei=Et.extend("--ft-typography-font-family","",Wt.contentFont),oi={fontFamily:ei,fontSize:Et.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Et.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Et.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Et.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Et.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ii=Et.extend("--ft-typography-title-font-family","",ti),ri=Et.extend("--ft-typography-title-font-size","",oi.fontSize,"20px"),ni=Et.extend("--ft-typography-title-font-weight","",oi.fontWeight,"normal"),ai=Et.extend("--ft-typography-title-letter-spacing","",oi.letterSpacing,"0.15px"),si=Et.extend("--ft-typography-title-line-height","",oi.lineHeight,"1.2"),li=Et.extend("--ft-typography-title-text-transform","",oi.textTransform,"inherit"),ci=Et.extend("--ft-typography-title-dense-font-family","",ti),fi=Et.extend("--ft-typography-title-dense-font-size","",oi.fontSize,"14px"),hi=Et.extend("--ft-typography-title-dense-font-weight","",oi.fontWeight,"normal"),pi=Et.extend("--ft-typography-title-dense-letter-spacing","",oi.letterSpacing,"0.105px"),ui=Et.extend("--ft-typography-title-dense-line-height","",oi.lineHeight,"1.7"),di=Et.extend("--ft-typography-title-dense-text-transform","",oi.textTransform,"inherit"),yi=Et.extend("--ft-typography-subtitle1-font-family","",ei),bi=Et.extend("--ft-typography-subtitle1-font-size","",oi.fontSize,"16px"),gi=Et.extend("--ft-typography-subtitle1-font-weight","",oi.fontWeight,"600"),vi=Et.extend("--ft-typography-subtitle1-letter-spacing","",oi.letterSpacing,"0.144px"),mi=Et.extend("--ft-typography-subtitle1-line-height","",oi.lineHeight,"1.5"),xi=Et.extend("--ft-typography-subtitle1-text-transform","",oi.textTransform,"inherit"),Oi=Et.extend("--ft-typography-subtitle2-font-family","",ei),wi=Et.extend("--ft-typography-subtitle2-font-size","",oi.fontSize,"14px"),Si=Et.extend("--ft-typography-subtitle2-font-weight","",oi.fontWeight,"normal"),Ni=Et.extend("--ft-typography-subtitle2-letter-spacing","",oi.letterSpacing,"0.098px"),Ci=Et.extend("--ft-typography-subtitle2-line-height","",oi.lineHeight,"1.7"),$i=Et.extend("--ft-typography-subtitle2-text-transform","",oi.textTransform,"inherit"),Ei=Et.extend("--ft-typography-body1-font-family","",ei),ki=Et.extend("--ft-typography-body1-font-size","",oi.fontSize,"16px"),Ri=Et.extend("--ft-typography-body1-font-weight","",oi.fontWeight,"normal"),Ii=Et.extend("--ft-typography-body1-letter-spacing","",oi.letterSpacing,"0.496px"),Ui=Et.extend("--ft-typography-body1-line-height","",oi.lineHeight,"1.5"),Li=Et.extend("--ft-typography-body1-text-transform","",oi.textTransform,"inherit"),Wi={fontFamily:Et.extend("--ft-typography-body2-font-family","",ei),fontSize:Et.extend("--ft-typography-body2-font-size","",oi.fontSize,"14px"),fontWeight:Et.extend("--ft-typography-body2-font-weight","",oi.fontWeight,"normal"),letterSpacing:Et.extend("--ft-typography-body2-letter-spacing","",oi.letterSpacing,"0.252px"),lineHeight:Et.extend("--ft-typography-body2-line-height","",oi.lineHeight,"1.4"),textTransform:Et.extend("--ft-typography-body2-text-transform","",oi.textTransform,"inherit")},Ai=Et.extend("--ft-typography-caption-font-family","",ei),ji=Et.extend("--ft-typography-caption-font-size","",oi.fontSize,"12px"),Fi=Et.extend("--ft-typography-caption-font-weight","",oi.fontWeight,"normal"),Di=Et.extend("--ft-typography-caption-letter-spacing","",oi.letterSpacing,"0.396px"),Bi=Et.extend("--ft-typography-caption-line-height","",oi.lineHeight,"1.33"),zi=Et.extend("--ft-typography-caption-text-transform","",oi.textTransform,"inherit"),Ki=Et.extend("--ft-typography-breadcrumb-font-family","",ei),Pi=Et.extend("--ft-typography-breadcrumb-font-size","",oi.fontSize,"10px"),Mi=Et.extend("--ft-typography-breadcrumb-font-weight","",oi.fontWeight,"normal"),Ti=Et.extend("--ft-typography-breadcrumb-letter-spacing","",oi.letterSpacing,"0.33px"),Zi=Et.extend("--ft-typography-breadcrumb-line-height","",oi.lineHeight,"1.6"),_i=Et.extend("--ft-typography-breadcrumb-text-transform","",oi.textTransform,"inherit"),Hi=Et.extend("--ft-typography-overline-font-family","",ei),Gi=Et.extend("--ft-typography-overline-font-size","",oi.fontSize,"10px"),Vi=Et.extend("--ft-typography-overline-font-weight","",oi.fontWeight,"normal"),qi=Et.extend("--ft-typography-overline-letter-spacing","",oi.letterSpacing,"1.5px"),Yi=Et.extend("--ft-typography-overline-line-height","",oi.lineHeight,"1.6"),Xi=Et.extend("--ft-typography-overline-text-transform","",oi.textTransform,"uppercase"),Ji={fontFamily:Et.extend("--ft-typography-button-font-family","",ei),fontSize:Et.extend("--ft-typography-button-font-size","",oi.fontSize,"14px"),fontWeight:Et.extend("--ft-typography-button-font-weight","",oi.fontWeight,"600"),letterSpacing:Et.extend("--ft-typography-button-letter-spacing","",oi.letterSpacing,"1.246px"),lineHeight:Et.extend("--ft-typography-button-line-height","",oi.lineHeight,"1.15"),textTransform:Et.extend("--ft-typography-button-text-transform","",oi.textTransform,"uppercase")},Qi=C`
|
|
114
|
+
.ft-typography--title {
|
|
115
|
+
font-family: ${ii};
|
|
116
|
+
font-size: ${ri};
|
|
117
|
+
font-weight: ${ni};
|
|
118
|
+
letter-spacing: ${ai};
|
|
119
|
+
line-height: ${si};
|
|
120
|
+
text-transform: ${li};
|
|
121
|
+
}
|
|
122
|
+
`,tr=C`
|
|
123
|
+
.ft-typography--title-dense {
|
|
124
|
+
font-family: ${ci};
|
|
125
|
+
font-size: ${fi};
|
|
126
|
+
font-weight: ${hi};
|
|
127
|
+
letter-spacing: ${pi};
|
|
128
|
+
line-height: ${ui};
|
|
129
|
+
text-transform: ${di};
|
|
130
|
+
}
|
|
131
|
+
`,er=C`
|
|
132
|
+
.ft-typography--subtitle1 {
|
|
133
|
+
font-family: ${yi};
|
|
134
|
+
font-size: ${bi};
|
|
135
|
+
font-weight: ${gi};
|
|
136
|
+
letter-spacing: ${vi};
|
|
137
|
+
line-height: ${mi};
|
|
138
|
+
text-transform: ${xi};
|
|
139
|
+
}
|
|
140
|
+
`,or=C`
|
|
141
|
+
.ft-typography--subtitle2 {
|
|
142
|
+
font-family: ${Oi};
|
|
143
|
+
font-size: ${wi};
|
|
144
|
+
font-weight: ${Si};
|
|
145
|
+
letter-spacing: ${Ni};
|
|
146
|
+
line-height: ${Ci};
|
|
147
|
+
text-transform: ${$i};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
`,ir=C`
|
|
151
|
+
.ft-typography--body1 {
|
|
152
|
+
font-family: ${Ei};
|
|
153
|
+
font-size: ${ki};
|
|
154
|
+
font-weight: ${Ri};
|
|
155
|
+
letter-spacing: ${Ii};
|
|
156
|
+
line-height: ${Ui};
|
|
157
|
+
text-transform: ${Li};
|
|
158
|
+
}
|
|
159
|
+
`,rr=C`
|
|
160
|
+
.ft-typography--body2 {
|
|
161
|
+
font-family: ${Wi.fontFamily};
|
|
162
|
+
font-size: ${Wi.fontSize};
|
|
163
|
+
font-weight: ${Wi.fontWeight};
|
|
164
|
+
letter-spacing: ${Wi.letterSpacing};
|
|
165
|
+
line-height: ${Wi.lineHeight};
|
|
166
|
+
text-transform: ${Wi.textTransform};
|
|
167
|
+
}
|
|
168
|
+
`,nr=C`
|
|
169
|
+
.ft-typography--caption {
|
|
170
|
+
font-family: ${Ai};
|
|
171
|
+
font-size: ${ji};
|
|
172
|
+
font-weight: ${Fi};
|
|
173
|
+
letter-spacing: ${Di};
|
|
174
|
+
line-height: ${Bi};
|
|
175
|
+
text-transform: ${zi};
|
|
176
|
+
}
|
|
177
|
+
`,ar=C`
|
|
178
|
+
.ft-typography--breadcrumb {
|
|
179
|
+
font-family: ${Ki};
|
|
180
|
+
font-size: ${Pi};
|
|
181
|
+
font-weight: ${Mi};
|
|
182
|
+
letter-spacing: ${Ti};
|
|
183
|
+
line-height: ${Zi};
|
|
184
|
+
text-transform: ${_i};
|
|
185
|
+
}
|
|
186
|
+
`,sr=C`
|
|
187
|
+
.ft-typography--overline {
|
|
188
|
+
font-family: ${Hi};
|
|
189
|
+
font-size: ${Gi};
|
|
190
|
+
font-weight: ${Vi};
|
|
191
|
+
letter-spacing: ${qi};
|
|
192
|
+
line-height: ${Yi};
|
|
193
|
+
text-transform: ${Xi};
|
|
194
|
+
}
|
|
195
|
+
`,lr=C`
|
|
196
|
+
.ft-typography--button {
|
|
197
|
+
font-family: ${Ji.fontFamily};
|
|
198
|
+
font-size: ${Ji.fontSize};
|
|
199
|
+
font-weight: ${Ji.fontWeight};
|
|
200
|
+
letter-spacing: ${Ji.letterSpacing};
|
|
201
|
+
line-height: ${Ji.lineHeight};
|
|
202
|
+
text-transform: ${Ji.textTransform};
|
|
203
|
+
}
|
|
204
|
+
`,cr=C`
|
|
205
|
+
.ft-typography {
|
|
206
|
+
vertical-align: inherit;
|
|
207
|
+
}
|
|
208
|
+
`,fr=[Object.keys(It).map((t=>function(t){const e=It[t];return C`
|
|
209
|
+
.ft-typography--${N(t)} {
|
|
210
|
+
font-family: ${e.fontFamily};
|
|
211
|
+
font-size: ${e.fontSize};
|
|
212
|
+
font-weight: ${e.fontWeight};
|
|
213
|
+
letter-spacing: ${e.letterSpacing};
|
|
214
|
+
line-height: ${e.lineHeight};
|
|
215
|
+
text-transform: ${e.textCase};
|
|
216
|
+
}
|
|
217
|
+
`}(t)))];var hr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pr extends Kt{constructor(){super(...arguments),this.variant=Qo.body1}render(){return this.element?Jo`
|
|
218
|
+
<${Yo(this.element)}
|
|
219
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
220
|
+
<slot></slot>
|
|
221
|
+
</${Yo(this.element)}>
|
|
222
|
+
`:Jo`
|
|
223
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
224
|
+
`}}pr.styles=[Qi,tr,er,or,ir,rr,nr,ar,sr,lr,cr,...fr],hr([s()],pr.prototype,"element",void 0),hr([s()],pr.prototype,"variant",void 0),g("ft-typography")(pr);
|
|
225
|
+
/**
|
|
226
|
+
* @license
|
|
227
|
+
* Copyright 2017 Google LLC
|
|
228
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
229
|
+
*/
|
|
230
|
+
const ur=1,dr=2,yr=t=>(...e)=>({_$litDirective$:t,values:e});class br{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
231
|
+
/**
|
|
232
|
+
* @license
|
|
233
|
+
* Copyright 2020 Google LLC
|
|
234
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
235
|
+
*/const{I:gr}=xt,vr=()=>document.createComment(""),mr=(t,e,o)=>{var i;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(vr(),n),i=r.insertBefore(vr(),n);o=new gr(e,i,t,t.options)}else{const e=o._$AB.nextSibling,a=o._$AM,s=a!==t;if(s){let e;null===(i=o._$AQ)||void 0===i||i.call(o,t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==a._$AU&&o._$AP(e)}if(e!==n||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return o},xr=(t,e,o=t)=>(t._$AI(e,o),t),Or={},wr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let o=t._$AA;const i=t._$AB.nextSibling;for(;o!==i;){const t=o.nextSibling;o.remove(),o=t}},Sr=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Nr=yr(class extends br{constructor(t){if(super(t),t.type!==dr)throw Error("repeat() can only be used in text expressions")}dt(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.dt(t,e,o).values}update(t,[e,o,i]){var r;const n=(t=>t._$AH)(t),{values:a,keys:s}=this.dt(e,o,i);if(!Array.isArray(n))return this.ht=s,a;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let f,h,p=0,u=n.length-1,d=0,y=a.length-1;for(;p<=u&&d<=y;)if(null===n[p])p++;else if(null===n[u])u--;else if(l[p]===s[d])c[d]=xr(n[p],a[d]),p++,d++;else if(l[u]===s[y])c[y]=xr(n[u],a[y]),u--,y--;else if(l[p]===s[y])c[y]=xr(n[p],a[y]),mr(t,c[y+1],n[p]),p++,y--;else if(l[u]===s[d])c[d]=xr(n[u],a[d]),mr(t,n[p],n[u]),u--,d++;else if(void 0===f&&(f=Sr(s,d,y),h=Sr(l,p,u)),f.has(l[p]))if(f.has(l[u])){const e=h.get(s[d]),o=void 0!==e?n[e]:null;if(null===o){const e=mr(t,n[p]);xr(e,a[d]),c[d]=e}else c[d]=xr(o,a[d]),mr(t,n[p],o),n[e]=null;d++}else wr(n[u]),u--;else wr(n[p]),p++;for(;d<=y;){const e=mr(t,c[y+1]);xr(e,a[d]),c[d++]=e}for(;p<=u;){const t=n[p++];null!==t&&wr(t)}return this.ht=s,((t,e=Or)=>{t._$AH=e})(t,c),nt}}),Cr=Et.extend("--ft-ripple-color","",Wt.colorContent),$r={color:Cr,backgroundColor:Et.extend("--ft-ripple-background-color","",Cr),opacityContentOnSurfacePressed:Et.external(Wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Et.external(Wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Et.external(Wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Et.external(Wt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Et.create("--ft-ripple-border-radius","","SIZE","0px")},Er=Et.extend("--ft-ripple-color","",Wt.colorPrimary),kr=Er,Rr=Et.extend("--ft-ripple-background-color","",Er),Ir=Et.extend("--ft-ripple-color","",Wt.colorSecondary),Ur=Ir,Lr=Et.extend("--ft-ripple-background-color","",Ir),Wr=C`
|
|
236
|
+
:host {
|
|
237
|
+
display: contents;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.ft-ripple {
|
|
241
|
+
position: absolute;
|
|
242
|
+
inset: 0;
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
border-radius: ${$r.borderRadius};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ft-ripple .ft-ripple--background,
|
|
252
|
+
.ft-ripple .ft-ripple--effect {
|
|
253
|
+
position: absolute;
|
|
254
|
+
opacity: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ft-ripple .ft-ripple--effect {
|
|
258
|
+
aspect-ratio: 1;
|
|
259
|
+
width: auto;
|
|
260
|
+
height: auto;
|
|
261
|
+
min-width: 170%;
|
|
262
|
+
min-height: 170%;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.ft-ripple .ft-ripple--background{
|
|
266
|
+
width: 100%;
|
|
267
|
+
height: 100%;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
271
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
272
|
+
aspect-ratio: 1;
|
|
273
|
+
width: auto;
|
|
274
|
+
height: auto;
|
|
275
|
+
max-width: unset;
|
|
276
|
+
max-height: unset;
|
|
277
|
+
min-width: 100%;
|
|
278
|
+
min-height: 100%;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ft-ripple .ft-ripple--background {
|
|
282
|
+
background-color: ${$r.backgroundColor};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ft-ripple .ft-ripple--effect {
|
|
286
|
+
background-color: ${$r.color};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
290
|
+
background-color: ${Lr};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
294
|
+
background-color: ${Ur};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
298
|
+
background-color: ${Rr};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
302
|
+
background-color: ${kr};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.ft-ripple .ft-ripple--background {
|
|
306
|
+
top: 0;
|
|
307
|
+
left: 0;
|
|
308
|
+
transition: opacity 75ms linear;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ft-ripple .ft-ripple--effect,
|
|
312
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
313
|
+
border-radius: 50%;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ft-ripple .ft-ripple--effect {
|
|
317
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
318
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
322
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
323
|
+
left: 50%;
|
|
324
|
+
top: 50%;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
328
|
+
transform: translate(-50%, -50%);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
332
|
+
opacity: ${$r.opacityContentOnSurfaceHover};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
336
|
+
opacity: ${$r.opacityContentOnSurfaceSelected};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
340
|
+
opacity: ${$r.opacityContentOnSurfaceFocused};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
344
|
+
opacity: ${$r.opacityContentOnSurfacePressed};
|
|
345
|
+
transform: translate(-50%, -50%) scale(1);
|
|
346
|
+
}
|
|
347
|
+
`,Ar={color:Et.extend("--ft-loader-color","",Wt.colorPrimary),size:Et.create("--ft-loader-size","","SIZE","80px")},jr=C`
|
|
348
|
+
:host {
|
|
349
|
+
line-height: 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ft-loader {
|
|
353
|
+
display: inline-block;
|
|
354
|
+
position: relative;
|
|
355
|
+
|
|
356
|
+
width: ${Ar.size};
|
|
357
|
+
height: ${Ar.size};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ft-loader div {
|
|
361
|
+
position: absolute;
|
|
362
|
+
top: 37.5%;
|
|
363
|
+
width: 25%;
|
|
364
|
+
height: 25%;
|
|
365
|
+
border-radius: 50%;
|
|
366
|
+
background: ${Ar.color};
|
|
367
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.ft-loader div:nth-child(1) {
|
|
371
|
+
left: 2.5%;
|
|
372
|
+
animation: appear 0.6s infinite;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ft-loader div:nth-child(2) {
|
|
376
|
+
left: 2.5%;
|
|
377
|
+
animation: move 0.6s infinite;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.ft-loader div:nth-child(3) {
|
|
381
|
+
left: 37.5%;
|
|
382
|
+
animation: move 0.6s infinite;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.ft-loader div:nth-child(4) {
|
|
386
|
+
left: 72.5%;
|
|
387
|
+
animation: disappear 0.6s infinite;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@keyframes appear {
|
|
391
|
+
0% {
|
|
392
|
+
transform: scale(0);
|
|
393
|
+
}
|
|
394
|
+
100% {
|
|
395
|
+
transform: scale(1);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@keyframes disappear {
|
|
400
|
+
0% {
|
|
401
|
+
transform: scale(1);
|
|
402
|
+
}
|
|
403
|
+
100% {
|
|
404
|
+
transform: scale(0);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@keyframes move {
|
|
409
|
+
0% {
|
|
410
|
+
transform: translate(0, 0);
|
|
411
|
+
}
|
|
412
|
+
100% {
|
|
413
|
+
transform: translate(calc(0.35 * ${Ar.size}), 0);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
`,Fr={size:Et.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Et.extend("--ft-icon-fluid-topics-font-family","",Et.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Et.extend("--ft-icon-file-format-font-family","",Et.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Et.extend("--ft-icon-material-font-family","",Et.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Et.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Dr=C`
|
|
417
|
+
:host, i.ft-icon {
|
|
418
|
+
display: inline-flex;
|
|
419
|
+
align-items: center;
|
|
420
|
+
flex-shrink: 0;
|
|
421
|
+
flex-grow: 0;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
:host {
|
|
425
|
+
width: ${Fr.size};
|
|
426
|
+
height: ${Fr.size};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
i.ft-icon {
|
|
430
|
+
width: 100%;
|
|
431
|
+
height: 100%;
|
|
432
|
+
font-size: ${Fr.size};
|
|
433
|
+
line-height: 1;
|
|
434
|
+
font-weight: normal;
|
|
435
|
+
text-transform: none;
|
|
436
|
+
font-style: normal;
|
|
437
|
+
font-variant: normal;
|
|
438
|
+
speak: none;
|
|
439
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
440
|
+
text-rendering: auto;
|
|
441
|
+
-webkit-font-smoothing: antialiased;
|
|
442
|
+
-moz-osx-font-smoothing: grayscale;
|
|
443
|
+
vertical-align: ${Fr.verticalAlign};
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
447
|
+
font-family: ${Fr.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
448
|
+
|
|
449
|
+
/* Ugly fix because font is broken */
|
|
450
|
+
font-size: calc(0.75 * ${Fr.size});
|
|
451
|
+
line-height: ${Fr.size};
|
|
452
|
+
position: relative;
|
|
453
|
+
top: -4%;
|
|
454
|
+
justify-content: center;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.ft-icon--file-format {
|
|
458
|
+
font-family: ${Fr.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.ft-icon--material {
|
|
462
|
+
font-family: ${Fr.materialFontFamily}, "Material Icons", sans-serif;
|
|
463
|
+
}
|
|
464
|
+
`,Br=Et.extend("--ft-button-color","",Wt.colorPrimary),zr={backgroundColor:Et.extend("--ft-button-background-color","",Wt.colorSurface),borderRadius:Et.extend("--ft-button-border-radius","",Wt.borderRadiusL),color:Br,fontSize:Et.extend("--ft-button-font-size","",Ji.fontSize),iconSize:Et.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Et.extend("--ft-button-ripple-color","",Br),verticalPadding:Et.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Et.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Et.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Et.external(Wt.colorOpacityDisabled,"Design system")},Kr=Et.extend("--ft-button-primary-color","",Et.extend("--ft-button-color","",Wt.colorOnPrimary)),Pr={backgroundColor:Et.extend("--ft-button-primary-background-color","",Et.extend("--ft-button-background-color","",Wt.colorPrimary)),color:Kr,rippleColor:Et.extend("--ft-button-primary-ripple-color","",Kr)},Mr=Et.extend("--ft-button-dense-border-radius","",Et.extend("--ft-button-border-radius","",Wt.borderRadiusM)),Tr=Et.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Zr=Et.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),_r=Et.create("--ft-button-dense-icon-padding","","SIZE","4px"),Hr=[C`
|
|
465
|
+
:host {
|
|
466
|
+
display: inline-block;
|
|
467
|
+
max-width: 100%;
|
|
468
|
+
pointer-events: none;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
button {
|
|
472
|
+
box-shadow: 0px 0px 0px transparent;
|
|
473
|
+
border: 0px solid transparent;
|
|
474
|
+
text-shadow: 0px 0px 0px transparent;
|
|
475
|
+
font-size: ${zr.fontSize};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
button:hover {
|
|
479
|
+
box-shadow: 0px 0px 0px transparent;
|
|
480
|
+
border: 0px solid transparent;
|
|
481
|
+
text-shadow: 0px 0px 0px transparent;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
button:active {
|
|
485
|
+
outline: none;
|
|
486
|
+
border: none;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
button:focus {
|
|
490
|
+
outline: 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.ft-button {
|
|
494
|
+
position: relative;
|
|
495
|
+
display: flex;
|
|
496
|
+
justify-content: center;
|
|
497
|
+
align-items: center;
|
|
498
|
+
width: 100%;
|
|
499
|
+
overflow: hidden;
|
|
500
|
+
box-sizing: border-box;
|
|
501
|
+
border: none;
|
|
502
|
+
pointer-events: auto;
|
|
503
|
+
|
|
504
|
+
--ft-button-internal-line-height: max(calc(${zr.fontSize} + 2px), ${zr.iconSize});
|
|
505
|
+
--ft-button-internal-color: ${zr.color};
|
|
506
|
+
${kt(Fr.size,zr.iconSize)};
|
|
507
|
+
${kt($r.color,zr.rippleColor)};
|
|
508
|
+
|
|
509
|
+
border-radius: ${zr.borderRadius};
|
|
510
|
+
padding: ${zr.verticalPadding} ${zr.horizontalPadding};
|
|
511
|
+
background-color: ${zr.backgroundColor};
|
|
512
|
+
color: var(--ft-button-internal-color);
|
|
513
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ft-button.ft-button--outlined {
|
|
517
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
518
|
+
padding: calc(${zr.verticalPadding} - 1px) calc(${zr.horizontalPadding} - 1px);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ft-button.ft-button--dense {
|
|
522
|
+
padding: ${Tr} ${Zr};
|
|
523
|
+
border-radius: ${Mr};
|
|
524
|
+
gap: ${_r};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
528
|
+
padding: calc(${Tr} - 1px) calc(${Zr} - 1px);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.ft-button:not([disabled]):hover {
|
|
532
|
+
cursor: pointer;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ft-button--round {
|
|
536
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${zr.verticalPadding});
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.ft-button--round.ft-button--dense {
|
|
540
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Tr});
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.ft-button[disabled] {
|
|
544
|
+
filter: grayscale(1);
|
|
545
|
+
opacity: ${zr.opacityDisabled};
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.ft-button.ft-button--primary {
|
|
549
|
+
background-color: ${Pr.backgroundColor};
|
|
550
|
+
--ft-button-internal-color: ${Pr.color};
|
|
551
|
+
${kt($r.color,Pr.rippleColor)};
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.ft-button:focus {
|
|
555
|
+
outline: none;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.ft-button--label {
|
|
559
|
+
position: relative;
|
|
560
|
+
overflow: hidden;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
text-overflow: ellipsis;
|
|
563
|
+
display: block;
|
|
564
|
+
margin: 0 ${zr.iconPadding};
|
|
565
|
+
${kt(Ji.fontSize,"1em")};
|
|
566
|
+
${kt(Ji.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.ft-button--dense .ft-button--label {
|
|
570
|
+
margin: 0 ${_r};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.ft-button--label[hidden] {
|
|
574
|
+
display: none;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
ft-icon {
|
|
578
|
+
flex-shrink: 0;
|
|
579
|
+
position: relative;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ft-button--label[hidden] + ft-icon {
|
|
583
|
+
margin: 0 calc(${zr.horizontalPadding} * -1);
|
|
584
|
+
padding: 0 ${zr.verticalPadding};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
588
|
+
margin: 0 calc(${Zr} * -1);
|
|
589
|
+
padding: 0 ${Tr};
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
593
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
594
|
+
order: -1;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
ft-loader {
|
|
598
|
+
${kt(Ar.size,zr.iconSize)};
|
|
599
|
+
${kt(Ar.color,"var(--ft-button-internal-color)")};
|
|
600
|
+
}
|
|
601
|
+
`,Pt],Gr=yr(class extends br{constructor(t){var e;if(super(t),t.type!==ur||"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 o,i;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===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(o?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return nt}});
|
|
602
|
+
/**
|
|
603
|
+
* @license
|
|
604
|
+
* Copyright 2017 Google LLC
|
|
605
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
606
|
+
*/var Vr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qr extends Kt{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.originX=0,this.originY=0,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,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 rt`
|
|
607
|
+
<style>
|
|
608
|
+
.ft-ripple .ft-ripple--effect {
|
|
609
|
+
left: ${this.originX}px;
|
|
610
|
+
top: ${this.originY}px;
|
|
611
|
+
}
|
|
612
|
+
</style>
|
|
613
|
+
<div class="${Gr(t)}">
|
|
614
|
+
<div class="ft-ripple--background"></div>
|
|
615
|
+
<div class="ft-ripple--effect"></div>
|
|
616
|
+
</div>
|
|
617
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}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)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=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",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}qr.elementDefinitions={},qr.styles=Wr,Vr([s({type:Boolean})],qr.prototype,"primary",void 0),Vr([s({type:Boolean})],qr.prototype,"secondary",void 0),Vr([s({type:Boolean})],qr.prototype,"unbounded",void 0),Vr([s({type:Boolean})],qr.prototype,"activated",void 0),Vr([s({type:Boolean})],qr.prototype,"selected",void 0),Vr([s({type:Boolean})],qr.prototype,"disabled",void 0),Vr([l()],qr.prototype,"hovered",void 0),Vr([l()],qr.prototype,"focused",void 0),Vr([l()],qr.prototype,"pressed",void 0),Vr([l()],qr.prototype,"rippling",void 0),Vr([l()],qr.prototype,"originX",void 0),Vr([l()],qr.prototype,"originY",void 0),Vr([f(".ft-ripple")],qr.prototype,"ripple",void 0),Vr([f(".ft-ripple--effect")],qr.prototype,"rippleEffect",void 0),g("ft-ripple")(qr);const Yr=Et.create("--ft-tooltip-distance","","SIZE","4px"),Xr=Et.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Jr=Et.create("--ft-tooltip-background-color","","COLOR","#666666"),Qr=Et.create("--ft-tooltip-z-index","","NUMBER","100"),tn=Et.external(Wt.borderRadiusS,"Design system"),en=Et.create("--ft-tooltip-max-width","","SIZE","150px"),on=C`
|
|
618
|
+
.ft-tooltip--container {
|
|
619
|
+
display: block;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.ft-tooltip--inline {
|
|
623
|
+
display: inline-block;
|
|
624
|
+
max-width: 100%;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.ft-tooltip {
|
|
628
|
+
position: absolute;
|
|
629
|
+
box-sizing: border-box;
|
|
630
|
+
overflow: hidden;
|
|
631
|
+
width: max-content;
|
|
632
|
+
max-width: ${en};
|
|
633
|
+
text-align: center;
|
|
634
|
+
padding: ${Yr};
|
|
635
|
+
z-index: ${Qr};
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.ft-tooltip--content {
|
|
639
|
+
padding: 4px 8px;
|
|
640
|
+
border-radius: ${tn};
|
|
641
|
+
background-color: ${Jr};
|
|
642
|
+
color: ${Xr};
|
|
643
|
+
position: relative;
|
|
644
|
+
word-break: break-word;
|
|
645
|
+
}
|
|
646
|
+
`;var rn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nn extends Kt{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 rt`
|
|
647
|
+
<div part="container"
|
|
648
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
649
|
+
@mouseenter=${this.onHover}
|
|
650
|
+
@mouseleave=${this.onOut}
|
|
651
|
+
@focusin=${this.onHover}
|
|
652
|
+
@focusout=${this.onOut}
|
|
653
|
+
@touchstart=${this.onTouch}>
|
|
654
|
+
<slot></slot>
|
|
655
|
+
<div part="tooltip" role="tooltip" inert
|
|
656
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
657
|
+
?hidden=${!this.visible}>
|
|
658
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
659
|
+
<slot name="text"></slot>
|
|
660
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
661
|
+
</div>
|
|
662
|
+
</div>
|
|
663
|
+
</div>
|
|
664
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(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=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,f=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,f))+"px";let h=-l.y,p=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${en})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}nn.elementDefinitions={"ft-typography":pr},nn.styles=on,rn([s()],nn.prototype,"text",void 0),rn([s({type:Boolean})],nn.prototype,"manual",void 0),rn([s({type:Boolean})],nn.prototype,"inline",void 0),rn([s({type:Number})],nn.prototype,"delay",void 0),rn([s()],nn.prototype,"position",void 0),rn([function(t,e,o){let i,r=t;return"object"==typeof t?(r=t.slot,i=t):i={flatten:e},o?u({slot:r,flatten:e,selector:o}):c({descriptor:t=>({get(){var t,e;const o="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(o);return null!==(e=null==n?void 0:n.assignedNodes(i))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],nn.prototype,"slotNodes",void 0),rn([f(".ft-tooltip--container")],nn.prototype,"container",void 0),rn([f(".ft-tooltip")],nn.prototype,"tooltip",void 0),rn([f(".ft-tooltip--content")],nn.prototype,"tooltipContent",void 0),rn([l()],nn.prototype,"visible",void 0),g("ft-tooltip")(nn);
|
|
665
|
+
/**
|
|
666
|
+
* @license
|
|
667
|
+
* Copyright 2017 Google LLC
|
|
668
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
669
|
+
*/
|
|
670
|
+
class an extends br{constructor(t){if(super(t),this.et=at,t.type!==dr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.ft=void 0,this.et=t;if(t===nt)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:[]}}}an.directiveName="unsafeHTML",an.resultType=1;const sn=yr(an);var ln,cn,fn;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",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.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(ln||(ln={})),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=""}(cn||(cn={})),new Map([...["abw"].map((t=>[t,cn.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,cn.AUDIO])),...["avi"].map((t=>[t,cn.AVI])),...["chm","xhs"].map((t=>[t,cn.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,cn.CODE])),...["csv"].map((t=>[t,cn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,cn.DITA])),...["epub"].map((t=>[t,cn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,cn.EXCEL])),...["flac"].map((t=>[t,cn.FLAC])),...["gif"].map((t=>[t,cn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,cn.GZIP])),...["html","htm","xhtml"].map((t=>[t,cn.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,cn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,cn.JPEG])),...["json"].map((t=>[t,cn.JSON])),...["m4a","m4p"].map((t=>[t,cn.M4A])),...["mov","qt"].map((t=>[t,cn.MOV])),...["mp3"].map((t=>[t,cn.MP3])),...["mp4","m4v"].map((t=>[t,cn.MP4])),...["ogg","oga"].map((t=>[t,cn.OGG])),...["pdf","ps"].map((t=>[t,cn.PDF])),...["png"].map((t=>[t,cn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,cn.POWERPOINT])),...["rar"].map((t=>[t,cn.RAR])),...["stp"].map((t=>[t,cn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,cn.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,cn.VIDEO])),...["wav"].map((t=>[t,cn.WAV])),...["wma"].map((t=>[t,cn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,cn.WORD])),...["xml","xsl","rdf"].map((t=>[t,cn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,cn.YAML])),...["zip"].map((t=>[t,cn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fn||(fn={}));var hn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pn extends Kt{constructor(){super(...arguments),this.resolvedIcon=at}render(){const t=this.variant&&Object.values(fn).includes(this.variant)?this.variant:fn.fluid_topics,e=t!==fn.material||!!this.value;return rt`
|
|
671
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
672
|
+
${sn(this.resolvedIcon)}
|
|
673
|
+
<slot ?hidden=${e}></slot>
|
|
674
|
+
</i>
|
|
675
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case fn.file_format:this.resolvedIcon=null!==(t=cn[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case fn.material:this.resolvedIcon=this.value||at;break;default:this.resolvedIcon=null!==(e=ln[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}pn.elementDefinitions={},pn.styles=Dr,hn([s()],pn.prototype,"variant",void 0),hn([s()],pn.prototype,"value",void 0),hn([l()],pn.prototype,"resolvedIcon",void 0),hn([f("slot")],pn.prototype,"slottedContent",void 0),g("ft-icon")(pn);class un extends Kt{render(){return rt`
|
|
676
|
+
<div class="ft-loader">
|
|
677
|
+
<div></div>
|
|
678
|
+
<div></div>
|
|
679
|
+
<div></div>
|
|
680
|
+
<div></div>
|
|
681
|
+
</div>
|
|
682
|
+
`}}un.styles=jr,g("ft-loader")(un);var dn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class yn extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Mo].form}constructor(...t){super(t),this[Mo]=this.attachInternals(),this[Mo].role=e}setFormValue(t){this[Mo].setFormValue(t)}}}(Kt,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(rt`
|
|
683
|
+
<button part="button"
|
|
684
|
+
class="${Gr(this.buttonClasses)}"
|
|
685
|
+
aria-label="${this.getLabel()}"
|
|
686
|
+
?disabled=${this.isDisabled()}>
|
|
687
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
688
|
+
<ft-typography part="label"
|
|
689
|
+
variant=${this.typographyVariant}
|
|
690
|
+
element="span"
|
|
691
|
+
class="ft-button--label ${Ho?"ft-safari-ellipsis-fix":""}"
|
|
692
|
+
?hidden=${!this.hasTextContent()}>
|
|
693
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
694
|
+
</ft-typography>
|
|
695
|
+
${this.resolveIcon()}
|
|
696
|
+
</button>
|
|
697
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?rt`
|
|
698
|
+
<ft-tooltip part="tooltip"
|
|
699
|
+
text="${this.getLabel()}"
|
|
700
|
+
position="${this.tooltipPosition}">
|
|
701
|
+
${t}
|
|
702
|
+
</ft-tooltip>
|
|
703
|
+
`:t}resolveIcon(){return this.loading?rt`
|
|
704
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?rt`
|
|
705
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:at}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}}yn.elementDefinitions={"ft-ripple":qr,"ft-tooltip":nn,"ft-typography":pr,"ft-icon":pn,"ft-loader":un},dn([s({type:String,reflect:!0})],yn.prototype,"role",void 0),dn([s()],yn.prototype,"type",void 0),dn([s({type:Boolean})],yn.prototype,"disabled",void 0),dn([s()],yn.prototype,"label",void 0),dn([s()],yn.prototype,"icon",void 0),dn([s()],yn.prototype,"iconVariant",void 0),dn([s({type:Boolean})],yn.prototype,"trailingIcon",void 0),dn([s({type:Boolean})],yn.prototype,"loading",void 0),dn([s()],yn.prototype,"tooltipPosition",void 0),dn([s({type:Boolean})],yn.prototype,"hideTooltip",void 0),dn([s({type:Boolean})],yn.prototype,"forceTooltip",void 0),dn([f(".ft-button")],yn.prototype,"button",void 0),dn([f(".ft-button--label slot")],yn.prototype,"slottedContent",void 0);var bn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gn extends yn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}gn.styles=[Mt,Hr],bn([s({type:Boolean})],gn.prototype,"primary",void 0),bn([s({type:Boolean})],gn.prototype,"outlined",void 0),bn([s({type:Boolean})],gn.prototype,"disabled",void 0),bn([s({type:Boolean})],gn.prototype,"dense",void 0),bn([s({type:Boolean})],gn.prototype,"round",void 0);const vn=[C`
|
|
706
|
+
:host {
|
|
707
|
+
display: inline-block;
|
|
708
|
+
max-width: 100%;
|
|
709
|
+
pointer-events: none;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/** Remove default button styles **/
|
|
713
|
+
|
|
714
|
+
button {
|
|
715
|
+
box-shadow: 0 0 0 transparent;
|
|
716
|
+
border: 0 solid transparent;
|
|
717
|
+
text-shadow: 0 0 0 transparent;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
button:hover {
|
|
721
|
+
box-shadow: 0 0 0 transparent;
|
|
722
|
+
text-shadow: 0 0 0 transparent;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
button:active {
|
|
726
|
+
outline: none;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
button:focus {
|
|
730
|
+
outline: 0;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/** Base styles **/
|
|
734
|
+
|
|
735
|
+
.ft-button {
|
|
736
|
+
position: relative;
|
|
737
|
+
display: flex;
|
|
738
|
+
justify-content: center;
|
|
739
|
+
align-items: center;
|
|
740
|
+
width: 100%;
|
|
741
|
+
overflow: hidden;
|
|
742
|
+
box-sizing: border-box;
|
|
743
|
+
pointer-events: auto;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.ft-button:not([disabled]):hover {
|
|
747
|
+
cursor: pointer;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.ft-button:focus {
|
|
751
|
+
outline: none;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.ft-button:focus-visible {
|
|
755
|
+
outline-color: ${Lt.focusFocusRingColor};
|
|
756
|
+
outline-style: solid;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
ft-icon {
|
|
760
|
+
flex-shrink: 0;
|
|
761
|
+
position: relative;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
765
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
766
|
+
order: -1;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ft-button--label {
|
|
770
|
+
position: relative;
|
|
771
|
+
overflow: hidden;
|
|
772
|
+
white-space: nowrap;
|
|
773
|
+
text-overflow: ellipsis;
|
|
774
|
+
display: block;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.ft-button--label[hidden] {
|
|
778
|
+
display: none;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/** Primary styles **/
|
|
782
|
+
|
|
783
|
+
.ft-button--primary {
|
|
784
|
+
${kt(Ar.color,Lt.primaryIconColor)};
|
|
785
|
+
|
|
786
|
+
${kt($r.color,Lt.primaryStateLayerColor)};
|
|
787
|
+
${kt($r.opacityContentOnSurfaceHover,Lt.primaryStateLayerOpacityHover)};
|
|
788
|
+
${kt($r.opacityContentOnSurfaceFocused,Lt.primaryStateLayerOpacityFocus)};
|
|
789
|
+
${kt($r.opacityContentOnSurfaceSelected,Lt.primaryStateLayerOpacityActive)};
|
|
790
|
+
${kt($r.opacityContentOnSurfacePressed,Lt.primaryStateLayerOpacityActive)};
|
|
791
|
+
|
|
792
|
+
background-color: ${Lt.primaryBackgroundColor};
|
|
793
|
+
color: ${Lt.primaryColor};
|
|
794
|
+
border-style: none;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.ft-button--primary[disabled] {
|
|
798
|
+
opacity: ${Lt.primaryComponentOpacityDisabled};
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.ft-button--primary ft-icon {
|
|
802
|
+
color: ${Lt.primaryIconColor};
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/** Secondary styles **/
|
|
806
|
+
|
|
807
|
+
.ft-button--secondary {
|
|
808
|
+
${kt(Ar.color,Lt.secondaryIconColor)};
|
|
809
|
+
|
|
810
|
+
${kt($r.color,Lt.secondaryStateLayerColor)};
|
|
811
|
+
${kt($r.opacityContentOnSurfaceHover,Lt.secondaryStateLayerOpacityHover)};
|
|
812
|
+
${kt($r.opacityContentOnSurfaceFocused,Lt.secondaryStateLayerOpacityFocus)};
|
|
813
|
+
${kt($r.opacityContentOnSurfaceSelected,Lt.secondaryStateLayerOpacityActive)};
|
|
814
|
+
${kt($r.opacityContentOnSurfacePressed,Lt.secondaryStateLayerOpacityActive)};
|
|
815
|
+
|
|
816
|
+
background-color: ${Lt.secondaryBackgroundColor};
|
|
817
|
+
color: ${Lt.secondaryColor};
|
|
818
|
+
border-color: ${Lt.secondaryBorderColor};
|
|
819
|
+
border-style: solid;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ft-button--secondary[disabled] {
|
|
823
|
+
opacity: ${Lt.secondaryComponentOpacityDisabled};
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.ft-button--secondary ft-icon {
|
|
827
|
+
color: ${Lt.secondaryIconColor};
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/** Tertiary styles **/
|
|
831
|
+
|
|
832
|
+
.ft-button--tertiary {
|
|
833
|
+
${kt(Ar.color,Lt.tertiaryIconColor)};
|
|
834
|
+
|
|
835
|
+
${kt($r.color,Lt.tertiaryStateLayerColor)};
|
|
836
|
+
${kt($r.opacityContentOnSurfaceHover,Lt.tertiaryStateLayerOpacityHover)};
|
|
837
|
+
${kt($r.opacityContentOnSurfaceFocused,Lt.tertiaryStateLayerOpacityFocus)};
|
|
838
|
+
${kt($r.opacityContentOnSurfaceSelected,Lt.tertiaryStateLayerOpacityActive)};
|
|
839
|
+
${kt($r.opacityContentOnSurfacePressed,Lt.tertiaryStateLayerOpacityActive)};
|
|
840
|
+
|
|
841
|
+
background-color: ${Lt.tertiaryBackgroundColor};
|
|
842
|
+
color: ${Lt.tertiaryColor};
|
|
843
|
+
border-style: none;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.ft-button--tertiary[disabled] {
|
|
847
|
+
opacity: ${Lt.tertiaryComponentOpacityDisabled};
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.ft-button--tertiary ft-icon {
|
|
851
|
+
color: ${Lt.tertiaryIconColor};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/** Neutral styles **/
|
|
855
|
+
|
|
856
|
+
.ft-button--neutral {
|
|
857
|
+
${kt(Ar.color,Lt.neutralIconColor)};
|
|
858
|
+
|
|
859
|
+
${kt($r.backgroundColor,Lt.neutralStateLayerColor)};
|
|
860
|
+
${kt($r.opacityContentOnSurfaceHover,Lt.neutralStateLayerOpacityHover)};
|
|
861
|
+
${kt($r.opacityContentOnSurfaceFocused,Lt.neutralStateLayerOpacityFocus)};
|
|
862
|
+
${kt($r.opacityContentOnSurfaceSelected,Lt.neutralStateLayerOpacityActive)};
|
|
863
|
+
${kt($r.opacityContentOnSurfacePressed,Lt.neutralStateLayerOpacityActive)};
|
|
864
|
+
|
|
865
|
+
background-color: ${Lt.neutralBackgroundColor};
|
|
866
|
+
color: ${Lt.neutralColor};
|
|
867
|
+
border-style: none;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.ft-button--neutral[disabled] {
|
|
871
|
+
opacity: ${Lt.neutralComponentOpacityDisabled};
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.ft-button--neutral ft-icon {
|
|
875
|
+
color: ${Lt.neutralIconColor};
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/** Large styles **/
|
|
879
|
+
|
|
880
|
+
.ft-button--large {
|
|
881
|
+
${kt(Fr.size,Lt.largeIconSize)};
|
|
882
|
+
${kt(Ar.size,Lt.largeIconSize)};
|
|
883
|
+
|
|
884
|
+
height: ${Lt.largeHeight};
|
|
885
|
+
padding: 0 ${Lt.largeHorizontalPadding};
|
|
886
|
+
gap: ${Lt.largeGap};
|
|
887
|
+
border-radius: ${Lt.largeBorderRadius};
|
|
888
|
+
border-width: ${Lt.largeBorderWidth};
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.ft-button--large:focus-visible {
|
|
892
|
+
outline-width: ${Lt.largeFocusOutlineWidth};
|
|
893
|
+
outline-offset: ${Lt.largeFocusOutlineOffset};
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.ft-button--large.ft-button--icon-only {
|
|
897
|
+
width: ${Lt.largeIconOnlyWidth};
|
|
898
|
+
padding: unset;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/** Small styles **/
|
|
902
|
+
|
|
903
|
+
.ft-button--small {
|
|
904
|
+
${kt(Fr.size,Lt.smallIconSize)};
|
|
905
|
+
${kt(Ar.size,Lt.smallIconSize)};
|
|
906
|
+
|
|
907
|
+
height: ${Lt.smallHeight};
|
|
908
|
+
padding: 0 ${Lt.smallHorizontalPadding};
|
|
909
|
+
gap: ${Lt.smallGap};
|
|
910
|
+
border-radius: ${Lt.smallBorderRadius};
|
|
911
|
+
border-width: ${Lt.smallBorderWidth};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.ft-button--small:focus-visible {
|
|
915
|
+
outline-width: ${Lt.smallFocusOutlineWidth};
|
|
916
|
+
outline-offset: ${Lt.smallFocusOutlineOffset};
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.ft-button--small.ft-button--icon-only {
|
|
920
|
+
width: ${Lt.smallIconOnlyWidth};
|
|
921
|
+
padding: unset;
|
|
922
|
+
}
|
|
923
|
+
`,Pt];var mn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xn extends yn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Qo.caption1medium:Qo.body2medium}}xn.styles=[Mt,vn],mn([s({type:Boolean})],xn.prototype,"primary",void 0),mn([s({type:Boolean})],xn.prototype,"secondary",void 0),mn([s({type:Boolean})],xn.prototype,"tertiary",void 0),mn([s({type:Boolean})],xn.prototype,"neutral",void 0),mn([s({type:Boolean})],xn.prototype,"small",void 0),g("ft-button")(gn),g("ftds-button")(xn);const On=Et.extend("--ft-checkbox-text-color","",Wt.colorOnSurfaceHigh),wn=Et.external(Wt.colorPrimary,"Design system"),Sn=Et.external(Wt.colorOnPrimary,"Design system"),Nn=Et.extend("--ft-checkbox-border-color","",Wt.colorOnSurfaceMedium),Cn=Et.external(Wt.colorOnSurfaceDisabled,"Design system"),$n=C`
|
|
924
|
+
* {
|
|
925
|
+
box-sizing: border-box;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.ft-checkbox {
|
|
929
|
+
box-sizing: border-box;
|
|
930
|
+
color: ${On};
|
|
931
|
+
|
|
932
|
+
display: inline-flex;
|
|
933
|
+
align-items: center;
|
|
934
|
+
gap: 4px;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.ft-checkbox--disabled {
|
|
938
|
+
color: ${Cn};
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
input {
|
|
942
|
+
opacity: 0;
|
|
943
|
+
position: absolute;
|
|
944
|
+
width: 40px;
|
|
945
|
+
height: 40px;
|
|
946
|
+
margin: 0;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.ft-checkbox--box-container {
|
|
950
|
+
position: relative;
|
|
951
|
+
width: 40px;
|
|
952
|
+
height: 40px;
|
|
953
|
+
|
|
954
|
+
display: flex;
|
|
955
|
+
justify-content: center;
|
|
956
|
+
align-items: center;
|
|
957
|
+
flex-shrink: 0;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.ft-checkbox--box {
|
|
961
|
+
display: flex;
|
|
962
|
+
border: 2px solid ${Nn};
|
|
963
|
+
border-radius: 2px;
|
|
964
|
+
|
|
965
|
+
width: 18px;
|
|
966
|
+
height: 18px;
|
|
967
|
+
|
|
968
|
+
color: ${Sn};
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
.ft-checkbox--checked .ft-checkbox--box,
|
|
973
|
+
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
974
|
+
border-color: ${wn};
|
|
975
|
+
background-color: ${wn};
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.ft-checkbox--disabled .ft-checkbox--box {
|
|
979
|
+
border-color: ${Cn};
|
|
980
|
+
background-color: transparent;
|
|
981
|
+
color: ${Cn};
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.ft-checkbox--checkmark {
|
|
985
|
+
transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
986
|
+
opacity: 0;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.ft-checkbox--checkmark-path {
|
|
990
|
+
stroke-dashoffset: 0;
|
|
991
|
+
stroke: currentcolor;
|
|
992
|
+
stroke-width: 3px;
|
|
993
|
+
stroke-dasharray: 30;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.ft-checkbox--checked .ft-checkbox--checkmark,
|
|
997
|
+
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
998
|
+
opacity: 1;
|
|
999
|
+
}
|
|
1000
|
+
`;var En=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class kn extends Kt{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 rt`
|
|
1001
|
+
<label class="${Gr(t)}" for="checkbox-input">
|
|
1002
|
+
<div class="ft-checkbox--box-container">
|
|
1003
|
+
<ft-ripple
|
|
1004
|
+
?disabled=${this.disabled}
|
|
1005
|
+
?primary=${this.checked||this.indeterminate}
|
|
1006
|
+
unbounded>
|
|
1007
|
+
</ft-ripple>
|
|
1008
|
+
<div class="ft-checkbox--box">
|
|
1009
|
+
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
|
|
1010
|
+
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
1011
|
+
d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
|
|
1012
|
+
</svg>
|
|
1013
|
+
</div>
|
|
1014
|
+
<input type="checkbox"
|
|
1015
|
+
id="checkbox-input"
|
|
1016
|
+
name="${this.name}"
|
|
1017
|
+
.checked=${this.checked}
|
|
1018
|
+
.disabled=${this.disabled}
|
|
1019
|
+
@change=${this.onChange}
|
|
1020
|
+
>
|
|
1021
|
+
</div>
|
|
1022
|
+
<ft-typography variant="body2">
|
|
1023
|
+
<slot></slot>
|
|
1024
|
+
</ft-typography>
|
|
1025
|
+
</label>
|
|
1026
|
+
`}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)}}kn.elementDefinitions={"ft-ripple":qr,"ft-typography":pr},kn.styles=$n,En([s()],kn.prototype,"name",void 0),En([s({type:Boolean,reflect:!0})],kn.prototype,"checked",void 0),En([s({type:Boolean})],kn.prototype,"indeterminate",void 0),En([s({type:Boolean})],kn.prototype,"disabled",void 0),En([f(".ft-checkbox")],kn.prototype,"container",void 0),En([f("ft-ripple")],kn.prototype,"ripple",void 0),g("ft-checkbox")(kn);const Rn=Et.extend("--ft-radio-text-color","",Wt.colorOnSurfaceHigh),In=Et.external(Wt.colorPrimary,"Design system"),Un=(Et.external(Wt.colorOnPrimary,"Design system"),Et.extend("--ft-radio-border-color","",Wt.colorOnSurfaceMedium)),Ln=Et.external(Wt.colorOnSurfaceDisabled,"Design system"),Wn=C`
|
|
1027
|
+
* {
|
|
1028
|
+
box-sizing: border-box;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.ft-radio {
|
|
1032
|
+
box-sizing: border-box;
|
|
1033
|
+
color: ${Rn};
|
|
1034
|
+
|
|
1035
|
+
display: inline-flex;
|
|
1036
|
+
align-items: center;
|
|
1037
|
+
gap: 4px;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.ft-radio--disabled {
|
|
1041
|
+
color: ${Ln};
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
input {
|
|
1045
|
+
opacity: 0;
|
|
1046
|
+
position: absolute;
|
|
1047
|
+
width: 40px;
|
|
1048
|
+
height: 40px;
|
|
1049
|
+
margin: 0;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.ft-radio--box-container {
|
|
1053
|
+
position: relative;
|
|
1054
|
+
width: 40px;
|
|
1055
|
+
height: 40px;
|
|
1056
|
+
|
|
1057
|
+
display: flex;
|
|
1058
|
+
justify-content: center;
|
|
1059
|
+
align-items: center;
|
|
1060
|
+
flex-shrink: 0;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.ft-radio--box {
|
|
1064
|
+
border: 2px solid ${Un};
|
|
1065
|
+
border-radius: 50%;
|
|
1066
|
+
|
|
1067
|
+
display: flex;
|
|
1068
|
+
justify-content: center;
|
|
1069
|
+
align-items: center;
|
|
1070
|
+
|
|
1071
|
+
width: 20px;
|
|
1072
|
+
height: 20px;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.ft-radio--box:after {
|
|
1076
|
+
content: " ";
|
|
1077
|
+
background-color: ${In};
|
|
1078
|
+
|
|
1079
|
+
border-radius: 50%;
|
|
1080
|
+
|
|
1081
|
+
width: 12px;
|
|
1082
|
+
height: 12px;
|
|
1083
|
+
|
|
1084
|
+
transform: scale(0);
|
|
1085
|
+
transition: transform 100ms ease;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.ft-radio--checked .ft-radio--box {
|
|
1089
|
+
border-color: ${In};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
.ft-radio--checked .ft-radio--box:after {
|
|
1094
|
+
transform: scale(1);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.ft-radio--disabled .ft-radio--box {
|
|
1098
|
+
border-color: ${Ln};
|
|
1099
|
+
background-color: transparent;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.ft-radio--disabled .ft-radio--box:after {
|
|
1103
|
+
background-color: ${Ln};
|
|
1104
|
+
}
|
|
1105
|
+
`;var An=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jn extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Fn extends Kt{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 rt`
|
|
1106
|
+
<div class="${Gr(t)}">
|
|
1107
|
+
<div class="ft-radio--box-container">
|
|
1108
|
+
<ft-ripple
|
|
1109
|
+
?disabled=${this.disabled}
|
|
1110
|
+
?primary=${this.checked}
|
|
1111
|
+
unbounded>
|
|
1112
|
+
</ft-ripple>
|
|
1113
|
+
<div class="ft-radio--box">
|
|
1114
|
+
</div>
|
|
1115
|
+
<input id="radio-button"
|
|
1116
|
+
type="radio"
|
|
1117
|
+
name="${this.name}"
|
|
1118
|
+
value="${this.value}"
|
|
1119
|
+
.checked=${this.checked}
|
|
1120
|
+
.disabled=${this.disabled}
|
|
1121
|
+
@change=${this.onChange}
|
|
1122
|
+
>
|
|
1123
|
+
</div>
|
|
1124
|
+
<label for="radio-button" @click=${t=>t.stopPropagation()}>
|
|
1125
|
+
<ft-typography variant="body2">
|
|
1126
|
+
<slot></slot>
|
|
1127
|
+
</ft-typography>
|
|
1128
|
+
</label>
|
|
1129
|
+
</div>
|
|
1130
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new jn(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 jn(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Fn.elementDefinitions={"ft-ripple":qr,"ft-typography":pr},Fn.styles=Wn,An([s()],Fn.prototype,"value",void 0),An([s()],Fn.prototype,"name",void 0),An([s({type:Boolean,reflect:!0})],Fn.prototype,"checked",void 0),An([s({type:Boolean})],Fn.prototype,"disabled",void 0),An([f(".ft-radio")],Fn.prototype,"container",void 0),An([f("ft-ripple")],Fn.prototype,"ripple",void 0),An([f("input")],Fn.prototype,"input",void 0);const Dn=C`
|
|
1131
|
+
:host {
|
|
1132
|
+
display: contents;
|
|
1133
|
+
}
|
|
1134
|
+
`;var Bn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zn extends Kt{constructor(){super(...arguments),this.name=""}render(){return rt`
|
|
1135
|
+
<slot @slotchange=${this.onSlotChange}
|
|
1136
|
+
@change=${this.onChange}
|
|
1137
|
+
@keydown=${this.onKeyDown}
|
|
1138
|
+
></slot>
|
|
1139
|
+
`}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),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].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)}}zn.elementDefinitions={},zn.styles=Dn,Bn([s()],zn.prototype,"name",void 0),Bn([u()],zn.prototype,"radioButtons",void 0),g("ft-radio")(Fn),g("ft-radio-group")(zn);const Kn={borderRadiusM:Et.external(Wt.borderRadiusM,"Design system"),colorOutline:Et.external(Wt.colorOutline,"Design system"),colorOnSurface:Et.external(Wt.colorOnSurface,"Design system"),colorOnSurfaceMedium:Et.external(Wt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Et.external(Wt.colorOnSurfaceDisabled,"Design system"),colorPrimary:Et.external(Wt.colorPrimary,"Design system"),colorOnPrimary:Et.external(Wt.colorOnPrimary,"Design system"),fontFamily:Et.external(Wi.fontFamily,"Body2 typography"),fontSize:Et.external(Wi.fontSize,"Body2 typography"),fontWeight:Et.external(Wi.fontWeight,"Body2 typography"),letterSpacing:Et.external(Wi.letterSpacing,"Body2 typography"),lineHeight:Et.external(Wi.lineHeight,"Body2 typography"),textTransform:Et.external(Wi.textTransform,"Body2 typography")},Pn=C`
|
|
1140
|
+
.ft-filter-level--container {
|
|
1141
|
+
display: flex;
|
|
1142
|
+
flex-direction: column;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.ft-filter-level--container > * {
|
|
1146
|
+
padding: 0 10px;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
.ft-filter-level--go-back {
|
|
1150
|
+
flex-shrink: 0;
|
|
1151
|
+
text-decoration: none;
|
|
1152
|
+
position: relative;
|
|
1153
|
+
border-radius: ${Kn.borderRadiusM};
|
|
1154
|
+
overflow: hidden;
|
|
1155
|
+
display: flex;
|
|
1156
|
+
align-items: center;
|
|
1157
|
+
padding: 4px 4px;
|
|
1158
|
+
gap: 4px;
|
|
1159
|
+
cursor: pointer;
|
|
1160
|
+
color: ${Kn.colorOnSurface};
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.ft-filter-level--go-back:focus {
|
|
1164
|
+
outline: none;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.ft-filter-level--go-back ft-icon {
|
|
1168
|
+
flex-shrink: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.ft-filter-level--go-back ft-typography {
|
|
1172
|
+
display: block;
|
|
1173
|
+
flex-grow: 1;
|
|
1174
|
+
flex-shrink: 0;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
.ft-filter-level--option {
|
|
1178
|
+
display: flex;
|
|
1179
|
+
align-items: center;
|
|
1180
|
+
max-width: 100%;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.ft-filter-level--option ft-button {
|
|
1184
|
+
margin-right: -10px;
|
|
1185
|
+
flex-shrink: 0;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
ft-button {
|
|
1189
|
+
${kt(zr.color,Kn.colorOnSurface)};
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
ft-radio, ft-checkbox {
|
|
1193
|
+
flex-shrink: 1;
|
|
1194
|
+
flex-grow: 1;
|
|
1195
|
+
display: flex;
|
|
1196
|
+
max-width: calc(100% + 10px);
|
|
1197
|
+
margin-left: -10px;
|
|
1198
|
+
word-break: break-word;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.ft-filter-level--no-values {
|
|
1202
|
+
margin: 10px 0;
|
|
1203
|
+
color: ${Kn.colorOnSurfaceMedium};
|
|
1204
|
+
}
|
|
1205
|
+
`;var Mn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Tn extends Kt{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 rt`
|
|
1206
|
+
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1207
|
+
${null==this.parent?null:rt`
|
|
1208
|
+
<div tabindex="0"
|
|
1209
|
+
part="controls go-back"
|
|
1210
|
+
class="ft-filter-level--go-back"
|
|
1211
|
+
?disabled=${this.disabled}
|
|
1212
|
+
@keyup=${this.goBackOnKeyPress}
|
|
1213
|
+
@click=${this.goBackOnClick}>
|
|
1214
|
+
<ft-ripple></ft-ripple>
|
|
1215
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
1216
|
+
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1217
|
+
</div>
|
|
1218
|
+
`}
|
|
1219
|
+
${0===this.options.length&&this.noValuesLabel?rt`
|
|
1220
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1221
|
+
${this.noValuesLabel}
|
|
1222
|
+
</ft-typography>
|
|
1223
|
+
`:at}
|
|
1224
|
+
${Nr(e,(t=>t.value),(t=>{var e;return rt`
|
|
1225
|
+
<div class="ft-filter-level--option" part="options">
|
|
1226
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1227
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?at:rt`
|
|
1228
|
+
<ft-button icon="thin_arrow_right"
|
|
1229
|
+
part="controls navigate-hierarchy"
|
|
1230
|
+
label="${t.label}"
|
|
1231
|
+
?disabled=${this.disabled}
|
|
1232
|
+
tooltipPosition="left"
|
|
1233
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
1234
|
+
`}
|
|
1235
|
+
</div>
|
|
1236
|
+
`}))}
|
|
1237
|
+
${e.length<t.length?rt`
|
|
1238
|
+
<ft-button
|
|
1239
|
+
class="ft-filter-level--display-more"
|
|
1240
|
+
icon="thin_arrow"
|
|
1241
|
+
dense trailingIcon
|
|
1242
|
+
part="controls display-more"
|
|
1243
|
+
@click=${this.displayMore}>
|
|
1244
|
+
${this.moreValuesButtonLabel}
|
|
1245
|
+
</ft-button>
|
|
1246
|
+
`:at}
|
|
1247
|
+
</div>
|
|
1248
|
+
`}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 rt`
|
|
1249
|
+
<ft-checkbox name="${this.filterId}"
|
|
1250
|
+
part="multivalued-option"
|
|
1251
|
+
data-value="${t.value}"
|
|
1252
|
+
.checked=${t.selected}
|
|
1253
|
+
.disabled=${this.disabled}
|
|
1254
|
+
.indeterminate=${y(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
1255
|
+
@change=${e=>this.optionsChanged(e,t)}>
|
|
1256
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1257
|
+
</ft-checkbox>
|
|
1258
|
+
`}buildMonoValuedOption(t){return rt`
|
|
1259
|
+
<ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
|
|
1260
|
+
part="monovalued-option"
|
|
1261
|
+
data-value="${t.value}"
|
|
1262
|
+
.checked=${t.selected}
|
|
1263
|
+
.disabled=${this.disabled}
|
|
1264
|
+
@click=${e=>this.optionsChanged(e,t)}
|
|
1265
|
+
@keyup=${e=>this.onRadioKeyUp(e,t)}
|
|
1266
|
+
@change=${t=>t.stopPropagation()}>
|
|
1267
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1268
|
+
</ft-radio>
|
|
1269
|
+
`}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}))}}Tn.elementDefinitions={"ft-button":gn,"ft-ripple":qr,"ft-typography":pr,"ft-checkbox":kn,"ft-icon":pn,"ft-radio":Fn},Tn.styles=Pn,Mn([s({type:String})],Tn.prototype,"filterId",void 0),Mn([s({type:Object})],Tn.prototype,"parent",void 0),Mn([s({type:Array})],Tn.prototype,"options",void 0),Mn([s({type:Boolean})],Tn.prototype,"multivalued",void 0),Mn([s({type:Boolean})],Tn.prototype,"disabled",void 0),Mn([s({type:Boolean})],Tn.prototype,"hideSelectedOptions",void 0),Mn([s({type:Boolean})],Tn.prototype,"preventNavigation",void 0),Mn([s({type:String})],Tn.prototype,"filter",void 0),Mn([s({type:String})],Tn.prototype,"moreValuesButtonLabel",void 0),Mn([s({type:String})],Tn.prototype,"noValuesLabel",void 0),Mn([s({type:Number})],Tn.prototype,"displayedValuesLimit",void 0),Mn([f(".ft-filter-level--container")],Tn.prototype,"container",void 0),Mn([l()],Tn.prototype,"displayedPages",void 0);const Zn={buttonsColor:Et.extend("--ft-snap-scroll-buttons-color","",Wt.colorPrimary),buttonsZIndex:Et.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Et.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Et.external(Wt.colorSurface,"Design system")},_n=C`
|
|
1270
|
+
.ft-snap-scroll {
|
|
1271
|
+
box-sizing: border-box;
|
|
1272
|
+
position: relative;
|
|
1273
|
+
display: flex;
|
|
1274
|
+
|
|
1275
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
1279
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
1280
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
1281
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.ft-snap-scroll,
|
|
1285
|
+
.ft-snap-scroll--content {
|
|
1286
|
+
overflow: hidden;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.ft-snap-scroll--limit-size,
|
|
1290
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
1291
|
+
width: 100%;
|
|
1292
|
+
height: 100%;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.ft-snap-scroll--content {
|
|
1296
|
+
flex-grow: 1;
|
|
1297
|
+
flex-shrink: 1;
|
|
1298
|
+
box-sizing: border-box;
|
|
1299
|
+
scroll-snap-align: start;
|
|
1300
|
+
display: flex;
|
|
1301
|
+
flex-wrap: nowrap;
|
|
1302
|
+
align-items: flex-start;
|
|
1303
|
+
justify-content: flex-start;
|
|
1304
|
+
gap: ${Zn.gap};
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
1308
|
+
display: none;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
1312
|
+
-ms-overflow-style: none;
|
|
1313
|
+
scrollbar-width: none;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
1317
|
+
flex-shrink: 0;
|
|
1318
|
+
flex-grow: 1;
|
|
1319
|
+
max-height: 100%;
|
|
1320
|
+
max-width: 100%;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.ft-snap-scroll--horizontal,
|
|
1324
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1325
|
+
width: 100%;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.ft-snap-scroll--vertical,
|
|
1329
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1330
|
+
height: 100%;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1334
|
+
flex-direction: row;
|
|
1335
|
+
overflow-x: auto;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1339
|
+
flex-direction: column;
|
|
1340
|
+
overflow-y: auto;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.ft-snap-scroll--previous,
|
|
1344
|
+
.ft-snap-scroll--next {
|
|
1345
|
+
position: absolute;
|
|
1346
|
+
display: flex;
|
|
1347
|
+
z-index: ${Zn.buttonsZIndex};
|
|
1348
|
+
opacity: 1;
|
|
1349
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1350
|
+
${kt(zr.backgroundColor,"transparent")};
|
|
1351
|
+
${kt(zr.color,Zn.buttonsColor)};
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.ft-snap-scroll--previous[hidden],
|
|
1355
|
+
.ft-snap-scroll--next[hidden] {
|
|
1356
|
+
z-index: -1;
|
|
1357
|
+
opacity: 0;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
1361
|
+
top: 0;
|
|
1362
|
+
left: -1px;
|
|
1363
|
+
bottom: 0;
|
|
1364
|
+
background: linear-gradient(to right, ${Zn.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1368
|
+
top: -1px;
|
|
1369
|
+
left: 0;
|
|
1370
|
+
right: 0;
|
|
1371
|
+
background: linear-gradient(to bottom, ${Zn.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1375
|
+
top: 0;
|
|
1376
|
+
right: -1px;
|
|
1377
|
+
bottom: 0;
|
|
1378
|
+
background: linear-gradient(to left, ${Zn.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1382
|
+
left: 0;
|
|
1383
|
+
right: 0;
|
|
1384
|
+
bottom: -1px;
|
|
1385
|
+
background: linear-gradient(to top, ${Zn.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1389
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1390
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1391
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1392
|
+
background-color: ${Zn.colorSurface};
|
|
1393
|
+
}
|
|
1394
|
+
`;var Hn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gn extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Vn extends Kt{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,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||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=Gr({"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":Ho}),e=this.controls&&this.withScroll;return rt`
|
|
1395
|
+
<div part="container" class="${t}">
|
|
1396
|
+
<ft-button
|
|
1397
|
+
class="ft-snap-scroll--previous"
|
|
1398
|
+
part="controls"
|
|
1399
|
+
primary
|
|
1400
|
+
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1401
|
+
?hidden=${!e||this.startReached}
|
|
1402
|
+
?disabled=${!e||this.startReached}
|
|
1403
|
+
@click=${this.previous}
|
|
1404
|
+
></ft-button>
|
|
1405
|
+
<slot class="ft-snap-scroll--content"
|
|
1406
|
+
part="content"
|
|
1407
|
+
@slotchange=${this.onSlotChange}></slot>
|
|
1408
|
+
<ft-button
|
|
1409
|
+
class="ft-snap-scroll--next"
|
|
1410
|
+
part="controls"
|
|
1411
|
+
primary
|
|
1412
|
+
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1413
|
+
?hidden=${!e||this.endReached}
|
|
1414
|
+
?disabled=${!e||this.endReached}
|
|
1415
|
+
@click=${this.next}
|
|
1416
|
+
></ft-button>
|
|
1417
|
+
</div>
|
|
1418
|
+
`}update(t){super.update(t),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 Gn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(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))}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,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.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)}}Vn.elementDefinitions={"ft-button":gn},Vn.styles=_n,Hn([s({type:Boolean})],Vn.prototype,"horizontal",void 0),Hn([s({type:Boolean})],Vn.prototype,"hideScrollbar",void 0),Hn([s({type:Boolean})],Vn.prototype,"controls",void 0),Hn([s({type:Boolean})],Vn.prototype,"limitSize",void 0),Hn([l()],Vn.prototype,"elements",void 0),Hn([l()],Vn.prototype,"currentElement",void 0),Hn([l()],Vn.prototype,"withScroll",void 0),Hn([l()],Vn.prototype,"startReached",void 0),Hn([l()],Vn.prototype,"endReached",void 0),Hn([f(".ft-snap-scroll--content")],Vn.prototype,"contentSlot",void 0),g("ft-snap-scroll")(Vn);const qn=Et.external(Wt.colorOutline,"Design system"),Yn=Et.external(Wt.colorOnSurface,"Design system"),Xn=Et.external(Wt.colorOnSurfaceMedium,"Design system"),Jn=Et.external(Wt.colorPrimary,"Design system"),Qn=Et.external(Wt.colorSurface,"Design system"),ta=Et.external(Wt.transitionDuration,"Design system"),ea=Et.external(Wt.transitionTimingFunction,"Design system"),oa=[nr,C`
|
|
1419
|
+
:host {
|
|
1420
|
+
display: flex;
|
|
1421
|
+
max-height: 100%;
|
|
1422
|
+
max-width: 100%;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.ft-filter--container {
|
|
1426
|
+
flex-grow: 1;
|
|
1427
|
+
display: flex;
|
|
1428
|
+
flex-direction: column;
|
|
1429
|
+
max-height: 100%;
|
|
1430
|
+
max-width: 100%;
|
|
1431
|
+
color: ${Yn};
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.ft-filter--header {
|
|
1435
|
+
display: flex;
|
|
1436
|
+
flex-wrap: wrap;
|
|
1437
|
+
gap: 4px;
|
|
1438
|
+
flex-shrink: 0;
|
|
1439
|
+
padding: 0 10px;
|
|
1440
|
+
margin-bottom: 8px;
|
|
1441
|
+
${kt(oi.fontSize,"14px")};
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.ft-filter--header ft-button {
|
|
1445
|
+
flex-shrink: 0;
|
|
1446
|
+
margin-left: auto;
|
|
1447
|
+
${kt(zr.iconSize,"18px")};
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.ft-filter--label {
|
|
1451
|
+
display: block;
|
|
1452
|
+
flex-shrink: 1;
|
|
1453
|
+
flex-grow: 1;
|
|
1454
|
+
word-break: break-word;
|
|
1455
|
+
${kt(oi.lineHeight,"22px")};
|
|
1456
|
+
${kt(oi.fontWeight,"bold")};
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.ft-filter--filter {
|
|
1460
|
+
flex-shrink: 0;
|
|
1461
|
+
display: flex;
|
|
1462
|
+
margin: 0;
|
|
1463
|
+
margin-bottom: 8px;
|
|
1464
|
+
padding: 0 10px;
|
|
1465
|
+
overflow: hidden;
|
|
1466
|
+
height: 32px;
|
|
1467
|
+
transition: height ${ta} ${ea},
|
|
1468
|
+
margin ${ta} ${ea};
|
|
1469
|
+
transition-delay: 500ms;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.ft-filter--filter[hidden] {
|
|
1473
|
+
height: 0;
|
|
1474
|
+
margin-bottom: 0;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
input {
|
|
1478
|
+
display: block;
|
|
1479
|
+
width: 100%;
|
|
1480
|
+
border-radius: 4px;
|
|
1481
|
+
border: 1px solid ${qn};
|
|
1482
|
+
padding: 4px;
|
|
1483
|
+
background-color: ${Qn};
|
|
1484
|
+
color: ${Yn};
|
|
1485
|
+
outline-color: ${Jn};
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
input::placeholder {
|
|
1489
|
+
color: ${Xn};
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
input:placeholder-shown {
|
|
1493
|
+
text-overflow: ellipsis;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
.ft-filter--values {
|
|
1497
|
+
flex-grow: 1;
|
|
1498
|
+
flex-shrink: 1;
|
|
1499
|
+
max-width: 100%;
|
|
1500
|
+
overflow-x: hidden;
|
|
1501
|
+
overflow-y: auto;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
.ft-filter--separator {
|
|
1505
|
+
border-top: 1px solid ${qn};
|
|
1506
|
+
margin: 4px 10px;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.ft-filter--levels-container {
|
|
1510
|
+
position: relative;
|
|
1511
|
+
overflow: hidden;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.ft-filter--levels {
|
|
1515
|
+
position: relative;
|
|
1516
|
+
overflow: hidden;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
ft-filter-level {
|
|
1520
|
+
width: 100%;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.ft-filter--level-left {
|
|
1524
|
+
height: 0;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
slot:not([name]) {
|
|
1528
|
+
display: none;
|
|
1529
|
+
}
|
|
1530
|
+
`];var ia=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ra extends CustomEvent{constructor(t){super("change",{detail:t})}}class na extends Kt{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 y(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,o=this.filterPlaceHolder.replace("{0}",this.label);return rt`
|
|
1531
|
+
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1532
|
+
part="container">
|
|
1533
|
+
${this.label||t?rt`
|
|
1534
|
+
<div class="ft-filter--header" part="header">
|
|
1535
|
+
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
1536
|
+
${this.label}
|
|
1537
|
+
</ft-typography>
|
|
1538
|
+
<slot name="label"></slot>
|
|
1539
|
+
${t&&!this.hideClearButton?rt`
|
|
1540
|
+
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1541
|
+
${this.clearButtonLabel}
|
|
1542
|
+
</ft-button>
|
|
1543
|
+
`:null}
|
|
1544
|
+
</div>
|
|
1545
|
+
`:null}
|
|
1546
|
+
<div class="ft-filter--filter" ?hidden=${!e}>
|
|
1547
|
+
<input type="search"
|
|
1548
|
+
part="input"
|
|
1549
|
+
class="ft-typography--caption"
|
|
1550
|
+
?disabled=${!e}
|
|
1551
|
+
placeholder="${o}"
|
|
1552
|
+
size="${e?o.length:0}"
|
|
1553
|
+
@search=${this.onFilterChange}
|
|
1554
|
+
@keyup=${this.onFilterChange}>
|
|
1555
|
+
</div>
|
|
1556
|
+
<div class="ft-filter--values">
|
|
1557
|
+
${this.renderLevels()}
|
|
1558
|
+
</div>
|
|
1559
|
+
<slot class="ft-filter--slot"
|
|
1560
|
+
@slotchange=${this.updateOptionsFromSlot}
|
|
1561
|
+
@option-change=${this.optionsChanged}></slot>
|
|
1562
|
+
</div>
|
|
1563
|
+
`}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))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,o,i,r,n;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===(o=this.levelsContainer)||void 0===o||o.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=o<0?"ft-filter--level-center":"ft-filter--level-left";return rt`
|
|
1564
|
+
${this.raiseSelectedOptions&&e.length>0?rt`
|
|
1565
|
+
<ft-filter-level
|
|
1566
|
+
filterId="${this.id}"
|
|
1567
|
+
?multivalued=${this.multivalued}
|
|
1568
|
+
?disabled=${this.disabled}
|
|
1569
|
+
preventNavigation
|
|
1570
|
+
.options=${e}
|
|
1571
|
+
@change=${this.onChange}
|
|
1572
|
+
part="values selected-values"
|
|
1573
|
+
.exportpartsPrefixes=${["values","selected-values"]}
|
|
1574
|
+
></ft-filter-level>
|
|
1575
|
+
<div class="ft-filter--separator">
|
|
1576
|
+
`:null}
|
|
1577
|
+
<ft-snap-scroll horizontal hideScrollbar
|
|
1578
|
+
class="ft-filter--levels"
|
|
1579
|
+
@current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
|
|
1580
|
+
${this.renderLevel(i,this.options)}
|
|
1581
|
+
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const r=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(r,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
|
|
1582
|
+
</ft-snap-scroll>
|
|
1583
|
+
`}renderLevel(t,e,o){return rt`
|
|
1584
|
+
<ft-filter-level
|
|
1585
|
+
class="${t}"
|
|
1586
|
+
filterId="${this.id}"
|
|
1587
|
+
.filter="${this.filter}"
|
|
1588
|
+
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
1589
|
+
?multivalued=${this.multivalued}
|
|
1590
|
+
?disabled=${this.disabled||"ft-filter--level-center"!==t}
|
|
1591
|
+
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1592
|
+
.parent=${o}
|
|
1593
|
+
.options=${e}
|
|
1594
|
+
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1595
|
+
@change=${this.onChange}
|
|
1596
|
+
@go-back=${this.goBack}
|
|
1597
|
+
@display-level=${this.onDisplayLevel}
|
|
1598
|
+
part="values available-values"
|
|
1599
|
+
.exportpartsPrefixes=${["values","available-values"]}
|
|
1600
|
+
noValuesLabel="${this.noValuesLabel}"
|
|
1601
|
+
></ft-filter-level>
|
|
1602
|
+
`}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 o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),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;b(this.lastDispatchedValues,t)||(this.dispatchEvent(new ra(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)}}na.elementDefinitions={"ft-button":gn,"ft-filter-level":Tn,"ft-snap-scroll":Vn,"ft-typography":pr},na.styles=oa,ia([s({type:String})],na.prototype,"id",void 0),ia([s({type:String})],na.prototype,"label",void 0),ia([s({type:String})],na.prototype,"filterPlaceHolder",void 0),ia([s({type:String})],na.prototype,"clearButtonLabel",void 0),ia([s({type:String})],na.prototype,"moreValuesButtonLabel",void 0),ia([s({type:String})],na.prototype,"noValuesLabel",void 0),ia([v([])],na.prototype,"options",void 0),ia([s({type:Boolean})],na.prototype,"multivalued",void 0),ia([s({type:Boolean})],na.prototype,"disabled",void 0),ia([s({type:Boolean})],na.prototype,"raiseSelectedOptions",void 0),ia([s({type:Number})],na.prototype,"displayedValuesLimit",void 0),ia([s({type:Boolean})],na.prototype,"hideClearButton",void 0),ia([f(".ft-filter--slot")],na.prototype,"slotElement",void 0),ia([f(".ft-filter--container")],na.prototype,"container",void 0),ia([f(".ft-filter--values")],na.prototype,"valuesContainer",void 0),ia([f(".ft-filter--levels")],na.prototype,"levelsContainer",void 0),ia([l()],na.prototype,"lastLevelHasHiddenvalues",void 0),ia([f(".ft-filter--filter input")],na.prototype,"filterInput",void 0),ia([function(t){return c({descriptor:e=>({get(){var e,o;return null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==o?o:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],na.prototype,"levels",void 0),ia([l()],na.prototype,"withScroll",void 0),ia([l()],na.prototype,"filter",void 0),ia([l()],na.prototype,"slideIn",void 0),ia([l()],na.prototype,"slideOut",void 0);var aa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sa extends Kt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return rt`
|
|
1603
|
+
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1604
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}sa.elementDefinitions={},aa([s({type:String})],sa.prototype,"label",void 0),aa([s({type:Object,converter:t=>t})],sa.prototype,"value",void 0),aa([s({type:Boolean,reflect:!0})],sa.prototype,"selected",void 0),aa([s({type:Object})],sa.prototype,"subOptions",void 0),aa([v({})],sa.prototype,"renderOption",void 0),aa([f(".ft-filter-option--slot")],sa.prototype,"slotElement",void 0),g("ft-filter")(na),g("ft-filter-option")(sa);const la=C`
|
|
1605
|
+
`,ca=C`
|
|
1606
|
+
`,fa=Ko.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ha{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=fa.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?ha.build(t):null!==(e=ha.API)&&void 0!==e?e:ha.API=ha.build()}static await(t){return new Promise((e=>{let o=ha.get(t);if(o)e(o);else{const i=fa.subscribe((()=>{o=ha.get(t),o&&(i(),e(o))}))}}))}}var pa;const ua=Symbol("clearAfterUnitTest");class da{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[pa]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=fa.getState().uiLocale,fa.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=fa.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 o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};b(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Tt(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}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 o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.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=>d(0).then((()=>t())).catch((()=>null)))))}}pa=ua,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new da((async(t,e)=>(await ha.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new da((async(t,e)=>(await ha.await()).getCustomMessageContext(t,e))));const ya=window.FluidTopicsI18nService,ba=window.FluidTopicsCustomI18nService;var ga=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class va extends Kt{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=()=>ha.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return rt`
|
|
1607
|
+
<slot></slot>
|
|
1608
|
+
`}update(t){super.update(t),t.has("baseUrl")&&fa.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&fa.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&fa.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&fa.actions.setNoCustom(this.noCustom),t.has("editorMode")&&fa.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&fa.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&fa.actions.setSession(this.session),t.has("availableUiLocales")&&fa.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ya.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()))))}}va.elementDefinitions={},va.styles=ca,ga([s()],va.prototype,"baseUrl",void 0),ga([s()],va.prototype,"apiIntegrationIdentifier",void 0),ga([s()],va.prototype,"uiLocale",void 0),ga([v([])],va.prototype,"availableUiLocales",void 0),ga([s({type:Boolean})],va.prototype,"editorMode",void 0),ga([s({type:Boolean})],va.prototype,"noCustom",void 0),ga([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],va.prototype,"noCustomComponent",void 0),ga([s({type:Boolean})],va.prototype,"withManualResources",void 0),ga([v([])],va.prototype,"messageContexts",void 0),ga([v(void 0)],va.prototype,"session",void 0),ga([s({type:Object})],va.prototype,"apiProvider",void 0);class ma{async listMySearches(){var t;return(null===(t=fa.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ha.await()).listMySearches(fa.getState().session.profile.userId):[]}}const xa=new r;class Oa{async listMyBookmarks(){return xa.get("bookmarks",(async()=>(await ha.await()).listMyBookmarks(fa.getState().session.profile.userId)))}clearCache(){xa.clear("bookmarks")}}const wa=Ko.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Sa=new class{constructor(){this.currentSession=fa.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Oa,fa.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=fa.getState();b(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){wa.actions.savedSearches(void 0)}clearMyBookmarks(){wa.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ma,e=await t.listMySearches();wa.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;wa.actions.bookmarks(e)}}};g("ft-app-context")(va);var Na=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ca=Symbol("i18nProperties"),$a=Symbol("i18nUnsubs");function Ea(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ba:ya}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ca])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ca])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ca]&&new Set([...this[Ca].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[$a].has(t)||this[$a].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[$a].forEach((t=>t())),this[$a].clear()}}return e=$a,Na([s({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ka extends(Ea(Kt)){}class Ra extends(Ea(Xt)){}var Ia=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ua extends Ra{constructor(){super(),this.editorMode=!1,this.addStore(fa)}render(){return this.key&&this.context?rt`
|
|
1609
|
+
<span class="ft-i18n">
|
|
1610
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1611
|
+
</span>
|
|
1612
|
+
`:this.editorMode?"Select a context and a label key.":at}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ua.elementDefinitions={},Ua.styles=la,Ia([Po()],Ua.prototype,"editorMode",void 0),Ia([s()],Ua.prototype,"context",void 0),Ia([s()],Ua.prototype,"key",void 0),Ia([v([])],Ua.prototype,"args",void 0),Ia([s()],Ua.prototype,"defaultMessage",void 0);class La{static build(t){return new La(t)}static fromGwt(t){return new La(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>ya.resolveMessage(this.name,e,...t)})}}g("ft-i18n")(Ua);const Wa={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var Aa,ja,Fa,Da,Ba,za,Ka,Pa,Ma,Ta,Za,_a,Ha,Ga;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];g.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new g(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Aa||(Aa={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ja||(ja={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Fa||(Fa={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Da||(Da={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ba||(Ba={})),function(t){t.ASC="ASC",t.DESC="DESC"}(za||(za={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ka||(Ka={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pa||(Pa={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ma||(Ma={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ta||(Ta={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Za||(Za={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(_a||(_a={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Ha||(Ha={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ga||(Ga={})),Ga.PERSONAL_BOOK_SHARE_USER,Ga.PERSONAL_BOOK_USER,Ga.HTML_EXPORT_USER,Ga.PERSONAL_BOOK_USER,Ga.PDF_EXPORT_USER,Ga.PERSONAL_BOOK_USER,Ga.KHUB_ADMIN,Ga.CONTENT_PUBLISHER,Ga.ADMIN,Ga.KHUB_ADMIN,Ga.USERS_ADMIN,Ga.PORTAL_ADMIN,Ga.DEVELOPER,Ga.BETA_USER,Ga.DEBUG_USER;class Va{static async build(){return new Va(await ha.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const qa=t=>t.request.virtualField===Pa.TITLE_ONLY&&t.request.scope===Ha.DOCUMENTS;class Ya extends Event{constructor(){super(Ya.eventName)}}Ya.eventName="search-context-clear-all-filters";class Xa{static build(t){return new Xa((t=>Ko.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Wa}))(t.trim()||"context"),Va.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await d(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Pa.TITLE_ONLY),this.store.actions.setRequestScope(Ha.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Pa.EVERYWHERE),this.store.actions.setRequestScope(Ha.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return qa(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ya)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.cancelableSearch=i(this.service.launchSearch(this.store.getState().request));const e=await this.cancelableSearch;if(e.paging.currentPage<=1)this.store.actions.setResults(e.results),this.store.actions.setFacets(e.facets),this.store.actions.setSpellcheck(e.spellcheck);else{let t=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(e.results);this.store.actions.setResults(t)}this.store.actions.setPaging(e.paging)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{let e={input:this.store.getState().liveQuery,filters:this.store.getState().request.filters,sort:this.store.getState().request.sort,contentLocale:this.store.getState().request.contentLocale};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.setSuggestResults(o.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}}var Ja=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qa extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ts=Symbol("registerInterval");class es extends(function(t){var e;class o 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[ts]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ts]):this.dispatchEvent(new Qa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ts,Ja([l()],o.prototype,"stateManager",void 0),o}(Xt)){}const os=La.build("designedSearchType"),is={label:"Search scope",documentTitlesOnly:"Search in document titles only"},rs=C`
|
|
1613
|
+
`;var ns=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class as extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class ss extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class ls extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class cs extends Xt{get stateManager(){return null==this._stateManager&&(this._stateManager=Xa.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.filters=[],this.sort=[],this.addStore(fa)}render(){return rt`
|
|
1614
|
+
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1615
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new ss(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new ls(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new as(t))}reloadSavedSearches(){Sa.clearMySearches()}}cs.elementDefinitions={},cs.styles=rs,ns([s()],cs.prototype,"query",void 0),ns([s()],cs.prototype,"contentLocale",void 0),ns([s({type:Number})],cs.prototype,"pageSize",void 0),ns([s({type:Boolean})],cs.prototype,"searchInDocumentTitlesOnly",void 0),ns([v([])],cs.prototype,"filters",void 0),ns([v([])],cs.prototype,"sort",void 0),ns([Po({store:"search"})],cs.prototype,"request",void 0),ns([Po({store:"search"})],cs.prototype,"paging",void 0),ns([Po({store:"search",selector:t=>t.spellcheck})],cs.prototype,"autocorrect",void 0),ns([Po({store:fa.name})],cs.prototype,"session",void 0),g("ft-search-context")(cs);var fs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hs extends(Ea(es)){constructor(){super(),this.addI18nContext(os,is)}render(){return rt`
|
|
1616
|
+
<ft-filter
|
|
1617
|
+
label=${os.messages.label()}
|
|
1618
|
+
.options=${[{label:os.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
|
|
1619
|
+
part="filter"
|
|
1620
|
+
.exportpartsPrefixes=${["filter"]}
|
|
1621
|
+
multivalued
|
|
1622
|
+
@change=${this.onSelected}
|
|
1623
|
+
></ft-filter>
|
|
1624
|
+
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}hs.elementDefinitions={"ft-filter":na},hs.styles=Go,fs([Po({selector:qa})],hs.prototype,"searchInDocumentTitlesOnly",void 0),fs([f("ft-filter")],hs.prototype,"filter",void 0),g("ft-search-type")(hs),t.FtSearchType=hs,t.FtSearchTypeCssVariables={},t.searchTypeContext=os,t.searchTypeDefaultMessages=is,t.styles=Go}({});
|