@fluid-topics/ft-reader-feedback 1.0.60 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-feedback.light.js +184 -182
- package/build/ft-reader-feedback.min.js +245 -243
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=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||[]);h(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=i.call(o,t);f||(f=d(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(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),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.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),r.set(e,i),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},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}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)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&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,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(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(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,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Xr){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){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,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=(t=>new i(((e,i)=>t.then(e).catch(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 r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!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,i=window.customElements.get,o=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||[]);h(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=i.call(o,t);f||(f=d(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(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),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.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),r.set(e,i),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},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}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)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&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,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(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(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,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(qr){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){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,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=(t=>new i(((e,i)=>t.then(e).catch(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 r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}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
|
|
@@ -49,24 +49,24 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/const v=window,m=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),w=new WeakMap;let O=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==x)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(m&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new O("string"==typeof t?t:t+"",void 0,x)
|
|
52
|
+
*/const v=window,m=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),w=new WeakMap;let O=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==x)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(m&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new O("string"==typeof t?t:t+"",void 0,x),$=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new O(i,t,x)},N=(t,e)=>{m?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=v.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},C=m?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return S(e)})(t):t
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var
|
|
57
|
+
*/;var k;const E=window,R=E.trustedTypes,I=R?R.emptyScript:"",U=E.reactiveElementPolyfillSupport,L={toAttribute(t,e){switch(e){case Boolean:t=t?I:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:_};let T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(C(t))}else void 0!==t&&e.push(C(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return N(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=A){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:L).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:L;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var W;T.finalized=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==U||U({ReactiveElement:T}),(null!==(E
|
|
63
|
+
var W;T.finalized=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==U||U({ReactiveElement:T}),(null!==(k=E.reactiveElementVersions)&&void 0!==k?k:E.reactiveElementVersions=[]).push("1.6.1");const D=window,F=D.trustedTypes,j=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,M="?"+B,P=`<${M}>`,K=document,Z=()=>K.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V=t=>G(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),q="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),at=new WeakMap,st=K.createTreeWalker(K,129,null,!1),lt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Y;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=J:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=null!=r?r:Y,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Q:'"'===l[3]?et:tt):a===et||a===tt?a=Q:a===X||a===J?a=Y:(a=Q,r=void 0);const d=a===Q&&t[e+1].startsWith("/>")?" ":"";n+=a===Y?i+P:c>=0?(o.push(s),i.slice(0,c)+z+i.slice(c)+B+d):i+B+(-2===c?(o.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(s):s,o]};class ct{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=lt(t,e);if(this.el=ct.createElement(l,i),st.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=st.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(z)||e.startsWith(B)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+z).split(B),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?pt:"?"===e[1]?bt:"@"===e[1]?gt:ut})}else s.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(it.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Z()),st.nextNode(),s.push({type:2,index:++r});o.append(t[e],Z())}}}else if(8===o.nodeType)if(o.data===M)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)s.push({type:7,index:r}),t+=B.length-1}r++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}}function ft(t,e,i=t,o){var r,n,a,s;if(e===rt)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const c=H(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,i,o)),void 0!==o?(null!==(a=(s=i)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ft(t,l._$AS(t,e.values),l,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:K).importNode(i,!0);st.currentNode=r;let n=st.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new ht(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new vt(n,this,t)),this._$AV.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(n=st.nextNode(),a++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ht=class t{constructor(t,e,i,o){var r;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.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=ft(this,t,e),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new dt(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ct(t)),e}T(e){G(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Z()),this.k(Z()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ut=class{constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ft(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ft(this,o[i+a],e,a),s===rt&&(s=this._$AH[a]),n||(n=!H(s)||s!==this._$AH[a]),s===nt?t=nt:t!==nt&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},pt=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const yt=F?F.emptyScript:"";let bt=class extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,yt):this.element.removeAttribute(this.name)}},gt=class extends ut{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ft(this,t,e,0))&&void 0!==i?i:nt)===rt)return;const o=this._$AH,r=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==nt&&(o===nt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}};const mt={O:z,P:B,A:M,C:1,M:lt,L:dt,D:V,R:ft,I:ht,V:ut,H:bt,N:gt,U:pt,F:vt},xt=D.litHtmlPolyfillSupport;null==xt||xt(ct,ht),(null!==(W=D.litHtmlVersions)&&void 0!==W?W:D.litHtmlVersions=[]).push("2.7.3");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let a=n._$litPart$;if(void 0===a){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new ht(e.insertBefore(Z(),t),t,void 0,null!=i?i:{})}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 rt}};St.finalized=!0,St._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:St});const Nt=globalThis.litElementPolyfillSupport;null==Nt||Nt({LitElement:St}),(null!==(Ot=globalThis.litElementVersions)&&void 0!==Ot?Ot:globalThis.litElementVersions=[]).push("3.3.2");const $t=t=>"string"==typeof t?S(t):t;class Ct{static create(t,e,i,o){const r=t=>$t(null!=t?t:o),n=N`var(${$t(t)}, ${r(o)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>N`var(${$t(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=N`var(${$t(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>N`var(${$t(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$t(null!=e?e:t.lastResortDefaultValue()),o=N`var(${$t(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>N`var(${$t(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Et(t,e){return $t(`${t.name}: ${e}`)}const kt={colorWhite:Ct.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ct.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ct.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ct.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ct.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ct.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ct.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ct.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ct.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ct.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ct.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ct.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ct.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ct.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ct.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ct.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ct.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ct.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ct.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ct.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ct.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ct.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ct.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ct.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ct.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ct.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ct.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ct.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ct.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ct.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ct.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ct.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ct.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ct.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ct.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ct.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ct.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ct.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ct.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ct.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ct.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ct.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ct.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ct.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ct.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ct.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ct.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ct.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ct.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ct.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ct.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ct.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ct.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ct.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ct.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ct.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ct.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ct.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ct.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ct.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ct.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ct.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ct.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ct.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ct.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ct.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ct.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ct.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ct.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ct.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ct.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ct.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ct.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ct.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ct.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ct.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ct.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ct.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ct.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ct.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ct.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ct.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ct.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ct.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ct.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ct.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ct.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ct.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ct.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ct.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ct.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ct.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ct.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ct.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ct.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ct.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ct.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ct.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ct.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ct.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ct.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ct.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ct.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ct.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ct.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ct.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ct.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ct.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ct.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ct.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ct.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ct.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ct.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ct.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ct.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ct.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ct.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ct.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ct.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ct.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ct.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ct.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ct.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ct.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ct.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ct.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ct.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ct.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ct.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ct.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ct.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ct.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ct.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ct.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ct.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ct.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ct.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ct.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ct.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ct.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ct.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ct.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ct.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ct.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ct.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ct.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ct.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ct.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ct.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ct.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ct.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ct.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ct.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ct.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ct.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ct.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ct.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ct.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ct.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ct.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ct.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ct.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ct.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ct.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ct.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ct.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ct.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ct.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ct.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ct.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ct.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ct.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ct.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ct.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ct.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ct.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ct.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ct.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ct.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ct.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ct.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ct.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ct.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ct.create("--ft-opacity-80","","NUMBER","0.8")},Rt={display:{fontFamily:Ct.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ct.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ct.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ct.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ct.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ct.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ct.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ct.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ct.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ct.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ct.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ct.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ct.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ct.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ct.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ct.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ct.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ct.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ct.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ct.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ct.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ct.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ct.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ct.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ct.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ct.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ct.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},It={backgroundActionPrimary:Ct.extend("--ft-background-action-primary","Used as backgorund of primary action components.",kt.colorBrand0),backgroundErrorPrimary:Ct.extend("--ft-background-error-primary","Used as background of error components.",kt.colorRed0),backgroundErrorSubtle:Ct.extend("--ft-background-error-subtle","Used as background of subtle error components.",kt.colorRed10),backgroundInfoPrimary:Ct.extend("--ft-background-info-primary","Used as background of information components.",kt.colorCyan200),backgroundInfoSubtle:Ct.extend("--ft-background-info-subtle","Used as background of subtle information components.",kt.colorCyan10),backgroundWarningPrimary:Ct.extend("--ft-background-warning-primary","Used as background of warning components.",kt.colorOrange300),backgroundWarningSubtle:Ct.extend("--ft-background-warning-subtle","Used as background of subtle information components.",kt.colorOrange10),backgroundSuccessPrimary:Ct.extend("--ft-background-success-primary","Used as background of success components.",kt.colorGreen200),backgroundSuccessSubtle:Ct.extend("--ft-background-success-subtle","Used as background of subtle success components.",kt.colorGreen10),backgroundGlobalSurface:Ct.extend("--ft-background-global-surface","Used as app background.",kt.colorWhite),backgroundGlobalOnSurface:Ct.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",kt.colorGray10),backgroundGlobalOnSurfaceDark:Ct.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",kt.colorGray30),contentActionPrimary:Ct.extend("--ft-content-action-primary","Used on label of primary action on light surface.",kt.colorBrand0),contentWarningPrimary:Ct.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",kt.colorOrange300),contentWarningIconOnly:Ct.extend("--ft-content-warning-icon-only","Used on warning status icons alone",kt.colorOrange0),contentErrorPrimary:Ct.extend("--ft-content-error-primary","Used on label of error messages on light surface.",kt.colorRed0),contentErrorIconOnly:Ct.extend("--ft-content-error-icon-only","Used on error status icons alone",kt.colorRed0),contentInfoPrimary:Ct.extend("--ft-content-info-primary","Used on label of information messages on light surface.",kt.colorCyan200),contentInfoIconOnly:Ct.extend("--ft-content-info-icon-only","Used on info status icons alone",kt.colorCyan0),contentSuccessIconOnly:Ct.extend("--ft-content-success-icon-only","Used on success status icons alone",kt.colorGreen0),contentSuccessPrimary:Ct.extend("--ft-content-success-primary","Used on label of success messages on light surface.",kt.colorGreen200),contentGlobalPrimary:Ct.extend("--ft-content-global-primary","Used for main content on the page.",kt.colorGray500),contentGlobalSecondary:Ct.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",kt.colorGray200),contentGlobalSubtle:Ct.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",kt.colorGray0),contentGlobalOnColor:Ct.extend("--ft-content-global-on-color","Used for content on a dominant color.",kt.colorWhite),borderActionPrimary:Ct.extend("--ft-border-action-primary","Used as border for primary action components.",kt.colorBrand0),borderActionFocusRing:Ct.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",kt.colorCyan0),borderWarningPrimary:Ct.extend("--ft-border-warning-primary","Used as border for warning components.",kt.colorOrange30),borderSuccessPrimary:Ct.extend("--ft-border-success-primary","Used as border for success components.",kt.colorGreen30),borderErrorPrimary:Ct.extend("--ft-border-error-primary","Used as border for error components.",kt.colorRed30),borderInfoPrimary:Ct.extend("--ft-border-info-primary","Used as border for information components.",kt.colorCyan30),borderGlobalSubtle:Ct.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",kt.colorGray30),borderGlobalPrimary:Ct.extend("--ft-border-global-primary","Used as border for element like input.",kt.colorGray50),borderInputPrimary:Ct.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",kt.colorGray80)},Ut={largeHeight:Ct.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ct.extend("--ft-button-large-horizontal-padding","",kt.spacing4),largeGap:Ct.extend("--ft-button-large-gap","",kt.spacing2),largeBorderRadius:Ct.extend("--ft-button-large-border-radius","",kt.borderRadiusS),largeIconSize:Ct.extend("--ft-button-large-icon-size","",kt.iconSize3),largeBorderWidth:Ct.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ct.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ct.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ct.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ct.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ct.extend("--ft-button-small-horizontal-padding","",kt.spacing3),smallGap:Ct.extend("--ft-button-small-gap","",kt.spacing2),smallBorderRadius:Ct.extend("--ft-button-small-border-radius","",kt.borderRadiusS),smallIconSize:Ct.extend("--ft-button-small-icon-size","",kt.iconSize2),smallBorderWidth:Ct.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ct.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ct.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ct.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ct.extend("--ft-button-primary-background-color","",It.backgroundActionPrimary),primaryColor:Ct.extend("--ft-button-primary-color","",It.contentGlobalOnColor),primaryIconColor:Ct.extend("--ft-button-primary-icon-color","",It.contentGlobalOnColor),primaryStateLayerColor:Ct.extend("--ft-button-primary-state-layer-color","",It.contentGlobalOnColor),primaryStateLayerOpacityHover:Ct.extend("--ft-button-primary-state-layer-opacity-hover","",kt.opacity16),primaryStateLayerOpacityFocus:Ct.extend("--ft-button-primary-state-layer-opacity-focus","",kt.opacity16),primaryStateLayerOpacityActive:Ct.extend("--ft-button-primary-state-layer-opacity-active","",kt.opacity24),primaryComponentOpacityDisabled:Ct.extend("--ft-button-primary-component-opacity-disabled","",kt.opacity40),focusFocusRingColor:Ct.extend("--ft-button-focus-focus-ring-color","",It.borderActionFocusRing),tertiaryBackgroundColor:Ct.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ct.extend("--ft-button-tertiary-color","",It.contentActionPrimary),tertiaryIconColor:Ct.extend("--ft-button-tertiary-icon-color","",It.contentActionPrimary),tertiaryStateLayerColor:Ct.extend("--ft-button-tertiary-state-layer-color","",It.contentActionPrimary),tertiaryStateLayerOpacityHover:Ct.extend("--ft-button-tertiary-state-layer-opacity-hover","",kt.opacity8),tertiaryStateLayerOpacityFocus:Ct.extend("--ft-button-tertiary-state-layer-opacity-focus","",kt.opacity8),tertiaryStateLayerOpacityActive:Ct.extend("--ft-button-tertiary-state-layer-opacity-active","",kt.opacity16),tertiaryComponentOpacityDisabled:Ct.extend("--ft-button-tertiary-component-opacity-disabled","",kt.opacity40),secondaryBackgroundColor:Ct.extend("--ft-button-secondary-background-color","",kt.colorWhite),secondaryColor:Ct.extend("--ft-button-secondary-color","",It.contentActionPrimary),secondaryIconColor:Ct.extend("--ft-button-secondary-icon-color","",It.contentActionPrimary),secondaryStateLayerColor:Ct.extend("--ft-button-secondary-state-layer-color","",It.contentActionPrimary),secondaryStateLayerOpacityHover:Ct.extend("--ft-button-secondary-state-layer-opacity-hover","",kt.opacity8),secondaryStateLayerOpacityFocus:Ct.extend("--ft-button-secondary-state-layer-opacity-focus","",kt.opacity8),secondaryStateLayerOpacityActive:Ct.extend("--ft-button-secondary-state-layer-opacity-active","",kt.opacity16),secondaryComponentOpacityDisabled:Ct.extend("--ft-button-secondary-component-opacity-disabled","",kt.opacity40),secondaryBorderColor:Ct.extend("--ft-button-secondary-border-color","",It.borderActionPrimary),neutralBackgroundColor:Ct.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ct.extend("--ft-button-neutral-icon-color","",It.contentGlobalSecondary),neutralColor:Ct.extend("--ft-button-neutral-color","",It.contentGlobalSecondary),neutralStateLayerColor:Ct.extend("--ft-button-neutral-state-layer-color","",It.contentGlobalSecondary),neutralStateLayerOpacityHover:Ct.extend("--ft-button-neutral-state-layer-opacity-hover","",kt.opacity8),neutralStateLayerOpacityFocus:Ct.extend("--ft-button-neutral-state-layer-opacity-focus","",kt.opacity8),neutralStateLayerOpacityActive:Ct.extend("--ft-button-neutral-state-layer-opacity-active","",kt.opacity16),neutralComponentOpacityDisabled:Ct.extend("--ft-button-neutral-component-opacity-disabled","",kt.opacity40)};Ct.extend("--ft-tabs-top-left-border-radius","",kt.borderRadiusS),Ct.extend("--ft-tabs-top-right-border-radius","",kt.borderRadiusS),Ct.extend("--ft-tabs-label-horizontal-padding","",kt.spacing4),Ct.extend("--ft-tabs-label-vertical-padding","",kt.spacing3),Ct.extend("--ft-tabs-label-gap","",kt.spacing1),Ct.extend("--ft-switch-group-horizontal-padding","",kt.spacing1),Ct.extend("--ft-switch-group-vertical-padding","",kt.spacing1),Ct.extend("--ft-switch-group-gap","",kt.spacing1),Ct.extend("--ft-switch-group-background-color","",It.backgroundGlobalSurface),Ct.extend("--ft-switch-group-border-color","",It.borderGlobalSubtle),Ct.create("--ft-switch-group-border-radius","","SIZE","6px"),Ct.extend("--ft-switch-label-horizontal-padding","",kt.spacing2),Ct.extend("--ft-switch-label-vertical-padding","",kt.spacing1),Ct.extend("--ft-switch-icon-horizontal-padding","",kt.spacing1),Ct.extend("--ft-switch-icon-vertical-padding","",kt.spacing1),Ct.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-switch-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-switch-option-border-radius","",kt.borderRadiusS),Ct.extend("--ft-switch-off-state-layer-opacity-hover","",kt.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-focus","",kt.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-active","",kt.opacity16),Ct.extend("--ft-switch-off-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-switch-off-color","",It.contentGlobalSubtle),Ct.extend("--ft-switch-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-chart-1-light","for area color charts",kt.colorBrand40),Ct.extend("--ft-chart-1-base","for line charts",kt.colorBrand0),Ct.extend("--ft-chart-2-light","for area color charts",kt.colorYellow60),Ct.extend("--ft-chart-2-base","for line charts",kt.colorYellow100),Ct.extend("--ft-chart-3-light","",kt.colorUltramarine40),Ct.extend("--ft-chart-3-base","",kt.colorUltramarine70),Ct.extend("--ft-chart-4-light","",kt.colorCyan50),Ct.extend("--ft-chart-4-base","",kt.colorCyan100),Ct.extend("--ft-chart-5-light","",kt.colorRed40),Ct.extend("--ft-chart-5-base","",kt.colorRed60),Ct.extend("--ft-chart-6-light","",kt.colorGreen40),Ct.extend("--ft-chart-6-base","",kt.colorGreen70),Ct.extend("--ft-chart-7-light","",kt.colorOrange70),Ct.extend("--ft-chart-7-base","",kt.colorOrange100),Ct.extend("--ft-chart-8-light","",kt.colorAvocado70),Ct.extend("--ft-chart-8-base","",kt.colorAvocado200),Ct.extend("--ft-chart-9-light","",kt.colorBrown50),Ct.extend("--ft-chart-9-base","",kt.colorBrown200),Ct.extend("--ft-chart-10-light","",kt.colorGray50),Ct.extend("--ft-chart-10-base","",kt.colorGray80),Ct.extend("--ft-chart-monochrome-10","",kt.colorBrand10),Ct.extend("--ft-chart-monochrome-20","",kt.colorBrand20),Ct.extend("--ft-chart-monochrome-30","",kt.colorBrand40),Ct.extend("--ft-chart-monochrome-40","",kt.colorBrand60),Ct.extend("--ft-chart-monochrome-50","",kt.colorBrand0),Ct.extend("--ft-chart-monochrome-60","",kt.colorBrand200),Ct.extend("--ft-chip-large-horizontal-padding","",kt.spacing4),Ct.extend("--ft-chip-large-vertical-padding","",kt.spacing2),Ct.extend("--ft-chip-large-gap","",kt.spacing1),Ct.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-large-border-radius","",kt.borderRadiusPill),Ct.create("--ft-chip-large-border-width","","SIZE","1px"),Ct.extend("--ft-chip-large-icon-size","",kt.iconSize3),Ct.extend("--ft-chip-medium-horizontal-padding","",kt.spacing3),Ct.extend("--ft-chip-medium-vertical-padding","",kt.spacing1),Ct.extend("--ft-chip-medium-gap","",kt.spacing1),Ct.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-medium-border-radius","",kt.borderRadiusPill),Ct.create("--ft-chip-medium-border-width","","SIZE","1px"),Ct.extend("--ft-chip-medium-icon-size","",kt.iconSize2),Ct.extend("--ft-chip-small-horizontal-padding","",kt.spacing2),Ct.extend("--ft-chip-small-vertical-padding","",kt.spacing05),Ct.extend("--ft-chip-small-gap","",kt.spacing1),Ct.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-small-border-radius","",kt.borderRadiusPill),Ct.create("--ft-chip-small-border-width","","SIZE","1px"),Ct.extend("--ft-chip-small-icon-size","",kt.iconSize1),Ct.extend("--ft-chip-neutral-background-color","",It.backgroundGlobalOnSurface),Ct.extend("--ft-chip-neutral-color","",It.contentGlobalPrimary),Ct.extend("--ft-chip-neutral-border-color","",It.borderGlobalSubtle),Ct.extend("--ft-chip-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-chip-info-color","",It.contentInfoPrimary),Ct.extend("--ft-chip-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-chip-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-chip-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-chip-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-chip-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-chip-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-chip-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-chip-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-chip-error-color","",It.contentErrorPrimary),Ct.extend("--ft-chip-error-border-color","",It.borderErrorPrimary),Ct.create("--ft-notice-border-width","","SIZE","1px"),Ct.extend("--ft-notice-horizontal-padding","",kt.spacing2),Ct.extend("--ft-notice-vertical-padding","",kt.spacing1),Ct.extend("--ft-notice-border-radius","",kt.borderRadiusS),Ct.extend("--ft-notice-gap","",kt.spacing2),Ct.extend("--ft-notice-icon-size","",kt.iconSize3),Ct.extend("--ft-notice-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notice-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notice-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notice-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notice-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notice-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-checkbox-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-checkbox-checked-background-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-color","",It.contentGlobalOnColor),Ct.extend("--ft-checkbox-checked-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-checkbox-checked-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-checkbox-unchecked-border-color","",kt.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-color","",kt.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-checkbox-unchecked-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-checkbox-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-checkbox-gap","",kt.spacing3),Ct.extend("--ft-toggle-off-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-toggle-off-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-toggle-off-background-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-icon-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-on-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-toggle-on-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-toggle-on-background-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-icon-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-toggle-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-toggle-gap","",kt.spacing3),Ct.extend("--ft-radio-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-radio-selected-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-radio-selected-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-radio-unselected-state-layer-color","",kt.colorGray80),Ct.extend("--ft-radio-unselected-state-layer-opacity-hover","",kt.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-focus","",kt.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-active","",kt.opacity24),Ct.extend("--ft-radio-unselected-component-opacity-disabled","",kt.opacity40),Ct.extend("--ft-radio-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-radio-gap","",kt.spacing3),Ct.extend("--ft-notification-icon-size","",kt.iconSize4),Ct.extend("--ft-notification-horizontal-padding","",kt.spacing4),Ct.extend("--ft-notification-vertical-padding","",kt.spacing4),Ct.extend("--ft-notification-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notification-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notification-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notification-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-notification-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-notification-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-notification-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notification-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-notification-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notification-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-notification-error-color","",It.contentErrorPrimary),Ct.extend("--ft-notification-error-border-color","",It.borderErrorPrimary),Ct.extend("--ft-notification-border-radius","",kt.borderRadiusPill),Ct.create("--ft-notification-border-width","","SIZE","1px"),Ct.extend("--ft-notification-gap-leading","",kt.spacing2),Ct.extend("--ft-notification-gap-trailing","",kt.spacing8);const Lt={colorPrimary:Ct.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ct.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ct.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ct.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ct.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ct.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ct.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ct.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ct.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ct.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ct.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ct.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ct.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ct.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ct.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ct.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ct.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ct.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ct.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ct.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ct.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ct.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ct.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ct.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ct.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ct.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ct.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ct.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ct.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ct.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ct.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ct.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ct.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ct.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ct.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ct.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ct.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ct.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ct.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ct.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ct.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ct.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ct.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ct.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ct.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ct.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ct.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ct.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ct.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class At extends St{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 $(i,t.elementStyles),i}}var Tt,Wt=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Dt=Symbol("constructorPrototype"),Ft=Symbol("constructorName"),jt=Symbol("exportpartsDebouncer");class zt extends At{constructor(){super(),this[Tt]=new r(5),this[Ft]=this.constructor.name,this[Dt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ft]&&Object.setPrototypeOf(this,this[Dt])}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[jt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=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,...i).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(", "))}}Tt=jt,Wt([a()],zt.prototype,"exportpartsPrefix",void 0),Wt([g([])],zt.prototype,"exportpartsPrefixes",void 0),Wt([a()],zt.prototype,"customStylesheet",void 0);const Bt=N`
|
|
69
|
+
var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let a=n._$litPart$;if(void 0===a){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new ht(e.insertBefore(Z(),t),t,void 0,null!=i?i:{})}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 rt}};St.finalized=!0,St._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:St});const $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:St}),(null!==(Ot=globalThis.litElementVersions)&&void 0!==Ot?Ot:globalThis.litElementVersions=[]).push("3.3.2");const Nt=t=>"string"==typeof t?S(t):t;class Ct{static create(t,e,i,o){const r=t=>Nt(null!=t?t:o),n=$`var(${Nt(t)}, ${r(o)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>$`var(${Nt(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=$`var(${Nt(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>$`var(${Nt(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Nt(null!=e?e:t.lastResortDefaultValue()),o=$`var(${Nt(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>$`var(${Nt(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function kt(t,e){return Nt(`${t.name}: ${e}`)}const Et={colorWhite:Ct.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ct.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ct.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ct.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ct.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ct.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ct.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ct.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ct.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ct.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ct.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ct.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ct.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ct.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ct.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ct.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ct.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ct.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ct.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ct.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ct.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ct.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ct.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ct.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ct.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ct.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ct.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ct.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ct.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ct.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ct.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ct.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ct.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ct.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ct.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ct.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ct.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ct.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ct.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ct.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ct.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ct.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ct.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ct.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ct.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ct.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ct.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ct.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ct.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ct.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ct.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ct.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ct.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ct.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ct.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ct.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ct.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ct.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ct.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ct.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ct.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ct.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ct.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ct.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ct.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ct.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ct.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ct.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ct.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ct.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ct.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ct.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ct.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ct.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ct.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ct.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ct.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ct.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ct.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ct.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ct.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ct.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ct.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ct.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ct.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ct.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ct.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ct.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ct.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ct.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ct.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ct.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ct.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ct.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ct.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ct.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ct.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ct.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ct.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ct.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ct.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ct.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ct.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ct.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ct.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ct.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ct.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ct.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ct.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ct.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ct.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ct.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ct.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ct.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ct.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ct.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ct.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ct.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ct.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ct.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ct.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ct.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ct.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ct.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ct.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ct.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ct.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ct.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ct.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ct.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ct.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ct.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ct.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ct.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ct.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ct.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ct.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ct.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ct.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ct.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ct.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ct.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ct.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ct.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ct.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ct.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ct.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ct.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ct.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ct.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ct.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ct.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ct.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ct.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ct.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ct.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ct.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ct.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ct.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ct.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ct.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ct.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ct.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ct.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ct.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ct.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ct.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ct.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ct.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ct.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ct.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ct.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ct.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ct.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ct.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ct.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ct.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ct.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ct.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ct.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ct.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ct.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ct.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ct.create("--ft-opacity-80","","NUMBER","0.8")},Rt={display:{fontFamily:Ct.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ct.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ct.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ct.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ct.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ct.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ct.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ct.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ct.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ct.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ct.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ct.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ct.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ct.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ct.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ct.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ct.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ct.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ct.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ct.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ct.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ct.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ct.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ct.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ct.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ct.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ct.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},It={backgroundActionPrimary:Ct.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Et.colorBrand0),backgroundErrorPrimary:Ct.extend("--ft-background-error-primary","Used as background of error components.",Et.colorRed0),backgroundErrorSubtle:Ct.extend("--ft-background-error-subtle","Used as background of subtle error components.",Et.colorRed10),backgroundInfoPrimary:Ct.extend("--ft-background-info-primary","Used as background of information components.",Et.colorCyan200),backgroundInfoSubtle:Ct.extend("--ft-background-info-subtle","Used as background of subtle information components.",Et.colorCyan10),backgroundWarningPrimary:Ct.extend("--ft-background-warning-primary","Used as background of warning components.",Et.colorOrange300),backgroundWarningSubtle:Ct.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Et.colorOrange10),backgroundSuccessPrimary:Ct.extend("--ft-background-success-primary","Used as background of success components.",Et.colorGreen200),backgroundSuccessSubtle:Ct.extend("--ft-background-success-subtle","Used as background of subtle success components.",Et.colorGreen10),backgroundGlobalSurface:Ct.extend("--ft-background-global-surface","Used as app background.",Et.colorWhite),backgroundGlobalOnSurface:Ct.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Et.colorGray10),backgroundGlobalOnSurfaceDark:Ct.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Et.colorGray30),contentActionPrimary:Ct.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Et.colorBrand0),contentWarningPrimary:Ct.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Et.colorOrange300),contentWarningIconOnly:Ct.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Et.colorOrange0),contentErrorPrimary:Ct.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Et.colorRed0),contentErrorIconOnly:Ct.extend("--ft-content-error-icon-only","Used on error status icons alone",Et.colorRed0),contentInfoPrimary:Ct.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Et.colorCyan200),contentInfoIconOnly:Ct.extend("--ft-content-info-icon-only","Used on info status icons alone",Et.colorCyan0),contentSuccessIconOnly:Ct.extend("--ft-content-success-icon-only","Used on success status icons alone",Et.colorGreen0),contentSuccessPrimary:Ct.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Et.colorGreen200),contentGlobalPrimary:Ct.extend("--ft-content-global-primary","Used for main content on the page.",Et.colorGray500),contentGlobalSecondary:Ct.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Et.colorGray200),contentGlobalSubtle:Ct.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Et.colorGray0),contentGlobalOnColor:Ct.extend("--ft-content-global-on-color","Used for content on a dominant color.",Et.colorWhite),borderActionPrimary:Ct.extend("--ft-border-action-primary","Used as border for primary action components.",Et.colorBrand0),borderActionFocusRing:Ct.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Et.colorCyan0),borderWarningPrimary:Ct.extend("--ft-border-warning-primary","Used as border for warning components.",Et.colorOrange30),borderSuccessPrimary:Ct.extend("--ft-border-success-primary","Used as border for success components.",Et.colorGreen30),borderErrorPrimary:Ct.extend("--ft-border-error-primary","Used as border for error components.",Et.colorRed30),borderInfoPrimary:Ct.extend("--ft-border-info-primary","Used as border for information components.",Et.colorCyan30),borderGlobalSubtle:Ct.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Et.colorGray30),borderGlobalPrimary:Ct.extend("--ft-border-global-primary","Used as border for element like input.",Et.colorGray50),borderInputPrimary:Ct.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Et.colorGray80)},Ut={largeHeight:Ct.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ct.extend("--ft-button-large-horizontal-padding","",Et.spacing4),largeGap:Ct.extend("--ft-button-large-gap","",Et.spacing2),largeBorderRadius:Ct.extend("--ft-button-large-border-radius","",Et.borderRadiusS),largeIconSize:Ct.extend("--ft-button-large-icon-size","",Et.iconSize3),largeBorderWidth:Ct.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ct.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ct.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ct.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ct.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ct.extend("--ft-button-small-horizontal-padding","",Et.spacing3),smallGap:Ct.extend("--ft-button-small-gap","",Et.spacing2),smallBorderRadius:Ct.extend("--ft-button-small-border-radius","",Et.borderRadiusS),smallIconSize:Ct.extend("--ft-button-small-icon-size","",Et.iconSize2),smallBorderWidth:Ct.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ct.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ct.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ct.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ct.extend("--ft-button-primary-background-color","",It.backgroundActionPrimary),primaryColor:Ct.extend("--ft-button-primary-color","",It.contentGlobalOnColor),primaryIconColor:Ct.extend("--ft-button-primary-icon-color","",It.contentGlobalOnColor),primaryStateLayerColor:Ct.extend("--ft-button-primary-state-layer-color","",It.contentGlobalOnColor),primaryStateLayerOpacityHover:Ct.extend("--ft-button-primary-state-layer-opacity-hover","",Et.opacity16),primaryStateLayerOpacityFocus:Ct.extend("--ft-button-primary-state-layer-opacity-focus","",Et.opacity16),primaryStateLayerOpacityActive:Ct.extend("--ft-button-primary-state-layer-opacity-active","",Et.opacity24),primaryComponentOpacityDisabled:Ct.extend("--ft-button-primary-component-opacity-disabled","",Et.opacity40),focusFocusRingColor:Ct.extend("--ft-button-focus-focus-ring-color","",It.borderActionFocusRing),tertiaryBackgroundColor:Ct.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ct.extend("--ft-button-tertiary-color","",It.contentActionPrimary),tertiaryIconColor:Ct.extend("--ft-button-tertiary-icon-color","",It.contentActionPrimary),tertiaryStateLayerColor:Ct.extend("--ft-button-tertiary-state-layer-color","",It.contentActionPrimary),tertiaryStateLayerOpacityHover:Ct.extend("--ft-button-tertiary-state-layer-opacity-hover","",Et.opacity8),tertiaryStateLayerOpacityFocus:Ct.extend("--ft-button-tertiary-state-layer-opacity-focus","",Et.opacity8),tertiaryStateLayerOpacityActive:Ct.extend("--ft-button-tertiary-state-layer-opacity-active","",Et.opacity16),tertiaryComponentOpacityDisabled:Ct.extend("--ft-button-tertiary-component-opacity-disabled","",Et.opacity40),secondaryBackgroundColor:Ct.extend("--ft-button-secondary-background-color","",Et.colorWhite),secondaryColor:Ct.extend("--ft-button-secondary-color","",It.contentActionPrimary),secondaryIconColor:Ct.extend("--ft-button-secondary-icon-color","",It.contentActionPrimary),secondaryStateLayerColor:Ct.extend("--ft-button-secondary-state-layer-color","",It.contentActionPrimary),secondaryStateLayerOpacityHover:Ct.extend("--ft-button-secondary-state-layer-opacity-hover","",Et.opacity8),secondaryStateLayerOpacityFocus:Ct.extend("--ft-button-secondary-state-layer-opacity-focus","",Et.opacity8),secondaryStateLayerOpacityActive:Ct.extend("--ft-button-secondary-state-layer-opacity-active","",Et.opacity16),secondaryComponentOpacityDisabled:Ct.extend("--ft-button-secondary-component-opacity-disabled","",Et.opacity40),secondaryBorderColor:Ct.extend("--ft-button-secondary-border-color","",It.borderActionPrimary),neutralBackgroundColor:Ct.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ct.extend("--ft-button-neutral-icon-color","",It.contentGlobalSecondary),neutralColor:Ct.extend("--ft-button-neutral-color","",It.contentGlobalSecondary),neutralStateLayerColor:Ct.extend("--ft-button-neutral-state-layer-color","",It.contentGlobalSecondary),neutralStateLayerOpacityHover:Ct.extend("--ft-button-neutral-state-layer-opacity-hover","",Et.opacity8),neutralStateLayerOpacityFocus:Ct.extend("--ft-button-neutral-state-layer-opacity-focus","",Et.opacity8),neutralStateLayerOpacityActive:Ct.extend("--ft-button-neutral-state-layer-opacity-active","",Et.opacity16),neutralComponentOpacityDisabled:Ct.extend("--ft-button-neutral-component-opacity-disabled","",Et.opacity40)};Ct.extend("--ft-tabs-top-left-border-radius","",Et.borderRadiusS),Ct.extend("--ft-tabs-top-right-border-radius","",Et.borderRadiusS),Ct.extend("--ft-tabs-label-horizontal-padding","",Et.spacing4),Ct.extend("--ft-tabs-label-vertical-padding","",Et.spacing3),Ct.extend("--ft-tabs-label-gap","",Et.spacing1),Ct.extend("--ft-switch-group-horizontal-padding","",Et.spacing1),Ct.extend("--ft-switch-group-vertical-padding","",Et.spacing1),Ct.extend("--ft-switch-group-gap","",Et.spacing1),Ct.extend("--ft-switch-group-background-color","",It.backgroundGlobalSurface),Ct.extend("--ft-switch-group-border-color","",It.borderGlobalSubtle),Ct.create("--ft-switch-group-border-radius","","SIZE","6px"),Ct.extend("--ft-switch-label-horizontal-padding","",Et.spacing2),Ct.extend("--ft-switch-label-vertical-padding","",Et.spacing1),Ct.extend("--ft-switch-icon-horizontal-padding","",Et.spacing1),Ct.extend("--ft-switch-icon-vertical-padding","",Et.spacing1),Ct.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-switch-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-switch-option-border-radius","",Et.borderRadiusS),Ct.extend("--ft-switch-off-state-layer-opacity-hover","",Et.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-focus","",Et.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-active","",Et.opacity16),Ct.extend("--ft-switch-off-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-switch-off-color","",It.contentGlobalSubtle),Ct.extend("--ft-switch-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-chart-1-light","for area color charts",Et.colorBrand40),Ct.extend("--ft-chart-1-base","for line charts",Et.colorBrand0),Ct.extend("--ft-chart-2-light","for area color charts",Et.colorYellow60),Ct.extend("--ft-chart-2-base","for line charts",Et.colorYellow100),Ct.extend("--ft-chart-3-light","",Et.colorUltramarine40),Ct.extend("--ft-chart-3-base","",Et.colorUltramarine70),Ct.extend("--ft-chart-4-light","",Et.colorCyan50),Ct.extend("--ft-chart-4-base","",Et.colorCyan100),Ct.extend("--ft-chart-5-light","",Et.colorRed40),Ct.extend("--ft-chart-5-base","",Et.colorRed60),Ct.extend("--ft-chart-6-light","",Et.colorGreen40),Ct.extend("--ft-chart-6-base","",Et.colorGreen70),Ct.extend("--ft-chart-7-light","",Et.colorOrange70),Ct.extend("--ft-chart-7-base","",Et.colorOrange100),Ct.extend("--ft-chart-8-light","",Et.colorAvocado70),Ct.extend("--ft-chart-8-base","",Et.colorAvocado200),Ct.extend("--ft-chart-9-light","",Et.colorBrown50),Ct.extend("--ft-chart-9-base","",Et.colorBrown200),Ct.extend("--ft-chart-10-light","",Et.colorGray50),Ct.extend("--ft-chart-10-base","",Et.colorGray80),Ct.extend("--ft-chart-monochrome-10","",Et.colorBrand10),Ct.extend("--ft-chart-monochrome-20","",Et.colorBrand20),Ct.extend("--ft-chart-monochrome-30","",Et.colorBrand40),Ct.extend("--ft-chart-monochrome-40","",Et.colorBrand60),Ct.extend("--ft-chart-monochrome-50","",Et.colorBrand0),Ct.extend("--ft-chart-monochrome-60","",Et.colorBrand200),Ct.extend("--ft-chip-large-horizontal-padding","",Et.spacing4),Ct.extend("--ft-chip-large-vertical-padding","",Et.spacing2),Ct.extend("--ft-chip-large-gap","",Et.spacing1),Ct.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-large-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-large-border-width","","SIZE","1px"),Ct.extend("--ft-chip-large-icon-size","",Et.iconSize3),Ct.extend("--ft-chip-medium-horizontal-padding","",Et.spacing3),Ct.extend("--ft-chip-medium-vertical-padding","",Et.spacing1),Ct.extend("--ft-chip-medium-gap","",Et.spacing1),Ct.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-medium-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-medium-border-width","","SIZE","1px"),Ct.extend("--ft-chip-medium-icon-size","",Et.iconSize2),Ct.extend("--ft-chip-small-horizontal-padding","",Et.spacing2),Ct.extend("--ft-chip-small-vertical-padding","",Et.spacing05),Ct.extend("--ft-chip-small-gap","",Et.spacing1),Ct.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-small-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-small-border-width","","SIZE","1px"),Ct.extend("--ft-chip-small-icon-size","",Et.iconSize1),Ct.extend("--ft-chip-neutral-background-color","",It.backgroundGlobalOnSurface),Ct.extend("--ft-chip-neutral-color","",It.contentGlobalPrimary),Ct.extend("--ft-chip-neutral-border-color","",It.borderGlobalSubtle),Ct.extend("--ft-chip-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-chip-info-color","",It.contentInfoPrimary),Ct.extend("--ft-chip-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-chip-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-chip-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-chip-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-chip-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-chip-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-chip-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-chip-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-chip-error-color","",It.contentErrorPrimary),Ct.extend("--ft-chip-error-border-color","",It.borderErrorPrimary),Ct.create("--ft-notice-border-width","","SIZE","1px"),Ct.extend("--ft-notice-horizontal-padding","",Et.spacing2),Ct.extend("--ft-notice-vertical-padding","",Et.spacing1),Ct.extend("--ft-notice-border-radius","",Et.borderRadiusS),Ct.extend("--ft-notice-gap","",Et.spacing2),Ct.extend("--ft-notice-icon-size","",Et.iconSize3),Ct.extend("--ft-notice-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notice-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notice-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notice-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notice-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notice-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-checkbox-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-checkbox-checked-background-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-color","",It.contentGlobalOnColor),Ct.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-checkbox-checked-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-checkbox-unchecked-border-color","",Et.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-color","",Et.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-checkbox-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-checkbox-gap","",Et.spacing3),Ct.extend("--ft-toggle-off-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-toggle-off-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-toggle-off-background-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-icon-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-on-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-toggle-on-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-toggle-on-background-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-icon-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-toggle-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-toggle-gap","",Et.spacing3),Ct.extend("--ft-radio-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-radio-selected-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-radio-selected-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-radio-unselected-state-layer-color","",Et.colorGray80),Ct.extend("--ft-radio-unselected-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-radio-unselected-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-radio-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-radio-gap","",Et.spacing3),Ct.extend("--ft-notification-icon-size","",Et.iconSize4),Ct.extend("--ft-notification-horizontal-padding","",Et.spacing4),Ct.extend("--ft-notification-vertical-padding","",Et.spacing4),Ct.extend("--ft-notification-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notification-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notification-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notification-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-notification-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-notification-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-notification-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notification-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-notification-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notification-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-notification-error-color","",It.contentErrorPrimary),Ct.extend("--ft-notification-error-border-color","",It.borderErrorPrimary),Ct.extend("--ft-notification-border-radius","",Et.borderRadiusPill),Ct.create("--ft-notification-border-width","","SIZE","1px"),Ct.extend("--ft-notification-gap-leading","",Et.spacing2),Ct.extend("--ft-notification-gap-trailing","",Et.spacing8);const Lt={colorPrimary:Ct.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ct.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ct.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ct.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ct.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ct.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ct.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ct.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ct.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ct.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ct.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ct.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ct.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ct.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ct.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ct.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ct.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ct.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ct.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ct.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ct.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ct.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ct.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ct.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ct.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ct.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ct.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ct.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ct.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ct.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ct.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ct.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ct.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ct.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ct.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ct.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ct.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ct.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ct.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ct.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ct.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ct.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ct.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ct.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ct.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ct.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ct.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ct.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ct.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class At extends St{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 N(i,t.elementStyles),i}}var Tt,Wt=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Dt=Symbol("constructorPrototype"),Ft=Symbol("constructorName"),jt=Symbol("exportpartsDebouncer");class zt extends At{constructor(){super(),this[Tt]=new r(5),this[Ft]=this.constructor.name,this[Dt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ft]&&Object.setPrototypeOf(this,this[Dt])}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[jt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=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,...i).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(", "))}}Tt=jt,Wt([a()],zt.prototype,"exportpartsPrefix",void 0),Wt([g([])],zt.prototype,"exportpartsPrefixes",void 0),Wt([a()],zt.prototype,"customStylesheet",void 0);const Bt=$`
|
|
70
70
|
.ft-no-text-select {
|
|
71
71
|
-webkit-touch-callout: none;
|
|
72
72
|
-webkit-user-select: none;
|
|
@@ -75,7 +75,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
75
75
|
-ms-user-select: none;
|
|
76
76
|
user-select: none;
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
`;$`
|
|
79
79
|
.ft-word-wrap {
|
|
80
80
|
white-space: normal;
|
|
81
81
|
word-wrap: break-word;
|
|
@@ -87,7 +87,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
87
87
|
-webkit-hyphens: auto;
|
|
88
88
|
hyphens: auto
|
|
89
89
|
}
|
|
90
|
-
`;const
|
|
90
|
+
`;const Mt=$`
|
|
91
91
|
.ft-safari-ellipsis-fix {
|
|
92
92
|
margin-right: 0;
|
|
93
93
|
|
|
@@ -98,7 +98,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class Mt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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 Kt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Zt,Ht,Gt;const Vt=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores");class Xt extends zt{constructor(){super(...arguments),this[Zt]=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 i;e=null!==(i=null!=e?e:Kt(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[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 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[qt].has(t.store):this[qt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[qt].set(t,e.subscribe((()=>this.updateFromStores()))),Kt(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 o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Vt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),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,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qt(t){return!!t&&!!t[je]}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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===ze}(t)||Array.isArray(t)||!!t[Fe]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Fe])||ae(t)||se(t))}function ee(t,e,i){void 0===i&&(i=!1),0===ie(t)?(i?Object.keys:Be)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ie(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ae(t)?2:se(t)?3:0}function oe(t,e){return 2===ie(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function re(t,e,i){var o=ie(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}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 Te&&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=Pe(t);delete e[je];for(var i=Be(e),o=0;o<i.length;o++){var r=i[o],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),he(t)||Qt(t)||!te(t)||(ie(t)>1&&(t.set=t.add=t.clear=t.delete=de),Object.freeze(t),e&&ee(t,(function(t,e){return fe(e,!0)}),!0)),t}function de(){Jt(2)}function he(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Me[t];return e||Jt(18,t),e}function pe(){return Le}function ye(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function be(t){ge(t),t.p.forEach(me),t.p=null}function ge(t){t===Le&&(Le=t.l)}function ve(t){return Le={p:[],l:Le,h:t,m:!0,_:0}}function me(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function xe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ue("ES5").S(e,t,o),o?(i[je].P&&(be(e),Jt(4)),te(t)&&(t=we(e,t),e.l||Se(e,t)),e.u&&ue("Patches").M(i[je].t,t,e.u,e.s)):t=we(e,i,[]),be(e),e.u&&e.v(e.u,e.s),t!==De?t:void 0}function we(t,e,i){if(he(e))return e;var o=e[je];if(!o)return ee(e,(function(r,n){return Oe(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Se(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ce(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ee(n,(function(e,n){return Oe(t,o,r,e,n,i,a)})),Se(t,r,!1),i&&t.u&&ue("Patches").N(o,i,t.u,t.s)}return o.o}function Oe(t,e,i,o,r,n,a){if(Qt(r)){var s=we(t,r,n&&e&&3!==e.i&&!oe(e.R,o)?n.concat(o):void 0);if(re(i,o,s),!Qt(s))return;t.m=!1}else a&&i.add(r);if(te(r)&&!he(r)){if(!t.h.D&&t._<1)return;we(t,r),e&&e.A.l||Se(t,r)}}function Se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&fe(e,i)}function Ne(t,e){var i=t[je];return(i?le(i):t)[e]}function $e(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function 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,i){var o=ae(e)?ue("MapSet").F(e,i):se(e)?ue("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:pe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ke;i&&(r=[o],n=Ze);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):ue("ES5").J(e,i);return(i?i.A:pe()).p.push(o),o}function Re(t){return Qt(t)||Jt(22,t),function t(e){if(!te(e))return e;var i,o=e[je],r=ie(e);if(o){if(!o.P&&(o.i<4||!ue("ES5").K(o)))return o.t;o.I=!0,i=Ie(e,r),o.I=!1}else i=Ie(e,r);return ee(i,(function(e,r){o&&function(t,e){return 2===ie(t)?t.get(e):t[e]}(o.t,e)===r||re(i,e,t(r))})),3===r?new Set(i):i}(t)}function Ie(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ce(t)}Zt=qt,Ht=Yt,Gt=Vt;var Ue,Le,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ae="undefined"!=typeof Map,Te="undefined"!=typeof Set,We="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,De=_e?Symbol.for("immer-nothing"):((Ue={})["immer-nothing"]=!0,Ue),Fe=_e?Symbol.for("immer-draftable"):"__$immer_draftable",je=_e?Symbol.for("immer-state"):"__$immer_state",ze=""+Object.prototype.constructor,Be="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 Be(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Me={},Ke={get:function(t,e){if(e===je)return t;var i=le(t);if(!oe(i,e))return function(t,e,i){var o,r=$e(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!te(o)?o:o===Ne(t.t,e)?(Ee(t),t.o[e]=ke(t.A.h,o,t)):o},has:function(t,e){return e in le(t)},ownKeys:function(t){return Reflect.ownKeys(le(t))},set:function(t,e,i){var o=$e(le(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ne(le(t),e),n=null==r?void 0:r[je];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ne(i,r)&&(void 0!==i||oe(t.t,e)))return!0;Ee(t),Ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==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 i=le(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Jt(12)}},Ze={};ee(Ke,(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 Ke.set.call(this,t[0],e,i,t[0])};var He=function(){function t(t){var e=this;this.O=We,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&Jt(6),void 0!==o&&"function"!=typeof o&&Jt(7),te(t)){var s=ve(e),l=ke(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?be(s):ge(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ye(s,o),xe(t,s)}),(function(t){throw be(s),t})):(ye(s,o),xe(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===De&&(a=void 0),e.D&&fe(a,!0),o){var f=[],d=[];ue("Patches").M(t,a,f,d),o(f,d)}return a}Jt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,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),i=ke(this,t,void 0);return i[je].C=!0,ge(e),i},e.finishDraft=function(t,e){var i=(t&&t[je]).A;return ye(i,e),xe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!We&&Jt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=ue("Patches").$;return Qt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ge=new He,Ve=Ge.produce;function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Ye(t){var e=function(t,e){if("object"!==qe(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==qe(o))return o;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,i){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(i),!0).forEach((function(e){Xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ti(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 ei="function"==typeof Symbol&&Symbol.observable||"@@observable",ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},oi={INIT:"@@redux/INIT"+ii(),REPLACE:"@@redux/REPLACE"+ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ii()}};function ri(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ti(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ti(1));return i(ri)(t,e)}if("function"!=typeof t)throw new Error(ti(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(ti(3));return n}function d(t){if("function"!=typeof t)throw new Error(ti(4));if(l)throw new Error(ti(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ti(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=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(ti(7));if(void 0===t.type)throw new Error(ti(8));if(l)throw new Error(ti(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:oi.INIT}),(o={dispatch:h,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ti(10));r=t,h({type:oi.REPLACE})}})[ei]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ti(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[ei]=function(){return this},t},o}function ni(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:oi.INIT}))throw new Error(ti(12));if(void 0===i(void 0,{type:oi.PROBE_UNKNOWN_ACTION()}))throw new Error(ti(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],d=c(f,e);if(void 0===d)throw e&&e.type,new Error(ti(14));r[l]=d,o=o||d!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function ai(){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 si(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(ti(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ai.apply(void 0,n)(i.dispatch),Qe(Qe({},i),{},{dispatch:o})}}}function li(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var ci=li();ci.withExtraArgument=li;var fi,di=ci,hi=(fi=function(t,e){return fi=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])},fi(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}fi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ui=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=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++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},pi=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},yi=Object.defineProperty,bi=Object.defineProperties,gi=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,mi=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,wi=function(t,e,i){return e in t?yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Oi=function(t,e){for(var i in e||(e={}))mi.call(e,i)&&wi(t,i,e[i]);if(vi)for(var o=0,r=vi(e);o<r.length;o++){i=r[o];xi.call(e,i)&&wi(t,i,e[i])}return t},Si=function(t,e){return bi(t,gi(e))},Ni="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ai:ai.apply(null,arguments)};var $i=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),Ci=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);function Ei(t){return te(t)?Ve(t,(function(){})):t}function ki(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new $i;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(di.withExtraArgument(i.extraArgument)):o.push(di));return o}(t)}}function Ri(t){var e,i=ki(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,d=void 0===f?void 0:f,h=o.enhancers,u=void 0===h?void 0:h;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=ni(n)}var p=s;"function"==typeof p&&(p=p(i));var y=si.apply(void 0,p),b=ai;c&&(b=Ni(Oi({trace:!1},"object"==typeof c&&c)));var g=new Ci(y),v=g;return Array.isArray(u)?v=pi([y],u):"function"==typeof u&&(v=u(g)),ri(e,d,b.apply(void 0,v))}function Ii(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Oi(Oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Ui(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Li(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Ei(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ui(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Oi(Oi({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Ui(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ei(t())};else{var c=Ei(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=pi([a[e.type]],s.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 o;if(Qt(t))return void 0===(o=i(t,e))?t:o;if(te(t))return Ve(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Ii(c,o):Ii(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ai=function(t,e){this.payload=t,this.meta=e},Ti=function(t,e){this.payload=t,this.meta=e},Wi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Di(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Ii(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Si(Oi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Ii(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Si(Oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ii(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Wi)(t||"Rejected"),meta:Si(Oi({},n||{}),{arg:o,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,d=(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 a;function u(t){f=t,h.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,b,g,v;return ui(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(a=null==i?void 0:i.condition)?void 0:a.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 g=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(d,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:d,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:d,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Ai(t,e)},fulfillWithValue:function(t,e){return new Ti(t,e)}})).then((function(e){if(e instanceof Ai)throw e;return e instanceof Ti?o(e.payload,d,t,e.meta):o(e,d,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Ai?n(null,d,t,v.payload,v.meta):n(v,d,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=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(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:d,arg:t,unwrap:function(){return p.then(Di)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Fi="listenerMiddleware";Ii(Fi+"/add"),Ii(Fi+"/removeAll"),Ii(Fi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[je];return Ke.get(e,t)},set:function(e){var i=this[je];Ke.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][je];if(!r.P)switch(r.i){case 5:o(r)&&Ce(r);break;case 4:i(r)&&Ce(r)}}}function i(t){for(var e=t.t,i=t.k,o=Be(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==je){var a=e[n];if(void 0===a&&!oe(e,n))return!0;var s=i[n],l=s&&s[je];if(l?l.t!==a:!ne(s,a))return!0}}var c=!!e[je];return o.length!==Be(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Me[t]||(Me[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Pe(i);delete n[je];for(var a=Be(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:pe(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,je,{value:n,writable:!0}),r},S:function(t,i,r){r?Qt(i)&&i[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[je];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ee(n,(function(e){e!==je&&(void 0!==r[e]||oe(r,e)?a[e]||t(n[e]):(a[e]=!0,Ce(i)))})),ee(r,(function(t){void 0!==n[t]||oe(n,t)||(a[t]=!1,Ce(i))}));else if(5===s){if(o(i)&&(Ce(i),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),d=0;d<f;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ji{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Kt(r))return r;if(null==o)return;const n=Li({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Ri({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new ji(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,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]: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 zi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!y(t,e),attribute:!1,...e};a(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Bi=Symbol("elementInternals");function Pi(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...t){super(t),this[Bi]=this.attachInternals(),this[Bi].role=e}setFormValue(t){this[Bi].setFormValue(t)}}}var Mi,Ki,Zi;const Hi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Zi=null===(Ki=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Ki?void 0:Ki.toString())&&void 0!==Zi?Zi:"");var Gi;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Gi||(Gi={}));var Vi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class qi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Yi=Symbol("registerInterval");class Xi extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Yi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Yi]):this.dispatchEvent(new qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yi,Vi([s()],i.prototype,"stateManager",void 0),i}(Xt)){}const Ji=Ct.extend("--ft-ripple-color","",Lt.colorContent),Qi={color:Ji,backgroundColor:Ct.extend("--ft-ripple-background-color","",Ji),opacityContentOnSurfacePressed:Ct.external(Lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ct.external(Lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ct.external(Lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ct.external(Lt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ct.create("--ft-ripple-border-radius","","SIZE","0px")},to=Ct.extend("--ft-ripple-color","",Lt.colorPrimary),eo=to,io=Ct.extend("--ft-ripple-background-color","",to),oo=Ct.extend("--ft-ripple-color","",Lt.colorSecondary),ro=oo,no=Ct.extend("--ft-ripple-background-color","",oo),ao=N`
|
|
101
|
+
`;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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 Kt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Zt,Ht,Gt;const Vt=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores");class Xt extends zt{constructor(){super(...arguments),this[Zt]=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 i;e=null!==(i=null!=e?e:Kt(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[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 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[qt].has(t.store):this[qt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[qt].set(t,e.subscribe((()=>this.updateFromStores()))),Kt(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 o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Vt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),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,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qt(t){return!!t&&!!t[je]}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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===ze}(t)||Array.isArray(t)||!!t[Fe]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Fe])||ae(t)||se(t))}function ee(t,e,i){void 0===i&&(i=!1),0===ie(t)?(i?Object.keys:Be)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ie(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ae(t)?2:se(t)?3:0}function oe(t,e){return 2===ie(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function re(t,e,i){var o=ie(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}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 Te&&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[je];for(var i=Be(e),o=0;o<i.length;o++){var r=i[o],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),he(t)||Qt(t)||!te(t)||(ie(t)>1&&(t.set=t.add=t.clear=t.delete=de),Object.freeze(t),e&&ee(t,(function(t,e){return fe(e,!0)}),!0)),t}function de(){Jt(2)}function he(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Pe[t];return e||Jt(18,t),e}function pe(){return Le}function ye(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function be(t){ge(t),t.p.forEach(me),t.p=null}function ge(t){t===Le&&(Le=t.l)}function ve(t){return Le={p:[],l:Le,h:t,m:!0,_:0}}function me(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function xe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ue("ES5").S(e,t,o),o?(i[je].P&&(be(e),Jt(4)),te(t)&&(t=we(e,t),e.l||Se(e,t)),e.u&&ue("Patches").M(i[je].t,t,e.u,e.s)):t=we(e,i,[]),be(e),e.u&&e.v(e.u,e.s),t!==De?t:void 0}function we(t,e,i){if(he(e))return e;var o=e[je];if(!o)return ee(e,(function(r,n){return Oe(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Se(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ce(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ee(n,(function(e,n){return Oe(t,o,r,e,n,i,a)})),Se(t,r,!1),i&&t.u&&ue("Patches").N(o,i,t.u,t.s)}return o.o}function Oe(t,e,i,o,r,n,a){if(Qt(r)){var s=we(t,r,n&&e&&3!==e.i&&!oe(e.R,o)?n.concat(o):void 0);if(re(i,o,s),!Qt(s))return;t.m=!1}else a&&i.add(r);if(te(r)&&!he(r)){if(!t.h.D&&t._<1)return;we(t,r),e&&e.A.l||Se(t,r)}}function Se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&fe(e,i)}function $e(t,e){var i=t[je];return(i?le(i):t)[e]}function Ne(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ce(t){t.P||(t.P=!0,t.l&&Ce(t.l))}function ke(t){t.o||(t.o=ce(t.t))}function Ee(t,e,i){var o=ae(e)?ue("MapSet").F(e,i):se(e)?ue("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:pe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ke;i&&(r=[o],n=Ze);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):ue("ES5").J(e,i);return(i?i.A:pe()).p.push(o),o}function Re(t){return Qt(t)||Jt(22,t),function t(e){if(!te(e))return e;var i,o=e[je],r=ie(e);if(o){if(!o.P&&(o.i<4||!ue("ES5").K(o)))return o.t;o.I=!0,i=Ie(e,r),o.I=!1}else i=Ie(e,r);return ee(i,(function(e,r){o&&function(t,e){return 2===ie(t)?t.get(e):t[e]}(o.t,e)===r||re(i,e,t(r))})),3===r?new Set(i):i}(t)}function Ie(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ce(t)}Zt=qt,Ht=Yt,Gt=Vt;var Ue,Le,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ae="undefined"!=typeof Map,Te="undefined"!=typeof Set,We="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,De=_e?Symbol.for("immer-nothing"):((Ue={})["immer-nothing"]=!0,Ue),Fe=_e?Symbol.for("immer-draftable"):"__$immer_draftable",je=_e?Symbol.for("immer-state"):"__$immer_state",ze=""+Object.prototype.constructor,Be="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 Be(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Pe={},Ke={get:function(t,e){if(e===je)return t;var i=le(t);if(!oe(i,e))return function(t,e,i){var o,r=Ne(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!te(o)?o:o===$e(t.t,e)?(ke(t),t.o[e]=Ee(t.A.h,o,t)):o},has:function(t,e){return e in le(t)},ownKeys:function(t){return Reflect.ownKeys(le(t))},set:function(t,e,i){var o=Ne(le(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=$e(le(t),e),n=null==r?void 0:r[je];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ne(i,r)&&(void 0!==i||oe(t.t,e)))return!0;ke(t),Ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==$e(t.t,e)||e in t.t?(t.R[e]=!1,ke(t),Ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=le(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Jt(12)}},Ze={};ee(Ke,(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 Ke.set.call(this,t[0],e,i,t[0])};var He=function(){function t(t){var e=this;this.O=We,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&Jt(6),void 0!==o&&"function"!=typeof o&&Jt(7),te(t)){var s=ve(e),l=Ee(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?be(s):ge(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ye(s,o),xe(t,s)}),(function(t){throw be(s),t})):(ye(s,o),xe(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===De&&(a=void 0),e.D&&fe(a,!0),o){var f=[],d=[];ue("Patches").M(t,a,f,d),o(f,d)}return a}Jt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,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),i=Ee(this,t,void 0);return i[je].C=!0,ge(e),i},e.finishDraft=function(t,e){var i=(t&&t[je]).A;return ye(i,e),xe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!We&&Jt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=ue("Patches").$;return Qt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ge=new He,Ve=Ge.produce;function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Ye(t){var e=function(t,e){if("object"!==qe(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==qe(o))return o;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,i){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(i),!0).forEach((function(e){Xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ti(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 ei="function"==typeof Symbol&&Symbol.observable||"@@observable",ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},oi={INIT:"@@redux/INIT"+ii(),REPLACE:"@@redux/REPLACE"+ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ii()}};function ri(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ti(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ti(1));return i(ri)(t,e)}if("function"!=typeof t)throw new Error(ti(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(ti(3));return n}function d(t){if("function"!=typeof t)throw new Error(ti(4));if(l)throw new Error(ti(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ti(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=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(ti(7));if(void 0===t.type)throw new Error(ti(8));if(l)throw new Error(ti(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:oi.INIT}),(o={dispatch:h,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ti(10));r=t,h({type:oi.REPLACE})}})[ei]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ti(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[ei]=function(){return this},t},o}function ni(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:oi.INIT}))throw new Error(ti(12));if(void 0===i(void 0,{type:oi.PROBE_UNKNOWN_ACTION()}))throw new Error(ti(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],d=c(f,e);if(void 0===d)throw e&&e.type,new Error(ti(14));r[l]=d,o=o||d!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function ai(){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 si(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(ti(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ai.apply(void 0,n)(i.dispatch),Qe(Qe({},i),{},{dispatch:o})}}}function li(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var ci=li();ci.withExtraArgument=li;var fi,di=ci,hi=(fi=function(t,e){return fi=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])},fi(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}fi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ui=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=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++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},pi=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},yi=Object.defineProperty,bi=Object.defineProperties,gi=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,mi=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,wi=function(t,e,i){return e in t?yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Oi=function(t,e){for(var i in e||(e={}))mi.call(e,i)&&wi(t,i,e[i]);if(vi)for(var o=0,r=vi(e);o<r.length;o++){i=r[o];xi.call(e,i)&&wi(t,i,e[i])}return t},Si=function(t,e){return bi(t,gi(e))},$i="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ai:ai.apply(null,arguments)};var Ni=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),Ci=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);function ki(t){return te(t)?Ve(t,(function(){})):t}function Ei(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Ni;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(di.withExtraArgument(i.extraArgument)):o.push(di));return o}(t)}}function Ri(t){var e,i=Ei(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,d=void 0===f?void 0:f,h=o.enhancers,u=void 0===h?void 0:h;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=ni(n)}var p=s;"function"==typeof p&&(p=p(i));var y=si.apply(void 0,p),b=ai;c&&(b=$i(Oi({trace:!1},"object"==typeof c&&c)));var g=new Ci(y),v=g;return Array.isArray(u)?v=pi([y],u):"function"==typeof u&&(v=u(g)),ri(e,d,b.apply(void 0,v))}function Ii(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Oi(Oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Ui(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Li(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:ki(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ui(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Oi(Oi({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Ui(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return ki(t())};else{var c=ki(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=pi([a[e.type]],s.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 o;if(Qt(t))return void 0===(o=i(t,e))?t:o;if(te(t))return Ve(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Ii(c,o):Ii(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ai=function(t,e){this.payload=t,this.meta=e},Ti=function(t,e){this.payload=t,this.meta=e},Wi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Di(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Ii(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Si(Oi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Ii(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Si(Oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ii(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Wi)(t||"Rejected"),meta:Si(Oi({},n||{}),{arg:o,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,d=(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 a;function u(t){f=t,h.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,b,g,v;return ui(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(a=null==i?void 0:i.condition)?void 0:a.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 g=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(d,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:d,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:d,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Ai(t,e)},fulfillWithValue:function(t,e){return new Ti(t,e)}})).then((function(e){if(e instanceof Ai)throw e;return e instanceof Ti?o(e.payload,d,t,e.meta):o(e,d,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Ai?n(null,d,t,v.payload,v.meta):n(v,d,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=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(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:d,arg:t,unwrap:function(){return p.then(Di)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Fi="listenerMiddleware";Ii(Fi+"/add"),Ii(Fi+"/removeAll"),Ii(Fi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[je];return Ke.get(e,t)},set:function(e){var i=this[je];Ke.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][je];if(!r.P)switch(r.i){case 5:o(r)&&Ce(r);break;case 4:i(r)&&Ce(r)}}}function i(t){for(var e=t.t,i=t.k,o=Be(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==je){var a=e[n];if(void 0===a&&!oe(e,n))return!0;var s=i[n],l=s&&s[je];if(l?l.t!==a:!ne(s,a))return!0}}var c=!!e[je];return o.length!==Be(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Pe[t]||(Pe[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Me(i);delete n[je];for(var a=Be(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:pe(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,je,{value:n,writable:!0}),r},S:function(t,i,r){r?Qt(i)&&i[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[je];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ee(n,(function(e){e!==je&&(void 0!==r[e]||oe(r,e)?a[e]||t(n[e]):(a[e]=!0,Ce(i)))})),ee(r,(function(t){void 0!==n[t]||oe(n,t)||(a[t]=!1,Ce(i))}));else if(5===s){if(o(i)&&(Ce(i),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),d=0;d<f;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ji{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Kt(r))return r;if(null==o)return;const n=Li({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Ri({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new ji(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,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]: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 zi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!y(t,e),attribute:!1,...e};a(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Bi=Symbol("elementInternals");function Mi(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...t){super(t),this[Bi]=this.attachInternals(),this[Bi].role=e}setFormValue(t){this[Bi].setFormValue(t)}}}var Pi,Ki,Zi;const Hi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Zi=null===(Ki=null===(Pi=window.safari)||void 0===Pi?void 0:Pi.pushNotification)||void 0===Ki?void 0:Ki.toString())&&void 0!==Zi?Zi:"");var Gi;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Gi||(Gi={}));var Vi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class qi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Yi=Symbol("registerInterval");class Xi extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Yi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Yi]):this.dispatchEvent(new qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yi,Vi([s()],i.prototype,"stateManager",void 0),i}(Xt)){}const Ji=Ct.extend("--ft-ripple-color","",Lt.colorContent),Qi={color:Ji,backgroundColor:Ct.extend("--ft-ripple-background-color","",Ji),opacityContentOnSurfacePressed:Ct.external(Lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ct.external(Lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ct.external(Lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ct.external(Lt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ct.create("--ft-ripple-border-radius","","SIZE","0px")},to=Ct.extend("--ft-ripple-color","",Lt.colorPrimary),eo=to,io=Ct.extend("--ft-ripple-background-color","",to),oo=Ct.extend("--ft-ripple-color","",Lt.colorSecondary),ro=oo,no=Ct.extend("--ft-ripple-background-color","",oo),ao=$`
|
|
102
102
|
:host {
|
|
103
103
|
display: contents;
|
|
104
104
|
}
|
|
@@ -210,7 +210,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
210
210
|
opacity: ${Qi.opacityContentOnSurfacePressed};
|
|
211
211
|
transform: translate(-50%, -50%) scale(1);
|
|
212
212
|
}
|
|
213
|
-
`;const so=Ct.extend("--ft-typography-font-family","",Lt.titleFont),lo=Ct.extend("--ft-typography-font-family","",Lt.contentFont),co={fontFamily:lo,fontSize:Ct.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ct.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ct.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ct.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ct.create("--ft-typography-text-transform","","UNKNOWN","inherit")},fo={fontFamily:Ct.extend("--ft-typography-title-font-family","",so),fontSize:Ct.extend("--ft-typography-title-font-size","",co.fontSize,"20px"),fontWeight:Ct.extend("--ft-typography-title-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-letter-spacing","",co.letterSpacing,"0.15px"),lineHeight:Ct.extend("--ft-typography-title-line-height","",co.lineHeight,"1.2"),textTransform:Ct.extend("--ft-typography-title-text-transform","",co.textTransform,"inherit")},ho={fontFamily:Ct.extend("--ft-typography-title-dense-font-family","",so),fontSize:Ct.extend("--ft-typography-title-dense-font-size","",co.fontSize,"14px"),fontWeight:Ct.extend("--ft-typography-title-dense-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-dense-letter-spacing","",co.letterSpacing,"0.105px"),lineHeight:Ct.extend("--ft-typography-title-dense-line-height","",co.lineHeight,"1.7"),textTransform:Ct.extend("--ft-typography-title-dense-text-transform","",co.textTransform,"inherit")},uo=Ct.extend("--ft-typography-subtitle1-font-family","",lo),po=Ct.extend("--ft-typography-subtitle1-font-size","",co.fontSize,"16px"),yo=Ct.extend("--ft-typography-subtitle1-font-weight","",co.fontWeight,"600"),bo=Ct.extend("--ft-typography-subtitle1-letter-spacing","",co.letterSpacing,"0.144px"),go=Ct.extend("--ft-typography-subtitle1-line-height","",co.lineHeight,"1.5"),vo=Ct.extend("--ft-typography-subtitle1-text-transform","",co.textTransform,"inherit"),mo=Ct.extend("--ft-typography-subtitle2-font-family","",lo),xo=Ct.extend("--ft-typography-subtitle2-font-size","",co.fontSize,"14px"),wo=Ct.extend("--ft-typography-subtitle2-font-weight","",co.fontWeight,"normal"),Oo=Ct.extend("--ft-typography-subtitle2-letter-spacing","",co.letterSpacing,"0.098px"),So=Ct.extend("--ft-typography-subtitle2-line-height","",co.lineHeight,"1.7")
|
|
213
|
+
`;const so=Ct.extend("--ft-typography-font-family","",Lt.titleFont),lo=Ct.extend("--ft-typography-font-family","",Lt.contentFont),co={fontFamily:lo,fontSize:Ct.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ct.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ct.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ct.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ct.create("--ft-typography-text-transform","","UNKNOWN","inherit")},fo={fontFamily:Ct.extend("--ft-typography-title-font-family","",so),fontSize:Ct.extend("--ft-typography-title-font-size","",co.fontSize,"20px"),fontWeight:Ct.extend("--ft-typography-title-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-letter-spacing","",co.letterSpacing,"0.15px"),lineHeight:Ct.extend("--ft-typography-title-line-height","",co.lineHeight,"1.2"),textTransform:Ct.extend("--ft-typography-title-text-transform","",co.textTransform,"inherit")},ho={fontFamily:Ct.extend("--ft-typography-title-dense-font-family","",so),fontSize:Ct.extend("--ft-typography-title-dense-font-size","",co.fontSize,"14px"),fontWeight:Ct.extend("--ft-typography-title-dense-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-dense-letter-spacing","",co.letterSpacing,"0.105px"),lineHeight:Ct.extend("--ft-typography-title-dense-line-height","",co.lineHeight,"1.7"),textTransform:Ct.extend("--ft-typography-title-dense-text-transform","",co.textTransform,"inherit")},uo=Ct.extend("--ft-typography-subtitle1-font-family","",lo),po=Ct.extend("--ft-typography-subtitle1-font-size","",co.fontSize,"16px"),yo=Ct.extend("--ft-typography-subtitle1-font-weight","",co.fontWeight,"600"),bo=Ct.extend("--ft-typography-subtitle1-letter-spacing","",co.letterSpacing,"0.144px"),go=Ct.extend("--ft-typography-subtitle1-line-height","",co.lineHeight,"1.5"),vo=Ct.extend("--ft-typography-subtitle1-text-transform","",co.textTransform,"inherit"),mo=Ct.extend("--ft-typography-subtitle2-font-family","",lo),xo=Ct.extend("--ft-typography-subtitle2-font-size","",co.fontSize,"14px"),wo=Ct.extend("--ft-typography-subtitle2-font-weight","",co.fontWeight,"normal"),Oo=Ct.extend("--ft-typography-subtitle2-letter-spacing","",co.letterSpacing,"0.098px"),So=Ct.extend("--ft-typography-subtitle2-line-height","",co.lineHeight,"1.7"),$o=Ct.extend("--ft-typography-subtitle2-text-transform","",co.textTransform,"inherit"),No={fontFamily:Ct.extend("--ft-typography-body1-font-family","",lo),fontSize:Ct.extend("--ft-typography-body1-font-size","",co.fontSize,"16px"),fontWeight:Ct.extend("--ft-typography-body1-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-body1-letter-spacing","",co.letterSpacing,"0.496px"),lineHeight:Ct.extend("--ft-typography-body1-line-height","",co.lineHeight,"1.5"),textTransform:Ct.extend("--ft-typography-body1-text-transform","",co.textTransform,"inherit")},Co=Ct.extend("--ft-typography-body2-font-family","",lo),ko=Ct.extend("--ft-typography-body2-font-size","",co.fontSize,"14px"),Eo=Ct.extend("--ft-typography-body2-font-weight","",co.fontWeight,"normal"),Ro=Ct.extend("--ft-typography-body2-letter-spacing","",co.letterSpacing,"0.252px"),Io=Ct.extend("--ft-typography-body2-line-height","",co.lineHeight,"1.4"),Uo=Ct.extend("--ft-typography-body2-text-transform","",co.textTransform,"inherit"),Lo={fontFamily:Ct.extend("--ft-typography-caption-font-family","",lo),fontSize:Ct.extend("--ft-typography-caption-font-size","",co.fontSize,"12px"),fontWeight:Ct.extend("--ft-typography-caption-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-caption-letter-spacing","",co.letterSpacing,"0.396px"),lineHeight:Ct.extend("--ft-typography-caption-line-height","",co.lineHeight,"1.33"),textTransform:Ct.extend("--ft-typography-caption-text-transform","",co.textTransform,"inherit")},_o=Ct.extend("--ft-typography-breadcrumb-font-family","",lo),Ao=Ct.extend("--ft-typography-breadcrumb-font-size","",co.fontSize,"10px"),To=Ct.extend("--ft-typography-breadcrumb-font-weight","",co.fontWeight,"normal"),Wo=Ct.extend("--ft-typography-breadcrumb-letter-spacing","",co.letterSpacing,"0.33px"),Do=Ct.extend("--ft-typography-breadcrumb-line-height","",co.lineHeight,"1.6"),Fo=Ct.extend("--ft-typography-breadcrumb-text-transform","",co.textTransform,"inherit"),jo=Ct.extend("--ft-typography-overline-font-family","",lo),zo=Ct.extend("--ft-typography-overline-font-size","",co.fontSize,"10px"),Bo=Ct.extend("--ft-typography-overline-font-weight","",co.fontWeight,"normal"),Mo=Ct.extend("--ft-typography-overline-letter-spacing","",co.letterSpacing,"1.5px"),Po=Ct.extend("--ft-typography-overline-line-height","",co.lineHeight,"1.6"),Ko=Ct.extend("--ft-typography-overline-text-transform","",co.textTransform,"uppercase"),Zo={fontFamily:Ct.extend("--ft-typography-button-font-family","",lo),fontSize:Ct.extend("--ft-typography-button-font-size","",co.fontSize,"14px"),fontWeight:Ct.extend("--ft-typography-button-font-weight","",co.fontWeight,"600"),letterSpacing:Ct.extend("--ft-typography-button-letter-spacing","",co.letterSpacing,"1.246px"),lineHeight:Ct.extend("--ft-typography-button-line-height","",co.lineHeight,"1.15"),textTransform:Ct.extend("--ft-typography-button-text-transform","",co.textTransform,"uppercase")},Ho=$`
|
|
214
214
|
.ft-typography--title {
|
|
215
215
|
font-family: ${fo.fontFamily};
|
|
216
216
|
font-size: ${fo.fontSize};
|
|
@@ -219,7 +219,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
219
219
|
line-height: ${fo.lineHeight};
|
|
220
220
|
text-transform: ${fo.textTransform};
|
|
221
221
|
}
|
|
222
|
-
`,Go
|
|
222
|
+
`,Go=$`
|
|
223
223
|
.ft-typography--title-dense {
|
|
224
224
|
font-family: ${ho.fontFamily};
|
|
225
225
|
font-size: ${ho.fontSize};
|
|
@@ -228,7 +228,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
228
228
|
line-height: ${ho.lineHeight};
|
|
229
229
|
text-transform: ${ho.textTransform};
|
|
230
230
|
}
|
|
231
|
-
`,Vo
|
|
231
|
+
`,Vo=$`
|
|
232
232
|
.ft-typography--subtitle1 {
|
|
233
233
|
font-family: ${uo};
|
|
234
234
|
font-size: ${po};
|
|
@@ -237,35 +237,35 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
237
237
|
line-height: ${go};
|
|
238
238
|
text-transform: ${vo};
|
|
239
239
|
}
|
|
240
|
-
`,qo
|
|
240
|
+
`,qo=$`
|
|
241
241
|
.ft-typography--subtitle2 {
|
|
242
242
|
font-family: ${mo};
|
|
243
243
|
font-size: ${xo};
|
|
244
244
|
font-weight: ${wo};
|
|
245
245
|
letter-spacing: ${Oo};
|
|
246
246
|
line-height: ${So};
|
|
247
|
-
text-transform: ${
|
|
247
|
+
text-transform: ${$o};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
`,Yo
|
|
250
|
+
`,Yo=$`
|
|
251
251
|
.ft-typography--body1 {
|
|
252
|
-
font-family: ${
|
|
253
|
-
font-size: ${
|
|
254
|
-
font-weight: ${
|
|
255
|
-
letter-spacing: ${
|
|
256
|
-
line-height: ${
|
|
257
|
-
text-transform: ${
|
|
258
|
-
}
|
|
259
|
-
`,Xo
|
|
252
|
+
font-family: ${No.fontFamily};
|
|
253
|
+
font-size: ${No.fontSize};
|
|
254
|
+
font-weight: ${No.fontWeight};
|
|
255
|
+
letter-spacing: ${No.letterSpacing};
|
|
256
|
+
line-height: ${No.lineHeight};
|
|
257
|
+
text-transform: ${No.textTransform};
|
|
258
|
+
}
|
|
259
|
+
`,Xo=$`
|
|
260
260
|
.ft-typography--body2 {
|
|
261
261
|
font-family: ${Co};
|
|
262
|
-
font-size: ${
|
|
263
|
-
font-weight: ${
|
|
262
|
+
font-size: ${ko};
|
|
263
|
+
font-weight: ${Eo};
|
|
264
264
|
letter-spacing: ${Ro};
|
|
265
265
|
line-height: ${Io};
|
|
266
266
|
text-transform: ${Uo};
|
|
267
267
|
}
|
|
268
|
-
`,Jo
|
|
268
|
+
`,Jo=$`
|
|
269
269
|
.ft-typography--caption {
|
|
270
270
|
font-family: ${Lo.fontFamily};
|
|
271
271
|
font-size: ${Lo.fontSize};
|
|
@@ -274,7 +274,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
274
274
|
line-height: ${Lo.lineHeight};
|
|
275
275
|
text-transform: ${Lo.textTransform};
|
|
276
276
|
}
|
|
277
|
-
`,Qo
|
|
277
|
+
`,Qo=$`
|
|
278
278
|
.ft-typography--breadcrumb {
|
|
279
279
|
font-family: ${_o};
|
|
280
280
|
font-size: ${Ao};
|
|
@@ -283,16 +283,16 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
283
283
|
line-height: ${Do};
|
|
284
284
|
text-transform: ${Fo};
|
|
285
285
|
}
|
|
286
|
-
`,tr
|
|
286
|
+
`,tr=$`
|
|
287
287
|
.ft-typography--overline {
|
|
288
288
|
font-family: ${jo};
|
|
289
289
|
font-size: ${zo};
|
|
290
290
|
font-weight: ${Bo};
|
|
291
|
-
letter-spacing: ${
|
|
292
|
-
line-height: ${
|
|
291
|
+
letter-spacing: ${Mo};
|
|
292
|
+
line-height: ${Po};
|
|
293
293
|
text-transform: ${Ko};
|
|
294
294
|
}
|
|
295
|
-
`,er
|
|
295
|
+
`,er=$`
|
|
296
296
|
.ft-typography--button {
|
|
297
297
|
font-family: ${Zo.fontFamily};
|
|
298
298
|
font-size: ${Zo.fontSize};
|
|
@@ -301,18 +301,20 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
301
301
|
line-height: ${Zo.lineHeight};
|
|
302
302
|
text-transform: ${Zo.textTransform};
|
|
303
303
|
}
|
|
304
|
-
`,ir
|
|
304
|
+
`,ir=$`
|
|
305
305
|
.ft-typography {
|
|
306
306
|
vertical-align: inherit;
|
|
307
307
|
}
|
|
308
|
-
`,or=[Object.keys(Rt).map((t=>function(t){const e=Rt[t];return
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
308
|
+
`,or=[Object.keys(Rt).map((t=>function(t){const e=Rt[t];return $`
|
|
309
|
+
.ft-typography--${S(t)} {
|
|
310
|
+
font-family: ${e.fontFamily};
|
|
311
|
+
font-size: ${e.fontSize};
|
|
312
|
+
font-weight: ${e.fontWeight};
|
|
313
|
+
letter-spacing: ${e.letterSpacing};
|
|
314
|
+
line-height: ${e.lineHeight};
|
|
315
|
+
text-transform: ${e.textCase};
|
|
316
|
+
}
|
|
317
|
+
`}(t)))],rr={color:Ct.extend("--ft-loader-color","",Lt.colorPrimary),size:Ct.create("--ft-loader-size","","SIZE","80px")},nr=$`
|
|
316
318
|
:host {
|
|
317
319
|
line-height: 0;
|
|
318
320
|
}
|
|
@@ -381,7 +383,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
381
383
|
transform: translate(calc(0.35 * ${rr.size}), 0);
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
|
-
`,ar={size:Ct.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.extend("--ft-icon-fluid-topics-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.extend("--ft-icon-file-format-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.extend("--ft-icon-material-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.create("--ft-icon-vertical-align","","UNKNOWN","unset")},sr
|
|
386
|
+
`,ar={size:Ct.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.extend("--ft-icon-fluid-topics-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.extend("--ft-icon-file-format-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.extend("--ft-icon-material-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.create("--ft-icon-vertical-align","","UNKNOWN","unset")},sr=$`
|
|
385
387
|
:host, i.ft-icon {
|
|
386
388
|
display: inline-flex;
|
|
387
389
|
align-items: center;
|
|
@@ -429,7 +431,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
429
431
|
.ft-icon--material {
|
|
430
432
|
font-family: ${ar.materialFontFamily}, "Material Icons", sans-serif;
|
|
431
433
|
}
|
|
432
|
-
`,lr=Ct.extend("--ft-button-color","",Lt.colorPrimary),cr={backgroundColor:Ct.extend("--ft-button-background-color","",Lt.colorSurface),borderRadius:Ct.extend("--ft-button-border-radius","",Lt.borderRadiusL),color:lr,fontSize:Ct.extend("--ft-button-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ct.extend("--ft-button-ripple-color","",lr),verticalPadding:Ct.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ct.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ct.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ct.external(Lt.colorOpacityDisabled,"Design system")},fr=Ct.extend("--ft-button-primary-color","",Ct.extend("--ft-button-color","",Lt.colorOnPrimary)),dr={backgroundColor:Ct.extend("--ft-button-primary-background-color","",Ct.extend("--ft-button-background-color","",Lt.colorPrimary)),color:fr,rippleColor:Ct.extend("--ft-button-primary-ripple-color","",fr)},hr=Ct.extend("--ft-button-dense-border-radius","",Ct.extend("--ft-button-border-radius","",Lt.borderRadiusM)),ur=Ct.create("--ft-button-dense-vertical-padding","","SIZE","2px"),pr=Ct.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),yr=Ct.create("--ft-button-dense-icon-padding","","SIZE","4px"),br=[
|
|
434
|
+
`,lr=Ct.extend("--ft-button-color","",Lt.colorPrimary),cr={backgroundColor:Ct.extend("--ft-button-background-color","",Lt.colorSurface),borderRadius:Ct.extend("--ft-button-border-radius","",Lt.borderRadiusL),color:lr,fontSize:Ct.extend("--ft-button-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ct.extend("--ft-button-ripple-color","",lr),verticalPadding:Ct.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ct.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ct.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ct.external(Lt.colorOpacityDisabled,"Design system")},fr=Ct.extend("--ft-button-primary-color","",Ct.extend("--ft-button-color","",Lt.colorOnPrimary)),dr={backgroundColor:Ct.extend("--ft-button-primary-background-color","",Ct.extend("--ft-button-background-color","",Lt.colorPrimary)),color:fr,rippleColor:Ct.extend("--ft-button-primary-ripple-color","",fr)},hr=Ct.extend("--ft-button-dense-border-radius","",Ct.extend("--ft-button-border-radius","",Lt.borderRadiusM)),ur=Ct.create("--ft-button-dense-vertical-padding","","SIZE","2px"),pr=Ct.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),yr=Ct.create("--ft-button-dense-icon-padding","","SIZE","4px"),br=[$`
|
|
433
435
|
:host {
|
|
434
436
|
display: inline-block;
|
|
435
437
|
max-width: 100%;
|
|
@@ -471,8 +473,8 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
471
473
|
|
|
472
474
|
--ft-button-internal-line-height: max(calc(${cr.fontSize} + 2px), ${cr.iconSize});
|
|
473
475
|
--ft-button-internal-color: ${cr.color};
|
|
474
|
-
${
|
|
475
|
-
${
|
|
476
|
+
${kt(ar.size,cr.iconSize)};
|
|
477
|
+
${kt(Qi.color,cr.rippleColor)};
|
|
476
478
|
|
|
477
479
|
border-radius: ${cr.borderRadius};
|
|
478
480
|
padding: ${cr.verticalPadding} ${cr.horizontalPadding};
|
|
@@ -516,7 +518,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
516
518
|
.ft-button.ft-button--primary {
|
|
517
519
|
background-color: ${dr.backgroundColor};
|
|
518
520
|
--ft-button-internal-color: ${dr.color};
|
|
519
|
-
${
|
|
521
|
+
${kt(Qi.color,dr.rippleColor)};
|
|
520
522
|
}
|
|
521
523
|
|
|
522
524
|
.ft-button:focus {
|
|
@@ -530,8 +532,8 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
530
532
|
text-overflow: ellipsis;
|
|
531
533
|
display: block;
|
|
532
534
|
margin: 0 ${cr.iconPadding};
|
|
533
|
-
${
|
|
534
|
-
${
|
|
535
|
+
${kt(Zo.fontSize,"1em")};
|
|
536
|
+
${kt(Zo.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
535
537
|
}
|
|
536
538
|
|
|
537
539
|
.ft-button--dense .ft-button--label {
|
|
@@ -563,10 +565,10 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
563
565
|
}
|
|
564
566
|
|
|
565
567
|
ft-loader {
|
|
566
|
-
${
|
|
567
|
-
${
|
|
568
|
+
${kt(rr.size,cr.iconSize)};
|
|
569
|
+
${kt(rr.color,"var(--ft-button-internal-color)")};
|
|
568
570
|
}
|
|
569
|
-
`,Bt],gr={textColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceHigh),backgroundColor:Ct.extend("--ft-switch-background-color","",Lt.colorSurface),selectedTextColor:Ct.extend("--ft-switch-selected-text-color","",Lt.colorPrimary),selectedBackgroundColor:Ct.extend("--ft-switch-selected-background-color","",Lt.colorPrimary),borderColor:Ct.extend("--ft-switch-border-color","",Lt.colorOutline),borderRadius:Ct.extend("--ft-switch-border-radius","",Lt.borderRadiusL),fontSize:Ct.extend("--ft-switch-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceMedium),rippleColor:Ct.extend("--ft-switch-ripple-color","",Lt.colorPrimary),outlineColor:Ct.extend("--ft-switch-outline-color","",Lt.colorPrimary)},vr={feedbackInputMinWidth:Ct.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ct.external(Lt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ct.extend("--ft-reader-feedback-send-feedback-color","",Lt.colorOnPrimary),sendFeedbackBackgroundColor:Ct.extend("--ft-reader-feedback-send-feedback-background-color","",Lt.colorPrimary),filledRatingColor:Ct.extend("--ft-reader-feedback-filled-rating-color","",Lt.colorPrimary),emptyRatingColor:Ct.extend("--ft-reader-feedback-empty-rating-color","",Lt.colorOnSurfaceMedium),mainTitleFontSize:Ct.external(fo.fontSize,"Typography"),sectionTitleFontSize:Ct.external(ho.fontSize,"Typography")},mr
|
|
571
|
+
`,Bt],gr={textColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceHigh),backgroundColor:Ct.extend("--ft-switch-background-color","",Lt.colorSurface),selectedTextColor:Ct.extend("--ft-switch-selected-text-color","",Lt.colorPrimary),selectedBackgroundColor:Ct.extend("--ft-switch-selected-background-color","",Lt.colorPrimary),borderColor:Ct.extend("--ft-switch-border-color","",Lt.colorOutline),borderRadius:Ct.extend("--ft-switch-border-radius","",Lt.borderRadiusL),fontSize:Ct.extend("--ft-switch-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceMedium),rippleColor:Ct.extend("--ft-switch-ripple-color","",Lt.colorPrimary),outlineColor:Ct.extend("--ft-switch-outline-color","",Lt.colorPrimary)},vr={feedbackInputMinWidth:Ct.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ct.external(Lt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ct.extend("--ft-reader-feedback-send-feedback-color","",Lt.colorOnPrimary),sendFeedbackBackgroundColor:Ct.extend("--ft-reader-feedback-send-feedback-background-color","",Lt.colorPrimary),filledRatingColor:Ct.extend("--ft-reader-feedback-filled-rating-color","",Lt.colorPrimary),emptyRatingColor:Ct.extend("--ft-reader-feedback-empty-rating-color","",Lt.colorOnSurfaceMedium),mainTitleFontSize:Ct.external(fo.fontSize,"Typography"),sectionTitleFontSize:Ct.external(ho.fontSize,"Typography")},mr=$`
|
|
570
572
|
.ft-reader-feedback {
|
|
571
573
|
box-sizing: border-box;
|
|
572
574
|
display: flex;
|
|
@@ -612,14 +614,14 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
612
614
|
}
|
|
613
615
|
|
|
614
616
|
.ft-reader-feedback--rating {
|
|
615
|
-
${
|
|
616
|
-
${
|
|
617
|
-
${
|
|
618
|
-
${
|
|
617
|
+
${kt(cr.color,vr.emptyRatingColor)};
|
|
618
|
+
${kt(cr.rippleColor,vr.filledRatingColor)};
|
|
619
|
+
${kt(gr.textColor,vr.emptyRatingColor)};
|
|
620
|
+
${kt(gr.selectedTextColor,vr.filledRatingColor)};
|
|
619
621
|
}
|
|
620
622
|
|
|
621
623
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
622
|
-
${
|
|
624
|
+
${kt(cr.color,vr.filledRatingColor)};
|
|
623
625
|
}
|
|
624
626
|
|
|
625
627
|
.ft-reader-feedback--feedback {
|
|
@@ -636,38 +638,38 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
636
638
|
|
|
637
639
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
638
640
|
align-self: flex-end;
|
|
639
|
-
${
|
|
640
|
-
${
|
|
641
|
+
${kt(cr.color,vr.sendFeedbackColor)};
|
|
642
|
+
${kt(cr.backgroundColor,vr.sendFeedbackBackgroundColor)};
|
|
641
643
|
}
|
|
642
|
-
`;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[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&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function d(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(d)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.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 i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,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=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),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 i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];g.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new g(o,i))},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&&i.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);const xr=t=>"object"==typeof t&&null!=t,wr=t=>"string"==typeof t;var Or,Sr,Nr,$r,Cr,Er,kr,Rr,Ir,Ur,Lr,_r;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Or||(Or={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Sr||(Sr={})),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"}(Nr||(Nr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}($r||($r={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Cr||(Cr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Er||(Er={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(kr||(kr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(Rr||(Rr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ir||(Ir={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ur||(Ur={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Lr||(Lr={})),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"}(_r||(_r={}));const Ar=t=>xr(t)&&(null==t.authenticationIdentifier||(t=>xr(t)&&wr(t.identifier)&&wr(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&Tr(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),Tr=t=>xr(t)&&(null==t.emailAddress||wr(t.emailAddress))&&(null==t.displayName||wr(t.displayName))&&Array.isArray(t.roles)&&t.roles.every((t=>(t=>["PERSONAL_BOOK_USER","PERSONAL_BOOK_SHARE_USER","HTML_EXPORT_USER","PDF_EXPORT_USER","SAVED_SEARCH_USER","COLLECTION_USER","OFFLINE_USER","ANALYTICS_USER","BETA_USER","DEBUG_USER","PRINT_USER","RATING_USER","FEEDBACK_USER","CONTENT_PUBLISHER","KHUB_ADMIN","USERS_ADMIN","PORTAL_ADMIN","ADMIN","DEVELOPER"].includes(t))(t)))&&(null==t.userId||wr(t.userId)),Wr={[_r.PERSONAL_BOOK_SHARE_USER]:[_r.PERSONAL_BOOK_USER],[_r.HTML_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.PDF_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.KHUB_ADMIN]:[_r.CONTENT_PUBLISHER],[_r.ADMIN]:[_r.KHUB_ADMIN,_r.USERS_ADMIN,_r.PORTAL_ADMIN],[_r.DEVELOPER]:[_r.BETA_USER,_r.DEBUG_USER]};function Dr(t,e){return t===e||(Wr[t]??[]).some((t=>Dr(t,e)))}function Fr(t,e){return(Ar(t)?t.profile.roles:Tr(t)?t.roles:t).some((t=>Dr(t,e)))}
|
|
644
|
+
`;var xr,wr,Or,Sr,$r,Nr,Cr,kr,Er,Rr,Ir,Ur,Lr,_r;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[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&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function d(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(d)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.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 i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,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=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),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 i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];g.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new g(o,i))},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&&i.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"}(xr||(xr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(wr||(wr={})),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"}(Or||(Or={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Sr||(Sr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($r||($r={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Nr||(Nr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Cr||(Cr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(kr||(kr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Er||(Er={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Rr||(Rr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ir||(Ir={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ur||(Ur={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Lr||(Lr={})),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"}(_r||(_r={}));const Ar={[_r.PERSONAL_BOOK_SHARE_USER]:[_r.PERSONAL_BOOK_USER],[_r.HTML_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.PDF_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.KHUB_ADMIN]:[_r.CONTENT_PUBLISHER],[_r.ADMIN]:[_r.KHUB_ADMIN,_r.USERS_ADMIN,_r.PORTAL_ADMIN],[_r.DEVELOPER]:[_r.BETA_USER,_r.DEBUG_USER]};function Tr(t,e){return t===e||(Ar[t]??[]).some((t=>Tr(t,e)))}function Wr(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Tr(t,e)))}
|
|
643
645
|
/**
|
|
644
646
|
* @license
|
|
645
647
|
* Copyright 2020 Google LLC
|
|
646
648
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
647
|
-
*/const
|
|
648
|
-
<${
|
|
649
|
+
*/const Dr=Symbol.for(""),Fr=t=>{if((null==t?void 0:t.r)===Dr)return null==t?void 0:t._$litStatic$},jr=t=>({_$litStatic$:t,r:Dr}),zr=new Map,Br=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Fr(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=zr.get(t))&&(a.raw=a,zr.set(t,e=a)),i=s}return t(e,...i)})(ot);var Mr;!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"}(Mr||(Mr={}));var Pr=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Kr extends zt{constructor(){super(...arguments),this.variant=Mr.body1}render(){return this.element?Br`
|
|
650
|
+
<${jr(this.element)}
|
|
649
651
|
class="ft-typography ft-typography--${this.variant}">
|
|
650
652
|
<slot></slot>
|
|
651
|
-
</${
|
|
652
|
-
`:
|
|
653
|
+
</${jr(this.element)}>
|
|
654
|
+
`:Br`
|
|
653
655
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
654
|
-
`}}
|
|
656
|
+
`}}Kr.styles=[Ho,Go,Vo,qo,Yo,Xo,Jo,Qo,tr,er,ir,...or],Pr([a()],Kr.prototype,"element",void 0),Pr([a()],Kr.prototype,"variant",void 0),b("ft-typography")(Kr);
|
|
655
657
|
/**
|
|
656
658
|
* @license
|
|
657
659
|
* Copyright 2017 Google LLC
|
|
658
660
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
659
661
|
*/
|
|
660
|
-
const
|
|
662
|
+
const Zr=1,Hr=2,Gr=t=>(...e)=>({_$litDirective$:t,values:e});class Vr{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
661
663
|
/**
|
|
662
664
|
* @license
|
|
663
665
|
* Copyright 2017 Google LLC
|
|
664
666
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
665
|
-
*/class
|
|
667
|
+
*/class qr extends Vr{constructor(t){if(super(t),this.et=nt,t.type!==Hr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===rt)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:[]}}}qr.directiveName="unsafeHTML",qr.resultType=1;const Yr=Gr(qr);var Xr,Jr,Qr;!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=""}(Xr||(Xr={})),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=""}(Jr||(Jr={})),new Map([...["abw"].map((t=>[t,Jr.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,Jr.AUDIO])),...["avi"].map((t=>[t,Jr.AVI])),...["chm","xhs"].map((t=>[t,Jr.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,Jr.CODE])),...["csv"].map((t=>[t,Jr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Jr.DITA])),...["epub"].map((t=>[t,Jr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Jr.EXCEL])),...["flac"].map((t=>[t,Jr.FLAC])),...["gif"].map((t=>[t,Jr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Jr.GZIP])),...["html","htm","xhtml"].map((t=>[t,Jr.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,Jr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Jr.JPEG])),...["json"].map((t=>[t,Jr.JSON])),...["m4a","m4p"].map((t=>[t,Jr.M4A])),...["mov","qt"].map((t=>[t,Jr.MOV])),...["mp3"].map((t=>[t,Jr.MP3])),...["mp4","m4v"].map((t=>[t,Jr.MP4])),...["ogg","oga"].map((t=>[t,Jr.OGG])),...["pdf","ps"].map((t=>[t,Jr.PDF])),...["png"].map((t=>[t,Jr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Jr.POWERPOINT])),...["rar"].map((t=>[t,Jr.RAR])),...["stp"].map((t=>[t,Jr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Jr.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,Jr.VIDEO])),...["wav"].map((t=>[t,Jr.WAV])),...["wma"].map((t=>[t,Jr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Jr.WORD])),...["xml","xsl","rdf"].map((t=>[t,Jr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Jr.YAML])),...["zip"].map((t=>[t,Jr.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qr||(Qr={}));var tn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class en extends zt{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(Qr).includes(this.variant)?this.variant:Qr.fluid_topics,e=t!==Qr.material||!!this.value;return ot`
|
|
666
668
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
667
|
-
${
|
|
669
|
+
${Yr(this.resolvedIcon)}
|
|
668
670
|
<slot ?hidden=${e}></slot>
|
|
669
671
|
</i>
|
|
670
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
672
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Qr.file_format:this.resolvedIcon=null!==(t=Jr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Qr.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Xr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}en.elementDefinitions={},en.styles=sr,tn([a()],en.prototype,"variant",void 0),tn([a()],en.prototype,"value",void 0),tn([s()],en.prototype,"resolvedIcon",void 0),tn([c("slot")],en.prototype,"slottedContent",void 0),b("ft-icon")(en);const on=Ct.create("--ft-tooltip-distance","","SIZE","4px"),rn=Ct.create("--ft-tooltip-color","","COLOR","#FFFFFF"),nn=Ct.create("--ft-tooltip-background-color","","COLOR","#666666"),an=Ct.create("--ft-tooltip-z-index","","NUMBER","100"),sn=Ct.external(Lt.borderRadiusS,"Design system"),ln=Ct.create("--ft-tooltip-max-width","","SIZE","150px"),cn=$`
|
|
671
673
|
.ft-tooltip--container {
|
|
672
674
|
display: block;
|
|
673
675
|
}
|
|
@@ -682,21 +684,21 @@ const Gr=1,Vr=2,qr=t=>(...e)=>({_$litDirective$:t,values:e});class Yr{constructo
|
|
|
682
684
|
box-sizing: border-box;
|
|
683
685
|
overflow: hidden;
|
|
684
686
|
width: max-content;
|
|
685
|
-
max-width: ${
|
|
687
|
+
max-width: ${ln};
|
|
686
688
|
text-align: center;
|
|
687
|
-
padding: ${
|
|
688
|
-
z-index: ${
|
|
689
|
+
padding: ${on};
|
|
690
|
+
z-index: ${an};
|
|
689
691
|
}
|
|
690
692
|
|
|
691
693
|
.ft-tooltip--content {
|
|
692
694
|
padding: 4px 8px;
|
|
693
|
-
border-radius: ${
|
|
694
|
-
background-color: ${
|
|
695
|
-
color: ${
|
|
695
|
+
border-radius: ${sn};
|
|
696
|
+
background-color: ${nn};
|
|
697
|
+
color: ${rn};
|
|
696
698
|
position: relative;
|
|
697
699
|
word-break: break-word;
|
|
698
700
|
}
|
|
699
|
-
`;var
|
|
701
|
+
`;var fn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class dn extends zt{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ot`
|
|
700
702
|
<div part="container"
|
|
701
703
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
702
704
|
@mouseenter=${this.onHover}
|
|
@@ -714,24 +716,24 @@ const Gr=1,Vr=2,qr=t=>(...e)=>({_$litDirective$:t,values:e});class Yr{constructo
|
|
|
714
716
|
</div>
|
|
715
717
|
</div>
|
|
716
718
|
</div>
|
|
717
|
-
`}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,o=(t.offsetHeight-i)/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-i-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+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-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 d=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(d,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${
|
|
719
|
+
`}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,o=(t.offsetHeight-i)/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-i-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+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-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 d=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(d,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ln})`}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))}}dn.elementDefinitions={"ft-typography":Kr},dn.styles=cn,fn([a()],dn.prototype,"text",void 0),fn([a({type:Boolean})],dn.prototype,"manual",void 0),fn([a({type:Boolean})],dn.prototype,"inline",void 0),fn([a({type:Number})],dn.prototype,"delay",void 0),fn([a()],dn.prototype,"position",void 0),fn([u("",!0)],dn.prototype,"slotNodes",void 0),fn([c(".ft-tooltip--container")],dn.prototype,"container",void 0),fn([c(".ft-tooltip")],dn.prototype,"tooltip",void 0),fn([c(".ft-tooltip--content")],dn.prototype,"tooltipContent",void 0),fn([s()],dn.prototype,"visible",void 0),b("ft-tooltip")(dn);
|
|
718
720
|
/**
|
|
719
721
|
* @license
|
|
720
722
|
* Copyright 2018 Google LLC
|
|
721
723
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
722
724
|
*/
|
|
723
|
-
const
|
|
725
|
+
const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return rt}});var un=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pn extends zt{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 r(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 r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=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 ot`
|
|
724
726
|
<style>
|
|
725
727
|
.ft-ripple .ft-ripple--effect {
|
|
726
728
|
left: ${this.originX}px;
|
|
727
729
|
top: ${this.originY}px;
|
|
728
730
|
}
|
|
729
731
|
</style>
|
|
730
|
-
<div class="${
|
|
732
|
+
<div class="${hn(t)}">
|
|
731
733
|
<div class="ft-ripple--background"></div>
|
|
732
734
|
<div class="ft-ripple--effect"></div>
|
|
733
735
|
</div>
|
|
734
|
-
`}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),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",i),t.addEventListener("touchstart",o),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",i),t.removeEventListener("touchstart",o),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,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}
|
|
736
|
+
`}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),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",i),t.addEventListener("touchstart",o),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",i),t.removeEventListener("touchstart",o),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,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}pn.elementDefinitions={},pn.styles=ao,un([a({type:Boolean})],pn.prototype,"primary",void 0),un([a({type:Boolean})],pn.prototype,"secondary",void 0),un([a({type:Boolean})],pn.prototype,"unbounded",void 0),un([a({type:Boolean})],pn.prototype,"activated",void 0),un([a({type:Boolean})],pn.prototype,"selected",void 0),un([a({type:Boolean})],pn.prototype,"disabled",void 0),un([s()],pn.prototype,"hovered",void 0),un([s()],pn.prototype,"focused",void 0),un([s()],pn.prototype,"pressed",void 0),un([s()],pn.prototype,"rippling",void 0),un([s()],pn.prototype,"originX",void 0),un([s()],pn.prototype,"originY",void 0),un([c(".ft-ripple")],pn.prototype,"ripple",void 0),un([c(".ft-ripple--effect")],pn.prototype,"rippleEffect",void 0),b("ft-ripple")(pn);const yn={borderRadiusLeft:Ct.extend("--ft-switch-option-border-radius-left","",Lt.borderRadiusL),borderRadiusRight:Ct.extend("--ft-switch-option-border-radius-right","",Lt.borderRadiusL),borderWidthLeft:Ct.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ct.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ct.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},bn=$`
|
|
735
737
|
.ft-switch-option {
|
|
736
738
|
position: relative;
|
|
737
739
|
display: inline-block;
|
|
@@ -750,13 +752,13 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
750
752
|
|
|
751
753
|
border-style: solid;
|
|
752
754
|
border-color: ${gr.borderColor};
|
|
753
|
-
border-width: ${
|
|
754
|
-
border-radius: ${
|
|
755
|
+
border-width: ${yn.borderWidthVertical} ${yn.borderWidthRight} ${yn.borderWidthVertical} ${yn.borderWidthLeft};
|
|
756
|
+
border-radius: ${yn.borderRadiusLeft} ${yn.borderRadiusRight} ${yn.borderRadiusRight} ${yn.borderRadiusLeft};
|
|
755
757
|
display: flex;
|
|
756
758
|
align-items: center;
|
|
757
759
|
justify-content: center;
|
|
758
760
|
overflow: hidden;
|
|
759
|
-
${
|
|
761
|
+
${kt(ar.size,gr.iconSize)};
|
|
760
762
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
761
763
|
background-color: ${gr.backgroundColor};
|
|
762
764
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -768,7 +770,7 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
768
770
|
|
|
769
771
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
770
772
|
background-color: ${gr.selectedBackgroundColor};
|
|
771
|
-
border-radius: ${
|
|
773
|
+
border-radius: ${yn.borderRadiusLeft} ${yn.borderRadiusRight} ${yn.borderRadiusRight} ${yn.borderRadiusLeft};
|
|
772
774
|
position: absolute;
|
|
773
775
|
inset: 0;
|
|
774
776
|
content: "";
|
|
@@ -783,8 +785,8 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
783
785
|
text-overflow: ellipsis;
|
|
784
786
|
display: block;
|
|
785
787
|
margin: 0 8px;
|
|
786
|
-
${
|
|
787
|
-
${
|
|
788
|
+
${kt(Zo.fontSize,gr.fontSize)};
|
|
789
|
+
${kt(Zo.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
788
790
|
}
|
|
789
791
|
|
|
790
792
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
@@ -796,7 +798,7 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
796
798
|
}
|
|
797
799
|
|
|
798
800
|
.ft-switch-option--ripple {
|
|
799
|
-
${
|
|
801
|
+
${kt(Qi.color,gr.rippleColor)};
|
|
800
802
|
}
|
|
801
803
|
|
|
802
804
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -815,8 +817,8 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
815
817
|
.ft-switch-option--selected ft-icon {
|
|
816
818
|
color: ${gr.selectedTextColor};
|
|
817
819
|
}
|
|
818
|
-
`;var
|
|
819
|
-
<label part="label" for="input" class=${
|
|
820
|
+
`;var gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vn extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class mn extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class xn extends zt{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new mn(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(ot`
|
|
821
|
+
<label part="label" for="input" class=${hn(t)}
|
|
820
822
|
@click=${this.onChange}>
|
|
821
823
|
<div class="ft-switch-option--content">
|
|
822
824
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
@@ -837,16 +839,16 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
837
839
|
position="${this.tooltipPosition}">
|
|
838
840
|
${t}
|
|
839
841
|
</ft-tooltip>
|
|
840
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
842
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new vn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ot`
|
|
841
843
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
842
|
-
`:nt}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()}}
|
|
843
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
844
|
+
`:nt}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()}}xn.elementDefinitions={"ft-ripple":pn,"ft-typography":Kr,"ft-tooltip":dn,"ft-icon":en},xn.styles=[Mt,bn],gn([a()],xn.prototype,"value",void 0),gn([a()],xn.prototype,"icon",void 0),gn([a()],xn.prototype,"iconVariant",void 0),gn([a()],xn.prototype,"label",void 0),gn([a()],xn.prototype,"tooltipPosition",void 0),gn([a({type:Boolean,reflect:!0})],xn.prototype,"selected",void 0),gn([a({type:Boolean})],xn.prototype,"trailingIcon",void 0),gn([a({type:Boolean})],xn.prototype,"unselectable",void 0),gn([c(".ft-switch-option--content slot")],xn.prototype,"slottedContent",void 0),gn([c(".ft-switch-option--input")],xn.prototype,"input",void 0);var wn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class On extends CustomEvent{constructor(t){super("change",{detail:t})}}class Sn extends zt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return ot`
|
|
845
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${hn(t)}">
|
|
844
846
|
<slot @slotchange=${this.onSlotchange}
|
|
845
847
|
@option-change=${this.onOptionChangeByScript}
|
|
846
848
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
847
849
|
></slot>
|
|
848
850
|
</div>
|
|
849
|
-
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof
|
|
851
|
+
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof xn&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new On(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Sn.elementDefinitions={},Sn.styles=$`
|
|
850
852
|
:host {
|
|
851
853
|
display: inline-block;
|
|
852
854
|
}
|
|
@@ -862,25 +864,25 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
862
864
|
}
|
|
863
865
|
|
|
864
866
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
865
|
-
${
|
|
866
|
-
${
|
|
867
|
-
${
|
|
867
|
+
${kt(yn.borderRadiusLeft,"0")};
|
|
868
|
+
${kt(yn.borderRadiusRight,"0")};
|
|
869
|
+
${kt(yn.borderWidthLeft,"0")};
|
|
868
870
|
}
|
|
869
871
|
|
|
870
872
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
871
|
-
${
|
|
872
|
-
${
|
|
873
|
+
${kt(yn.borderRadiusLeft,gr.borderRadius)};
|
|
874
|
+
${kt(yn.borderWidthLeft,"1px")};
|
|
873
875
|
}
|
|
874
876
|
|
|
875
877
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
876
|
-
${
|
|
878
|
+
${kt(yn.borderRadiusRight,gr.borderRadius)};
|
|
877
879
|
}
|
|
878
880
|
|
|
879
881
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
880
882
|
--ft-switch-internal-vertical-padding: 2px;
|
|
881
883
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
882
884
|
}
|
|
883
|
-
`,
|
|
885
|
+
`,wn([a({type:Boolean})],Sn.prototype,"dense",void 0),wn([a({type:Boolean})],Sn.prototype,"unselectable",void 0),wn([c(".ft-switch slot")],Sn.prototype,"slottedContent",void 0),wn([s()],Sn.prototype,"selectedOption",void 0),wn([c(".ft-switch")],Sn.prototype,"ftSwitchDiv",void 0),b("ft-switch")(Sn),b("ft-switch-option")(xn);const $n=Ct.external(Lt.colorOutline,"Design system"),Nn=Ct.external(Lt.colorOnSurfaceMedium,"Design system"),Cn=$`
|
|
884
886
|
:host {
|
|
885
887
|
display: block;
|
|
886
888
|
}
|
|
@@ -891,14 +893,14 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
891
893
|
|
|
892
894
|
ft-icon {
|
|
893
895
|
transform: rotate(-45deg);
|
|
894
|
-
color: ${
|
|
896
|
+
color: ${$n};
|
|
895
897
|
}
|
|
896
898
|
|
|
897
899
|
.ft-resizer--dragging ft-icon,
|
|
898
900
|
.ft-resizer:hover ft-icon {
|
|
899
|
-
color: ${
|
|
901
|
+
color: ${Nn};
|
|
900
902
|
}
|
|
901
|
-
`;var
|
|
903
|
+
`;var kn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class En extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Rn extends zt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Qr.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return ot`
|
|
902
904
|
<style>
|
|
903
905
|
.ft-resizer {
|
|
904
906
|
cursor: ${S(this.cursor)}
|
|
@@ -909,25 +911,25 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
909
911
|
@touchstart=${this.initDragFromTouch}>
|
|
910
912
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
911
913
|
</div>
|
|
912
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
914
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new En(i,o))}}Rn.elementDefinitions={"ft-icon":en},Rn.styles=[Bt,Cn],kn([a({type:Number})],Rn.prototype,"initialWidth",void 0),kn([a({type:Number})],Rn.prototype,"initialHeight",void 0),kn([a()],Rn.prototype,"icon",void 0),kn([a()],Rn.prototype,"iconVariant",void 0),kn([a()],Rn.prototype,"cursor",void 0),kn([s()],Rn.prototype,"dragging",void 0),b("ft-resizer")(Rn);const In={fontSize:Ct.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ct.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ct.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ct.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ct.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ct.extend("--ft-input-label-border-color","",Lt.colorOutline),textColor:Ct.extend("--ft-input-label-text-color","",Lt.colorOnSurfaceMedium),disabledTextColor:Ct.extend("--ft-input-label-disabled-text-color","",Lt.colorOnSurfaceDisabled),colorSurface:Ct.external(Lt.colorSurface,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system")},Un=$`
|
|
913
915
|
.ft-input-label {
|
|
914
916
|
position: absolute;
|
|
915
917
|
inset: 0;
|
|
916
918
|
display: flex;
|
|
917
|
-
background-color: ${
|
|
918
|
-
border-radius: ${
|
|
919
|
+
background-color: ${In.colorSurface};
|
|
920
|
+
border-radius: ${In.borderRadiusS} ${In.borderRadiusS} 0 0;
|
|
919
921
|
}
|
|
920
922
|
|
|
921
923
|
.ft-input-label--outlined {
|
|
922
|
-
border-radius: ${
|
|
924
|
+
border-radius: ${In.borderRadiusS};
|
|
923
925
|
}
|
|
924
926
|
|
|
925
927
|
.ft-input-label {
|
|
926
|
-
border-color: ${
|
|
928
|
+
border-color: ${In.borderColor};
|
|
927
929
|
}
|
|
928
930
|
|
|
929
931
|
.ft-input-label.ft-input-label--in-error {
|
|
930
|
-
border-color: ${
|
|
932
|
+
border-color: ${In.colorError}
|
|
931
933
|
}
|
|
932
934
|
|
|
933
935
|
.ft-input-label:before,
|
|
@@ -940,7 +942,7 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
940
942
|
}
|
|
941
943
|
|
|
942
944
|
.ft-input-label:before {
|
|
943
|
-
width: calc(${
|
|
945
|
+
width: calc(${In.horizontalSpacing} - 4px);
|
|
944
946
|
flex-shrink: 0;
|
|
945
947
|
}
|
|
946
948
|
|
|
@@ -956,20 +958,20 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
956
958
|
border-bottom-width: 1px;
|
|
957
959
|
border-bottom-style: solid;
|
|
958
960
|
border-color: inherit;
|
|
959
|
-
color: ${
|
|
961
|
+
color: ${In.textColor};
|
|
960
962
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
961
|
-
max-width: calc(${
|
|
963
|
+
max-width: calc(${In.labelMaxWidth} - 2 * (${In.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
962
964
|
text-overflow: ellipsis;
|
|
963
|
-
${
|
|
964
|
-
${
|
|
965
|
+
${kt(Lo.fontSize,In.fontSize)};
|
|
966
|
+
${kt(Lo.lineHeight,In.fontSize)};
|
|
965
967
|
}
|
|
966
968
|
|
|
967
969
|
.ft-input-label--in-error .ft-input-label--text {
|
|
968
|
-
color: ${
|
|
970
|
+
color: ${In.colorError}
|
|
969
971
|
}
|
|
970
972
|
|
|
971
973
|
.ft-input-label--disabled .ft-input-label--text {
|
|
972
|
-
color: ${
|
|
974
|
+
color: ${In.disabledTextColor};
|
|
973
975
|
}
|
|
974
976
|
|
|
975
977
|
.ft-input-label--hidden-text {
|
|
@@ -986,19 +988,19 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
986
988
|
overflow: hidden;
|
|
987
989
|
white-space: nowrap;
|
|
988
990
|
text-overflow: ellipsis;
|
|
989
|
-
padding: ${
|
|
990
|
-
margin: calc(${
|
|
991
|
+
padding: ${In.verticalSpacing} 4px;
|
|
992
|
+
margin: calc(${In.verticalSpacing} * -1) 0;
|
|
991
993
|
max-width: 100%;
|
|
992
994
|
box-sizing: border-box;
|
|
993
995
|
}
|
|
994
996
|
|
|
995
997
|
.ft-input-label--raised .ft-input-label--text {
|
|
996
|
-
${
|
|
997
|
-
${
|
|
998
|
+
${kt(Lo.fontSize,In.raisedFontSize)};
|
|
999
|
+
${kt(Lo.lineHeight,In.raisedFontSize)};
|
|
998
1000
|
}
|
|
999
1001
|
|
|
1000
1002
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1001
|
-
top: ${
|
|
1003
|
+
top: ${In.verticalSpacing};
|
|
1002
1004
|
}
|
|
1003
1005
|
|
|
1004
1006
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1011,28 +1013,28 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1011
1013
|
.ft-input-label--outlined:before {
|
|
1012
1014
|
border-left-width: 1px;
|
|
1013
1015
|
border-left-style: solid;
|
|
1014
|
-
border-radius: ${
|
|
1016
|
+
border-radius: ${In.borderRadiusS} 0 0 ${In.borderRadiusS};
|
|
1015
1017
|
}
|
|
1016
1018
|
|
|
1017
1019
|
.ft-input-label--outlined:after {
|
|
1018
1020
|
border-right-width: 1px;
|
|
1019
1021
|
border-right-style: solid;
|
|
1020
|
-
border-radius: 0 ${
|
|
1022
|
+
border-radius: 0 ${In.borderRadiusS} ${In.borderRadiusS} 0;
|
|
1021
1023
|
}
|
|
1022
1024
|
|
|
1023
1025
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1024
1026
|
padding: 2px 4px;
|
|
1025
|
-
z-index: ${
|
|
1026
|
-
background-color: ${
|
|
1027
|
-
border-radius: ${
|
|
1027
|
+
z-index: ${In.raisedZIndex};
|
|
1028
|
+
background-color: ${In.colorSurface};
|
|
1029
|
+
border-radius: ${In.borderRadiusS};
|
|
1028
1030
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1029
1031
|
}
|
|
1030
1032
|
|
|
1031
1033
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1032
1034
|
border-top: none;
|
|
1033
1035
|
}
|
|
1034
|
-
`;var
|
|
1035
|
-
<div class="${
|
|
1036
|
+
`;var Ln=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class _n extends zt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return ot`
|
|
1037
|
+
<div class="${hn(t)}">
|
|
1036
1038
|
${this.text?ot`
|
|
1037
1039
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1038
1040
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -1040,7 +1042,7 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1040
1042
|
</div>
|
|
1041
1043
|
`:null}
|
|
1042
1044
|
</div>
|
|
1043
|
-
`}}
|
|
1045
|
+
`}}_n.elementDefinitions={},_n.styles=[Jo,Un],Ln([a({type:String})],_n.prototype,"text",void 0),Ln([a({type:Boolean})],_n.prototype,"raised",void 0),Ln([a({type:Boolean})],_n.prototype,"outlined",void 0),Ln([a({type:Boolean})],_n.prototype,"disabled",void 0),Ln([a({type:Boolean})],_n.prototype,"error",void 0),b("ft-input-label")(_n);const An={fontSize:Ct.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ct.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ct.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ct.extend("--ft-text-area-helper-color","",Lt.colorOnSurfaceMedium),colorPrimary:Ct.external(Lt.colorPrimary,"Design system"),colorOnSurface:Ct.external(Lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ct.external(Lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system")},Tn=$`
|
|
1044
1046
|
*:focus {
|
|
1045
1047
|
outline: none;
|
|
1046
1048
|
}
|
|
@@ -1052,10 +1054,10 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1052
1054
|
}
|
|
1053
1055
|
|
|
1054
1056
|
ft-input-label {
|
|
1055
|
-
${
|
|
1056
|
-
${
|
|
1057
|
-
${
|
|
1058
|
-
${
|
|
1057
|
+
${kt(In.fontSize,An.fontSize)};
|
|
1058
|
+
${kt(In.raisedFontSize,An.labelSize)};
|
|
1059
|
+
${kt(In.verticalSpacing,An.verticalSpacing)};
|
|
1060
|
+
${kt(In.horizontalSpacing,An.horizontalSpacing)};
|
|
1059
1061
|
}
|
|
1060
1062
|
|
|
1061
1063
|
.ft-text-area--main-panel {
|
|
@@ -1073,8 +1075,8 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1073
1075
|
}
|
|
1074
1076
|
|
|
1075
1077
|
.ft-text-area--input-panel ft-ripple {
|
|
1076
|
-
${
|
|
1077
|
-
${
|
|
1078
|
+
${kt(Qi.opacityContentOnSurfaceHover,"0.08")};
|
|
1079
|
+
${kt(Qi.opacityContentOnSurfacePressed,"0.04")};
|
|
1078
1080
|
}
|
|
1079
1081
|
|
|
1080
1082
|
.ft-text-area--input {
|
|
@@ -1086,12 +1088,12 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1086
1088
|
align-self: stretch;
|
|
1087
1089
|
resize: none;
|
|
1088
1090
|
|
|
1089
|
-
${
|
|
1090
|
-
${
|
|
1091
|
-
color: ${
|
|
1091
|
+
${kt(No.fontSize,An.fontSize)};
|
|
1092
|
+
${kt(No.lineHeight,An.fontSize)};
|
|
1093
|
+
color: ${An.colorOnSurface};
|
|
1092
1094
|
|
|
1093
|
-
padding: 0 ${
|
|
1094
|
-
margin: calc(${
|
|
1095
|
+
padding: 0 ${An.horizontalSpacing};
|
|
1096
|
+
margin: calc(${An.verticalSpacing} + ${An.labelSize} / 2) 0 ${An.verticalSpacing} 0;
|
|
1095
1097
|
|
|
1096
1098
|
border: none;
|
|
1097
1099
|
background: none;
|
|
@@ -1100,7 +1102,7 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1100
1102
|
}
|
|
1101
1103
|
|
|
1102
1104
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1103
|
-
color: ${
|
|
1105
|
+
color: ${An.colorOnSurfaceDisabled};
|
|
1104
1106
|
}
|
|
1105
1107
|
|
|
1106
1108
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1108,49 +1110,49 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1108
1110
|
}
|
|
1109
1111
|
|
|
1110
1112
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1111
|
-
${
|
|
1112
|
-
${
|
|
1113
|
+
${kt(In.borderColor,An.colorPrimary)};
|
|
1114
|
+
${kt(In.textColor,An.colorPrimary)};
|
|
1113
1115
|
}
|
|
1114
1116
|
|
|
1115
1117
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1116
|
-
border-radius: ${
|
|
1118
|
+
border-radius: ${An.borderRadiusS} ${An.borderRadiusS} 0 0;
|
|
1117
1119
|
}
|
|
1118
1120
|
|
|
1119
1121
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1120
1122
|
align-self: stretch;
|
|
1121
|
-
margin-bottom: ${
|
|
1122
|
-
margin-top: calc(${
|
|
1123
|
+
margin-bottom: ${An.verticalSpacing};
|
|
1124
|
+
margin-top: calc(${An.labelSize} + 2 * ${An.verticalSpacing});
|
|
1123
1125
|
}
|
|
1124
1126
|
|
|
1125
1127
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1126
|
-
border-radius: ${
|
|
1128
|
+
border-radius: ${An.borderRadiusS};
|
|
1127
1129
|
}
|
|
1128
1130
|
|
|
1129
1131
|
.ft-text-area--helper-text {
|
|
1130
|
-
padding: 0 12px 0 ${
|
|
1131
|
-
color: ${
|
|
1132
|
+
padding: 0 12px 0 ${An.horizontalSpacing};
|
|
1133
|
+
color: ${An.helperColor};
|
|
1132
1134
|
}
|
|
1133
1135
|
|
|
1134
1136
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1135
1137
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1136
|
-
color: ${
|
|
1138
|
+
color: ${An.colorError};
|
|
1137
1139
|
}
|
|
1138
1140
|
|
|
1139
1141
|
ft-resizer {
|
|
1140
1142
|
position: absolute;
|
|
1141
1143
|
bottom: 0;
|
|
1142
1144
|
}
|
|
1143
|
-
`;var
|
|
1145
|
+
`;var Wn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Dn extends(Mi(zt,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ot`
|
|
1144
1146
|
<style>
|
|
1145
1147
|
.ft-text-area--main-panel {
|
|
1146
|
-
height: calc(4 * ${
|
|
1148
|
+
height: calc(4 * ${An.verticalSpacing} + ${An.labelSize} + ${An.fontSize} + ${this.height}px);
|
|
1147
1149
|
}
|
|
1148
1150
|
|
|
1149
1151
|
ft-resizer {
|
|
1150
1152
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1151
1153
|
}
|
|
1152
1154
|
</style>
|
|
1153
|
-
<div class="${
|
|
1155
|
+
<div class="${hn(t)}">
|
|
1154
1156
|
<div class="ft-text-area--main-panel">
|
|
1155
1157
|
<ft-input-label text="${this.label}"
|
|
1156
1158
|
?disabled=${this.disabled}
|
|
@@ -1182,27 +1184,27 @@ const pn=qr(class extends Yr{constructor(t){var e;if(super(t),t.type!==Gr||"clas
|
|
|
1182
1184
|
${this.helper}
|
|
1183
1185
|
</ft-typography>`:void 0}
|
|
1184
1186
|
</div>
|
|
1185
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1187
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Dn.elementDefinitions={"ft-input-label":_n,"ft-resizer":Rn,"ft-ripple":pn,"ft-typography":Kr},Dn.styles=[Yo,Tn],Wn([a({type:String})],Dn.prototype,"label",void 0),Wn([a({reflect:!0})],Dn.prototype,"value",void 0),Wn([a({type:String})],Dn.prototype,"helper",void 0),Wn([a({type:Boolean})],Dn.prototype,"outlined",void 0),Wn([a({type:Boolean})],Dn.prototype,"disabled",void 0),Wn([a({type:Boolean})],Dn.prototype,"error",void 0),Wn([a({type:Number,reflect:!0})],Dn.prototype,"height",void 0),Wn([c("textarea")],Dn.prototype,"textarea",void 0),Wn([s()],Dn.prototype,"focused",void 0),b("ft-text-area")(Dn);
|
|
1186
1188
|
/**
|
|
1187
1189
|
* @license
|
|
1188
1190
|
* Copyright 2020 Google LLC
|
|
1189
1191
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1190
1192
|
*/
|
|
1191
|
-
const{I:
|
|
1193
|
+
const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(jn(),n),o=r.insertBefore(jn(),n);i=new Fn(e,o,t,t.options)}else{const e=i._$AB.nextSibling,a=i._$AM,s=a!==t;if(s){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==a._$AU&&i._$AP(e)}if(e!==n||s){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},Bn=(t,e,i=t)=>(t._$AI(e,i),t),Mn={},Pn=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Kn=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Zn=Gr(class extends Vr{constructor(t){if(super(t),t.type!==Hr)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:a,keys:s}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=s,a;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let f,d,h=0,u=n.length-1,p=0,y=a.length-1;for(;h<=u&&p<=y;)if(null===n[h])h++;else if(null===n[u])u--;else if(l[h]===s[p])c[p]=Bn(n[h],a[p]),h++,p++;else if(l[u]===s[y])c[y]=Bn(n[u],a[y]),u--,y--;else if(l[h]===s[y])c[y]=Bn(n[h],a[y]),zn(t,c[y+1],n[h]),h++,y--;else if(l[u]===s[p])c[p]=Bn(n[u],a[p]),zn(t,n[h],n[u]),u--,p++;else if(void 0===f&&(f=Kn(s,p,y),d=Kn(l,h,u)),f.has(l[h]))if(f.has(l[u])){const e=d.get(s[p]),i=void 0!==e?n[e]:null;if(null===i){const e=zn(t,n[h]);Bn(e,a[p]),c[p]=e}else c[p]=Bn(i,a[p]),zn(t,n[h],i),n[e]=null;p++}else Pn(n[u]),u--;else Pn(n[h]),h++;for(;p<=y;){const e=zn(t,c[y+1]);Bn(e,a[p]),c[p++]=e}for(;h<=u;){const t=n[h++];null!==t&&Pn(t)}return this.ht=s,((t,e=Mn)=>{t._$AH=e})(t,c),rt}});
|
|
1192
1194
|
/**
|
|
1193
1195
|
* @license
|
|
1194
1196
|
* Copyright 2017 Google LLC
|
|
1195
1197
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1196
|
-
*/class
|
|
1198
|
+
*/class Hn extends zt{render(){return ot`
|
|
1197
1199
|
<div class="ft-loader">
|
|
1198
1200
|
<div></div>
|
|
1199
1201
|
<div></div>
|
|
1200
1202
|
<div></div>
|
|
1201
1203
|
<div></div>
|
|
1202
1204
|
</div>
|
|
1203
|
-
`}}
|
|
1205
|
+
`}}Hn.styles=nr,b("ft-loader")(Hn);var Gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Vn extends(Mi(zt,"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(ot`
|
|
1204
1206
|
<button part="button"
|
|
1205
|
-
class="${
|
|
1207
|
+
class="${hn(this.buttonClasses)}"
|
|
1206
1208
|
aria-label="${this.getLabel()}"
|
|
1207
1209
|
?disabled=${this.isDisabled()}>
|
|
1208
1210
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -1223,7 +1225,7 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1223
1225
|
</ft-tooltip>
|
|
1224
1226
|
`:t}resolveIcon(){return this.loading?ot`
|
|
1225
1227
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?ot`
|
|
1226
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}
|
|
1228
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}Vn.elementDefinitions={"ft-ripple":pn,"ft-tooltip":dn,"ft-typography":Kr,"ft-icon":en,"ft-loader":Hn},Gn([a({type:String,reflect:!0})],Vn.prototype,"role",void 0),Gn([a()],Vn.prototype,"type",void 0),Gn([a({type:Boolean})],Vn.prototype,"disabled",void 0),Gn([a()],Vn.prototype,"label",void 0),Gn([a()],Vn.prototype,"icon",void 0),Gn([a()],Vn.prototype,"iconVariant",void 0),Gn([a({type:Boolean})],Vn.prototype,"trailingIcon",void 0),Gn([a({type:Boolean})],Vn.prototype,"loading",void 0),Gn([a()],Vn.prototype,"tooltipPosition",void 0),Gn([a({type:Boolean})],Vn.prototype,"hideTooltip",void 0),Gn([a({type:Boolean})],Vn.prototype,"forceTooltip",void 0),Gn([c(".ft-button")],Vn.prototype,"button",void 0),Gn([c(".ft-button--label slot")],Vn.prototype,"slottedContent",void 0);var qn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Yn extends Vn{constructor(){super(...arguments),this.primary=!1,this.outlined=!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"}}Yn.styles=[Mt,br],qn([a({type:Boolean})],Yn.prototype,"primary",void 0),qn([a({type:Boolean})],Yn.prototype,"outlined",void 0),qn([a({type:Boolean})],Yn.prototype,"dense",void 0),qn([a({type:Boolean})],Yn.prototype,"round",void 0);const Xn=[$`
|
|
1227
1229
|
:host {
|
|
1228
1230
|
display: inline-block;
|
|
1229
1231
|
max-width: 100%;
|
|
@@ -1302,13 +1304,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1302
1304
|
/** Primary styles **/
|
|
1303
1305
|
|
|
1304
1306
|
.ft-button--primary {
|
|
1305
|
-
${
|
|
1307
|
+
${kt(rr.color,Ut.primaryIconColor)};
|
|
1306
1308
|
|
|
1307
|
-
${
|
|
1308
|
-
${
|
|
1309
|
-
${
|
|
1310
|
-
${
|
|
1311
|
-
${
|
|
1309
|
+
${kt(Qi.color,Ut.primaryStateLayerColor)};
|
|
1310
|
+
${kt(Qi.opacityContentOnSurfaceHover,Ut.primaryStateLayerOpacityHover)};
|
|
1311
|
+
${kt(Qi.opacityContentOnSurfaceFocused,Ut.primaryStateLayerOpacityFocus)};
|
|
1312
|
+
${kt(Qi.opacityContentOnSurfaceSelected,Ut.primaryStateLayerOpacityActive)};
|
|
1313
|
+
${kt(Qi.opacityContentOnSurfacePressed,Ut.primaryStateLayerOpacityActive)};
|
|
1312
1314
|
|
|
1313
1315
|
background-color: ${Ut.primaryBackgroundColor};
|
|
1314
1316
|
color: ${Ut.primaryColor};
|
|
@@ -1326,13 +1328,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1326
1328
|
/** Secondary styles **/
|
|
1327
1329
|
|
|
1328
1330
|
.ft-button--secondary {
|
|
1329
|
-
${
|
|
1331
|
+
${kt(rr.color,Ut.secondaryIconColor)};
|
|
1330
1332
|
|
|
1331
|
-
${
|
|
1332
|
-
${
|
|
1333
|
-
${
|
|
1334
|
-
${
|
|
1335
|
-
${
|
|
1333
|
+
${kt(Qi.color,Ut.secondaryStateLayerColor)};
|
|
1334
|
+
${kt(Qi.opacityContentOnSurfaceHover,Ut.secondaryStateLayerOpacityHover)};
|
|
1335
|
+
${kt(Qi.opacityContentOnSurfaceFocused,Ut.secondaryStateLayerOpacityFocus)};
|
|
1336
|
+
${kt(Qi.opacityContentOnSurfaceSelected,Ut.secondaryStateLayerOpacityActive)};
|
|
1337
|
+
${kt(Qi.opacityContentOnSurfacePressed,Ut.secondaryStateLayerOpacityActive)};
|
|
1336
1338
|
|
|
1337
1339
|
background-color: ${Ut.secondaryBackgroundColor};
|
|
1338
1340
|
color: ${Ut.secondaryColor};
|
|
@@ -1351,13 +1353,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1351
1353
|
/** Tertiary styles **/
|
|
1352
1354
|
|
|
1353
1355
|
.ft-button--tertiary {
|
|
1354
|
-
${
|
|
1356
|
+
${kt(rr.color,Ut.tertiaryIconColor)};
|
|
1355
1357
|
|
|
1356
|
-
${
|
|
1357
|
-
${
|
|
1358
|
-
${
|
|
1359
|
-
${
|
|
1360
|
-
${
|
|
1358
|
+
${kt(Qi.color,Ut.tertiaryStateLayerColor)};
|
|
1359
|
+
${kt(Qi.opacityContentOnSurfaceHover,Ut.tertiaryStateLayerOpacityHover)};
|
|
1360
|
+
${kt(Qi.opacityContentOnSurfaceFocused,Ut.tertiaryStateLayerOpacityFocus)};
|
|
1361
|
+
${kt(Qi.opacityContentOnSurfaceSelected,Ut.tertiaryStateLayerOpacityActive)};
|
|
1362
|
+
${kt(Qi.opacityContentOnSurfacePressed,Ut.tertiaryStateLayerOpacityActive)};
|
|
1361
1363
|
|
|
1362
1364
|
background-color: ${Ut.tertiaryBackgroundColor};
|
|
1363
1365
|
color: ${Ut.tertiaryColor};
|
|
@@ -1375,13 +1377,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1375
1377
|
/** Neutral styles **/
|
|
1376
1378
|
|
|
1377
1379
|
.ft-button--neutral {
|
|
1378
|
-
${
|
|
1380
|
+
${kt(rr.color,Ut.neutralIconColor)};
|
|
1379
1381
|
|
|
1380
|
-
${
|
|
1381
|
-
${
|
|
1382
|
-
${
|
|
1383
|
-
${
|
|
1384
|
-
${
|
|
1382
|
+
${kt(Qi.backgroundColor,Ut.neutralStateLayerColor)};
|
|
1383
|
+
${kt(Qi.opacityContentOnSurfaceHover,Ut.neutralStateLayerOpacityHover)};
|
|
1384
|
+
${kt(Qi.opacityContentOnSurfaceFocused,Ut.neutralStateLayerOpacityFocus)};
|
|
1385
|
+
${kt(Qi.opacityContentOnSurfaceSelected,Ut.neutralStateLayerOpacityActive)};
|
|
1386
|
+
${kt(Qi.opacityContentOnSurfacePressed,Ut.neutralStateLayerOpacityActive)};
|
|
1385
1387
|
|
|
1386
1388
|
background-color: ${Ut.neutralBackgroundColor};
|
|
1387
1389
|
color: ${Ut.neutralColor};
|
|
@@ -1399,8 +1401,8 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1399
1401
|
/** Large styles **/
|
|
1400
1402
|
|
|
1401
1403
|
.ft-button--large {
|
|
1402
|
-
${
|
|
1403
|
-
${
|
|
1404
|
+
${kt(ar.size,Ut.largeIconSize)};
|
|
1405
|
+
${kt(rr.size,Ut.largeIconSize)};
|
|
1404
1406
|
|
|
1405
1407
|
height: ${Ut.largeHeight};
|
|
1406
1408
|
padding: 0 ${Ut.largeHorizontalPadding};
|
|
@@ -1422,8 +1424,8 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1422
1424
|
/** Small styles **/
|
|
1423
1425
|
|
|
1424
1426
|
.ft-button--small {
|
|
1425
|
-
${
|
|
1426
|
-
${
|
|
1427
|
+
${kt(ar.size,Ut.smallIconSize)};
|
|
1428
|
+
${kt(rr.size,Ut.smallIconSize)};
|
|
1427
1429
|
|
|
1428
1430
|
height: ${Ut.smallHeight};
|
|
1429
1431
|
padding: 0 ${Ut.smallHorizontalPadding};
|
|
@@ -1441,15 +1443,15 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1441
1443
|
width: ${Ut.smallIconOnlyWidth};
|
|
1442
1444
|
padding: unset;
|
|
1443
1445
|
}
|
|
1444
|
-
`,Bt];var
|
|
1445
|
-
`,
|
|
1446
|
-
`,
|
|
1446
|
+
`,Bt];var Jn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qn extends Vn{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?Mr.caption1medium:Mr.body2medium}}Qn.styles=[Mt,Xn],Jn([a({type:Boolean})],Qn.prototype,"primary",void 0),Jn([a({type:Boolean})],Qn.prototype,"secondary",void 0),Jn([a({type:Boolean})],Qn.prototype,"tertiary",void 0),Jn([a({type:Boolean})],Qn.prototype,"neutral",void 0),Jn([a({type:Boolean})],Qn.prototype,"small",void 0),b("ft-button")(Yn),b("ftds-button")(Qn);const ta=$`
|
|
1447
|
+
`,ea=$`
|
|
1448
|
+
`,ia=ji.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 oa{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ia.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?oa.build(t):null!==(e=oa.API)&&void 0!==e?e:oa.API=oa.build()}static await(t){return new Promise((e=>{let i=oa.get(t);if(i)e(i);else{const o=ia.subscribe((()=>{i=oa.get(t),i&&(o(),e(i))}))}}))}}var ra;const na=Symbol("clearAfterUnitTest");class aa{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ra]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=ia.getState().uiLocale,ia.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ia.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};y(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Pt(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>p(0).then((()=>t())).catch((()=>null)))))}}ra=na,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new aa((async(t,e)=>(await oa.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new aa((async(t,e)=>(await oa.await()).getCustomMessageContext(t,e))));const sa=window.FluidTopicsI18nService,la=window.FluidTopicsCustomI18nService;var ca=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fa extends zt{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=()=>oa.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ot`
|
|
1447
1449
|
<slot></slot>
|
|
1448
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
1450
|
+
`}update(t){super.update(t),t.has("baseUrl")&&ia.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ia.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ia.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ia.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ia.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ia.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ia.actions.setSession(this.session),t.has("availableUiLocales")&&ia.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>sa.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()))))}}fa.elementDefinitions={},fa.styles=ea,ca([a()],fa.prototype,"baseUrl",void 0),ca([a()],fa.prototype,"apiIntegrationIdentifier",void 0),ca([a()],fa.prototype,"uiLocale",void 0),ca([g([])],fa.prototype,"availableUiLocales",void 0),ca([a({type:Boolean})],fa.prototype,"editorMode",void 0),ca([a({type:Boolean})],fa.prototype,"noCustom",void 0),ca([a({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],fa.prototype,"noCustomComponent",void 0),ca([a({type:Boolean})],fa.prototype,"withManualResources",void 0),ca([g([])],fa.prototype,"messageContexts",void 0),ca([g(void 0)],fa.prototype,"session",void 0),ca([a({type:Object})],fa.prototype,"apiProvider",void 0);class da{async listMySearches(){var t;return(null===(t=ia.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await oa.await()).listMySearches(ia.getState().session.profile.userId):[]}}const ha=new o;class ua{async listMyBookmarks(){return ha.get("bookmarks",(async()=>(await oa.await()).listMyBookmarks(ia.getState().session.profile.userId)))}clearCache(){ha.clear("bookmarks")}}const pa=ji.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ya=new class{constructor(){this.currentSession=ia.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ua,ia.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ia.getState();y(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(){pa.actions.savedSearches(void 0)}clearMyBookmarks(){pa.actions.bookmarks(void 0)}async reloadMySearches(){const t=new da,e=await t.listMySearches();pa.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;pa.actions.bookmarks(e)}}};b("ft-app-context")(fa);var ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ga=Symbol("i18nProperties"),va=Symbol("i18nUnsubs");function ma(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?la:sa}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ga])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ga])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ga]&&new Set([...this[ga].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[va].has(t)||this[va].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[va].forEach((t=>t())),this[va].clear()}}return e=va,ba([a({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class xa extends(ma(zt)){}class wa extends(ma(Xt)){}var Oa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Sa extends wa{constructor(){super(),this.editorMode=!1,this.addStore(ia)}render(){return this.key&&this.context?ot`
|
|
1449
1451
|
<span class="ft-i18n">
|
|
1450
1452
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1451
1453
|
</span>
|
|
1452
|
-
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
1454
|
+
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Sa.elementDefinitions={},Sa.styles=ta,Oa([zi()],Sa.prototype,"editorMode",void 0),Oa([a()],Sa.prototype,"context",void 0),Oa([a()],Sa.prototype,"key",void 0),Oa([g([])],Sa.prototype,"args",void 0),Oa([a()],Sa.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 i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>sa.resolveMessage(this.name,e,...t)})}}const Na=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ga]=null!==(n=i[ga])&&void 0!==n?n:new Map,i[ga].set(o,a)};b("ft-i18n")(Sa);const Ca=$a.build("integratedFeedbackComponent"),ka={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Ea=$a.build("inDesignerFeedbackComponent"),Ra={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},Ia={fontSize:Ct.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ct.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ct.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ct.extend("--ft-text-field-helper-color","",Lt.colorOnSurfaceMedium),colorPrimary:Ct.external(Lt.colorPrimary,"Design system"),colorOnSurface:Ct.external(Lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ct.external(Lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system"),prefixColor:Ct.extend("--ft-text-field-prefix-color","",Lt.colorOnSurfaceMedium),iconColor:Ct.extend("--ft-text-field-icon-color","",Lt.colorOnSurfaceMedium),floatingZIndex:Ct.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ct.external(Lt.colorSurface,"Design system"),colorOutline:Ct.external(Lt.colorOutline,"Design system"),elevation02:Ct.external(Lt.elevation02,"Design system"),suggestSize:Ct.create("--ft-text-field-suggest-size","","SIZE","300px")},Ua=$`
|
|
1453
1455
|
*:focus {
|
|
1454
1456
|
outline: none;
|
|
1455
1457
|
}
|
|
@@ -1462,16 +1464,16 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1462
1464
|
}
|
|
1463
1465
|
|
|
1464
1466
|
ft-input-label {
|
|
1465
|
-
${
|
|
1466
|
-
${
|
|
1467
|
-
${
|
|
1468
|
-
${
|
|
1467
|
+
${kt(In.fontSize,Ia.fontSize)};
|
|
1468
|
+
${kt(In.raisedFontSize,Ia.labelSize)};
|
|
1469
|
+
${kt(In.verticalSpacing,Ia.verticalSpacing)};
|
|
1470
|
+
${kt(In.horizontalSpacing,Ia.horizontalSpacing)};
|
|
1469
1471
|
}
|
|
1470
1472
|
|
|
1471
1473
|
.ft-text-field--main-panel {
|
|
1472
1474
|
position: relative;
|
|
1473
1475
|
display: flex;
|
|
1474
|
-
height: calc(4 * ${
|
|
1476
|
+
height: calc(4 * ${Ia.verticalSpacing} + ${Ia.labelSize} + ${Ia.fontSize});
|
|
1475
1477
|
}
|
|
1476
1478
|
|
|
1477
1479
|
.ft-text-field--input-panel {
|
|
@@ -1480,24 +1482,24 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1480
1482
|
display: flex;
|
|
1481
1483
|
align-items: center;
|
|
1482
1484
|
overflow: hidden;
|
|
1483
|
-
padding: 0 ${
|
|
1485
|
+
padding: 0 ${Ia.horizontalSpacing};
|
|
1484
1486
|
|
|
1485
|
-
${
|
|
1486
|
-
${
|
|
1487
|
+
${kt(No.fontSize,Ia.fontSize)};
|
|
1488
|
+
${kt(No.lineHeight,Ia.fontSize)};
|
|
1487
1489
|
}
|
|
1488
1490
|
|
|
1489
1491
|
.ft-text-field--input-panel ft-ripple {
|
|
1490
|
-
${
|
|
1491
|
-
${
|
|
1492
|
+
${kt(Qi.opacityContentOnSurfaceHover,"0.08")};
|
|
1493
|
+
${kt(Qi.opacityContentOnSurfacePressed,"0.04")};
|
|
1492
1494
|
}
|
|
1493
1495
|
|
|
1494
1496
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1495
1497
|
align-items: flex-end;
|
|
1496
|
-
padding: 0 ${
|
|
1498
|
+
padding: 0 ${Ia.horizontalSpacing} ${Ia.verticalSpacing} ${Ia.horizontalSpacing};
|
|
1497
1499
|
}
|
|
1498
1500
|
|
|
1499
1501
|
.ft-text-field--prefix {
|
|
1500
|
-
color: ${
|
|
1502
|
+
color: ${Ia.prefixColor};
|
|
1501
1503
|
margin-right: 2px;
|
|
1502
1504
|
flex-shrink: 1;
|
|
1503
1505
|
overflow: hidden;
|
|
@@ -1516,15 +1518,15 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1516
1518
|
flex-shrink: 1;
|
|
1517
1519
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1518
1520
|
|
|
1519
|
-
color: ${
|
|
1520
|
-
padding: calc(2 * ${
|
|
1521
|
+
color: ${Ia.colorOnSurface};
|
|
1522
|
+
padding: calc(2 * ${Ia.verticalSpacing}) 0;
|
|
1521
1523
|
border: none;
|
|
1522
1524
|
background: none;
|
|
1523
1525
|
}
|
|
1524
1526
|
|
|
1525
1527
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1526
1528
|
padding-bottom: 0;
|
|
1527
|
-
padding-top: calc(${
|
|
1529
|
+
padding-top: calc(${Ia.labelSize} + 2 * ${Ia.verticalSpacing});
|
|
1528
1530
|
}
|
|
1529
1531
|
|
|
1530
1532
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1533,37 +1535,37 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1533
1535
|
}
|
|
1534
1536
|
|
|
1535
1537
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1536
|
-
color: ${
|
|
1538
|
+
color: ${Ia.colorOnSurfaceDisabled};
|
|
1537
1539
|
}
|
|
1538
1540
|
|
|
1539
1541
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1540
|
-
${
|
|
1541
|
-
${
|
|
1542
|
+
${kt(In.borderColor,Ia.colorPrimary)};
|
|
1543
|
+
${kt(In.textColor,Ia.colorPrimary)};
|
|
1542
1544
|
}
|
|
1543
1545
|
|
|
1544
1546
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1545
|
-
border-radius: ${
|
|
1547
|
+
border-radius: ${Ia.borderRadiusS} ${Ia.borderRadiusS} 0 0;
|
|
1546
1548
|
}
|
|
1547
1549
|
|
|
1548
1550
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1549
|
-
border-radius: ${
|
|
1551
|
+
border-radius: ${Ia.borderRadiusS};
|
|
1550
1552
|
}
|
|
1551
1553
|
|
|
1552
1554
|
.ft-text-field--helper-text {
|
|
1553
|
-
padding: 0 12px 0 ${
|
|
1554
|
-
color: ${
|
|
1555
|
+
padding: 0 12px 0 ${Ia.horizontalSpacing};
|
|
1556
|
+
color: ${Ia.helperColor};
|
|
1555
1557
|
}
|
|
1556
1558
|
|
|
1557
1559
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1558
1560
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1559
1561
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1560
|
-
color: ${
|
|
1562
|
+
color: ${Ia.colorError};
|
|
1561
1563
|
}
|
|
1562
1564
|
|
|
1563
1565
|
.ft-text-field--icon {
|
|
1564
1566
|
align-self: center;
|
|
1565
1567
|
margin-left: 8px;
|
|
1566
|
-
color: ${
|
|
1568
|
+
color: ${Ia.iconColor};
|
|
1567
1569
|
}
|
|
1568
1570
|
|
|
1569
1571
|
.ft-text-field--container {
|
|
@@ -1576,13 +1578,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1576
1578
|
position: absolute;
|
|
1577
1579
|
left: 0;
|
|
1578
1580
|
right: 0;
|
|
1579
|
-
z-index: ${
|
|
1580
|
-
background: ${
|
|
1581
|
-
border: 1px solid ${
|
|
1582
|
-
border-radius: 0 0 ${
|
|
1583
|
-
box-shadow: ${
|
|
1581
|
+
z-index: ${Ia.floatingZIndex};
|
|
1582
|
+
background: ${Ia.colorSurface};
|
|
1583
|
+
border: 1px solid ${Ia.colorOutline};
|
|
1584
|
+
border-radius: 0 0 ${Ia.borderRadiusS} ${Ia.borderRadiusS};
|
|
1585
|
+
box-shadow: ${Ia.elevation02};
|
|
1584
1586
|
outline: none;
|
|
1585
|
-
max-height: ${
|
|
1587
|
+
max-height: ${Ia.suggestSize};
|
|
1586
1588
|
overflow-y: auto;
|
|
1587
1589
|
}
|
|
1588
1590
|
|
|
@@ -1599,14 +1601,14 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1599
1601
|
}
|
|
1600
1602
|
|
|
1601
1603
|
.ft-text-field--with-icon {
|
|
1602
|
-
${
|
|
1604
|
+
${kt(In.labelMaxWidth,`calc(100% - ${ar.size} - ${In.horizontalSpacing})`)};
|
|
1603
1605
|
}
|
|
1604
1606
|
|
|
1605
1607
|
.ft-text-field--with-password ft-icon:hover {
|
|
1606
1608
|
cursor: pointer;
|
|
1607
1609
|
}
|
|
1608
|
-
`;var
|
|
1609
|
-
<div class="${
|
|
1610
|
+
`;var La=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class _a extends(Mi(zt,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Xr.EYE_SLASH,this.passwordRevealedIcon=Xr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return ot`
|
|
1611
|
+
<div class="${hn(t)}">
|
|
1610
1612
|
<div class="ft-text-field--main-panel"
|
|
1611
1613
|
@keydown=${this.handleKeyboardNavigation}
|
|
1612
1614
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1656,7 +1658,7 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1656
1658
|
.variant=${this.iconVariant}
|
|
1657
1659
|
.value=${this.icon}
|
|
1658
1660
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1659
|
-
`:nt}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}
|
|
1661
|
+
`:nt}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}_a.elementDefinitions={"ft-input-label":_n,"ft-ripple":pn,"ft-typography":Kr,"ft-icon":en},_a.styles=[Yo,Ua],La([a()],_a.prototype,"label",void 0),La([a({noAccessor:!0})],_a.prototype,"value",null),La([s()],_a.prototype,"dispatchedValue",void 0),La([a()],_a.prototype,"helper",void 0),La([a({type:Boolean})],_a.prototype,"outlined",void 0),La([a({type:Boolean})],_a.prototype,"disabled",void 0),La([a({type:Boolean})],_a.prototype,"error",void 0),La([a()],_a.prototype,"prefix",void 0),La([a()],_a.prototype,"icon",void 0),La([a()],_a.prototype,"passwordHiddenIcon",void 0),La([a()],_a.prototype,"passwordRevealedIcon",void 0),La([a()],_a.prototype,"iconVariant",void 0),La([a({type:Boolean})],_a.prototype,"filterSuggestions",void 0),La([a({type:Number})],_a.prototype,"maxLength",void 0),La([a({type:Boolean})],_a.prototype,"password",void 0),La([s()],_a.prototype,"focused",void 0),La([s()],_a.prototype,"hidePassword",void 0),La([s()],_a.prototype,"suggestionsOnTop",void 0),La([s()],_a.prototype,"hideSuggestions",void 0),La([s()],_a.prototype,"visibleSuggestions",void 0),La([c(".ft-text-field--main-panel")],_a.prototype,"mainPanel",void 0),La([c(".ft-text-field--input")],_a.prototype,"input",void 0),La([c(".ft-text-field--suggestions")],_a.prototype,"suggestionsContainer",void 0),La([h({selector:"ft-text-field-suggestion"})],_a.prototype,"suggestions",void 0);const Aa=$`
|
|
1660
1662
|
.ft-text-field-suggestion {
|
|
1661
1663
|
position: relative;
|
|
1662
1664
|
padding: 8px 16px;
|
|
@@ -1681,7 +1683,7 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1681
1683
|
slot {
|
|
1682
1684
|
pointer-events: none;
|
|
1683
1685
|
}
|
|
1684
|
-
`;var
|
|
1686
|
+
`;var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Wa extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Da extends zt{render(){return ot`
|
|
1685
1687
|
<div class="ft-text-field-suggestion"
|
|
1686
1688
|
tabindex="-1"
|
|
1687
1689
|
@keydown=${this.onKeyDown}
|
|
@@ -1693,15 +1695,15 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1693
1695
|
<slot></slot>
|
|
1694
1696
|
</ft-typography>
|
|
1695
1697
|
</div>
|
|
1696
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Fa(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ja.elementDefinitions={"ft-ripple":bn,"ft-typography":Hr,"ft-icon":rn},ja.styles=Wa,Da([a()],ja.prototype,"value",void 0),Da([c(".ft-text-field-suggestion")],ja.prototype,"container",void 0),Da([u()],ja.prototype,"assignedNodes",void 0),b("ft-text-field")(Ta),b("ft-text-field-suggestion")(ja);class za{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Ba{convertPaginatedToc(t){return new za(t).build()}}class Pa{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Fr(null!==(e=null===(t=ra.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ra.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Gi.FEEDBACK:return Fr(null!=e?e:[],_r.FEEDBACK_USER);case Gi.RATING:return Fr(null!=e?e:[],_r.RATING_USER)&&null!=i&&i!==$r.NO_RATING;case Gi.PRINT:return Fr(null!=e?e:[],_r.PRINT_USER);case Gi.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Gi.COLLECTIONS:return Fr(null!=e?e:[],_r.COLLECTION_USER);default:return!1}}}class Ma extends Pa{static async build(t){return new Ma(new Ba,await na.await(),new o,t)}fetchMap(t){return this.api.getMap(t)}fetchMapRating(t){return this.api.getMapRating(t)}fetchPages(t){return this.api.getPages(t)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER")}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ka{static build(t,e){return new Ka((t=>ji.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0}}))(t.trim()||"context"),null!=e?e:Ma.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await p(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const Za=N`
|
|
1697
|
-
`;class
|
|
1698
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Wa(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Da.elementDefinitions={"ft-ripple":pn,"ft-typography":Kr,"ft-icon":en},Da.styles=Aa,Ta([a()],Da.prototype,"value",void 0),Ta([c(".ft-text-field-suggestion")],Da.prototype,"container",void 0),Ta([u()],Da.prototype,"assignedNodes",void 0),b("ft-text-field")(_a),b("ft-text-field-suggestion")(Da);class Fa{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class ja{convertPaginatedToc(t){return new Fa(t).build()}}class za{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Wr(null!==(e=null===(t=ia.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ia.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Gi.FEEDBACK:return Wr(null!=e?e:[],_r.FEEDBACK_USER);case Gi.RATING:return Wr(null!=e?e:[],_r.RATING_USER)&&null!=i&&i!==Sr.NO_RATING;case Gi.PRINT:return Wr(null!=e?e:[],_r.PRINT_USER);case Gi.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Gi.COLLECTIONS:return Wr(null!=e?e:[],_r.COLLECTION_USER);default:return!1}}}class Ba extends za{static async build(t){return new Ba(new ja,await oa.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ma{static build(t,e){return new Ma((t=>ji.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0}}))(t.trim()||"context"),null!=e?e:Ba.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await p(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const Pa=$`
|
|
1699
|
+
`;class Ka extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Za extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ha extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ga extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Va extends Event{constructor(){super("ft-reader-map-not-found")}}class qa extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Ya=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Xa extends Xt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(ia)}render(){return ot`
|
|
1698
1700
|
${this.importStyleIfNeeded()}
|
|
1699
1701
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1700
1702
|
`}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?nt:ot`
|
|
1701
1703
|
<style>
|
|
1702
1704
|
@import "${i}"
|
|
1703
1705
|
</style>
|
|
1704
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=
|
|
1706
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Ma.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Ka(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ha(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Za(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Va):401===e.status?this.dispatchEvent(new qa):this.dispatchEvent(new Ga(t))}reloadBookmarks(){ya.reloadBookmarks()}}var Ja;Xa.styles=Pa,Ya([zi({store:ia.name})],Xa.prototype,"baseUrl",void 0),Ya([a()],Xa.prototype,"mapId",void 0),Ya([a()],Xa.prototype,"tocId",void 0),Ya([a()],Xa.prototype,"section",void 0),Ya([a({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Ja}})],Xa.prototype,"page",void 0),Ya([zi({store:"reader"})],Xa.prototype,"map",void 0),Ya([zi({store:"reader"})],Xa.prototype,"toc",void 0),Ya([zi({store:"reader"})],Xa.prototype,"visibleTopics",void 0),Ya([zi({store:"reader"})],Xa.prototype,"currentPage",void 0),Ya([zi({store:"reader"})],Xa.prototype,"scrollTarget",void 0),Ya([a({attribute:!1})],Xa.prototype,"readerServiceProvider",void 0),b("ft-reader-context")(Xa);var Qa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ts extends(ma(Xi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Ca,ka),this.addI18nContext(Ea,Ra)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Wr(this.session,"RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?ot`
|
|
1705
1707
|
<div class="ft-reader-feedback">
|
|
1706
1708
|
${this.hideTitle?nt:ot`
|
|
1707
1709
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1721,11 +1723,11 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1721
1723
|
${this.renderRatingDate()}
|
|
1722
1724
|
</ft-typography>
|
|
1723
1725
|
</div>
|
|
1724
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1726
|
+
`:this.placeholderInEditor(this.userHasRatingRole?Ea.messages.ratingNotConfigured():Ea.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ca.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ca.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ca.messages.ratedToday():Ca.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ot`
|
|
1725
1727
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1726
|
-
${
|
|
1728
|
+
${Zn(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ot`
|
|
1727
1729
|
<ft-button round part="rating-stars-${o}"
|
|
1728
|
-
label="${
|
|
1730
|
+
label="${Ca.messages.starsRating(o)}"
|
|
1729
1731
|
tooltipPosition="top"
|
|
1730
1732
|
.iconVariant=${this.iconVariant}
|
|
1731
1733
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1742,13 +1744,13 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1742
1744
|
?selected=${e}
|
|
1743
1745
|
.iconVariant=${this.iconVariant}
|
|
1744
1746
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1745
|
-
${
|
|
1747
|
+
${Ca.messages.like()}
|
|
1746
1748
|
</ft-switch-option>
|
|
1747
1749
|
<ft-switch-option .value=${0}
|
|
1748
1750
|
?selected=${t}
|
|
1749
1751
|
.iconVariant=${this.iconVariant}
|
|
1750
1752
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1751
|
-
${
|
|
1753
|
+
${Ca.messages.dislike()}
|
|
1752
1754
|
</ft-switch-option>
|
|
1753
1755
|
</ft-switch>
|
|
1754
1756
|
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ot`
|
|
@@ -1757,11 +1759,11 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1757
1759
|
part="rating rating-dichotomous">
|
|
1758
1760
|
<ft-switch-option .value=${1}
|
|
1759
1761
|
?selected=${o}>
|
|
1760
|
-
${
|
|
1762
|
+
${Ca.messages.dichotomousYes()}
|
|
1761
1763
|
</ft-switch-option>
|
|
1762
1764
|
<ft-switch-option .value=${0}
|
|
1763
1765
|
?selected=${i}>
|
|
1764
|
-
${
|
|
1766
|
+
${Ca.messages.dichotomousNo()}
|
|
1765
1767
|
</ft-switch-option>
|
|
1766
1768
|
</ft-switch>
|
|
1767
1769
|
`}return nt}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ot`
|
|
@@ -1770,7 +1772,7 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1770
1772
|
class="ft-reader-feedback--send-feedback"
|
|
1771
1773
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1772
1774
|
part="send-feedback">
|
|
1773
|
-
${
|
|
1775
|
+
${Ca.messages.okButton()}
|
|
1774
1776
|
</ft-button>
|
|
1775
1777
|
`;return o&&(r=ot`
|
|
1776
1778
|
<a class="ft-reader-feedback--feedback-link" href="${o}">
|
|
@@ -1785,28 +1787,28 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1785
1787
|
${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?ot`
|
|
1786
1788
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1787
1789
|
class="ft-reader-feedback--from-input"
|
|
1788
|
-
label=${
|
|
1790
|
+
label=${Ca.messages.feedbackfromEmail()}
|
|
1789
1791
|
@change=${t=>this.from=t.detail.trim()}
|
|
1790
1792
|
?error=${this.from&&!this.validFromEmail()}
|
|
1791
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1793
|
+
helper=${this.from&&!this.validFromEmail()?Ca.messages.feedbackfromEmailInvalid():""}
|
|
1792
1794
|
/>
|
|
1793
1795
|
`:nt}
|
|
1794
1796
|
<ft-text-area outlined
|
|
1795
1797
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1796
|
-
label="${
|
|
1798
|
+
label="${Ca.messages.feedbackInputLabel()}"
|
|
1797
1799
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1798
1800
|
></ft-text-area>
|
|
1799
1801
|
${r}
|
|
1800
1802
|
</form>
|
|
1801
|
-
`}return this.placeholderInEditor(
|
|
1803
|
+
`}return this.placeholderInEditor(Ea.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ot`
|
|
1802
1804
|
<div class="ft-reader-feedback--placeholder">
|
|
1803
1805
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1804
1806
|
<ft-tooltip position="left"
|
|
1805
|
-
text="${
|
|
1807
|
+
text="${Ea.messages.inDesignerOnlyNotice()}">
|
|
1806
1808
|
<ft-icon>INFO</ft-icon>
|
|
1807
1809
|
</ft-tooltip>
|
|
1808
1810
|
</div>
|
|
1809
|
-
`:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}
|
|
1811
|
+
`:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ts.elementDefinitions={"ft-button":Yn,"ft-typography":Kr,"ft-icon":en,"ft-tooltip":dn,"ft-switch":Sn,"ft-switch-option":xn,"ft-text-area":Dn,"ft-text-field":_a},ts.styles=mr,Qa([a({type:Boolean})],ts.prototype,"editorMode",void 0),Qa([a({type:Boolean})],ts.prototype,"hideTitle",void 0),Qa([a({type:Boolean})],ts.prototype,"ratingAllowed",void 0),Qa([a({attribute:!1})],ts.prototype,"i18nProperties",void 0),Qa([a({attribute:!1})],ts.prototype,"ratingSummary",void 0),Qa([a({attribute:!1})],ts.prototype,"session",void 0),Qa([c(".ft-reader-feedback--feedback-input")],ts.prototype,"feedbackInput",void 0),Qa([s()],ts.prototype,"from",void 0),Qa([s()],ts.prototype,"feedbackMessage",void 0),Qa([a()],ts.prototype,"iconVariant",void 0),Qa([a()],ts.prototype,"emptyStarIcon",void 0),Qa([a()],ts.prototype,"filledStarIcon",void 0),Qa([a()],ts.prototype,"emptyLikeIcon",void 0),Qa([a()],ts.prototype,"filledLikeIcon",void 0),Qa([a()],ts.prototype,"emptyDislikeIcon",void 0),Qa([a()],ts.prototype,"filledDislikeIcon",void 0),Qa([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ts.prototype,"configuration",void 0),Qa([a()],ts.prototype,"feedbackMailLinkBuilder",void 0);const es=$a.fromGwt("server");class is{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${es.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var os=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class rs extends(ma(Xi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Qr.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new is,this.i18nProperties={feedbackMainTitle:Ca.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ca.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ca.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ca.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ia)}render(){return this.map&&(this.editorMode||this.componentVisible)?ot`
|
|
1810
1812
|
<ft-reader-feedback
|
|
1811
1813
|
ratingAllowed
|
|
1812
1814
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1832,7 +1834,7 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1832
1834
|
display: none !important;
|
|
1833
1835
|
}
|
|
1834
1836
|
</style>
|
|
1835
|
-
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:
|
|
1837
|
+
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Ca.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}rs.elementDefinitions={"ft-reader-feedback":ts},os([zi({store:ia.name})],rs.prototype,"session",void 0),os([zi({store:"reader"})],rs.prototype,"map",void 0),os([zi({store:ia.name})],rs.prototype,"editorMode",void 0),os([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rs.prototype,"configuration",void 0),os([s()],rs.prototype,"ratingSummary",void 0),os([a({type:Boolean})],rs.prototype,"hideTitle",void 0),os([a()],rs.prototype,"iconVariant",void 0),os([a()],rs.prototype,"emptyStarIcon",void 0),os([a()],rs.prototype,"filledStarIcon",void 0),os([a()],rs.prototype,"emptyLikeIcon",void 0),os([a()],rs.prototype,"filledLikeIcon",void 0),os([a()],rs.prototype,"emptyDislikeIcon",void 0),os([a()],rs.prototype,"filledDislikeIcon",void 0),os([c("ft-reader-feedback")],rs.prototype,"readerFeedback",void 0),os([Na(es.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],rs.prototype,"mailSubject",void 0);var ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class as extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const ss=Symbol("registerInterval");class ls extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ss]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[ss]):this.dispatchEvent(new as)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ss,ns([s()],i.prototype,"tocNode",void 0),ns([s()],i.prototype,"disableContextInteractions",void 0),i}(Xi)){}var cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fs extends(ma(ls)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Qr.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new is,this.i18nProperties={feedbackMainTitle:Ca.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ca.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ca.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ca.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ia)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ot`
|
|
1836
1838
|
<ft-reader-feedback
|
|
1837
1839
|
.i18nProperties=${this.i18nProperties}
|
|
1838
1840
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1858,4 +1860,4 @@ const{I:zn}=mt,Bn=()=>document.createComment(""),Pn=(t,e,i)=>{var o;const r=t._$
|
|
|
1858
1860
|
display: none !important;
|
|
1859
1861
|
}
|
|
1860
1862
|
</style>
|
|
1861
|
-
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:
|
|
1863
|
+
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Ca.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}fs.elementDefinitions={"ft-reader-feedback":ts},cs([zi({store:ia.name})],fs.prototype,"session",void 0),cs([zi({store:"reader"})],fs.prototype,"map",void 0),cs([zi({store:ia.name})],fs.prototype,"editorMode",void 0),cs([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fs.prototype,"configuration",void 0),cs([s()],fs.prototype,"ratingSummary",void 0),cs([a({type:Boolean})],fs.prototype,"hideTitle",void 0),cs([a()],fs.prototype,"iconVariant",void 0),cs([a()],fs.prototype,"emptyStarIcon",void 0),cs([a()],fs.prototype,"filledStarIcon",void 0),cs([a()],fs.prototype,"emptyLikeIcon",void 0),cs([a()],fs.prototype,"filledLikeIcon",void 0),cs([a()],fs.prototype,"emptyDislikeIcon",void 0),cs([a()],fs.prototype,"filledDislikeIcon",void 0),cs([c("ft-reader-feedback")],fs.prototype,"readerFeedback",void 0),cs([Na(es.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],fs.prototype,"mailSubject",void 0),b("ft-reader-map-feedback")(rs),b("ft-reader-topic-feedback")(fs),t.FtReaderFeedbackCssVariables=vr,t.FtReaderMapFeedback=rs,t.FtReaderTopicFeedback=fs,t.styles=mr}({});
|