@fluid-topics/ft-search-selected-facets 1.0.59 → 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.
|
@@ -14,54 +14,65 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(qo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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 i&&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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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 o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
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 d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(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?u(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)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t||"HTMLElement"===o?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(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(Sn){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
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
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
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function l(t){return s({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
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
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function
|
|
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
|
+
*/
|
|
38
43
|
/**
|
|
39
44
|
* @license
|
|
40
45
|
* Copyright 2021 Google LLC
|
|
41
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/
|
|
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 d(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 u=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:{}})}
|
|
43
54
|
/**
|
|
44
55
|
* @license
|
|
45
56
|
* Copyright 2019 Google LLC
|
|
46
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const
|
|
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),$=(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)},C=(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
|
|
48
59
|
/**
|
|
49
60
|
* @license
|
|
50
61
|
* Copyright 2017 Google LLC
|
|
51
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var k;const
|
|
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 C(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){}};
|
|
53
64
|
/**
|
|
54
65
|
* @license
|
|
55
66
|
* Copyright 2017 Google LLC
|
|
56
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
68
|
*/
|
|
58
|
-
var
|
|
69
|
+
var z;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,D=B.trustedTypes,K=D?D.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:ut})}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=D?D.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 dt(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++}},dt=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))}},ut=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 ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}};const bt=D?D.emptyScript:"";let gt=class extends ut{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 ut{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:dt,V:ut,H:gt,N:vt,U:yt,F:mt},Ot=B.litHtmlPolyfillSupport;null==Ot||Ot(ft,dt),(null!==(z=B.litHtmlVersions)&&void 0!==z?z:B.litHtmlVersions=[]).push("2.7.3");
|
|
59
70
|
/**
|
|
60
71
|
* @license
|
|
61
72
|
* Copyright 2017 Google LLC
|
|
62
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
74
|
*/
|
|
64
|
-
var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ut(e.insertBefore(W(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return it}};wt.finalized=!0,wt._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:wt});const $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:wt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class Ot{static create(t,e,i){let n=t=>w(null!=t?t:i),o=$`var(${w(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>$`var(${w(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=$`var(${w(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>$`var(${w(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.defaultValue),n=$`var(${w(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>$`var(${w(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return w(`${t.name}: ${e}`)}const kt={colorPrimary:Ot.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ot.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ot.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ot.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ot.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ot.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ot.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ot.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ot.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ot.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ot.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ot.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ot.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ot.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ot.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ot.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ot.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ot.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ot.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ot.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ot.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ot.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ot.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ot.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ot.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ot.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ot.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ot.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ot.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ot.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ot.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ot.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ot.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ot.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ot.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ot.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ot.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ot.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ot.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ot.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ot.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ot.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ot.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ot.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ot.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ot.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ot.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ot.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ot.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ot.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ot.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ot.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ot.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ot.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ot.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ot.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ot.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ot.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ot.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ot.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ot.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ot.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et extends wt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return O(i,t.elementStyles),i}}var jt,Ct=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),Mt=Symbol("exportpartsDebouncer");class At extends Et{constructor(){super(),this[jt]=new o(5),this[Rt]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Mt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}jt=Mt,Ct([s()],At.prototype,"exportpartsPrefix",void 0),Ct([v([])],At.prototype,"exportpartsPrefixes",void 0),Ct([s()],At.prototype,"customStylesheet",void 0);const Ut=$`
|
|
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 dt(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 $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:Nt}),(null!==(St=globalThis.litElementVersions)&&void 0!==St?St:globalThis.litElementVersions=[]).push("3.3.2");const Ct=t=>"string"==typeof t?N(t):t;class Et{static create(t,e,o,i){const r=t=>Ct(null!=t?t:i),n=$`var(${Ct(t)}, ${r(i)})`;return n.name=t,n.description=t,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>$`var(${Ct(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=$`var(${Ct(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=>$`var(${Ct(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):Ct(null!=e?e:t.lastResortDefaultValue()),i=$`var(${Ct(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=>$`var(${Ct(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function kt(t,e){return Ct(`${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 C(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 zt=Symbol("constructorPrototype"),Bt=Symbol("constructorName"),Dt=Symbol("exportpartsDebouncer");class Kt extends At{constructor(){super(),this[jt]=new n(5),this[Bt]=this.constructor.name,this[zt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Bt]&&Object.setPrototypeOf(this,this[zt])}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[Dt].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=Dt,Ft([s()],Kt.prototype,"exportpartsPrefix",void 0),Ft([v([])],Kt.prototype,"exportpartsPrefixes",void 0),Ft([s()],Kt.prototype,"customStylesheet",void 0);const Pt=$`
|
|
65
76
|
.ft-no-text-select {
|
|
66
77
|
-webkit-touch-callout: none;
|
|
67
78
|
-webkit-user-select: none;
|
|
@@ -82,7 +93,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
82
93
|
-webkit-hyphens: auto;
|
|
83
94
|
hyphens: auto
|
|
84
95
|
}
|
|
85
|
-
`;const
|
|
96
|
+
`;const Mt=$`
|
|
86
97
|
.ft-safari-ellipsis-fix {
|
|
87
98
|
margin-right: 0;
|
|
88
99
|
|
|
@@ -93,36 +104,36 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
93
104
|
display: inline-block;
|
|
94
105
|
width: 0;
|
|
95
106
|
}
|
|
96
|
-
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var zt,Tt,Lt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends At{constructor(){super(...arguments),this[zt]=new Map,this[Tt]=new Map,this[Lt]=[]}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[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:It(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[_t].set(t,e.subscribe((()=>this.updateFromStores()))),It(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Bt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Bt].forEach((t=>t())),this[Bt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ht(t){return!!t&&!!t[Me]}function Zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ae}(t)||Array.isArray(t)||!!t[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Yt(t)||Qt(t))}function Vt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Jt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Gt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return Ee&&t instanceof Map}function Qt(t){return je&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[Me];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Ht(t)||!Zt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Vt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Kt(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Fe[t];return e||Kt(18,t),e}function se(){return Se}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Se&&(Se=t.l)}function ue(t){return Se={p:[],l:Se,h:t,m:!0,_:0}}function fe(t){var e=t[Me];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Me].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Me].t,t,e.u,e.s)):t=pe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function pe(t,e,i){if(oe(e))return e;var n=e[Me];if(!n)return Vt(e,(function(o,r){return de(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Vt(r,(function(e,r){return de(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,o,r,s){if(Ht(o)){var a=pe(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Xt(i,n,a),!Ht(a))return;t.m=!1}else s&&i.add(o);if(Zt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;pe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Me];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ie;i&&(o=[n],r=ze);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Ht(t)||Kt(22,t),function t(e){if(!Zt(e))return e;var i,n=e[Me],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Vt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Xt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}zt=_t,Tt=Dt,Lt=Bt;var Oe,Se,ke="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=ke?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Re=ke?Symbol.for("immer-draftable"):"__$immer_draftable",Me=ke?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Fe={},Ie={get:function(t,e){if(e===Me)return t;var i=te(t);if(!Jt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Zt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Me];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Gt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},ze={};Vt(Ie,(function(t,e){ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ze.deleteProperty=function(t,e){return ze.set.call(this,t,e,void 0)},ze.set=function(t,e,i){return Ie.set.call(this,t[0],e,i,t[0])};var Te=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Zt(t)){var a=ue(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),he(t,a)}),(function(t){throw le(a),t})):(ae(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ie(s,!0),n){var u=[],f=[];re("Patches").M(t,s,u,f),n(u,f)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||Kt(8),Ht(t)&&(t=we(t));var e=ue(this),i=xe(this,t,void 0);return i[Me].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).A;return ae(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Ht(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Le=new Te,Be=Le.produce;function _e(t){return _e="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},_e(t)}function De(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function We(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Le.produceWithPatches.bind(Le),Le.setAutoFreeze.bind(Le),Le.setUseProxies.bind(Le),Le.applyPatches.bind(Le),Le.createDraft.bind(Le),Le.finishDraft.bind(Le);var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Xe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ze(1));return i(Xe)(t,e)}if("function"!=typeof t)throw new Error(Ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ze(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ze(4));if(l)throw new Error(Ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ze(7));if(void 0===t.type)throw new Error(Ze(8));if(l)throw new Error(Ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Je.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));o=t,h({type:Je.REPLACE})}})[Ve]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Ve]=function(){return this},t},n}function Ge(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),He(He({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ii(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,pi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))fi.call(e,i)&&pi(t,i,e[i]);if(ui)for(var n=0,o=ui(e);n<o.length;n++){i=o[n];hi.call(e,i)&&pi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Zt(t)?Be(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ge(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Qe.apply(void 0,d),b=Ye;c&&(b=bi(di({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(p)?g=si([v],p):"function"==typeof p&&(g=p(y)),Xe(e,f,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Si(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=di(di({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Ht(t))return void 0===(n=i(t,e))?t:n;if(Zt(t))return Be(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var ki=["name","message","stack","code"],Ei=function(t,e){this.payload=t,this.meta=e},ji=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=ki;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(di({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new Ei(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof Ei)throw e;return e instanceof ji?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof Ei?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ri="listenerMiddleware";$i(Ri+"/add"),$i(Ri+"/removeAll"),$i(Ri+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Me];return Ie.get(e,t)},set:function(e){var i=this[Me];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Me];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Me){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Me];return n.length!==Ue(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Fe[t]||(Fe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[Me];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Me,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Vt(r,(function(e){e!==Me&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Vt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mi{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(It(o))return o;if(null==n)return;const r=Si({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Mi(r,s)}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,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]: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 Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ui=Symbol("elementInternals");var Pi,Fi,Ii;const zi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ii=null===(Fi=null===(Pi=window.safari)||void 0===Pi?void 0:Pi.pushNotification)||void 0===Fi?void 0:Fi.toString())&&void 0!==Ii?Ii:""),Ti=1,Li=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
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[De]}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[De];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[De];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 de(t){var e=Te[t];return e||Jt(18,t),e}function ue(){return Le}function ye(t,e){e&&(de("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[De];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||de("ES5").S(e,t,i),i?(o[De].P&&(be(e),Jt(4)),te(t)&&(t=Oe(e,t),e.l||Se(e,t)),e.u&&de("Patches").M(o[De].t,t,e.u,e.s)):t=Oe(e,o,[]),be(e),e.u&&e.v(e.u,e.s),t!==ze?t:void 0}function Oe(t,e,o){if(pe(e))return e;var i=e[De];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&&de("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[De];return(o?le(o):t)[e]}function $e(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 Ce(t){t.P||(t.P=!0,t.l&&Ce(t.l))}function Ee(t){t.o||(t.o=ce(t.t))}function ke(t,e,o){var i=ae(e)?de("MapSet").F(e,o):se(e)?de("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:ue(),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):de("ES5").J(e,o);return(o?o.A:ue()).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[De],r=oe(e);if(i){if(!i.P&&(i.i<4||!de("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,ze=We?Symbol.for("immer-nothing"):((Ue={})["immer-nothing"]=!0,Ue),Be=We?Symbol.for("immer-draftable"):"__$immer_draftable",De=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===De)return t;var o=le(t);if(!ie(o,e))return function(t,e,o){var i,r=$e(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=$e(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[De];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),Ce(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),Ce(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===ze&&(a=void 0),e.D&&fe(a,!0),i){var f=[],h=[];de("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[De].C=!0,ge(e),o},e.finishDraft=function(t,e){var o=(t&&t[De]).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=de("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))},$o="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 Co=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 Co;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,d=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 u=s;"function"==typeof u&&(u=u(o));var y=so.apply(void 0,u),b=ao;c&&(b=$o(So({trace:!1},"object"==typeof c&&c)));var g=new Eo(y),v=g;return Array.isArray(d)?v=yo([y],d):"function"==typeof d&&(v=d(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},zo=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||zo)(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 d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,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==(u=null==o?void 0:o.getPendingMeta)?void 0:u.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:d,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,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Bo)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Do="listenerMiddleware";Uo(Do+"/add"),Uo(Do+"/removeAll"),Uo(Do+"/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[De];return Ze.get(e,t)},set:function(e){var o=this[De];Ze.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][De];if(!r.P)switch(r.i){case 5:i(r)&&Ce(r);break;case 4:o(r)&&Ce(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!==De){var a=e[n];if(void 0===a&&!ie(e,n))return!0;var s=o[n],l=s&&s[De];if(l?l.t!==a:!ne(s,a))return!0}}var c=!!e[De];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[De];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:ue(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,De,{value:n,writable:!0}),r},S:function(t,o,r){r?Qt(o)&&o[De].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[De];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)ee(n,(function(e){e!==De&&(void 0!==r[e]||ie(r,e)?a[e]||t(n[e]):(a[e]=!0,Ce(o)))})),ee(r,(function(t){void 0!==n[t]||ie(n,t)||(a[t]=!1,Ce(o))}));else if(5===s){if(i(o)&&(Ce(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=1,Vo=2,qo=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
97
108
|
/**
|
|
98
109
|
* @license
|
|
99
110
|
* Copyright 2017 Google LLC
|
|
100
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/class
|
|
112
|
+
*/class Yo{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)}}
|
|
102
113
|
/**
|
|
103
114
|
* @license
|
|
104
115
|
* Copyright 2020 Google LLC
|
|
105
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const{I:
|
|
117
|
+
*/const{I:Xo}=xt,Jo=()=>document.createComment(""),Qo=(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(Jo(),n),i=r.insertBefore(Jo(),n);o=new Xo(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},ti=(t,e,o=t)=>(t._$AI(e,o),t),ei={},oi=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}},ii=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},ri=qo(class extends Yo{constructor(t){if(super(t),t.type!==Vo)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,d=n.length-1,u=0,y=a.length-1;for(;p<=d&&u<=y;)if(null===n[p])p++;else if(null===n[d])d--;else if(l[p]===s[u])c[u]=ti(n[p],a[u]),p++,u++;else if(l[d]===s[y])c[y]=ti(n[d],a[y]),d--,y--;else if(l[p]===s[y])c[y]=ti(n[p],a[y]),Qo(t,c[y+1],n[p]),p++,y--;else if(l[d]===s[u])c[u]=ti(n[d],a[u]),Qo(t,n[p],n[d]),d--,u++;else if(void 0===f&&(f=ii(s,u,y),h=ii(l,p,d)),f.has(l[p]))if(f.has(l[d])){const e=h.get(s[u]),o=void 0!==e?n[e]:null;if(null===o){const e=Qo(t,n[p]);ti(e,a[u]),c[u]=e}else c[u]=ti(o,a[u]),Qo(t,n[p],o),n[e]=null;u++}else oi(n[d]),d--;else oi(n[p]),p++;for(;u<=y;){const e=Qo(t,c[y+1]);ti(e,a[u]),c[u++]=e}for(;p<=d;){const t=n[p++];null!==t&&oi(t)}return this.ht=s,((t,e=ei)=>{t._$AH=e})(t,c),nt}}),ni={spacing:Et.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ai=$`
|
|
107
118
|
.ft-search-selected-facets--container {
|
|
108
119
|
display: flex;
|
|
109
120
|
flex-wrap: wrap;
|
|
110
|
-
gap: ${
|
|
121
|
+
gap: ${ni.spacing};
|
|
111
122
|
}
|
|
112
|
-
`,
|
|
113
|
-
`,Qi=Mi.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}});
|
|
123
|
+
`,si={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}};
|
|
114
124
|
/**
|
|
115
125
|
* @license
|
|
116
126
|
* Copyright 2017 Google LLC
|
|
117
127
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/class tn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Qi.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?tn.build(t):null!==(e=tn.API)&&void 0!==e?e:tn.API=tn.build()}static await(t){return new Promise((e=>{let i=tn.get(t);if(i)e(i);else{const n=Qi.subscribe((()=>{i=tn.get(t),i&&(n(),e(i))}))}}))}}var en;const nn=Symbol("clearAfterUnitTest");class on{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[en]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Qi.getState().uiLocale,Qi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};p(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Ft(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}en=nn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new on((async(t,e)=>(await tn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new on((async(t,e)=>(await tn.await()).getCustomMessageContext(t,e))));const rn=window.FluidTopicsI18nService;var sn=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class an extends At{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>tn.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return et`
|
|
128
|
+
*/var li,ci,fi,hi,pi,di,ui,yi,bi,gi,vi,mi,xi,Oi;!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 d(){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 u=["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(),u.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})},d.call(y.prototype),d.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"}(li||(li={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ci||(ci={})),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"}(fi||(fi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(hi||(hi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(pi||(pi={})),function(t){t.ASC="ASC",t.DESC="DESC"}(di||(di={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ui||(ui={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(yi||(yi={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(bi||(bi={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(gi||(gi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vi||(vi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(mi||(mi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(xi||(xi={})),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"}(Oi||(Oi={})),Oi.PERSONAL_BOOK_SHARE_USER,Oi.PERSONAL_BOOK_USER,Oi.HTML_EXPORT_USER,Oi.PERSONAL_BOOK_USER,Oi.PDF_EXPORT_USER,Oi.PERSONAL_BOOK_USER,Oi.KHUB_ADMIN,Oi.CONTENT_PUBLISHER,Oi.ADMIN,Oi.KHUB_ADMIN,Oi.USERS_ADMIN,Oi.PORTAL_ADMIN,Oi.DEVELOPER,Oi.BETA_USER,Oi.DEBUG_USER;const wi=$`
|
|
129
|
+
`,Si=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 Ni{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Si.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?Ni.build(t):null!==(e=Ni.API)&&void 0!==e?e:Ni.API=Ni.build()}static await(t){return new Promise((e=>{let o=Ni.get(t);if(o)e(o);else{const i=Si.subscribe((()=>{o=Ni.get(t),o&&(i(),e(o))}))}}))}}var $i;const Ci=Symbol("clearAfterUnitTest");class Ei{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[$i]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Si.getState().uiLocale,Si.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Si.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=>u(0).then((()=>t())).catch((()=>null)))))}}$i=Ci,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ei((async(t,e)=>(await Ni.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ei((async(t,e)=>(await Ni.await()).getCustomMessageContext(t,e))));const ki=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var Ii=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 Ui 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=()=>Ni.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return rt`
|
|
119
130
|
<slot></slot>
|
|
120
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
131
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Si.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Si.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Si.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Si.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Si.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Si.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Si.actions.setSession(this.session),t.has("availableUiLocales")&&Si.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ki.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()))))}}Ui.elementDefinitions={},Ui.styles=wi,Ii([s()],Ui.prototype,"baseUrl",void 0),Ii([s()],Ui.prototype,"apiIntegrationIdentifier",void 0),Ii([s()],Ui.prototype,"uiLocale",void 0),Ii([v([])],Ui.prototype,"availableUiLocales",void 0),Ii([s({type:Boolean})],Ui.prototype,"editorMode",void 0),Ii([s({type:Boolean})],Ui.prototype,"noCustom",void 0),Ii([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ui.prototype,"noCustomComponent",void 0),Ii([s({type:Boolean})],Ui.prototype,"withManualResources",void 0),Ii([v([])],Ui.prototype,"messageContexts",void 0),Ii([v(void 0)],Ui.prototype,"session",void 0),Ii([s({type:Object})],Ui.prototype,"apiProvider",void 0);class Li{async listMySearches(){var t;return(null===(t=Si.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ni.await()).listMySearches(Si.getState().session.profile.userId):[]}}const Wi=new r;class Ai{async listMyBookmarks(){return Wi.get("bookmarks",(async()=>(await Ni.await()).listMyBookmarks(Si.getState().session.profile.userId)))}clearCache(){Wi.clear("bookmarks")}}const ji=Ko.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Fi=new class{constructor(){this.currentSession=Si.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ai,Si.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Si.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(){ji.actions.savedSearches(void 0)}clearMyBookmarks(){ji.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Li,e=await t.listMySearches();ji.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;ji.actions.bookmarks(e)}}};g("ft-app-context")(Ui);class zi{static async build(){return new zi(await Ni.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 Bi=t=>t.request.virtualField===yi.TITLE_ONLY&&t.request.scope===xi.DOCUMENTS;class Di extends Event{constructor(){super(Di.eventName)}}Di.eventName="search-context-clear-all-filters";class Ki{static build(t){return new Ki((t=>Ko.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:si}))(t.trim()||"context"),zi.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 u(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(yi.TITLE_ONLY),this.store.actions.setRequestScope(xi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(yi.EVERYWHERE),this.store.actions.setRequestScope(xi.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Bi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Di)}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 Pi=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 Mi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ti=Symbol("registerInterval");class Zi 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[Ti]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ti]):this.dispatchEvent(new Mi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ti,Pi([l()],o.prototype,"stateManager",void 0),o}(Xt)){}
|
|
121
132
|
/**
|
|
122
133
|
* @license
|
|
123
134
|
* Copyright 2018 Google LLC
|
|
124
135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/const
|
|
136
|
+
*/const _i=qo(class extends Yo{constructor(t){var e;if(super(t),t.type!==Go||"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}}),Hi=Et.extend("--ft-ripple-color","",Wt.colorContent),Gi={color:Hi,backgroundColor:Et.extend("--ft-ripple-background-color","",Hi),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")},Vi=Et.extend("--ft-ripple-color","",Wt.colorPrimary),qi=Vi,Yi=Et.extend("--ft-ripple-background-color","",Vi),Xi=Et.extend("--ft-ripple-color","",Wt.colorSecondary),Ji=Xi,Qi=Et.extend("--ft-ripple-background-color","",Xi),tr=$`
|
|
126
137
|
:host {
|
|
127
138
|
display: contents;
|
|
128
139
|
}
|
|
@@ -135,7 +146,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
135
146
|
|
|
136
147
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
137
148
|
overflow: hidden;
|
|
138
|
-
border-radius: ${
|
|
149
|
+
border-radius: ${Gi.borderRadius};
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
.ft-ripple .ft-ripple--background,
|
|
@@ -169,27 +180,27 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
169
180
|
}
|
|
170
181
|
|
|
171
182
|
.ft-ripple .ft-ripple--background {
|
|
172
|
-
background-color: ${
|
|
183
|
+
background-color: ${Gi.backgroundColor};
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
.ft-ripple .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
187
|
+
background-color: ${Gi.color};
|
|
177
188
|
}
|
|
178
189
|
|
|
179
190
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
180
|
-
background-color: ${
|
|
191
|
+
background-color: ${Qi};
|
|
181
192
|
}
|
|
182
193
|
|
|
183
194
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
184
|
-
background-color: ${
|
|
195
|
+
background-color: ${Ji};
|
|
185
196
|
}
|
|
186
197
|
|
|
187
198
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
188
|
-
background-color: ${
|
|
199
|
+
background-color: ${Yi};
|
|
189
200
|
}
|
|
190
201
|
|
|
191
202
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
192
|
-
background-color: ${
|
|
203
|
+
background-color: ${qi};
|
|
193
204
|
}
|
|
194
205
|
|
|
195
206
|
.ft-ripple .ft-ripple--background {
|
|
@@ -219,147 +230,156 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
219
230
|
}
|
|
220
231
|
|
|
221
232
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
222
|
-
opacity: ${
|
|
233
|
+
opacity: ${Gi.opacityContentOnSurfaceHover};
|
|
223
234
|
}
|
|
224
235
|
|
|
225
236
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
226
|
-
opacity: ${
|
|
237
|
+
opacity: ${Gi.opacityContentOnSurfaceSelected};
|
|
227
238
|
}
|
|
228
239
|
|
|
229
240
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
230
|
-
opacity: ${
|
|
241
|
+
opacity: ${Gi.opacityContentOnSurfaceFocused};
|
|
231
242
|
}
|
|
232
243
|
|
|
233
244
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
234
|
-
opacity: ${
|
|
245
|
+
opacity: ${Gi.opacityContentOnSurfacePressed};
|
|
235
246
|
transform: translate(-50%, -50%) scale(1);
|
|
236
247
|
}
|
|
237
|
-
`;var
|
|
248
|
+
`;var er=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 or 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`
|
|
238
249
|
<style>
|
|
239
250
|
.ft-ripple .ft-ripple--effect {
|
|
240
251
|
left: ${this.originX}px;
|
|
241
252
|
top: ${this.originY}px;
|
|
242
253
|
}
|
|
243
254
|
</style>
|
|
244
|
-
<div class="${
|
|
255
|
+
<div class="${_i(t)}">
|
|
245
256
|
<div class="ft-ripple--background"></div>
|
|
246
257
|
<div class="ft-ripple--effect"></div>
|
|
247
258
|
</div>
|
|
248
|
-
`}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,
|
|
259
|
+
`}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()}}or.elementDefinitions={},or.styles=tr,er([s({type:Boolean})],or.prototype,"primary",void 0),er([s({type:Boolean})],or.prototype,"secondary",void 0),er([s({type:Boolean})],or.prototype,"unbounded",void 0),er([s({type:Boolean})],or.prototype,"activated",void 0),er([s({type:Boolean})],or.prototype,"selected",void 0),er([s({type:Boolean})],or.prototype,"disabled",void 0),er([l()],or.prototype,"hovered",void 0),er([l()],or.prototype,"focused",void 0),er([l()],or.prototype,"pressed",void 0),er([l()],or.prototype,"rippling",void 0),er([l()],or.prototype,"originX",void 0),er([l()],or.prototype,"originY",void 0),er([f(".ft-ripple")],or.prototype,"ripple",void 0),er([f(".ft-ripple--effect")],or.prototype,"rippleEffect",void 0),g("ft-ripple")(or);
|
|
249
260
|
/**
|
|
250
261
|
* @license
|
|
251
262
|
* Copyright 2020 Google LLC
|
|
252
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
253
264
|
*/
|
|
254
|
-
const
|
|
265
|
+
const ir=Symbol.for(""),rr=t=>{if((null==t?void 0:t.r)===ir)return null==t?void 0:t._$litStatic$},nr=t=>({_$litStatic$:t,r:ir}),ar=new Map,sr=(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=rr(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=ar.get(t))&&(a.raw=a,ar.set(t,e=a)),o=s}return t(e,...o)})(rt);var lr;!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"}(lr||(lr={}));const cr=Et.extend("--ft-typography-font-family","",Wt.titleFont),fr=Et.extend("--ft-typography-font-family","",Wt.contentFont),hr={fontFamily:fr,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")},pr=Et.extend("--ft-typography-title-font-family","",cr),dr=Et.extend("--ft-typography-title-font-size","",hr.fontSize,"20px"),ur=Et.extend("--ft-typography-title-font-weight","",hr.fontWeight,"normal"),yr=Et.extend("--ft-typography-title-letter-spacing","",hr.letterSpacing,"0.15px"),br=Et.extend("--ft-typography-title-line-height","",hr.lineHeight,"1.2"),gr=Et.extend("--ft-typography-title-text-transform","",hr.textTransform,"inherit"),vr=Et.extend("--ft-typography-title-dense-font-family","",cr),mr=Et.extend("--ft-typography-title-dense-font-size","",hr.fontSize,"14px"),xr=Et.extend("--ft-typography-title-dense-font-weight","",hr.fontWeight,"normal"),Or=Et.extend("--ft-typography-title-dense-letter-spacing","",hr.letterSpacing,"0.105px"),wr=Et.extend("--ft-typography-title-dense-line-height","",hr.lineHeight,"1.7"),Sr=Et.extend("--ft-typography-title-dense-text-transform","",hr.textTransform,"inherit"),Nr=Et.extend("--ft-typography-subtitle1-font-family","",fr),$r=Et.extend("--ft-typography-subtitle1-font-size","",hr.fontSize,"16px"),Cr=Et.extend("--ft-typography-subtitle1-font-weight","",hr.fontWeight,"600"),Er=Et.extend("--ft-typography-subtitle1-letter-spacing","",hr.letterSpacing,"0.144px"),kr=Et.extend("--ft-typography-subtitle1-line-height","",hr.lineHeight,"1.5"),Rr=Et.extend("--ft-typography-subtitle1-text-transform","",hr.textTransform,"inherit"),Ir=Et.extend("--ft-typography-subtitle2-font-family","",fr),Ur=Et.extend("--ft-typography-subtitle2-font-size","",hr.fontSize,"14px"),Lr=Et.extend("--ft-typography-subtitle2-font-weight","",hr.fontWeight,"normal"),Wr=Et.extend("--ft-typography-subtitle2-letter-spacing","",hr.letterSpacing,"0.098px"),Ar=Et.extend("--ft-typography-subtitle2-line-height","",hr.lineHeight,"1.7"),jr=Et.extend("--ft-typography-subtitle2-text-transform","",hr.textTransform,"inherit"),Fr=Et.extend("--ft-typography-body1-font-family","",fr),zr=Et.extend("--ft-typography-body1-font-size","",hr.fontSize,"16px"),Br=Et.extend("--ft-typography-body1-font-weight","",hr.fontWeight,"normal"),Dr=Et.extend("--ft-typography-body1-letter-spacing","",hr.letterSpacing,"0.496px"),Kr=Et.extend("--ft-typography-body1-line-height","",hr.lineHeight,"1.5"),Pr=Et.extend("--ft-typography-body1-text-transform","",hr.textTransform,"inherit"),Mr={fontFamily:Et.extend("--ft-typography-body2-font-family","",fr),fontSize:Et.extend("--ft-typography-body2-font-size","",hr.fontSize,"14px"),fontWeight:Et.extend("--ft-typography-body2-font-weight","",hr.fontWeight,"normal"),letterSpacing:Et.extend("--ft-typography-body2-letter-spacing","",hr.letterSpacing,"0.252px"),lineHeight:Et.extend("--ft-typography-body2-line-height","",hr.lineHeight,"1.4"),textTransform:Et.extend("--ft-typography-body2-text-transform","",hr.textTransform,"inherit")},Tr=Et.extend("--ft-typography-caption-font-family","",fr),Zr=Et.extend("--ft-typography-caption-font-size","",hr.fontSize,"12px"),_r=Et.extend("--ft-typography-caption-font-weight","",hr.fontWeight,"normal"),Hr=Et.extend("--ft-typography-caption-letter-spacing","",hr.letterSpacing,"0.396px"),Gr=Et.extend("--ft-typography-caption-line-height","",hr.lineHeight,"1.33"),Vr=Et.extend("--ft-typography-caption-text-transform","",hr.textTransform,"inherit"),qr=Et.extend("--ft-typography-breadcrumb-font-family","",fr),Yr=Et.extend("--ft-typography-breadcrumb-font-size","",hr.fontSize,"10px"),Xr=Et.extend("--ft-typography-breadcrumb-font-weight","",hr.fontWeight,"normal"),Jr=Et.extend("--ft-typography-breadcrumb-letter-spacing","",hr.letterSpacing,"0.33px"),Qr=Et.extend("--ft-typography-breadcrumb-line-height","",hr.lineHeight,"1.6"),tn=Et.extend("--ft-typography-breadcrumb-text-transform","",hr.textTransform,"inherit"),en=Et.extend("--ft-typography-overline-font-family","",fr),on=Et.extend("--ft-typography-overline-font-size","",hr.fontSize,"10px"),rn=Et.extend("--ft-typography-overline-font-weight","",hr.fontWeight,"normal"),nn=Et.extend("--ft-typography-overline-letter-spacing","",hr.letterSpacing,"1.5px"),an=Et.extend("--ft-typography-overline-line-height","",hr.lineHeight,"1.6"),sn=Et.extend("--ft-typography-overline-text-transform","",hr.textTransform,"uppercase"),ln={fontFamily:Et.extend("--ft-typography-button-font-family","",fr),fontSize:Et.extend("--ft-typography-button-font-size","",hr.fontSize,"14px"),fontWeight:Et.extend("--ft-typography-button-font-weight","",hr.fontWeight,"600"),letterSpacing:Et.extend("--ft-typography-button-letter-spacing","",hr.letterSpacing,"1.246px"),lineHeight:Et.extend("--ft-typography-button-line-height","",hr.lineHeight,"1.15"),textTransform:Et.extend("--ft-typography-button-text-transform","",hr.textTransform,"uppercase")},cn=$`
|
|
255
266
|
.ft-typography--title {
|
|
256
|
-
font-family: ${
|
|
257
|
-
font-size: ${
|
|
258
|
-
font-weight: ${
|
|
259
|
-
letter-spacing: ${
|
|
260
|
-
line-height: ${
|
|
261
|
-
text-transform: ${
|
|
262
|
-
}
|
|
263
|
-
`,
|
|
267
|
+
font-family: ${pr};
|
|
268
|
+
font-size: ${dr};
|
|
269
|
+
font-weight: ${ur};
|
|
270
|
+
letter-spacing: ${yr};
|
|
271
|
+
line-height: ${br};
|
|
272
|
+
text-transform: ${gr};
|
|
273
|
+
}
|
|
274
|
+
`,fn=$`
|
|
264
275
|
.ft-typography--title-dense {
|
|
265
|
-
font-family: ${
|
|
266
|
-
font-size: ${
|
|
267
|
-
font-weight: ${
|
|
268
|
-
letter-spacing: ${
|
|
269
|
-
line-height: ${
|
|
270
|
-
text-transform: ${
|
|
271
|
-
}
|
|
272
|
-
`,
|
|
276
|
+
font-family: ${vr};
|
|
277
|
+
font-size: ${mr};
|
|
278
|
+
font-weight: ${xr};
|
|
279
|
+
letter-spacing: ${Or};
|
|
280
|
+
line-height: ${wr};
|
|
281
|
+
text-transform: ${Sr};
|
|
282
|
+
}
|
|
283
|
+
`,hn=$`
|
|
273
284
|
.ft-typography--subtitle1 {
|
|
274
|
-
font-family: ${
|
|
275
|
-
font-size: ${
|
|
276
|
-
font-weight: ${
|
|
277
|
-
letter-spacing: ${
|
|
278
|
-
line-height: ${
|
|
279
|
-
text-transform: ${
|
|
280
|
-
}
|
|
281
|
-
`,
|
|
285
|
+
font-family: ${Nr};
|
|
286
|
+
font-size: ${$r};
|
|
287
|
+
font-weight: ${Cr};
|
|
288
|
+
letter-spacing: ${Er};
|
|
289
|
+
line-height: ${kr};
|
|
290
|
+
text-transform: ${Rr};
|
|
291
|
+
}
|
|
292
|
+
`,pn=$`
|
|
282
293
|
.ft-typography--subtitle2 {
|
|
283
|
-
font-family: ${
|
|
284
|
-
font-size: ${
|
|
285
|
-
font-weight: ${
|
|
286
|
-
letter-spacing: ${
|
|
287
|
-
line-height: ${
|
|
288
|
-
text-transform: ${
|
|
294
|
+
font-family: ${Ir};
|
|
295
|
+
font-size: ${Ur};
|
|
296
|
+
font-weight: ${Lr};
|
|
297
|
+
letter-spacing: ${Wr};
|
|
298
|
+
line-height: ${Ar};
|
|
299
|
+
text-transform: ${jr};
|
|
289
300
|
}
|
|
290
301
|
|
|
291
|
-
`,
|
|
302
|
+
`,dn=$`
|
|
292
303
|
.ft-typography--body1 {
|
|
293
|
-
font-family: ${
|
|
294
|
-
font-size: ${
|
|
295
|
-
font-weight: ${
|
|
296
|
-
letter-spacing: ${
|
|
297
|
-
line-height: ${
|
|
298
|
-
text-transform: ${
|
|
299
|
-
}
|
|
300
|
-
`,
|
|
304
|
+
font-family: ${Fr};
|
|
305
|
+
font-size: ${zr};
|
|
306
|
+
font-weight: ${Br};
|
|
307
|
+
letter-spacing: ${Dr};
|
|
308
|
+
line-height: ${Kr};
|
|
309
|
+
text-transform: ${Pr};
|
|
310
|
+
}
|
|
311
|
+
`,un=$`
|
|
301
312
|
.ft-typography--body2 {
|
|
302
|
-
font-family: ${
|
|
303
|
-
font-size: ${
|
|
304
|
-
font-weight: ${
|
|
305
|
-
letter-spacing: ${
|
|
306
|
-
line-height: ${
|
|
307
|
-
text-transform: ${
|
|
308
|
-
}
|
|
309
|
-
`,
|
|
313
|
+
font-family: ${Mr.fontFamily};
|
|
314
|
+
font-size: ${Mr.fontSize};
|
|
315
|
+
font-weight: ${Mr.fontWeight};
|
|
316
|
+
letter-spacing: ${Mr.letterSpacing};
|
|
317
|
+
line-height: ${Mr.lineHeight};
|
|
318
|
+
text-transform: ${Mr.textTransform};
|
|
319
|
+
}
|
|
320
|
+
`,yn=$`
|
|
310
321
|
.ft-typography--caption {
|
|
311
|
-
font-family: ${
|
|
312
|
-
font-size: ${
|
|
313
|
-
font-weight: ${
|
|
314
|
-
letter-spacing: ${
|
|
315
|
-
line-height: ${
|
|
316
|
-
text-transform: ${
|
|
317
|
-
}
|
|
318
|
-
`,
|
|
322
|
+
font-family: ${Tr};
|
|
323
|
+
font-size: ${Zr};
|
|
324
|
+
font-weight: ${_r};
|
|
325
|
+
letter-spacing: ${Hr};
|
|
326
|
+
line-height: ${Gr};
|
|
327
|
+
text-transform: ${Vr};
|
|
328
|
+
}
|
|
329
|
+
`,bn=$`
|
|
319
330
|
.ft-typography--breadcrumb {
|
|
320
|
-
font-family: ${
|
|
321
|
-
font-size: ${
|
|
322
|
-
font-weight: ${
|
|
323
|
-
letter-spacing: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
text-transform: ${
|
|
326
|
-
}
|
|
327
|
-
`,
|
|
331
|
+
font-family: ${qr};
|
|
332
|
+
font-size: ${Yr};
|
|
333
|
+
font-weight: ${Xr};
|
|
334
|
+
letter-spacing: ${Jr};
|
|
335
|
+
line-height: ${Qr};
|
|
336
|
+
text-transform: ${tn};
|
|
337
|
+
}
|
|
338
|
+
`,gn=$`
|
|
328
339
|
.ft-typography--overline {
|
|
329
|
-
font-family: ${
|
|
330
|
-
font-size: ${
|
|
331
|
-
font-weight: ${
|
|
332
|
-
letter-spacing: ${
|
|
333
|
-
line-height: ${
|
|
334
|
-
text-transform: ${
|
|
335
|
-
}
|
|
336
|
-
`,
|
|
340
|
+
font-family: ${en};
|
|
341
|
+
font-size: ${on};
|
|
342
|
+
font-weight: ${rn};
|
|
343
|
+
letter-spacing: ${nn};
|
|
344
|
+
line-height: ${an};
|
|
345
|
+
text-transform: ${sn};
|
|
346
|
+
}
|
|
347
|
+
`,vn=$`
|
|
337
348
|
.ft-typography--button {
|
|
338
|
-
font-family: ${
|
|
339
|
-
font-size: ${
|
|
340
|
-
font-weight: ${
|
|
341
|
-
letter-spacing: ${
|
|
342
|
-
line-height: ${
|
|
343
|
-
text-transform: ${
|
|
344
|
-
}
|
|
345
|
-
`,
|
|
349
|
+
font-family: ${ln.fontFamily};
|
|
350
|
+
font-size: ${ln.fontSize};
|
|
351
|
+
font-weight: ${ln.fontWeight};
|
|
352
|
+
letter-spacing: ${ln.letterSpacing};
|
|
353
|
+
line-height: ${ln.lineHeight};
|
|
354
|
+
text-transform: ${ln.textTransform};
|
|
355
|
+
}
|
|
356
|
+
`,mn=$`
|
|
346
357
|
.ft-typography {
|
|
347
358
|
vertical-align: inherit;
|
|
348
359
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
360
|
+
`,xn=[Object.keys(It).map((t=>function(t){const e=It[t];return $`
|
|
361
|
+
.ft-typography--${N(t)} {
|
|
362
|
+
font-family: ${e.fontFamily};
|
|
363
|
+
font-size: ${e.fontSize};
|
|
364
|
+
font-weight: ${e.fontWeight};
|
|
365
|
+
letter-spacing: ${e.letterSpacing};
|
|
366
|
+
line-height: ${e.lineHeight};
|
|
367
|
+
text-transform: ${e.textCase};
|
|
368
|
+
}
|
|
369
|
+
`}(t)))];var On=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 wn extends Kt{constructor(){super(...arguments),this.variant=lr.body1}render(){return this.element?sr`
|
|
370
|
+
<${nr(this.element)}
|
|
371
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
352
372
|
<slot></slot>
|
|
353
|
-
</${
|
|
354
|
-
`:
|
|
373
|
+
</${nr(this.element)}>
|
|
374
|
+
`:sr`
|
|
355
375
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
356
|
-
`}}
|
|
376
|
+
`}}wn.styles=[cn,fn,hn,pn,dn,un,yn,bn,gn,vn,mn,...xn],On([s()],wn.prototype,"element",void 0),On([s()],wn.prototype,"variant",void 0),g("ft-typography")(wn);
|
|
357
377
|
/**
|
|
358
378
|
* @license
|
|
359
379
|
* Copyright 2017 Google LLC
|
|
360
380
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
361
381
|
*/
|
|
362
|
-
class
|
|
382
|
+
class Sn extends Yo{constructor(t){if(super(t),this.et=at,t.type!==Vo)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:[]}}}Sn.directiveName="unsafeHTML",Sn.resultType=1;const Nn=qo(Sn);var $n,Cn;!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=""}($n||($n={})),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]))]);const En={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")},kn=$`
|
|
363
383
|
:host, i.ft-icon {
|
|
364
384
|
display: inline-flex;
|
|
365
385
|
align-items: center;
|
|
@@ -368,14 +388,14 @@ class qo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Li)throw Erro
|
|
|
368
388
|
}
|
|
369
389
|
|
|
370
390
|
:host {
|
|
371
|
-
width: ${
|
|
372
|
-
height: ${
|
|
391
|
+
width: ${En.size};
|
|
392
|
+
height: ${En.size};
|
|
373
393
|
}
|
|
374
394
|
|
|
375
395
|
i.ft-icon {
|
|
376
396
|
width: 100%;
|
|
377
397
|
height: 100%;
|
|
378
|
-
font-size: ${
|
|
398
|
+
font-size: ${En.size};
|
|
379
399
|
line-height: 1;
|
|
380
400
|
font-weight: normal;
|
|
381
401
|
text-transform: none;
|
|
@@ -386,86 +406,33 @@ class qo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Li)throw Erro
|
|
|
386
406
|
text-rendering: auto;
|
|
387
407
|
-webkit-font-smoothing: antialiased;
|
|
388
408
|
-moz-osx-font-smoothing: grayscale;
|
|
389
|
-
vertical-align: ${
|
|
409
|
+
vertical-align: ${En.verticalAlign};
|
|
390
410
|
}
|
|
391
411
|
|
|
392
412
|
i.ft-icon.ft-icon--fluid-topics {
|
|
393
|
-
font-family: ${
|
|
413
|
+
font-family: ${En.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
394
414
|
|
|
395
415
|
/* Ugly fix because font is broken */
|
|
396
|
-
font-size: calc(0.75 * ${
|
|
397
|
-
line-height: ${
|
|
416
|
+
font-size: calc(0.75 * ${En.size});
|
|
417
|
+
line-height: ${En.size};
|
|
398
418
|
position: relative;
|
|
399
419
|
top: -4%;
|
|
400
420
|
justify-content: center;
|
|
401
421
|
}
|
|
402
422
|
|
|
403
423
|
.ft-icon--file-format {
|
|
404
|
-
font-family: ${
|
|
424
|
+
font-family: ${En.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
405
425
|
}
|
|
406
426
|
|
|
407
427
|
.ft-icon--material {
|
|
408
|
-
font-family: ${
|
|
428
|
+
font-family: ${En.materialFontFamily}, "Material Icons", sans-serif;
|
|
409
429
|
}
|
|
410
|
-
`;var
|
|
430
|
+
`;var Rn;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Rn||(Rn={}));var In=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 Un extends Kt{constructor(){super(...arguments),this.resolvedIcon=at}render(){const t=this.variant&&Object.values(Rn).includes(this.variant)?this.variant:Rn.fluid_topics,e=t!==Rn.material||!!this.value;return rt`
|
|
411
431
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
412
|
-
${
|
|
432
|
+
${Nn(this.resolvedIcon)}
|
|
413
433
|
<slot ?hidden=${e}></slot>
|
|
414
434
|
</i>
|
|
415
|
-
`}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
|
|
416
|
-
.ft-tooltip--container {
|
|
417
|
-
display: block;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.ft-tooltip--inline {
|
|
421
|
-
display: inline-block;
|
|
422
|
-
max-width: 100%;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.ft-tooltip {
|
|
426
|
-
position: absolute;
|
|
427
|
-
box-sizing: border-box;
|
|
428
|
-
overflow: hidden;
|
|
429
|
-
width: max-content;
|
|
430
|
-
max-width: ${lr};
|
|
431
|
-
text-align: center;
|
|
432
|
-
padding: ${nr};
|
|
433
|
-
z-index: ${sr};
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.ft-tooltip--content {
|
|
437
|
-
padding: 4px 8px;
|
|
438
|
-
border-radius: ${ar};
|
|
439
|
-
background-color: ${rr};
|
|
440
|
-
color: ${or};
|
|
441
|
-
position: relative;
|
|
442
|
-
word-break: break-word;
|
|
443
|
-
}
|
|
444
|
-
`;var ur=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fr extends At{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return et`
|
|
445
|
-
<div part="container"
|
|
446
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
447
|
-
@mouseenter=${this.onHover}
|
|
448
|
-
@mouseleave=${this.onOut}
|
|
449
|
-
@focusin=${this.onHover}
|
|
450
|
-
@focusout=${this.onOut}
|
|
451
|
-
@touchstart=${this.onTouch}>
|
|
452
|
-
<slot></slot>
|
|
453
|
-
<div part="tooltip" role="tooltip" inert
|
|
454
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
455
|
-
?hidden=${!this.visible}>
|
|
456
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
457
|
-
<slot name="text"></slot>
|
|
458
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
`}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,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,u=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,u))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,h))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${lr})`}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))}}fr.elementDefinitions={"ft-typography":Vo},fr.styles=cr,ur([s()],fr.prototype,"text",void 0),ur([s({type:Boolean})],fr.prototype,"manual",void 0),ur([s({type:Boolean})],fr.prototype,"inline",void 0),ur([s({type:Number})],fr.prototype,"delay",void 0),ur([s()],fr.prototype,"position",void 0),ur([
|
|
463
|
-
/**
|
|
464
|
-
* @license
|
|
465
|
-
* Copyright 2017 Google LLC
|
|
466
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
467
|
-
*/
|
|
468
|
-
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],fr.prototype,"slotNodes",void 0),ur([c(".ft-tooltip--container")],fr.prototype,"container",void 0),ur([c(".ft-tooltip")],fr.prototype,"tooltip",void 0),ur([c(".ft-tooltip--content")],fr.prototype,"tooltipContent",void 0),ur([a()],fr.prototype,"visible",void 0),d("ft-tooltip")(fr);const hr={color:Ot.extend("--ft-loader-color",kt.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},pr=$`
|
|
435
|
+
`}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 Rn.file_format:this.resolvedIcon=null!==(t=Cn[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Rn.material:this.resolvedIcon=this.value||at;break;default:this.resolvedIcon=null!==(e=$n[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Un.elementDefinitions={},Un.styles=kn,In([s()],Un.prototype,"variant",void 0),In([s()],Un.prototype,"value",void 0),In([l()],Un.prototype,"resolvedIcon",void 0),In([f("slot")],Un.prototype,"slottedContent",void 0),g("ft-icon")(Un);const Ln={color:Et.extend("--ft-loader-color","",Wt.colorPrimary),size:Et.create("--ft-loader-size","","SIZE","80px")},Wn=$`
|
|
469
436
|
:host {
|
|
470
437
|
line-height: 0;
|
|
471
438
|
}
|
|
@@ -474,8 +441,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
474
441
|
display: inline-block;
|
|
475
442
|
position: relative;
|
|
476
443
|
|
|
477
|
-
width: ${
|
|
478
|
-
height: ${
|
|
444
|
+
width: ${Ln.size};
|
|
445
|
+
height: ${Ln.size};
|
|
479
446
|
}
|
|
480
447
|
|
|
481
448
|
.ft-loader div {
|
|
@@ -484,7 +451,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
484
451
|
width: 25%;
|
|
485
452
|
height: 25%;
|
|
486
453
|
border-radius: 50%;
|
|
487
|
-
background: ${
|
|
454
|
+
background: ${Ln.color};
|
|
488
455
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
489
456
|
}
|
|
490
457
|
|
|
@@ -531,17 +498,10 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
531
498
|
transform: translate(0, 0);
|
|
532
499
|
}
|
|
533
500
|
100% {
|
|
534
|
-
transform: translate(calc(0.35 * ${
|
|
501
|
+
transform: translate(calc(0.35 * ${Ln.size}), 0);
|
|
535
502
|
}
|
|
536
503
|
}
|
|
537
|
-
|
|
538
|
-
<div class="ft-loader">
|
|
539
|
-
<div></div>
|
|
540
|
-
<div></div>
|
|
541
|
-
<div></div>
|
|
542
|
-
<div></div>
|
|
543
|
-
</div>
|
|
544
|
-
`}}dr.styles=pr,d("ft-loader")(dr);const vr=Ot.extend("--ft-button-color",kt.colorPrimary),br={backgroundColor:Ot.extend("--ft-button-background-color",kt.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",kt.borderRadiusL),color:vr,fontSize:Ot.extend("--ft-button-font-size",Po.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",vr),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(kt.colorOpacityDisabled,"Design system")},yr=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",kt.colorOnPrimary)),gr={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",kt.colorPrimary)),color:yr,rippleColor:Ot.extend("--ft-button-primary-ripple-color",yr)},mr=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",kt.borderRadiusM)),xr=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),wr=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),$r=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),Or=[$`
|
|
504
|
+
`,An=Et.extend("--ft-button-color","",Wt.colorPrimary),jn={backgroundColor:Et.extend("--ft-button-background-color","",Wt.colorSurface),borderRadius:Et.extend("--ft-button-border-radius","",Wt.borderRadiusL),color:An,fontSize:Et.extend("--ft-button-font-size","",ln.fontSize),iconSize:Et.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Et.extend("--ft-button-ripple-color","",An),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")},Fn=Et.extend("--ft-button-primary-color","",Et.extend("--ft-button-color","",Wt.colorOnPrimary)),zn={backgroundColor:Et.extend("--ft-button-primary-background-color","",Et.extend("--ft-button-background-color","",Wt.colorPrimary)),color:Fn,rippleColor:Et.extend("--ft-button-primary-ripple-color","",Fn)},Bn=Et.extend("--ft-button-dense-border-radius","",Et.extend("--ft-button-border-radius","",Wt.borderRadiusM)),Dn=Et.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Kn=Et.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Pn=Et.create("--ft-button-dense-icon-padding","","SIZE","4px"),Mn=[$`
|
|
545
505
|
:host {
|
|
546
506
|
display: inline-block;
|
|
547
507
|
max-width: 100%;
|
|
@@ -552,7 +512,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
552
512
|
box-shadow: 0px 0px 0px transparent;
|
|
553
513
|
border: 0px solid transparent;
|
|
554
514
|
text-shadow: 0px 0px 0px transparent;
|
|
555
|
-
font-size: ${
|
|
515
|
+
font-size: ${jn.fontSize};
|
|
556
516
|
}
|
|
557
517
|
|
|
558
518
|
button:hover {
|
|
@@ -581,31 +541,31 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
581
541
|
border: none;
|
|
582
542
|
pointer-events: auto;
|
|
583
543
|
|
|
584
|
-
--ft-button-internal-line-height: max(calc(${
|
|
585
|
-
--ft-button-internal-color: ${
|
|
586
|
-
${
|
|
587
|
-
${
|
|
544
|
+
--ft-button-internal-line-height: max(calc(${jn.fontSize} + 2px), ${jn.iconSize});
|
|
545
|
+
--ft-button-internal-color: ${jn.color};
|
|
546
|
+
${kt(En.size,jn.iconSize)};
|
|
547
|
+
${kt(Gi.color,jn.rippleColor)};
|
|
588
548
|
|
|
589
|
-
border-radius: ${
|
|
590
|
-
padding: ${
|
|
591
|
-
background-color: ${
|
|
549
|
+
border-radius: ${jn.borderRadius};
|
|
550
|
+
padding: ${jn.verticalPadding} ${jn.horizontalPadding};
|
|
551
|
+
background-color: ${jn.backgroundColor};
|
|
592
552
|
color: var(--ft-button-internal-color);
|
|
593
553
|
-webkit-mask-image: radial-gradient(white, black);
|
|
594
554
|
}
|
|
595
555
|
|
|
596
556
|
.ft-button.ft-button--outlined {
|
|
597
557
|
border: 1px solid var(--ft-button-internal-color);
|
|
598
|
-
padding: calc(${
|
|
558
|
+
padding: calc(${jn.verticalPadding} - 1px) calc(${jn.horizontalPadding} - 1px);
|
|
599
559
|
}
|
|
600
560
|
|
|
601
561
|
.ft-button.ft-button--dense {
|
|
602
|
-
padding: ${
|
|
603
|
-
border-radius: ${
|
|
604
|
-
gap: ${
|
|
562
|
+
padding: ${Dn} ${Kn};
|
|
563
|
+
border-radius: ${Bn};
|
|
564
|
+
gap: ${Pn};
|
|
605
565
|
}
|
|
606
566
|
|
|
607
567
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
608
|
-
padding: calc(${
|
|
568
|
+
padding: calc(${Dn} - 1px) calc(${Kn} - 1px);
|
|
609
569
|
}
|
|
610
570
|
|
|
611
571
|
.ft-button:not([disabled]):hover {
|
|
@@ -613,22 +573,22 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
613
573
|
}
|
|
614
574
|
|
|
615
575
|
.ft-button--round {
|
|
616
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
576
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${jn.verticalPadding});
|
|
617
577
|
}
|
|
618
578
|
|
|
619
579
|
.ft-button--round.ft-button--dense {
|
|
620
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
580
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Dn});
|
|
621
581
|
}
|
|
622
582
|
|
|
623
583
|
.ft-button[disabled] {
|
|
624
584
|
filter: grayscale(1);
|
|
625
|
-
opacity: ${
|
|
585
|
+
opacity: ${jn.opacityDisabled};
|
|
626
586
|
}
|
|
627
587
|
|
|
628
588
|
.ft-button.ft-button--primary {
|
|
629
|
-
background-color: ${
|
|
630
|
-
--ft-button-internal-color: ${
|
|
631
|
-
${
|
|
589
|
+
background-color: ${zn.backgroundColor};
|
|
590
|
+
--ft-button-internal-color: ${zn.color};
|
|
591
|
+
${kt(Gi.color,zn.rippleColor)};
|
|
632
592
|
}
|
|
633
593
|
|
|
634
594
|
.ft-button:focus {
|
|
@@ -641,13 +601,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
641
601
|
white-space: nowrap;
|
|
642
602
|
text-overflow: ellipsis;
|
|
643
603
|
display: block;
|
|
644
|
-
margin: 0 ${
|
|
645
|
-
${
|
|
646
|
-
${
|
|
604
|
+
margin: 0 ${jn.iconPadding};
|
|
605
|
+
${kt(ln.fontSize,"1em")};
|
|
606
|
+
${kt(ln.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
647
607
|
}
|
|
648
608
|
|
|
649
609
|
.ft-button--dense .ft-button--label {
|
|
650
|
-
margin: 0 ${
|
|
610
|
+
margin: 0 ${Pn};
|
|
651
611
|
}
|
|
652
612
|
|
|
653
613
|
.ft-button--label[hidden] {
|
|
@@ -660,13 +620,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
660
620
|
}
|
|
661
621
|
|
|
662
622
|
.ft-button--label[hidden] + ft-icon {
|
|
663
|
-
margin: 0 calc(${
|
|
664
|
-
padding: 0 ${
|
|
623
|
+
margin: 0 calc(${jn.horizontalPadding} * -1);
|
|
624
|
+
padding: 0 ${jn.verticalPadding};
|
|
665
625
|
}
|
|
666
626
|
|
|
667
627
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
668
|
-
margin: 0 calc(${
|
|
669
|
-
padding: 0 ${
|
|
628
|
+
margin: 0 calc(${Kn} * -1);
|
|
629
|
+
padding: 0 ${Dn};
|
|
670
630
|
}
|
|
671
631
|
|
|
672
632
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -675,33 +635,305 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
675
635
|
}
|
|
676
636
|
|
|
677
637
|
ft-loader {
|
|
678
|
-
${
|
|
679
|
-
${
|
|
638
|
+
${kt(Ln.size,jn.iconSize)};
|
|
639
|
+
${kt(Ln.color,"var(--ft-button-internal-color)")};
|
|
680
640
|
}
|
|
681
|
-
`,
|
|
641
|
+
`,Pt],Tn=Et.create("--ft-tooltip-distance","","SIZE","4px"),Zn=Et.create("--ft-tooltip-color","","COLOR","#FFFFFF"),_n=Et.create("--ft-tooltip-background-color","","COLOR","#666666"),Hn=Et.create("--ft-tooltip-z-index","","NUMBER","100"),Gn=Et.external(Wt.borderRadiusS,"Design system"),Vn=Et.create("--ft-tooltip-max-width","","SIZE","150px"),qn=$`
|
|
642
|
+
.ft-tooltip--container {
|
|
643
|
+
display: block;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.ft-tooltip--inline {
|
|
647
|
+
display: inline-block;
|
|
648
|
+
max-width: 100%;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.ft-tooltip {
|
|
652
|
+
position: absolute;
|
|
653
|
+
box-sizing: border-box;
|
|
654
|
+
overflow: hidden;
|
|
655
|
+
width: max-content;
|
|
656
|
+
max-width: ${Vn};
|
|
657
|
+
text-align: center;
|
|
658
|
+
padding: ${Tn};
|
|
659
|
+
z-index: ${Hn};
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.ft-tooltip--content {
|
|
663
|
+
padding: 4px 8px;
|
|
664
|
+
border-radius: ${Gn};
|
|
665
|
+
background-color: ${_n};
|
|
666
|
+
color: ${Zn};
|
|
667
|
+
position: relative;
|
|
668
|
+
word-break: break-word;
|
|
669
|
+
}
|
|
670
|
+
`;var Yn=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 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`
|
|
671
|
+
<div part="container"
|
|
672
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
673
|
+
@mouseenter=${this.onHover}
|
|
674
|
+
@mouseleave=${this.onOut}
|
|
675
|
+
@focusin=${this.onHover}
|
|
676
|
+
@focusout=${this.onOut}
|
|
677
|
+
@touchstart=${this.onTouch}>
|
|
678
|
+
<slot></slot>
|
|
679
|
+
<div part="tooltip" role="tooltip" inert
|
|
680
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
681
|
+
?hidden=${!this.visible}>
|
|
682
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
683
|
+
<slot name="text"></slot>
|
|
684
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
</div>
|
|
688
|
+
`}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, ${Vn})`}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))}}Xn.elementDefinitions={"ft-typography":wn},Xn.styles=qn,Yn([s()],Xn.prototype,"text",void 0),Yn([s({type:Boolean})],Xn.prototype,"manual",void 0),Yn([s({type:Boolean})],Xn.prototype,"inline",void 0),Yn([s({type:Number})],Xn.prototype,"delay",void 0),Yn([s()],Xn.prototype,"position",void 0),Yn([function(t,e,o){let i,r=t;return"object"==typeof t?(r=t.slot,i=t):i={flatten:e},o?d({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)],Xn.prototype,"slotNodes",void 0),Yn([f(".ft-tooltip--container")],Xn.prototype,"container",void 0),Yn([f(".ft-tooltip")],Xn.prototype,"tooltip",void 0),Yn([f(".ft-tooltip--content")],Xn.prototype,"tooltipContent",void 0),Yn([l()],Xn.prototype,"visible",void 0),g("ft-tooltip")(Xn);class Jn extends Kt{render(){return rt`
|
|
689
|
+
<div class="ft-loader">
|
|
690
|
+
<div></div>
|
|
691
|
+
<div></div>
|
|
692
|
+
<div></div>
|
|
693
|
+
<div></div>
|
|
694
|
+
</div>
|
|
695
|
+
`}}Jn.styles=Wn,g("ft-loader")(Jn);var Qn=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 ta 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`
|
|
682
696
|
<button part="button"
|
|
683
|
-
class="${
|
|
697
|
+
class="${_i(this.buttonClasses)}"
|
|
684
698
|
aria-label="${this.getLabel()}"
|
|
685
699
|
?disabled=${this.isDisabled()}>
|
|
686
700
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
687
701
|
<ft-typography part="label"
|
|
688
|
-
variant
|
|
702
|
+
variant=${this.typographyVariant}
|
|
689
703
|
element="span"
|
|
690
|
-
class="ft-button--label ${
|
|
704
|
+
class="ft-button--label ${Ho?"ft-safari-ellipsis-fix":""}"
|
|
691
705
|
?hidden=${!this.hasTextContent()}>
|
|
692
706
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
693
707
|
</ft-typography>
|
|
694
708
|
${this.resolveIcon()}
|
|
695
709
|
</button>
|
|
696
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
710
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?rt`
|
|
697
711
|
<ft-tooltip part="tooltip"
|
|
698
712
|
text="${this.getLabel()}"
|
|
699
713
|
position="${this.tooltipPosition}">
|
|
700
714
|
${t}
|
|
701
715
|
</ft-tooltip>
|
|
702
|
-
`:t}resolveIcon(){return this.loading?
|
|
703
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
704
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
716
|
+
`:t}resolveIcon(){return this.loading?rt`
|
|
717
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?rt`
|
|
718
|
+
<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}}ta.elementDefinitions={"ft-ripple":or,"ft-tooltip":Xn,"ft-typography":wn,"ft-icon":Un,"ft-loader":Jn},Qn([s({type:String,reflect:!0})],ta.prototype,"role",void 0),Qn([s()],ta.prototype,"type",void 0),Qn([s({type:Boolean})],ta.prototype,"disabled",void 0),Qn([s()],ta.prototype,"label",void 0),Qn([s()],ta.prototype,"icon",void 0),Qn([s()],ta.prototype,"iconVariant",void 0),Qn([s({type:Boolean})],ta.prototype,"trailingIcon",void 0),Qn([s({type:Boolean})],ta.prototype,"loading",void 0),Qn([s()],ta.prototype,"tooltipPosition",void 0),Qn([s({type:Boolean})],ta.prototype,"hideTooltip",void 0),Qn([s({type:Boolean})],ta.prototype,"forceTooltip",void 0),Qn([f(".ft-button")],ta.prototype,"button",void 0),Qn([f(".ft-button--label slot")],ta.prototype,"slottedContent",void 0);var ea=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 oa extends ta{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"}}oa.styles=[Mt,Mn],ea([s({type:Boolean})],oa.prototype,"primary",void 0),ea([s({type:Boolean})],oa.prototype,"outlined",void 0),ea([s({type:Boolean})],oa.prototype,"disabled",void 0),ea([s({type:Boolean})],oa.prototype,"dense",void 0),ea([s({type:Boolean})],oa.prototype,"round",void 0);const ia=[$`
|
|
719
|
+
:host {
|
|
720
|
+
display: inline-block;
|
|
721
|
+
max-width: 100%;
|
|
722
|
+
pointer-events: none;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** Remove default button styles **/
|
|
726
|
+
|
|
727
|
+
button {
|
|
728
|
+
box-shadow: 0 0 0 transparent;
|
|
729
|
+
border: 0 solid transparent;
|
|
730
|
+
text-shadow: 0 0 0 transparent;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
button:hover {
|
|
734
|
+
box-shadow: 0 0 0 transparent;
|
|
735
|
+
text-shadow: 0 0 0 transparent;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
button:active {
|
|
739
|
+
outline: none;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
button:focus {
|
|
743
|
+
outline: 0;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/** Base styles **/
|
|
747
|
+
|
|
748
|
+
.ft-button {
|
|
749
|
+
position: relative;
|
|
750
|
+
display: flex;
|
|
751
|
+
justify-content: center;
|
|
752
|
+
align-items: center;
|
|
753
|
+
width: 100%;
|
|
754
|
+
overflow: hidden;
|
|
755
|
+
box-sizing: border-box;
|
|
756
|
+
pointer-events: auto;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.ft-button:not([disabled]):hover {
|
|
760
|
+
cursor: pointer;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.ft-button:focus {
|
|
764
|
+
outline: none;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.ft-button:focus-visible {
|
|
768
|
+
outline-color: ${Lt.focusFocusRingColor};
|
|
769
|
+
outline-style: solid;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
ft-icon {
|
|
773
|
+
flex-shrink: 0;
|
|
774
|
+
position: relative;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
778
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
779
|
+
order: -1;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.ft-button--label {
|
|
783
|
+
position: relative;
|
|
784
|
+
overflow: hidden;
|
|
785
|
+
white-space: nowrap;
|
|
786
|
+
text-overflow: ellipsis;
|
|
787
|
+
display: block;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.ft-button--label[hidden] {
|
|
791
|
+
display: none;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/** Primary styles **/
|
|
795
|
+
|
|
796
|
+
.ft-button--primary {
|
|
797
|
+
${kt(Ln.color,Lt.primaryIconColor)};
|
|
798
|
+
|
|
799
|
+
${kt(Gi.color,Lt.primaryStateLayerColor)};
|
|
800
|
+
${kt(Gi.opacityContentOnSurfaceHover,Lt.primaryStateLayerOpacityHover)};
|
|
801
|
+
${kt(Gi.opacityContentOnSurfaceFocused,Lt.primaryStateLayerOpacityFocus)};
|
|
802
|
+
${kt(Gi.opacityContentOnSurfaceSelected,Lt.primaryStateLayerOpacityActive)};
|
|
803
|
+
${kt(Gi.opacityContentOnSurfacePressed,Lt.primaryStateLayerOpacityActive)};
|
|
804
|
+
|
|
805
|
+
background-color: ${Lt.primaryBackgroundColor};
|
|
806
|
+
color: ${Lt.primaryColor};
|
|
807
|
+
border-style: none;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.ft-button--primary[disabled] {
|
|
811
|
+
opacity: ${Lt.primaryComponentOpacityDisabled};
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.ft-button--primary ft-icon {
|
|
815
|
+
color: ${Lt.primaryIconColor};
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** Secondary styles **/
|
|
819
|
+
|
|
820
|
+
.ft-button--secondary {
|
|
821
|
+
${kt(Ln.color,Lt.secondaryIconColor)};
|
|
822
|
+
|
|
823
|
+
${kt(Gi.color,Lt.secondaryStateLayerColor)};
|
|
824
|
+
${kt(Gi.opacityContentOnSurfaceHover,Lt.secondaryStateLayerOpacityHover)};
|
|
825
|
+
${kt(Gi.opacityContentOnSurfaceFocused,Lt.secondaryStateLayerOpacityFocus)};
|
|
826
|
+
${kt(Gi.opacityContentOnSurfaceSelected,Lt.secondaryStateLayerOpacityActive)};
|
|
827
|
+
${kt(Gi.opacityContentOnSurfacePressed,Lt.secondaryStateLayerOpacityActive)};
|
|
828
|
+
|
|
829
|
+
background-color: ${Lt.secondaryBackgroundColor};
|
|
830
|
+
color: ${Lt.secondaryColor};
|
|
831
|
+
border-color: ${Lt.secondaryBorderColor};
|
|
832
|
+
border-style: solid;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.ft-button--secondary[disabled] {
|
|
836
|
+
opacity: ${Lt.secondaryComponentOpacityDisabled};
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.ft-button--secondary ft-icon {
|
|
840
|
+
color: ${Lt.secondaryIconColor};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/** Tertiary styles **/
|
|
844
|
+
|
|
845
|
+
.ft-button--tertiary {
|
|
846
|
+
${kt(Ln.color,Lt.tertiaryIconColor)};
|
|
847
|
+
|
|
848
|
+
${kt(Gi.color,Lt.tertiaryStateLayerColor)};
|
|
849
|
+
${kt(Gi.opacityContentOnSurfaceHover,Lt.tertiaryStateLayerOpacityHover)};
|
|
850
|
+
${kt(Gi.opacityContentOnSurfaceFocused,Lt.tertiaryStateLayerOpacityFocus)};
|
|
851
|
+
${kt(Gi.opacityContentOnSurfaceSelected,Lt.tertiaryStateLayerOpacityActive)};
|
|
852
|
+
${kt(Gi.opacityContentOnSurfacePressed,Lt.tertiaryStateLayerOpacityActive)};
|
|
853
|
+
|
|
854
|
+
background-color: ${Lt.tertiaryBackgroundColor};
|
|
855
|
+
color: ${Lt.tertiaryColor};
|
|
856
|
+
border-style: none;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.ft-button--tertiary[disabled] {
|
|
860
|
+
opacity: ${Lt.tertiaryComponentOpacityDisabled};
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.ft-button--tertiary ft-icon {
|
|
864
|
+
color: ${Lt.tertiaryIconColor};
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/** Neutral styles **/
|
|
868
|
+
|
|
869
|
+
.ft-button--neutral {
|
|
870
|
+
${kt(Ln.color,Lt.neutralIconColor)};
|
|
871
|
+
|
|
872
|
+
${kt(Gi.backgroundColor,Lt.neutralStateLayerColor)};
|
|
873
|
+
${kt(Gi.opacityContentOnSurfaceHover,Lt.neutralStateLayerOpacityHover)};
|
|
874
|
+
${kt(Gi.opacityContentOnSurfaceFocused,Lt.neutralStateLayerOpacityFocus)};
|
|
875
|
+
${kt(Gi.opacityContentOnSurfaceSelected,Lt.neutralStateLayerOpacityActive)};
|
|
876
|
+
${kt(Gi.opacityContentOnSurfacePressed,Lt.neutralStateLayerOpacityActive)};
|
|
877
|
+
|
|
878
|
+
background-color: ${Lt.neutralBackgroundColor};
|
|
879
|
+
color: ${Lt.neutralColor};
|
|
880
|
+
border-style: none;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.ft-button--neutral[disabled] {
|
|
884
|
+
opacity: ${Lt.neutralComponentOpacityDisabled};
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.ft-button--neutral ft-icon {
|
|
888
|
+
color: ${Lt.neutralIconColor};
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/** Large styles **/
|
|
892
|
+
|
|
893
|
+
.ft-button--large {
|
|
894
|
+
${kt(En.size,Lt.largeIconSize)};
|
|
895
|
+
${kt(Ln.size,Lt.largeIconSize)};
|
|
896
|
+
|
|
897
|
+
height: ${Lt.largeHeight};
|
|
898
|
+
padding: 0 ${Lt.largeHorizontalPadding};
|
|
899
|
+
gap: ${Lt.largeGap};
|
|
900
|
+
border-radius: ${Lt.largeBorderRadius};
|
|
901
|
+
border-width: ${Lt.largeBorderWidth};
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.ft-button--large:focus-visible {
|
|
905
|
+
outline-width: ${Lt.largeFocusOutlineWidth};
|
|
906
|
+
outline-offset: ${Lt.largeFocusOutlineOffset};
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.ft-button--large.ft-button--icon-only {
|
|
910
|
+
width: ${Lt.largeIconOnlyWidth};
|
|
911
|
+
padding: unset;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/** Small styles **/
|
|
915
|
+
|
|
916
|
+
.ft-button--small {
|
|
917
|
+
${kt(En.size,Lt.smallIconSize)};
|
|
918
|
+
${kt(Ln.size,Lt.smallIconSize)};
|
|
919
|
+
|
|
920
|
+
height: ${Lt.smallHeight};
|
|
921
|
+
padding: 0 ${Lt.smallHorizontalPadding};
|
|
922
|
+
gap: ${Lt.smallGap};
|
|
923
|
+
border-radius: ${Lt.smallBorderRadius};
|
|
924
|
+
border-width: ${Lt.smallBorderWidth};
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.ft-button--small:focus-visible {
|
|
928
|
+
outline-width: ${Lt.smallFocusOutlineWidth};
|
|
929
|
+
outline-offset: ${Lt.smallFocusOutlineOffset};
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.ft-button--small.ft-button--icon-only {
|
|
933
|
+
width: ${Lt.smallIconOnlyWidth};
|
|
934
|
+
padding: unset;
|
|
935
|
+
}
|
|
936
|
+
`,Pt];var ra=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 na extends ta{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?lr.caption1medium:lr.body2medium}}na.styles=[Mt,ia],ra([s({type:Boolean})],na.prototype,"primary",void 0),ra([s({type:Boolean})],na.prototype,"secondary",void 0),ra([s({type:Boolean})],na.prototype,"tertiary",void 0),ra([s({type:Boolean})],na.prototype,"neutral",void 0),ra([s({type:Boolean})],na.prototype,"small",void 0),g("ft-button")(oa),g("ftds-button")(na);const aa=Et.extend("--ft-chip-color","",Wt.colorOnSurface),sa={backgroundColor:Et.extend("--ft-chip-background-color","",Wt.colorSurface),color:aa,fontSize:Et.extend("--ft-chip-font-size","",Mr.fontSize),iconSize:Et.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Et.extend("--ft-chip-ripple-color","",aa),horizontalPadding:Et.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Et.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Et.external(Wt.colorOutline,"Design system"),opacityDisabled:Et.external(Wt.colorOpacityDisabled,"Design system")},la=Et.extend("--ft-chip-highlighted-color","",Et.extend("--ft-chip-color","",Wt.colorOnPrimary)),ca={backgroundColor:Et.extend("--ft-chip-highlighted-background-color","",Et.extend("--ft-chip-background-color","",Wt.colorPrimary)),color:la,rippleColor:Et.extend("--ft-chip-highlighted-ripple-color","",la)},fa=Et.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ha=Et.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),pa=[Pt,$`
|
|
705
937
|
:host {
|
|
706
938
|
display: inline-block;
|
|
707
939
|
max-width: 100%;
|
|
@@ -717,20 +949,20 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
717
949
|
box-sizing: border-box;
|
|
718
950
|
pointer-events: auto;
|
|
719
951
|
|
|
720
|
-
--ft-chip-internal-font-size: ${
|
|
952
|
+
--ft-chip-internal-font-size: ${sa.fontSize};
|
|
721
953
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
722
|
-
${
|
|
723
|
-
--ft-chip-internal-vertical-padding: ${
|
|
724
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
954
|
+
${kt(En.size,sa.iconSize)};
|
|
955
|
+
--ft-chip-internal-vertical-padding: ${sa.verticalPadding};
|
|
956
|
+
--ft-chip-internal-horizontal-padding: ${sa.horizontalPadding};
|
|
725
957
|
--ft-chip-internal-icon-padding: 3px;
|
|
726
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
958
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${sa.iconSize});
|
|
727
959
|
|
|
728
|
-
border: 1px solid ${
|
|
729
|
-
color: ${
|
|
730
|
-
${
|
|
960
|
+
border: 1px solid ${sa.colorOutline};
|
|
961
|
+
color: ${sa.color};
|
|
962
|
+
${kt(Gi.color,sa.rippleColor)};
|
|
731
963
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
732
964
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
733
|
-
background-color: ${
|
|
965
|
+
background-color: ${sa.backgroundColor};
|
|
734
966
|
line-height: var(--ft-chip-internal-content-height);
|
|
735
967
|
}
|
|
736
968
|
|
|
@@ -740,8 +972,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
740
972
|
|
|
741
973
|
.ft-chip--dense {
|
|
742
974
|
--ft-chip-internal-icon-padding: 3px;
|
|
743
|
-
--ft-chip-internal-vertical-padding: ${
|
|
744
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
975
|
+
--ft-chip-internal-vertical-padding: ${ha};
|
|
976
|
+
--ft-chip-internal-horizontal-padding: ${fa};
|
|
745
977
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
746
978
|
}
|
|
747
979
|
|
|
@@ -753,15 +985,15 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
753
985
|
cursor: default;
|
|
754
986
|
pointer-events: none;
|
|
755
987
|
filter: grayscale(1);
|
|
756
|
-
opacity: ${
|
|
988
|
+
opacity: ${sa.opacityDisabled};
|
|
757
989
|
}
|
|
758
990
|
|
|
759
991
|
.ft-chip--highlighted {
|
|
760
992
|
border: none;
|
|
761
993
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
762
|
-
background-color: ${
|
|
763
|
-
${
|
|
764
|
-
color: ${
|
|
994
|
+
background-color: ${ca.backgroundColor};
|
|
995
|
+
${kt(Gi.color,ca.rippleColor)};
|
|
996
|
+
color: ${ca.color};
|
|
765
997
|
}
|
|
766
998
|
|
|
767
999
|
.ft-chip--clickable {
|
|
@@ -791,9 +1023,9 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
791
1023
|
}
|
|
792
1024
|
|
|
793
1025
|
.ft-chip--icon-button {
|
|
794
|
-
${
|
|
795
|
-
${
|
|
796
|
-
${
|
|
1026
|
+
${kt(jn.iconSize,sa.iconSize)};
|
|
1027
|
+
${kt(jn.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1028
|
+
${kt(jn.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
797
1029
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
798
1030
|
}
|
|
799
1031
|
|
|
@@ -801,8 +1033,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
801
1033
|
vertical-align: bottom;
|
|
802
1034
|
display: block;
|
|
803
1035
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
804
|
-
${
|
|
805
|
-
${
|
|
1036
|
+
${kt(Mr.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1037
|
+
${kt(Mr.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
806
1038
|
}
|
|
807
1039
|
|
|
808
1040
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -838,8 +1070,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
838
1070
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
839
1071
|
order: -1;
|
|
840
1072
|
}
|
|
841
|
-
`];var
|
|
842
|
-
<div class="${
|
|
1073
|
+
`];var da=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 CustomEvent{constructor(){super("icon-click")}}class ya extends Kt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ho};return rt`
|
|
1074
|
+
<div class="${_i(t)}"
|
|
843
1075
|
aria-label="${this.getLabel()}"
|
|
844
1076
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
845
1077
|
@keyup=${this.onKeyUp}>
|
|
@@ -849,7 +1081,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
849
1081
|
</ft-typography>
|
|
850
1082
|
${this.internalIcon?this.renderIcon():null}
|
|
851
1083
|
</div>
|
|
852
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1084
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?rt`
|
|
853
1085
|
<ft-button round
|
|
854
1086
|
class="ft-chip--icon-button"
|
|
855
1087
|
@click=${this.onIconClick}
|
|
@@ -857,30 +1089,740 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
857
1089
|
icon="${this.internalIcon}"
|
|
858
1090
|
label="${this.iconLabel}"
|
|
859
1091
|
></ft-button>
|
|
860
|
-
`:
|
|
1092
|
+
`:rt`
|
|
861
1093
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
862
1094
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
863
1095
|
</div>
|
|
864
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
1096
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ua))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ua))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ya.elementDefinitions={"ft-ripple":or,"ft-typography":wn,"ft-icon":Un,"ft-button":oa},ya.styles=pa,da([s({type:Boolean})],ya.prototype,"highlighted",void 0),da([s({type:Boolean})],ya.prototype,"removable",void 0),da([s({type:Boolean})],ya.prototype,"disabled",void 0),da([s({type:Boolean})],ya.prototype,"clickable",void 0),da([s({type:Boolean})],ya.prototype,"iconClickable",void 0),da([s({type:Boolean})],ya.prototype,"dense",void 0),da([s({type:Boolean})],ya.prototype,"multiLine",void 0),da([s()],ya.prototype,"label",void 0),da([s()],ya.prototype,"iconLabel",void 0),da([s()],ya.prototype,"icon",void 0),da([s()],ya.prototype,"iconVariant",void 0),da([s({type:Boolean})],ya.prototype,"trailingIcon",void 0),da([f("ft-typography slot")],ya.prototype,"slottedContent",void 0),g("ft-chip")(ya);const ba=$`
|
|
1097
|
+
`;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};const va=Symbol("i18nProperties"),ma=Symbol("i18nUnsubs");function xa(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ri:ki}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[va])||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[va])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[va]&&new Set([...this[va].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ma].has(t)||this[ma].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[ma].forEach((t=>t())),this[ma].clear()}}return e=ma,ga([s({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Oa extends(xa(Kt)){}class wa extends(xa(Xt)){}var Sa=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 Na extends wa{constructor(){super(),this.editorMode=!1,this.addStore(Si)}render(){return this.key&&this.context?rt`
|
|
1098
|
+
<span class="ft-i18n">
|
|
1099
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1100
|
+
</span>
|
|
1101
|
+
`: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})}}Na.elementDefinitions={},Na.styles=ba,Sa([Po()],Na.prototype,"editorMode",void 0),Sa([s()],Na.prototype,"context",void 0),Sa([s()],Na.prototype,"key",void 0),Sa([v([])],Na.prototype,"args",void 0),Sa([s()],Na.prototype,"defaultMessage",void 0);class $a{static build(t){return new $a(t)}static fromGwt(t){return new $a(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)=>ki.resolveMessage(this.name,e,...t)})}}g("ft-i18n")(Na);const Ca=$`
|
|
1102
|
+
`;var Ea=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 ka extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Ra extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Ia extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Ua extends Xt{get stateManager(){return null==this._stateManager&&(this._stateManager=Ki.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(Si)}render(){return rt`
|
|
1103
|
+
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1104
|
+
`}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 Ra(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Ia(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 ka(t))}reloadSavedSearches(){Fi.clearMySearches()}}Ua.elementDefinitions={},Ua.styles=Ca,Ea([s()],Ua.prototype,"query",void 0),Ea([s()],Ua.prototype,"contentLocale",void 0),Ea([s({type:Number})],Ua.prototype,"pageSize",void 0),Ea([s({type:Boolean})],Ua.prototype,"searchInDocumentTitlesOnly",void 0),Ea([v([])],Ua.prototype,"filters",void 0),Ea([v([])],Ua.prototype,"sort",void 0),Ea([Po({store:"search"})],Ua.prototype,"request",void 0),Ea([Po({store:"search"})],Ua.prototype,"paging",void 0),Ea([Po({store:"search",selector:t=>t.spellcheck})],Ua.prototype,"autocorrect",void 0),Ea([Po({store:Si.name})],Ua.prototype,"session",void 0),g("ft-search-context")(Ua);const La=$`
|
|
1105
|
+
`,Wa=Et.extend("--ft-checkbox-text-color","",Wt.colorOnSurfaceHigh),Aa=Et.external(Wt.colorPrimary,"Design system"),ja=Et.external(Wt.colorOnPrimary,"Design system"),Fa=Et.extend("--ft-checkbox-border-color","",Wt.colorOnSurfaceMedium),za=Et.external(Wt.colorOnSurfaceDisabled,"Design system"),Ba=$`
|
|
1106
|
+
* {
|
|
1107
|
+
box-sizing: border-box;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.ft-checkbox {
|
|
1111
|
+
box-sizing: border-box;
|
|
1112
|
+
color: ${Wa};
|
|
1113
|
+
|
|
1114
|
+
display: inline-flex;
|
|
1115
|
+
align-items: center;
|
|
1116
|
+
gap: 4px;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.ft-checkbox--disabled {
|
|
1120
|
+
color: ${za};
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
input {
|
|
1124
|
+
opacity: 0;
|
|
1125
|
+
position: absolute;
|
|
1126
|
+
width: 40px;
|
|
1127
|
+
height: 40px;
|
|
1128
|
+
margin: 0;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.ft-checkbox--box-container {
|
|
1132
|
+
position: relative;
|
|
1133
|
+
width: 40px;
|
|
1134
|
+
height: 40px;
|
|
1135
|
+
|
|
1136
|
+
display: flex;
|
|
1137
|
+
justify-content: center;
|
|
1138
|
+
align-items: center;
|
|
1139
|
+
flex-shrink: 0;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.ft-checkbox--box {
|
|
1143
|
+
display: flex;
|
|
1144
|
+
border: 2px solid ${Fa};
|
|
1145
|
+
border-radius: 2px;
|
|
1146
|
+
|
|
1147
|
+
width: 18px;
|
|
1148
|
+
height: 18px;
|
|
1149
|
+
|
|
1150
|
+
color: ${ja};
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
.ft-checkbox--checked .ft-checkbox--box,
|
|
1155
|
+
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1156
|
+
border-color: ${Aa};
|
|
1157
|
+
background-color: ${Aa};
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1161
|
+
border-color: ${za};
|
|
1162
|
+
background-color: transparent;
|
|
1163
|
+
color: ${za};
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.ft-checkbox--checkmark {
|
|
1167
|
+
transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
1168
|
+
opacity: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.ft-checkbox--checkmark-path {
|
|
1172
|
+
stroke-dashoffset: 0;
|
|
1173
|
+
stroke: currentcolor;
|
|
1174
|
+
stroke-width: 3px;
|
|
1175
|
+
stroke-dasharray: 30;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.ft-checkbox--checked .ft-checkbox--checkmark,
|
|
1179
|
+
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1180
|
+
opacity: 1;
|
|
1181
|
+
}
|
|
1182
|
+
`;var Da=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 Ka 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`
|
|
1183
|
+
<label class="${_i(t)}" for="checkbox-input">
|
|
1184
|
+
<div class="ft-checkbox--box-container">
|
|
1185
|
+
<ft-ripple
|
|
1186
|
+
?disabled=${this.disabled}
|
|
1187
|
+
?primary=${this.checked||this.indeterminate}
|
|
1188
|
+
unbounded>
|
|
1189
|
+
</ft-ripple>
|
|
1190
|
+
<div class="ft-checkbox--box">
|
|
1191
|
+
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
|
|
1192
|
+
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
1193
|
+
d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
|
|
1194
|
+
</svg>
|
|
1195
|
+
</div>
|
|
1196
|
+
<input type="checkbox"
|
|
1197
|
+
id="checkbox-input"
|
|
1198
|
+
name="${this.name}"
|
|
1199
|
+
.checked=${this.checked}
|
|
1200
|
+
.disabled=${this.disabled}
|
|
1201
|
+
@change=${this.onChange}
|
|
1202
|
+
>
|
|
1203
|
+
</div>
|
|
1204
|
+
<ft-typography variant="body2">
|
|
1205
|
+
<slot></slot>
|
|
1206
|
+
</ft-typography>
|
|
1207
|
+
</label>
|
|
1208
|
+
`}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)}}Ka.elementDefinitions={"ft-ripple":or,"ft-typography":wn},Ka.styles=Ba,Da([s()],Ka.prototype,"name",void 0),Da([s({type:Boolean,reflect:!0})],Ka.prototype,"checked",void 0),Da([s({type:Boolean})],Ka.prototype,"indeterminate",void 0),Da([s({type:Boolean})],Ka.prototype,"disabled",void 0),Da([f(".ft-checkbox")],Ka.prototype,"container",void 0),Da([f("ft-ripple")],Ka.prototype,"ripple",void 0),g("ft-checkbox")(Ka);const Pa=Et.extend("--ft-radio-text-color","",Wt.colorOnSurfaceHigh),Ma=Et.external(Wt.colorPrimary,"Design system"),Ta=(Et.external(Wt.colorOnPrimary,"Design system"),Et.extend("--ft-radio-border-color","",Wt.colorOnSurfaceMedium)),Za=Et.external(Wt.colorOnSurfaceDisabled,"Design system"),_a=$`
|
|
1209
|
+
* {
|
|
1210
|
+
box-sizing: border-box;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.ft-radio {
|
|
1214
|
+
box-sizing: border-box;
|
|
1215
|
+
color: ${Pa};
|
|
1216
|
+
|
|
1217
|
+
display: inline-flex;
|
|
1218
|
+
align-items: center;
|
|
1219
|
+
gap: 4px;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.ft-radio--disabled {
|
|
1223
|
+
color: ${Za};
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
input {
|
|
1227
|
+
opacity: 0;
|
|
1228
|
+
position: absolute;
|
|
1229
|
+
width: 40px;
|
|
1230
|
+
height: 40px;
|
|
1231
|
+
margin: 0;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.ft-radio--box-container {
|
|
1235
|
+
position: relative;
|
|
1236
|
+
width: 40px;
|
|
1237
|
+
height: 40px;
|
|
1238
|
+
|
|
1239
|
+
display: flex;
|
|
1240
|
+
justify-content: center;
|
|
1241
|
+
align-items: center;
|
|
1242
|
+
flex-shrink: 0;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.ft-radio--box {
|
|
1246
|
+
border: 2px solid ${Ta};
|
|
1247
|
+
border-radius: 50%;
|
|
1248
|
+
|
|
1249
|
+
display: flex;
|
|
1250
|
+
justify-content: center;
|
|
1251
|
+
align-items: center;
|
|
1252
|
+
|
|
1253
|
+
width: 20px;
|
|
1254
|
+
height: 20px;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.ft-radio--box:after {
|
|
1258
|
+
content: " ";
|
|
1259
|
+
background-color: ${Ma};
|
|
1260
|
+
|
|
1261
|
+
border-radius: 50%;
|
|
1262
|
+
|
|
1263
|
+
width: 12px;
|
|
1264
|
+
height: 12px;
|
|
1265
|
+
|
|
1266
|
+
transform: scale(0);
|
|
1267
|
+
transition: transform 100ms ease;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.ft-radio--checked .ft-radio--box {
|
|
1271
|
+
border-color: ${Ma};
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
.ft-radio--checked .ft-radio--box:after {
|
|
1276
|
+
transform: scale(1);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.ft-radio--disabled .ft-radio--box {
|
|
1280
|
+
border-color: ${Za};
|
|
1281
|
+
background-color: transparent;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.ft-radio--disabled .ft-radio--box:after {
|
|
1285
|
+
background-color: ${Za};
|
|
1286
|
+
}
|
|
1287
|
+
`;var Ha=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 Ga extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Va 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`
|
|
1288
|
+
<div class="${_i(t)}">
|
|
1289
|
+
<div class="ft-radio--box-container">
|
|
1290
|
+
<ft-ripple
|
|
1291
|
+
?disabled=${this.disabled}
|
|
1292
|
+
?primary=${this.checked}
|
|
1293
|
+
unbounded>
|
|
1294
|
+
</ft-ripple>
|
|
1295
|
+
<div class="ft-radio--box">
|
|
1296
|
+
</div>
|
|
1297
|
+
<input id="radio-button"
|
|
1298
|
+
type="radio"
|
|
1299
|
+
name="${this.name}"
|
|
1300
|
+
value="${this.value}"
|
|
1301
|
+
.checked=${this.checked}
|
|
1302
|
+
.disabled=${this.disabled}
|
|
1303
|
+
@change=${this.onChange}
|
|
1304
|
+
>
|
|
1305
|
+
</div>
|
|
1306
|
+
<label for="radio-button" @click=${t=>t.stopPropagation()}>
|
|
1307
|
+
<ft-typography variant="body2">
|
|
1308
|
+
<slot></slot>
|
|
1309
|
+
</ft-typography>
|
|
1310
|
+
</label>
|
|
1311
|
+
</div>
|
|
1312
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ga(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 Ga(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Va.elementDefinitions={"ft-ripple":or,"ft-typography":wn},Va.styles=_a,Ha([s()],Va.prototype,"value",void 0),Ha([s()],Va.prototype,"name",void 0),Ha([s({type:Boolean,reflect:!0})],Va.prototype,"checked",void 0),Ha([s({type:Boolean})],Va.prototype,"disabled",void 0),Ha([f(".ft-radio")],Va.prototype,"container",void 0),Ha([f("ft-ripple")],Va.prototype,"ripple",void 0),Ha([f("input")],Va.prototype,"input",void 0);const qa=$`
|
|
1313
|
+
:host {
|
|
1314
|
+
display: contents;
|
|
1315
|
+
}
|
|
1316
|
+
`;var Ya=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 Xa extends Kt{constructor(){super(...arguments),this.name=""}render(){return rt`
|
|
1317
|
+
<slot @slotchange=${this.onSlotChange}
|
|
1318
|
+
@change=${this.onChange}
|
|
1319
|
+
@keydown=${this.onKeyDown}
|
|
1320
|
+
></slot>
|
|
1321
|
+
`}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)}}Xa.elementDefinitions={},Xa.styles=qa,Ya([s()],Xa.prototype,"name",void 0),Ya([d()],Xa.prototype,"radioButtons",void 0),g("ft-radio")(Va),g("ft-radio-group")(Xa);const Ja={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(Mr.fontFamily,"Body2 typography"),fontSize:Et.external(Mr.fontSize,"Body2 typography"),fontWeight:Et.external(Mr.fontWeight,"Body2 typography"),letterSpacing:Et.external(Mr.letterSpacing,"Body2 typography"),lineHeight:Et.external(Mr.lineHeight,"Body2 typography"),textTransform:Et.external(Mr.textTransform,"Body2 typography")},Qa=$`
|
|
1322
|
+
.ft-filter-level--container {
|
|
1323
|
+
display: flex;
|
|
1324
|
+
flex-direction: column;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.ft-filter-level--container > * {
|
|
1328
|
+
padding: 0 10px;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.ft-filter-level--go-back {
|
|
1332
|
+
flex-shrink: 0;
|
|
1333
|
+
text-decoration: none;
|
|
1334
|
+
position: relative;
|
|
1335
|
+
border-radius: ${Ja.borderRadiusM};
|
|
1336
|
+
overflow: hidden;
|
|
1337
|
+
display: flex;
|
|
1338
|
+
align-items: center;
|
|
1339
|
+
padding: 4px 4px;
|
|
1340
|
+
gap: 4px;
|
|
1341
|
+
cursor: pointer;
|
|
1342
|
+
color: ${Ja.colorOnSurface};
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.ft-filter-level--go-back:focus {
|
|
1346
|
+
outline: none;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.ft-filter-level--go-back ft-icon {
|
|
1350
|
+
flex-shrink: 0;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.ft-filter-level--go-back ft-typography {
|
|
1354
|
+
display: block;
|
|
1355
|
+
flex-grow: 1;
|
|
1356
|
+
flex-shrink: 0;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.ft-filter-level--option {
|
|
1360
|
+
display: flex;
|
|
1361
|
+
align-items: center;
|
|
1362
|
+
max-width: 100%;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.ft-filter-level--option ft-button {
|
|
1366
|
+
margin-right: -10px;
|
|
1367
|
+
flex-shrink: 0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
ft-button {
|
|
1371
|
+
${kt(jn.color,Ja.colorOnSurface)};
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
ft-radio, ft-checkbox {
|
|
1375
|
+
flex-shrink: 1;
|
|
1376
|
+
flex-grow: 1;
|
|
1377
|
+
display: flex;
|
|
1378
|
+
max-width: calc(100% + 10px);
|
|
1379
|
+
margin-left: -10px;
|
|
1380
|
+
word-break: break-word;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
.ft-filter-level--no-values {
|
|
1384
|
+
margin: 10px 0;
|
|
1385
|
+
color: ${Ja.colorOnSurfaceMedium};
|
|
1386
|
+
}
|
|
1387
|
+
`;var ts=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 es 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`
|
|
1388
|
+
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1389
|
+
${null==this.parent?null:rt`
|
|
1390
|
+
<div tabindex="0"
|
|
1391
|
+
part="controls go-back"
|
|
1392
|
+
class="ft-filter-level--go-back"
|
|
1393
|
+
?disabled=${this.disabled}
|
|
1394
|
+
@keyup=${this.goBackOnKeyPress}
|
|
1395
|
+
@click=${this.goBackOnClick}>
|
|
1396
|
+
<ft-ripple></ft-ripple>
|
|
1397
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
1398
|
+
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1399
|
+
</div>
|
|
1400
|
+
`}
|
|
1401
|
+
${0===this.options.length&&this.noValuesLabel?rt`
|
|
1402
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1403
|
+
${this.noValuesLabel}
|
|
1404
|
+
</ft-typography>
|
|
1405
|
+
`:at}
|
|
1406
|
+
${ri(e,(t=>t.value),(t=>{var e;return rt`
|
|
1407
|
+
<div class="ft-filter-level--option" part="options">
|
|
1408
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1409
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?at:rt`
|
|
1410
|
+
<ft-button icon="thin_arrow_right"
|
|
1411
|
+
part="controls navigate-hierarchy"
|
|
1412
|
+
label="${t.label}"
|
|
1413
|
+
?disabled=${this.disabled}
|
|
1414
|
+
tooltipPosition="left"
|
|
1415
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
1416
|
+
`}
|
|
1417
|
+
</div>
|
|
1418
|
+
`}))}
|
|
1419
|
+
${e.length<t.length?rt`
|
|
1420
|
+
<ft-button
|
|
1421
|
+
class="ft-filter-level--display-more"
|
|
1422
|
+
icon="thin_arrow"
|
|
1423
|
+
dense trailingIcon
|
|
1424
|
+
part="controls display-more"
|
|
1425
|
+
@click=${this.displayMore}>
|
|
1426
|
+
${this.moreValuesButtonLabel}
|
|
1427
|
+
</ft-button>
|
|
1428
|
+
`:at}
|
|
1429
|
+
</div>
|
|
1430
|
+
`}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`
|
|
1431
|
+
<ft-checkbox name="${this.filterId}"
|
|
1432
|
+
part="multivalued-option"
|
|
1433
|
+
data-value="${t.value}"
|
|
1434
|
+
.checked=${t.selected}
|
|
1435
|
+
.disabled=${this.disabled}
|
|
1436
|
+
.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))}
|
|
1437
|
+
@change=${e=>this.optionsChanged(e,t)}>
|
|
1438
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1439
|
+
</ft-checkbox>
|
|
1440
|
+
`}buildMonoValuedOption(t){return rt`
|
|
1441
|
+
<ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
|
|
1442
|
+
part="monovalued-option"
|
|
1443
|
+
data-value="${t.value}"
|
|
1444
|
+
.checked=${t.selected}
|
|
1445
|
+
.disabled=${this.disabled}
|
|
1446
|
+
@click=${e=>this.optionsChanged(e,t)}
|
|
1447
|
+
@keyup=${e=>this.onRadioKeyUp(e,t)}
|
|
1448
|
+
@change=${t=>t.stopPropagation()}>
|
|
1449
|
+
${t.renderOption?t.renderOption:t.label}
|
|
1450
|
+
</ft-radio>
|
|
1451
|
+
`}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}))}}es.elementDefinitions={"ft-button":oa,"ft-ripple":or,"ft-typography":wn,"ft-checkbox":Ka,"ft-icon":Un,"ft-radio":Va},es.styles=Qa,ts([s({type:String})],es.prototype,"filterId",void 0),ts([s({type:Object})],es.prototype,"parent",void 0),ts([s({type:Array})],es.prototype,"options",void 0),ts([s({type:Boolean})],es.prototype,"multivalued",void 0),ts([s({type:Boolean})],es.prototype,"disabled",void 0),ts([s({type:Boolean})],es.prototype,"hideSelectedOptions",void 0),ts([s({type:Boolean})],es.prototype,"preventNavigation",void 0),ts([s({type:String})],es.prototype,"filter",void 0),ts([s({type:String})],es.prototype,"moreValuesButtonLabel",void 0),ts([s({type:String})],es.prototype,"noValuesLabel",void 0),ts([s({type:Number})],es.prototype,"displayedValuesLimit",void 0),ts([f(".ft-filter-level--container")],es.prototype,"container",void 0),ts([l()],es.prototype,"displayedPages",void 0);const os={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")},is=$`
|
|
1452
|
+
.ft-snap-scroll {
|
|
1453
|
+
box-sizing: border-box;
|
|
1454
|
+
position: relative;
|
|
1455
|
+
display: flex;
|
|
1456
|
+
|
|
1457
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
1461
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
1462
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
1463
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
.ft-snap-scroll,
|
|
1467
|
+
.ft-snap-scroll--content {
|
|
1468
|
+
overflow: hidden;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.ft-snap-scroll--limit-size,
|
|
1472
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
1473
|
+
width: 100%;
|
|
1474
|
+
height: 100%;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.ft-snap-scroll--content {
|
|
1478
|
+
flex-grow: 1;
|
|
1479
|
+
flex-shrink: 1;
|
|
1480
|
+
box-sizing: border-box;
|
|
1481
|
+
scroll-snap-align: start;
|
|
1482
|
+
display: flex;
|
|
1483
|
+
flex-wrap: nowrap;
|
|
1484
|
+
align-items: flex-start;
|
|
1485
|
+
justify-content: flex-start;
|
|
1486
|
+
gap: ${os.gap};
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
1490
|
+
display: none;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
1494
|
+
-ms-overflow-style: none;
|
|
1495
|
+
scrollbar-width: none;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
1499
|
+
flex-shrink: 0;
|
|
1500
|
+
flex-grow: 1;
|
|
1501
|
+
max-height: 100%;
|
|
1502
|
+
max-width: 100%;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.ft-snap-scroll--horizontal,
|
|
1506
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1507
|
+
width: 100%;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.ft-snap-scroll--vertical,
|
|
1511
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1512
|
+
height: 100%;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1516
|
+
flex-direction: row;
|
|
1517
|
+
overflow-x: auto;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1521
|
+
flex-direction: column;
|
|
1522
|
+
overflow-y: auto;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.ft-snap-scroll--previous,
|
|
1526
|
+
.ft-snap-scroll--next {
|
|
1527
|
+
position: absolute;
|
|
1528
|
+
display: flex;
|
|
1529
|
+
z-index: ${os.buttonsZIndex};
|
|
1530
|
+
opacity: 1;
|
|
1531
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1532
|
+
${kt(jn.backgroundColor,"transparent")};
|
|
1533
|
+
${kt(jn.color,os.buttonsColor)};
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.ft-snap-scroll--previous[hidden],
|
|
1537
|
+
.ft-snap-scroll--next[hidden] {
|
|
1538
|
+
z-index: -1;
|
|
1539
|
+
opacity: 0;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
1543
|
+
top: 0;
|
|
1544
|
+
left: -1px;
|
|
1545
|
+
bottom: 0;
|
|
1546
|
+
background: linear-gradient(to right, ${os.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1550
|
+
top: -1px;
|
|
1551
|
+
left: 0;
|
|
1552
|
+
right: 0;
|
|
1553
|
+
background: linear-gradient(to bottom, ${os.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1557
|
+
top: 0;
|
|
1558
|
+
right: -1px;
|
|
1559
|
+
bottom: 0;
|
|
1560
|
+
background: linear-gradient(to left, ${os.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1564
|
+
left: 0;
|
|
1565
|
+
right: 0;
|
|
1566
|
+
bottom: -1px;
|
|
1567
|
+
background: linear-gradient(to top, ${os.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1571
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1572
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1573
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1574
|
+
background-color: ${os.colorSurface};
|
|
1575
|
+
}
|
|
1576
|
+
`;var rs=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 ns extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class as 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=_i({"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`
|
|
1577
|
+
<div part="container" class="${t}">
|
|
1578
|
+
<ft-button
|
|
1579
|
+
class="ft-snap-scroll--previous"
|
|
1580
|
+
part="controls"
|
|
1581
|
+
primary
|
|
1582
|
+
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1583
|
+
?hidden=${!e||this.startReached}
|
|
1584
|
+
?disabled=${!e||this.startReached}
|
|
1585
|
+
@click=${this.previous}
|
|
1586
|
+
></ft-button>
|
|
1587
|
+
<slot class="ft-snap-scroll--content"
|
|
1588
|
+
part="content"
|
|
1589
|
+
@slotchange=${this.onSlotChange}></slot>
|
|
1590
|
+
<ft-button
|
|
1591
|
+
class="ft-snap-scroll--next"
|
|
1592
|
+
part="controls"
|
|
1593
|
+
primary
|
|
1594
|
+
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1595
|
+
?hidden=${!e||this.endReached}
|
|
1596
|
+
?disabled=${!e||this.endReached}
|
|
1597
|
+
@click=${this.next}
|
|
1598
|
+
></ft-button>
|
|
1599
|
+
</div>
|
|
1600
|
+
`}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 ns(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)}}as.elementDefinitions={"ft-button":oa},as.styles=is,rs([s({type:Boolean})],as.prototype,"horizontal",void 0),rs([s({type:Boolean})],as.prototype,"hideScrollbar",void 0),rs([s({type:Boolean})],as.prototype,"controls",void 0),rs([s({type:Boolean})],as.prototype,"limitSize",void 0),rs([l()],as.prototype,"elements",void 0),rs([l()],as.prototype,"currentElement",void 0),rs([l()],as.prototype,"withScroll",void 0),rs([l()],as.prototype,"startReached",void 0),rs([l()],as.prototype,"endReached",void 0),rs([f(".ft-snap-scroll--content")],as.prototype,"contentSlot",void 0),g("ft-snap-scroll")(as);const ss=Et.external(Wt.colorOutline,"Design system"),ls=Et.external(Wt.colorOnSurface,"Design system"),cs=Et.external(Wt.colorOnSurfaceMedium,"Design system"),fs=Et.external(Wt.colorPrimary,"Design system"),hs=Et.external(Wt.colorSurface,"Design system"),ps=Et.external(Wt.transitionDuration,"Design system"),ds=Et.external(Wt.transitionTimingFunction,"Design system"),us=[yn,$`
|
|
1601
|
+
:host {
|
|
1602
|
+
display: flex;
|
|
1603
|
+
max-height: 100%;
|
|
1604
|
+
max-width: 100%;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.ft-filter--container {
|
|
1608
|
+
flex-grow: 1;
|
|
1609
|
+
display: flex;
|
|
1610
|
+
flex-direction: column;
|
|
1611
|
+
max-height: 100%;
|
|
1612
|
+
max-width: 100%;
|
|
1613
|
+
color: ${ls};
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.ft-filter--header {
|
|
1617
|
+
display: flex;
|
|
1618
|
+
flex-wrap: wrap;
|
|
1619
|
+
gap: 4px;
|
|
1620
|
+
flex-shrink: 0;
|
|
1621
|
+
padding: 0 10px;
|
|
1622
|
+
margin-bottom: 8px;
|
|
1623
|
+
${kt(hr.fontSize,"14px")};
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.ft-filter--header ft-button {
|
|
1627
|
+
flex-shrink: 0;
|
|
1628
|
+
margin-left: auto;
|
|
1629
|
+
${kt(jn.iconSize,"18px")};
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.ft-filter--label {
|
|
1633
|
+
display: block;
|
|
1634
|
+
flex-shrink: 1;
|
|
1635
|
+
flex-grow: 1;
|
|
1636
|
+
word-break: break-word;
|
|
1637
|
+
${kt(hr.lineHeight,"22px")};
|
|
1638
|
+
${kt(hr.fontWeight,"bold")};
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.ft-filter--filter {
|
|
1642
|
+
flex-shrink: 0;
|
|
1643
|
+
display: flex;
|
|
1644
|
+
margin: 0;
|
|
1645
|
+
margin-bottom: 8px;
|
|
1646
|
+
padding: 0 10px;
|
|
1647
|
+
overflow: hidden;
|
|
1648
|
+
height: 32px;
|
|
1649
|
+
transition: height ${ps} ${ds},
|
|
1650
|
+
margin ${ps} ${ds};
|
|
1651
|
+
transition-delay: 500ms;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.ft-filter--filter[hidden] {
|
|
1655
|
+
height: 0;
|
|
1656
|
+
margin-bottom: 0;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
input {
|
|
1660
|
+
display: block;
|
|
1661
|
+
width: 100%;
|
|
1662
|
+
border-radius: 4px;
|
|
1663
|
+
border: 1px solid ${ss};
|
|
1664
|
+
padding: 4px;
|
|
1665
|
+
background-color: ${hs};
|
|
1666
|
+
color: ${ls};
|
|
1667
|
+
outline-color: ${fs};
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
input::placeholder {
|
|
1671
|
+
color: ${cs};
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
input:placeholder-shown {
|
|
1675
|
+
text-overflow: ellipsis;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.ft-filter--values {
|
|
1679
|
+
flex-grow: 1;
|
|
1680
|
+
flex-shrink: 1;
|
|
1681
|
+
max-width: 100%;
|
|
1682
|
+
overflow-x: hidden;
|
|
1683
|
+
overflow-y: auto;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.ft-filter--separator {
|
|
1687
|
+
border-top: 1px solid ${ss};
|
|
1688
|
+
margin: 4px 10px;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
.ft-filter--levels-container {
|
|
1692
|
+
position: relative;
|
|
1693
|
+
overflow: hidden;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.ft-filter--levels {
|
|
1697
|
+
position: relative;
|
|
1698
|
+
overflow: hidden;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
ft-filter-level {
|
|
1702
|
+
width: 100%;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.ft-filter--level-left {
|
|
1706
|
+
height: 0;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
slot:not([name]) {
|
|
1710
|
+
display: none;
|
|
1711
|
+
}
|
|
1712
|
+
`];var ys=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 bs extends CustomEvent{constructor(t){super("change",{detail:t})}}class gs 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`
|
|
1713
|
+
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1714
|
+
part="container">
|
|
1715
|
+
${this.label||t?rt`
|
|
1716
|
+
<div class="ft-filter--header" part="header">
|
|
1717
|
+
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
1718
|
+
${this.label}
|
|
1719
|
+
</ft-typography>
|
|
1720
|
+
<slot name="label"></slot>
|
|
1721
|
+
${t&&!this.hideClearButton?rt`
|
|
1722
|
+
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1723
|
+
${this.clearButtonLabel}
|
|
1724
|
+
</ft-button>
|
|
1725
|
+
`:null}
|
|
1726
|
+
</div>
|
|
1727
|
+
`:null}
|
|
1728
|
+
<div class="ft-filter--filter" ?hidden=${!e}>
|
|
1729
|
+
<input type="search"
|
|
1730
|
+
part="input"
|
|
1731
|
+
class="ft-typography--caption"
|
|
1732
|
+
?disabled=${!e}
|
|
1733
|
+
placeholder="${o}"
|
|
1734
|
+
size="${e?o.length:0}"
|
|
1735
|
+
@search=${this.onFilterChange}
|
|
1736
|
+
@keyup=${this.onFilterChange}>
|
|
1737
|
+
</div>
|
|
1738
|
+
<div class="ft-filter--values">
|
|
1739
|
+
${this.renderLevels()}
|
|
1740
|
+
</div>
|
|
1741
|
+
<slot class="ft-filter--slot"
|
|
1742
|
+
@slotchange=${this.updateOptionsFromSlot}
|
|
1743
|
+
@option-change=${this.optionsChanged}></slot>
|
|
1744
|
+
</div>
|
|
1745
|
+
`}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`
|
|
1746
|
+
${this.raiseSelectedOptions&&e.length>0?rt`
|
|
1747
|
+
<ft-filter-level
|
|
1748
|
+
filterId="${this.id}"
|
|
1749
|
+
?multivalued=${this.multivalued}
|
|
1750
|
+
?disabled=${this.disabled}
|
|
1751
|
+
preventNavigation
|
|
1752
|
+
.options=${e}
|
|
1753
|
+
@change=${this.onChange}
|
|
1754
|
+
part="values selected-values"
|
|
1755
|
+
.exportpartsPrefixes=${["values","selected-values"]}
|
|
1756
|
+
></ft-filter-level>
|
|
1757
|
+
<div class="ft-filter--separator">
|
|
1758
|
+
`:null}
|
|
1759
|
+
<ft-snap-scroll horizontal hideScrollbar
|
|
1760
|
+
class="ft-filter--levels"
|
|
1761
|
+
@current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
|
|
1762
|
+
${this.renderLevel(i,this.options)}
|
|
1763
|
+
${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)}))}
|
|
1764
|
+
</ft-snap-scroll>
|
|
1765
|
+
`}renderLevel(t,e,o){return rt`
|
|
1766
|
+
<ft-filter-level
|
|
1767
|
+
class="${t}"
|
|
1768
|
+
filterId="${this.id}"
|
|
1769
|
+
.filter="${this.filter}"
|
|
1770
|
+
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
1771
|
+
?multivalued=${this.multivalued}
|
|
1772
|
+
?disabled=${this.disabled||"ft-filter--level-center"!==t}
|
|
1773
|
+
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1774
|
+
.parent=${o}
|
|
1775
|
+
.options=${e}
|
|
1776
|
+
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1777
|
+
@change=${this.onChange}
|
|
1778
|
+
@go-back=${this.goBack}
|
|
1779
|
+
@display-level=${this.onDisplayLevel}
|
|
1780
|
+
part="values available-values"
|
|
1781
|
+
.exportpartsPrefixes=${["values","available-values"]}
|
|
1782
|
+
noValuesLabel="${this.noValuesLabel}"
|
|
1783
|
+
></ft-filter-level>
|
|
1784
|
+
`}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 bs(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)}}gs.elementDefinitions={"ft-button":oa,"ft-filter-level":es,"ft-snap-scroll":as,"ft-typography":wn},gs.styles=us,ys([s({type:String})],gs.prototype,"id",void 0),ys([s({type:String})],gs.prototype,"label",void 0),ys([s({type:String})],gs.prototype,"filterPlaceHolder",void 0),ys([s({type:String})],gs.prototype,"clearButtonLabel",void 0),ys([s({type:String})],gs.prototype,"moreValuesButtonLabel",void 0),ys([s({type:String})],gs.prototype,"noValuesLabel",void 0),ys([v([])],gs.prototype,"options",void 0),ys([s({type:Boolean})],gs.prototype,"multivalued",void 0),ys([s({type:Boolean})],gs.prototype,"disabled",void 0),ys([s({type:Boolean})],gs.prototype,"raiseSelectedOptions",void 0),ys([s({type:Number})],gs.prototype,"displayedValuesLimit",void 0),ys([s({type:Boolean})],gs.prototype,"hideClearButton",void 0),ys([f(".ft-filter--slot")],gs.prototype,"slotElement",void 0),ys([f(".ft-filter--container")],gs.prototype,"container",void 0),ys([f(".ft-filter--values")],gs.prototype,"valuesContainer",void 0),ys([f(".ft-filter--levels")],gs.prototype,"levelsContainer",void 0),ys([l()],gs.prototype,"lastLevelHasHiddenvalues",void 0),ys([f(".ft-filter--filter input")],gs.prototype,"filterInput",void 0),ys([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")],gs.prototype,"levels",void 0),ys([l()],gs.prototype,"withScroll",void 0),ys([l()],gs.prototype,"filter",void 0),ys([l()],gs.prototype,"slideIn",void 0),ys([l()],gs.prototype,"slideOut",void 0);var vs=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 ms extends Kt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return rt`
|
|
1785
|
+
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1786
|
+
`}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}))}}ms.elementDefinitions={},vs([s({type:String})],ms.prototype,"label",void 0),vs([s({type:Object,converter:t=>t})],ms.prototype,"value",void 0),vs([s({type:Boolean,reflect:!0})],ms.prototype,"selected",void 0),vs([s({type:Object})],ms.prototype,"subOptions",void 0),vs([v({})],ms.prototype,"renderOption",void 0),vs([f(".ft-filter-option--slot")],ms.prototype,"slotElement",void 0),g("ft-filter")(gs),g("ft-filter-option")(ms);const xs=$a.build("designedSearchType"),Os={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var ws=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 Ss extends(xa(Zi)){constructor(){super(),this.addI18nContext(xs,Os)}render(){return rt`
|
|
1787
|
+
<ft-filter
|
|
1788
|
+
label=${xs.messages.label()}
|
|
1789
|
+
.options=${[{label:xs.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
|
|
1790
|
+
part="filter"
|
|
1791
|
+
.exportpartsPrefixes=${["filter"]}
|
|
1792
|
+
multivalued
|
|
1793
|
+
@change=${this.onSelected}
|
|
1794
|
+
></ft-filter>
|
|
1795
|
+
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}Ss.elementDefinitions={"ft-filter":gs},Ss.styles=La,ws([Po({selector:Bi})],Ss.prototype,"searchInDocumentTitlesOnly",void 0),ws([f("ft-filter")],Ss.prototype,"filter",void 0),g("ft-search-type")(Ss);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 $s extends(xa(Zi)){constructor(){super(),this.editorMode=!1,this.addStore(Si),this.addI18nContext(xs,Os)}render(){return this.editorMode?this.renderDummyFacet():null!=this.facets&&0!==this.facets.length||this.searchInDocumentTitlesOnly?rt`
|
|
865
1796
|
|
|
866
1797
|
<div class="ft-search-selected-facets--container">
|
|
867
|
-
${
|
|
1798
|
+
${ri(this.facets||[],(t=>t.key),(t=>{const e=this.getSelectedValues(t);return ri(e,(e=>t.key+"-"+e),(o=>this.renderFacet(t.key,t.label,e,o)))}))}
|
|
1799
|
+
${this.renderSearchInDocumentTitlesOnly()}
|
|
868
1800
|
</div>
|
|
869
|
-
|
|
1801
|
+
`:at}renderDummyFacet(){return rt`
|
|
870
1802
|
|
|
871
1803
|
<div class="ft-search-selected-facets--container">
|
|
872
1804
|
${[this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value1"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value2"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value3")]}
|
|
873
|
-
</div>`}renderFacet(t,e,i
|
|
874
|
-
<ft-tooltip inline text="${
|
|
875
|
-
part="tooltips tooltip-${
|
|
1805
|
+
</div>`}renderFacet(t,e,o,i){let r=e+": "+this.getBreadcrumbFromValue(i);const n=t.replace(":","-");return rt`
|
|
1806
|
+
<ft-tooltip inline text="${r}"
|
|
1807
|
+
part="tooltips tooltip-${n}">
|
|
876
1808
|
<ft-chip
|
|
877
|
-
part="ft-search-selected-facets ft-search-selected-facet-${
|
|
1809
|
+
part="ft-search-selected-facets ft-search-selected-facet-${n}"
|
|
878
1810
|
removable
|
|
879
|
-
label="${
|
|
880
|
-
@icon-click=${()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setFilter(t,
|
|
1811
|
+
label="${r}"
|
|
1812
|
+
@icon-click=${()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setFilter(t,o.filter((t=>t!==i)))}}
|
|
881
1813
|
data-key="${t}"
|
|
882
|
-
data-value="${
|
|
883
|
-
${this.getLabelFromValue(
|
|
1814
|
+
data-value="${i}">
|
|
1815
|
+
${this.getLabelFromValue(i)}
|
|
1816
|
+
</ft-chip>
|
|
1817
|
+
</ft-tooltip>
|
|
1818
|
+
`}getSelectedValues(t){return y(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}renderSearchInDocumentTitlesOnly(){return this.searchInDocumentTitlesOnly?rt`
|
|
1819
|
+
<ft-tooltip inline text="${xs.messages.documentTitlesOnly()}"
|
|
1820
|
+
part="tooltips tooltip-search-in-document-titles-only">
|
|
1821
|
+
<ft-chip
|
|
1822
|
+
part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
|
|
1823
|
+
removable
|
|
1824
|
+
@icon-click=${()=>{var t;return null===(t=this.stateManager)||void 0===t?void 0:t.setSearchInDocumentTitlesOnly(!1)}}>
|
|
1825
|
+
${xs.messages.documentTitlesOnly()}
|
|
884
1826
|
</ft-chip>
|
|
885
1827
|
</ft-tooltip>
|
|
886
|
-
|
|
1828
|
+
`:at}}$s.elementDefinitions={"ft-chip":ya,"ft-tooltip":Xn},$s.styles=ai,Ns([Po({store:"search"})],$s.prototype,"facets",void 0),Ns([Po({store:"search",selector:Bi})],$s.prototype,"searchInDocumentTitlesOnly",void 0),Ns([Po({store:Si.name})],$s.prototype,"editorMode",void 0),g("ft-search-selected-facets")($s),t.FtSearchSelectedFacets=$s,t.FtSearchSelectedFacetsCssVariables=ni,t.styles=ai}({});
|