@fluid-topics/ft-reader-feedback 1.0.54 → 1.0.56
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.js +8 -4
- package/build/ft-reader-feedback.light.js +226 -210
- package/build/ft-reader-feedback.min.js +365 -349
- package/build/ft-reader-map-feedback.d.ts +1 -1
- package/build/ft-reader-map-feedback.js +2 -2
- package/build/ft-reader-topic-feedback.d.ts +1 -1
- package/build/ft-reader-topic-feedback.js +2 -2
- package/package.json +8 -5
|
@@ -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,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let d=i.call(o,t);d||(d=h(t),e.call(o,t,d)),this===window.customElements&&(s.set(n,c),c.standInClass=d);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=d(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},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),n.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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Sn){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 n=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);f(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(o,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,o=n._getDefinition(e);return o?p(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(zo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -29,44 +29,44 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const l=({finisher:t,descriptor:e})=>(i,
|
|
32
|
+
*/const l=({finisher:t,descriptor:e})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(r.finisher=function(e){t(e,n)}),r}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(o,n)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function c(t,e){return l({descriptor:i=>{const
|
|
37
|
+
*/;function c(t,e){return l({descriptor:i=>{const n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[e]&&(this[e]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var
|
|
42
|
+
*/var h;const u=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?u(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/function
|
|
47
|
+
*/function d(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?f({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}function p(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,o;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!p(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!p(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=i;0!=n--;){var r=o[n];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const v=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function b(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!p(t,e),...null!=e?e:{}})}
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/const y=window,g=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),m=new WeakMap;let w=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(g&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&m.set(e,t))}return t}toString(){return this.cssText}};const $=t=>new w("string"==typeof t?t:t+"",void 0,x),S=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,
|
|
52
|
+
*/const y=window,g=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),m=new WeakMap;let w=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(g&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&m.set(e,t))}return t}toString(){return this.cssText}};const $=t=>new w("string"==typeof t?t:t+"",void 0,x),S=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new w(i,t,x)},k=(t,e)=>{g?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=y.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},O=g?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return $(e)})(t):t
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var E;const _=window,
|
|
57
|
+
*/;var E;const _=window,R=_.trustedTypes,C=R?R.emptyScript:"",A=_.reactiveElementPolyfillSupport,N={toAttribute(t,e){switch(e){case Boolean:t=t?C: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=(t,e)=>e!==t&&(e==e||t==t),I={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:T};let j=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=I){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||I}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(O(t))}else void 0!==t&&e.push(O(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 k(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=I){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:N).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:N;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||T)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var
|
|
63
|
+
var U;j.finalized=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null==A||A({ReactiveElement:j}),(null!==(E=_.reactiveElementVersions)&&void 0!==E?E:_.reactiveElementVersions=[]).push("1.6.1");const M=window,P=M.trustedTypes,D=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,B="?"+L,z=`<${B}>`,H=document,K=()=>H.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,Z=t=>V(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),G="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Y=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,et=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),nt=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),rt=new WeakMap,st=H.createTreeWalker(H,129,null,!1),at=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===q?"!--"===l[1]?s=X:void 0!==l[1]?s=J:void 0!==l[2]?(et.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Y):void 0!==l[3]&&(s=Y):s===Y?">"===l[0]?(s=null!=o?o:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Y:'"'===l[3]?tt:Q):s===tt||s===Q?s=Y:s===X||s===J?s=q:(s=Y,o=void 0);const u=s===Y&&t[e+1].startsWith("/>")?" ":"";r+=s===q?i+z:c>=0?(n.push(a),i.slice(0,c)+F+i.slice(c)+L+u):i+L+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==D?D.createHTML(a):a,n]};class lt{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=at(t,e);if(this.el=lt.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!==(n=st.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(F)||e.startsWith(L)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+F).split(L),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?dt:"?"===e[1]?vt:"@"===e[1]?bt:ft})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(et.test(n.tagName)){const t=n.textContent.split(L),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],K()),st.nextNode(),a.push({type:2,index:++o});n.append(t[e],K())}}}else if(8===n.nodeType)if(n.data===B)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(L,t+1));)a.push({type:7,index:o}),t+=L.length-1}o++}}static createElement(t,e){const i=H.createElement("template");return i.innerHTML=t,i}}function ct(t,e,i=t,n){var o,r,s,a;if(e===nt)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=W(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ct(t,l._$AS(t,e.values),l,n)),e}let ht=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:H).importNode(i,!0);st.currentNode=o;let r=st.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ut(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new yt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=st.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ut=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),W(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ot&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=lt.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new ht(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(K()),this.k(K()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,n,o){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ot}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=ct(this,t,e,0),r=!W(t)||t!==this._$AH&&t!==nt,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=ct(this,n[i+s],e,s),a===nt&&(a=this._$AH[s]),r||(r=!W(a)||a!==this._$AH[s]),a===ot?t=ot:t!==ot&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},dt=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}};const pt=P?P.emptyScript:"";let vt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ot?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},bt=class extends ft{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ct(this,t,e,0))&&void 0!==i?i:ot)===nt)return;const n=this._$AH,o=t===ot&&n!==ot||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==ot&&(n===ot||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},yt=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){ct(this,t)}};const gt={O:F,P:L,A:B,C:1,M:at,L:ht,D:Z,R:ct,I:ut,V:ft,H:vt,N:bt,U:dt,F:yt},xt=M.litHtmlPolyfillSupport;null==xt||xt(lt,ut),(null!==(U=M.litHtmlVersions)&&void 0!==U?U:M.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 mt,wt;let $t=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,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ht(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return ot}};$t.finalized=!0,$t._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:$t});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:$t}),(null!==(wt=globalThis.litElementVersions)&&void 0!==wt?wt:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>$(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$(null!=e?e:t.defaultValue),o=S`var(${$(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=>S`var(${$(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Ot(t,e){return $(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.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 Ct extends $t{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 k(i,t.elementStyles),i}}var Rt,jt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),It=Symbol("constructorName"),Mt=Symbol("exportpartsDebouncer");class Tt extends Ct{constructor(){super(),this[Rt]=new n(5),this[It]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[It]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Mt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Rt=Mt,jt([s()],Tt.prototype,"exportpartsPrefix",void 0),jt([b([])],Tt.prototype,"exportpartsPrefixes",void 0),jt([s()],Tt.prototype,"customStylesheet",void 0);const At=S`
|
|
69
|
+
var mt,wt;let $t=class extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ut(e.insertBefore(K(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return nt}};$t.finalized=!0,$t._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:$t});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:$t}),(null!==(wt=globalThis.litElementVersions)&&void 0!==wt?wt:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let n=t=>$(null!=t?t:i),o=S`var(${$(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>S`var(${$(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=S`var(${$(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>S`var(${$(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$(null!=e?e:t.defaultValue),n=S`var(${$(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>S`var(${$(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function Ot(t,e){return $(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.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 Rt extends $t{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 k(i,t.elementStyles),i}}var Ct,At=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),Tt=Symbol("constructorName"),It=Symbol("exportpartsDebouncer");class jt extends Rt{constructor(){super(),this[Ct]=new o(5),this[Tt]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Tt]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[It].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ct=It,At([s()],jt.prototype,"exportpartsPrefix",void 0),At([b([])],jt.prototype,"exportpartsPrefixes",void 0),At([s()],jt.prototype,"customStylesheet",void 0);const Ut=S`
|
|
70
70
|
.ft-no-text-select {
|
|
71
71
|
-webkit-touch-callout: none;
|
|
72
72
|
-webkit-user-select: none;
|
|
@@ -87,7 +87,7 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
87
87
|
-webkit-hyphens: auto;
|
|
88
88
|
hyphens: auto
|
|
89
89
|
}
|
|
90
|
-
`;const
|
|
90
|
+
`;const Mt=S`
|
|
91
91
|
.ft-safari-ellipsis-fix {
|
|
92
92
|
margin-right: 0;
|
|
93
93
|
|
|
@@ -98,7 +98,7 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Dt,Pt,Bt;const Lt=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Zt extends Tt{constructor(){super(...arguments),this[Dt]=new Map,this[Pt]=new Map,this[Bt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(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[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].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[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(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[Lt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Lt].forEach((t=>t())),this[Lt]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(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 Kt(t){return!!t&&!!t[Me]}function qt(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)===Te}(t)||Array.isArray(t)||!!t[Ie]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ie])||te(t)||ee(t))}function Gt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Ae)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Jt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Xt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,i){var o=Jt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Qt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Ce&&t instanceof Map}function ee(t){return Re&&t instanceof Set}function ie(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ue(t);delete e[Me];for(var i=Ae(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ne(t,e){return void 0===e&&(e=!1),se(t)||Kt(t)||!qt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),e&&Gt(t,(function(t,e){return ne(e,!0)}),!0)),t}function re(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=ze[t];return e||Vt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){he(t),t.p.forEach(ue),t.p=null}function he(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function ue(t){var e=t[Me];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,o),o?(i[Me].P&&(de(e),Vt(4)),qt(t)&&(t=ve(e,t),e.l||ye(e,t)),e.u&&ae("Patches").M(i[Me].t,t,e.u,e.s)):t=ve(e,i,[]),de(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function ve(t,e,i){if(se(e))return e;var o=e[Me];if(!o)return Gt(e,(function(n,r){return be(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ye(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=oe(o.k):o.o,r=n,s=!1;3===o.i&&(r=new Set(n),n.clear(),s=!0),Gt(r,(function(e,r){return be(t,o,n,e,r,i,s)})),ye(t,n,!1),i&&t.u&&ae("Patches").N(o,i,t.u,t.s)}return o.o}function be(t,e,i,o,n,r,s){if(Kt(n)){var a=ve(t,n,r&&e&&3!==e.i&&!Xt(e.R,o)?r.concat(o):void 0);if(Yt(i,o,a),!Kt(a))return;t.m=!1}else s&&i.add(n);if(qt(n)&&!se(n)){if(!t.h.D&&t._<1)return;ve(t,n),e&&e.A.l||ye(t,n)}}function ye(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ne(e,i)}function ge(t,e){var i=t[Me];return(i?ie(i):t)[e]}function xe(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 me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=oe(t.t))}function $e(t,e,i){var o=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=Fe;i&&(n=[o],r=De);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(o),o}function Se(t){return Kt(t)||Vt(22,t),function t(e){if(!qt(e))return e;var i,o=e[Me],n=Jt(e);if(o){if(!o.P&&(o.i<4||!ae("ES5").K(o)))return o.t;o.I=!0,i=ke(e,n),o.I=!1}else i=ke(e,n);return Gt(i,(function(e,n){o&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(o.t,e)===n||Yt(i,e,t(n))})),3===n?new Set(i):i}(t)}function ke(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Dt=Wt,Pt=Ht,Bt=Lt;var Oe,Ee,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Re="undefined"!=typeof Set,je="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=_e?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Ie=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Me=_e?Symbol.for("immer-state"):"__$immer_state",Te=""+Object.prototype.constructor,Ae="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ue=Object.getOwnPropertyDescriptors||function(t){var e={};return Ae(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ze={},Fe={get:function(t,e){if(e===Me)return t;var i=ie(t);if(!Xt(i,e))return function(t,e,i){var o,n=xe(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!qt(o)?o:o===ge(t.t,e)?(we(t),t.o[e]=$e(t.A.h,o,t)):o},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var o=xe(ie(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=ge(ie(t),e),r=null==n?void 0:n[Me];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Qt(i,n)&&(void 0!==i||Xt(t.t,e)))return!0;we(t),me(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!==ge(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(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(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},De={};Gt(Fe,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Pe=function(){function t(t){var e=this;this.O=je,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Vt(6),void 0!==o&&"function"!=typeof o&&Vt(7),qt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?de(a):he(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,o),pe(t,a)}),(function(t){throw de(a),t})):(ce(a,o),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ne(s,!0),o){var d=[],h=[];ae("Patches").M(t,s,d,h),o(d,h)}return s}Vt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){qt(t)||Vt(8),Kt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Me].C=!0,he(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!je&&Vt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=ae("Patches").$;return Kt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Be=new Pe,Le=Be.produce;function We(t){return We="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},We(t)}function He(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ze(t,e,i){return(e=He(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ve(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 Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){Ze(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qe(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. "}Be.produceWithPatches.bind(Be),Be.setAutoFreeze.bind(Be),Be.setUseProxies.bind(Be),Be.applyPatches.bind(Be),Be.createDraft.bind(Be),Be.finishDraft.bind(Be);var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Ye(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(qe(1));return i(Ye)(t,e)}if("function"!=typeof t)throw new Error(qe(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function d(){if(l)throw new Error(qe(3));return r}function h(t){if("function"!=typeof t)throw new Error(qe(4));if(l)throw new Error(qe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(qe(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(qe(7));if(void 0===t.type)throw new Error(qe(8));if(l)throw new Error(qe(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Xe.INIT}),(o={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(qe(10));n=t,f({type:Xe.REPLACE})}})[Ge]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function i(){t.next&&t.next(d())}return i(),{unsubscribe:e(i)}}})[Ge]=function(){return this},t},o}function Qe(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Xe.INIT}))throw new Error(qe(12));if(void 0===i(void 0,{type:Xe.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(qe(14));n[l]=h,o=o||h!==d}return(o=o||s.length!==Object.keys(t).length)?n:t}}function ti(){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 ei(){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(qe(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=ti.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:o})}}}function ii(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var oi=ii();oi.withExtraArgument=ii;var ni,ri=oi,si=(ni=function(t,e){return ni=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])},ni(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}ni(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,o,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},li=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},ci=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&vi(t,i,e[i]);if(fi)for(var o=0,n=fi(e);o<n.length;o++){i=n[o];pi.call(e,i)&&vi(t,i,e[i])}return t},yi=function(t,e){return di(t,hi(e))},gi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return qt(t)?Le(t,(function(){})):t}function $i(){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 xi;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(ri.withExtraArgument(i.extraArgument)):o.push(ri));return o}(t)}}function Si(t){var e,i=$i(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,d=o.preloadedState,h=void 0===d?void 0:d,f=o.enhancers,u=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=gi(bi({trace:!1},"object"==typeof c&&c)));var y=new mi(v),g=y;return Array.isArray(u)?g=li([v],u):"function"==typeof u&&(g=u(y)),Ye(e,h,b.apply(void 0,g))}function ki(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function Ei(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:wi(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,d=bi(bi({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?Oi(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return wi(t())};else{var c=wi(t);n=function(){return c}}function d(t,e){void 0===t&&(t=n());var i=li([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(Kt(t))return void 0===(o=i(t,e))?t:o;if(qt(t))return Le(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 d.getInitialState=n,d}(o,(function(t){for(var e in d)t.addCase(e,d[e]);for(var i=0,o=s;i<o.length;i++){var n=o[i];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ki(c,o):ki(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ci=function(t,e){this.payload=t,this.meta=e},Ri=function(t,e){this.payload=t,this.meta=e},ji=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var n=o[i];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=ki(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:yi(bi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),n=ki(t+"/pending",(function(t,e,i){return{payload:void 0,meta:yi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=ki(t+"/rejected",(function(t,e,o,n,r){return{payload:n,error:(i&&i.serializeError||ji)(t||"Rejected"),meta:yi(bi({},r||{}),{arg:o,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var d,h=(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}(),f=new s;function u(t){d=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ai(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),a(n(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Ci(t,e)},fulfillWithValue:function(t,e){return new Ri(t,e)}})).then((function(e){if(e instanceof Ci)throw e;return e instanceof Ri?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof Ci?r(null,h,t,g.payload,g.meta):r(g,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{n(v.next(t))}catch(t){e(t)}},o=function(t){try{n(v.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};n((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ni)}})}}),{pending:n,rejected:r,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ii="listenerMiddleware";ki(Ii+"/add"),ki(Ii+"/removeAll"),ki(Ii+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Me];return Fe.get(e,t)},set:function(e){var i=this[Me];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Me];if(!n.P)switch(n.i){case 5:o(n)&&me(n);break;case 4:i(n)&&me(n)}}}function i(t){for(var e=t.t,i=t.k,o=Ae(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==Me){var s=e[r];if(void 0===s&&!Xt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Qt(a,s))return!0}}var c=!!e[Me];return o.length!==Ae(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){ze[t]||(ze[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=Ue(i);delete r[Me];for(var s=Ae(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Me,{value:r,writable:!0}),n},S:function(t,i,n){n?Kt(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var n=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Gt(r,(function(e){e!==Me&&(void 0!==n[e]||Xt(n,e)?s[e]||t(r[e]):(s[e]=!0,me(i)))})),Gt(n,(function(t){void 0!==r[t]||Xt(r,t)||(s[t]=!1,me(i))}));else if(5===a){if(o(i)&&(me(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var d=Math.min(r.length,n.length),h=0;h<d;h++)r.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(r[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mi{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,n=window.ftReduxStores[i];if(Ft(n))return n;if(null==o)return;const r=Ei({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),s=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Mi(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,n=t[o];return n?(...t)=>{const e=n(...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 Ti=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const n={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(n)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};var Ai,Ui,zi;const Fi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zi=null===(Ui=null===(Ai=window.safari)||void 0===Ai?void 0:Ai.pushNotification)||void 0===Ui?void 0:Ui.toString())&&void 0!==zi?zi:"");var Di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Pi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bi=Symbol("registerInterval");class Li 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[Bi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bi]):this.dispatchEvent(new Pi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bi,Di([a()],i.prototype,"stateManager",void 0),i}(Zt)){}const Wi=kt.extend("--ft-ripple-color",Et.colorContent),Hi={color:Wi,backgroundColor:kt.extend("--ft-ripple-background-color",Wi),opacityContentOnSurfacePressed:kt.external(Et.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Et.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Et.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Et.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},Zi=kt.extend("--ft-ripple-color",Et.colorPrimary),Vi=Zi,Ki=kt.extend("--ft-ripple-background-color",Zi),qi=kt.extend("--ft-ripple-color",Et.colorSecondary),Gi=qi,Ji=kt.extend("--ft-ripple-background-color",qi),Xi=S`
|
|
101
|
+
`;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Dt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ft,Lt,Bt;const zt=Symbol("internalReduxEventsUnsubscribers"),Ht=Symbol("internalStoresUnsubscribers"),Kt=Symbol("internalStores");class Wt extends jt{constructor(){super(...arguments),this[Ft]=new Map,this[Lt]=new Map,this[Bt]=[]}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[Kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Kt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Kt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Dt(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[Kt].delete(e)}setupStore(t,e){this[Kt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Kt].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[Ht].has(t.store):this[Ht].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ht].set(t,e.subscribe((()=>this.updateFromStores()))),Dt(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[zt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ht].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[zt].forEach((t=>t())),this[zt]=[]}unsubscribeFromStore(t){this[Ht].has(t)&&this[Ht].get(t)(),this[Ht].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zt(t){return!!t&&!!t[Ie]}function Gt(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)===je}(t)||Array.isArray(t)||!!t[Te]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Te])||te(t)||ee(t))}function qt(t,e,i){void 0===i&&(i=!1),0===Xt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Xt(t){var e=t[Ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Jt(t,e){return 2===Xt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,i){var n=Xt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Qt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Re&&t instanceof Map}function ee(t){return Ce&&t instanceof Set}function ie(t){return t.o||t.t}function ne(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[Ie];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function oe(t,e){return void 0===e&&(e=!1),se(t)||Zt(t)||!Gt(t)||(Xt(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),e&&qt(t,(function(t,e){return oe(e,!0)}),!0)),t}function re(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=Pe[t];return e||Vt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function he(t){ue(t),t.p.forEach(de),t.p=null}function ue(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function de(t){var e=t[Ie];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,n),n?(i[Ie].P&&(he(e),Vt(4)),Gt(t)&&(t=ve(e,t),e.l||ye(e,t)),e.u&&ae("Patches").M(i[Ie].t,t,e.u,e.s)):t=ve(e,i,[]),he(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function ve(t,e,i){if(se(e))return e;var n=e[Ie];if(!n)return qt(e,(function(o,r){return be(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ye(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ne(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),qt(r,(function(e,r){return be(t,n,o,e,r,i,s)})),ye(t,o,!1),i&&t.u&&ae("Patches").N(n,i,t.u,t.s)}return n.o}function be(t,e,i,n,o,r,s){if(Zt(o)){var a=ve(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Yt(i,n,a),!Zt(a))return;t.m=!1}else s&&i.add(o);if(Gt(o)&&!se(o)){if(!t.h.D&&t._<1)return;ve(t,o),e&&e.A.l||ye(t,o)}}function ye(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&oe(e,i)}function ge(t,e){var i=t[Ie];return(i?ie(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=ne(t.t))}function $e(t,e,i){var n=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=De;i&&(o=[n],r=Fe);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(n),n}function Se(t){return Zt(t)||Vt(22,t),function t(e){if(!Gt(e))return e;var i,n=e[Ie],o=Xt(e);if(n){if(!n.P&&(n.i<4||!ae("ES5").K(n)))return n.t;n.I=!0,i=ke(e,o),n.I=!1}else i=ke(e,o);return qt(i,(function(e,o){n&&function(t,e){return 2===Xt(t)?t.get(e):t[e]}(n.t,e)===o||Yt(i,e,t(o))})),3===o?new Set(i):i}(t)}function ke(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ne(t)}Ft=Ht,Lt=Kt,Bt=zt;var Oe,Ee,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Re="undefined"!=typeof Map,Ce="undefined"!=typeof Set,Ae="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=_e?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Te=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Ie=_e?Symbol.for("immer-state"):"__$immer_state",je=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Pe={},De={get:function(t,e){if(e===Ie)return t;var i=ie(t);if(!Jt(i,e))return function(t,e,i){var n,o=xe(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Gt(n)?n:n===ge(t.t,e)?(we(t),t.o[e]=$e(t.A.h,n,t)):n},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var n=xe(ie(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=ge(ie(t),e),r=null==o?void 0:o[Ie];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Qt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;we(t),me(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!==ge(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},Fe={};qt(De,(function(t,e){Fe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fe.deleteProperty=function(t,e){return Fe.set.call(this,t,e,void 0)},Fe.set=function(t,e,i){return De.set.call(this,t[0],e,i,t[0])};var Le=function(){function t(t){var e=this;this.O=Ae,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Vt(6),void 0!==n&&"function"!=typeof n&&Vt(7),Gt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?he(a):ue(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,n),pe(t,a)}),(function(t){throw he(a),t})):(ce(a,n),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&oe(s,!0),n){var h=[],u=[];ae("Patches").M(t,s,h,u),n(h,u)}return s}Vt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Gt(t)||Vt(8),Zt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Ie].C=!0,ue(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ie]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ae&&Vt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=ae("Patches").$;return Zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Be=new Le,ze=Be.produce;function He(t){return He="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},He(t)}function Ke(t){var e=function(t,e){if("object"!==He(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===He(e)?e:String(e)}function We(t,e,i){return(e=Ke(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ge(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. "}Be.produceWithPatches.bind(Be),Be.setAutoFreeze.bind(Be),Be.setUseProxies.bind(Be),Be.applyPatches.bind(Be),Be.createDraft.bind(Be),Be.finishDraft.bind(Be);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Xe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+Xe(),REPLACE:"@@redux/REPLACE"+Xe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xe()}};function Ye(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ge(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ge(1));return i(Ye)(t,e)}if("function"!=typeof t)throw new Error(Ge(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ge(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ge(4));if(l)throw new Error(Ge(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ge(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(Ge(7));if(void 0===t.type)throw new Error(Ge(8));if(l)throw new Error(Ge(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Je.INIT}),(n={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ge(10));o=t,f({type:Je.REPLACE})}})[qe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ge(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[qe]=function(){return this},t},n}function Qe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ge(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ge(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ge(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ti(){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 ei(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ge(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ti.apply(void 0,r)(i.dispatch),Ze(Ze({},i),{},{dispatch:n})}}}function ii(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ni=ii();ni.withExtraArgument=ii;var oi,ri=ni,si=(oi=function(t,e){return oi=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])},oi(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}oi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},li=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ci=Object.defineProperty,hi=Object.defineProperties,ui=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))di.call(e,i)&&vi(t,i,e[i]);if(fi)for(var n=0,o=fi(e);n<o.length;n++){i=o[n];pi.call(e,i)&&vi(t,i,e[i])}return t},yi=function(t,e){return hi(t,ui(e))},gi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return Gt(t)?ze(t,(function(){})):t}function $i(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ri.withExtraArgument(i.extraArgument)):n.push(ri));return n}(t)}}function Si(t){var e,i=$i(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=gi(bi({trace:!1},"object"==typeof c&&c)));var y=new mi(v),g=y;return Array.isArray(d)?g=li([v],d):"function"==typeof d&&(g=d(y)),Ye(e,u,b.apply(void 0,g))}function ki(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Ei(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:wi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=bi(bi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return wi(t())};else{var c=wi(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=li([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Zt(t))return void 0===(n=i(t,e))?t:n;if(Gt(t))return ze(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?ki(c,n):ki(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ri=function(t,e){this.payload=t,this.meta=e},Ci=function(t,e){this.payload=t,this.meta=e},Ai=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=_i;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=ki(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:yi(bi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=ki(t+"/pending",(function(t,e,i){return{payload:void 0,meta:yi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=ki(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ai)(t||"Rejected"),meta:yi(bi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(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}(),f=new s;function d(t){h=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ai(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new Ri(t,e)},fulfillWithValue:function(t,e){return new Ci(t,e)}})).then((function(e){if(e instanceof Ri)throw e;return e instanceof Ci?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof Ri?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ti="listenerMiddleware";ki(Ti+"/add"),ki(Ti+"/removeAll"),ki(Ti+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Ie];return De.get(e,t)},set:function(e){var i=this[Ie];De.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Ie];if(!o.P)switch(o.i){case 5:n(o)&&me(o);break;case 4:i(o)&&me(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Ie){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Ie];if(l?l.t!==s:!Qt(a,s))return!0}}var c=!!e[Ie];return n.length!==Ue(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Pe[t]||(Pe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Me(i);delete r[Ie];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Ie,{value:r,writable:!0}),o},S:function(t,i,o){o?Zt(i)&&i[Ie].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ie];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)qt(r,(function(e){e!==Ie&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,me(i)))})),qt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,me(i))}));else if(5===a){if(n(i)&&(me(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ii{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(Dt(o))return o;if(null==n)return;const r=Ei({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Ii(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const ji=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ui,Mi,Pi;const Di=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Pi=null===(Mi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Pi?Pi:"");var Fi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Li extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bi=Symbol("registerInterval");class zi 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[Bi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bi]):this.dispatchEvent(new Li)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bi,Fi([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const Hi=kt.extend("--ft-ripple-color",Et.colorContent),Ki={color:Hi,backgroundColor:kt.extend("--ft-ripple-background-color",Hi),opacityContentOnSurfacePressed:kt.external(Et.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Et.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Et.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Et.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},Wi=kt.extend("--ft-ripple-color",Et.colorPrimary),Vi=Wi,Zi=kt.extend("--ft-ripple-background-color",Wi),Gi=kt.extend("--ft-ripple-color",Et.colorSecondary),qi=Gi,Xi=kt.extend("--ft-ripple-background-color",Gi),Ji=S`
|
|
102
102
|
:host {
|
|
103
103
|
display: contents;
|
|
104
104
|
}
|
|
@@ -111,7 +111,7 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
111
111
|
|
|
112
112
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
113
113
|
overflow: hidden;
|
|
114
|
-
border-radius: ${
|
|
114
|
+
border-radius: ${Ki.borderRadius};
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.ft-ripple .ft-ripple--background,
|
|
@@ -120,24 +120,48 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
120
120
|
opacity: 0;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
.ft-ripple .ft-ripple--effect {
|
|
124
|
+
aspect-ratio: 1;
|
|
125
|
+
width: auto;
|
|
126
|
+
height: auto;
|
|
127
|
+
min-width: 170%;
|
|
128
|
+
min-height: 170%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ft-ripple .ft-ripple--background{
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
137
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
138
|
+
aspect-ratio: 1;
|
|
139
|
+
width: auto;
|
|
140
|
+
height: auto;
|
|
141
|
+
max-width: unset;
|
|
142
|
+
max-height: unset;
|
|
143
|
+
min-width: 100%;
|
|
144
|
+
min-height: 100%;
|
|
145
|
+
}
|
|
146
|
+
|
|
123
147
|
.ft-ripple .ft-ripple--background {
|
|
124
|
-
background-color: ${
|
|
148
|
+
background-color: ${Ki.backgroundColor};
|
|
125
149
|
}
|
|
126
150
|
|
|
127
151
|
.ft-ripple .ft-ripple--effect {
|
|
128
|
-
background-color: ${
|
|
152
|
+
background-color: ${Ki.color};
|
|
129
153
|
}
|
|
130
154
|
|
|
131
155
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
132
|
-
background-color: ${
|
|
156
|
+
background-color: ${Xi};
|
|
133
157
|
}
|
|
134
158
|
|
|
135
159
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
136
|
-
background-color: ${
|
|
160
|
+
background-color: ${qi};
|
|
137
161
|
}
|
|
138
162
|
|
|
139
163
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
164
|
+
background-color: ${Zi};
|
|
141
165
|
}
|
|
142
166
|
|
|
143
167
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -147,8 +171,6 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
147
171
|
.ft-ripple .ft-ripple--background {
|
|
148
172
|
top: 0;
|
|
149
173
|
left: 0;
|
|
150
|
-
height: 100%;
|
|
151
|
-
width: 100%;
|
|
152
174
|
transition: opacity 75ms linear;
|
|
153
175
|
}
|
|
154
176
|
|
|
@@ -173,117 +195,117 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
173
195
|
}
|
|
174
196
|
|
|
175
197
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
176
|
-
opacity: ${
|
|
198
|
+
opacity: ${Ki.opacityContentOnSurfaceHover};
|
|
177
199
|
}
|
|
178
200
|
|
|
179
201
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
202
|
+
opacity: ${Ki.opacityContentOnSurfaceSelected};
|
|
181
203
|
}
|
|
182
204
|
|
|
183
205
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
184
|
-
opacity: ${
|
|
206
|
+
opacity: ${Ki.opacityContentOnSurfaceFocused};
|
|
185
207
|
}
|
|
186
208
|
|
|
187
209
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
188
|
-
opacity: ${
|
|
210
|
+
opacity: ${Ki.opacityContentOnSurfacePressed};
|
|
189
211
|
transform: translate(-50%, -50%) scale(1);
|
|
190
212
|
}
|
|
191
|
-
`,Yi=kt.extend("--ft-typography-font-family",Et.titleFont),Qi=kt.extend("--ft-typography-font-family",Et.contentFont),
|
|
213
|
+
`,Yi=kt.extend("--ft-typography-font-family",Et.titleFont),Qi=kt.extend("--ft-typography-font-family",Et.contentFont),tn={fontFamily:Qi,fontSize:kt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:kt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:kt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:kt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:kt.create("--ft-typography-text-transform","UNKNOWN","inherit")},en={fontFamily:kt.extend("--ft-typography-title-font-family",Yi),fontSize:kt.extend("--ft-typography-title-font-size",tn.fontSize,"20px"),fontWeight:kt.extend("--ft-typography-title-font-weight",tn.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-letter-spacing",tn.letterSpacing,"0.15px"),lineHeight:kt.extend("--ft-typography-title-line-height",tn.lineHeight,"1.2"),textTransform:kt.extend("--ft-typography-title-text-transform",tn.textTransform,"inherit")},nn={fontFamily:kt.extend("--ft-typography-title-dense-font-family",Yi),fontSize:kt.extend("--ft-typography-title-dense-font-size",tn.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-title-dense-font-weight",tn.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-dense-letter-spacing",tn.letterSpacing,"0.105px"),lineHeight:kt.extend("--ft-typography-title-dense-line-height",tn.lineHeight,"1.7"),textTransform:kt.extend("--ft-typography-title-dense-text-transform",tn.textTransform,"inherit")},on=kt.extend("--ft-typography-subtitle1-font-family",Qi),rn=kt.extend("--ft-typography-subtitle1-font-size",tn.fontSize,"16px"),sn=kt.extend("--ft-typography-subtitle1-font-weight",tn.fontWeight,"600"),an=kt.extend("--ft-typography-subtitle1-letter-spacing",tn.letterSpacing,"0.144px"),ln=kt.extend("--ft-typography-subtitle1-line-height",tn.lineHeight,"1.5"),cn=kt.extend("--ft-typography-subtitle1-text-transform",tn.textTransform,"inherit"),hn=kt.extend("--ft-typography-subtitle2-font-family",Qi),un=kt.extend("--ft-typography-subtitle2-font-size",tn.fontSize,"14px"),fn=kt.extend("--ft-typography-subtitle2-font-weight",tn.fontWeight,"normal"),dn=kt.extend("--ft-typography-subtitle2-letter-spacing",tn.letterSpacing,"0.098px"),pn=kt.extend("--ft-typography-subtitle2-line-height",tn.lineHeight,"1.7"),vn=kt.extend("--ft-typography-subtitle2-text-transform",tn.textTransform,"inherit"),bn={fontFamily:kt.extend("--ft-typography-body1-font-family",Qi),fontSize:kt.extend("--ft-typography-body1-font-size",tn.fontSize,"16px"),fontWeight:kt.extend("--ft-typography-body1-font-weight",tn.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-body1-letter-spacing",tn.letterSpacing,"0.496px"),lineHeight:kt.extend("--ft-typography-body1-line-height",tn.lineHeight,"1.5"),textTransform:kt.extend("--ft-typography-body1-text-transform",tn.textTransform,"inherit")},yn=kt.extend("--ft-typography-body2-font-family",Qi),gn=kt.extend("--ft-typography-body2-font-size",tn.fontSize,"14px"),xn=kt.extend("--ft-typography-body2-font-weight",tn.fontWeight,"normal"),mn=kt.extend("--ft-typography-body2-letter-spacing",tn.letterSpacing,"0.252px"),wn=kt.extend("--ft-typography-body2-line-height",tn.lineHeight,"1.4"),$n=kt.extend("--ft-typography-body2-text-transform",tn.textTransform,"inherit"),Sn={fontFamily:kt.extend("--ft-typography-caption-font-family",Qi),fontSize:kt.extend("--ft-typography-caption-font-size",tn.fontSize,"12px"),fontWeight:kt.extend("--ft-typography-caption-font-weight",tn.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-caption-letter-spacing",tn.letterSpacing,"0.396px"),lineHeight:kt.extend("--ft-typography-caption-line-height",tn.lineHeight,"1.33"),textTransform:kt.extend("--ft-typography-caption-text-transform",tn.textTransform,"inherit")},kn=kt.extend("--ft-typography-breadcrumb-font-family",Qi),On=kt.extend("--ft-typography-breadcrumb-font-size",tn.fontSize,"10px"),En=kt.extend("--ft-typography-breadcrumb-font-weight",tn.fontWeight,"normal"),_n=kt.extend("--ft-typography-breadcrumb-letter-spacing",tn.letterSpacing,"0.33px"),Rn=kt.extend("--ft-typography-breadcrumb-line-height",tn.lineHeight,"1.6"),Cn=kt.extend("--ft-typography-breadcrumb-text-transform",tn.textTransform,"inherit"),An=kt.extend("--ft-typography-overline-font-family",Qi),Nn=kt.extend("--ft-typography-overline-font-size",tn.fontSize,"10px"),Tn=kt.extend("--ft-typography-overline-font-weight",tn.fontWeight,"normal"),In=kt.extend("--ft-typography-overline-letter-spacing",tn.letterSpacing,"1.5px"),jn=kt.extend("--ft-typography-overline-line-height",tn.lineHeight,"1.6"),Un=kt.extend("--ft-typography-overline-text-transform",tn.textTransform,"uppercase"),Mn={fontFamily:kt.extend("--ft-typography-button-font-family",Qi),fontSize:kt.extend("--ft-typography-button-font-size",tn.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-button-font-weight",tn.fontWeight,"600"),letterSpacing:kt.extend("--ft-typography-button-letter-spacing",tn.letterSpacing,"1.246px"),lineHeight:kt.extend("--ft-typography-button-line-height",tn.lineHeight,"1.15"),textTransform:kt.extend("--ft-typography-button-text-transform",tn.textTransform,"uppercase")},Pn=S`
|
|
192
214
|
.ft-typography--title {
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
196
|
-
letter-spacing: ${
|
|
197
|
-
line-height: ${
|
|
198
|
-
text-transform: ${
|
|
199
|
-
}
|
|
200
|
-
`,
|
|
215
|
+
font-family: ${en.fontFamily};
|
|
216
|
+
font-size: ${en.fontSize};
|
|
217
|
+
font-weight: ${en.fontWeight};
|
|
218
|
+
letter-spacing: ${en.letterSpacing};
|
|
219
|
+
line-height: ${en.lineHeight};
|
|
220
|
+
text-transform: ${en.textTransform};
|
|
221
|
+
}
|
|
222
|
+
`,Dn=S`
|
|
201
223
|
.ft-typography--title-dense {
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
208
|
-
}
|
|
209
|
-
`,
|
|
224
|
+
font-family: ${nn.fontFamily};
|
|
225
|
+
font-size: ${nn.fontSize};
|
|
226
|
+
font-weight: ${nn.fontWeight};
|
|
227
|
+
letter-spacing: ${nn.letterSpacing};
|
|
228
|
+
line-height: ${nn.lineHeight};
|
|
229
|
+
text-transform: ${nn.textTransform};
|
|
230
|
+
}
|
|
231
|
+
`,Fn=S`
|
|
210
232
|
.ft-typography--subtitle1 {
|
|
211
|
-
font-family: ${
|
|
212
|
-
font-size: ${
|
|
213
|
-
font-weight: ${
|
|
214
|
-
letter-spacing: ${
|
|
215
|
-
line-height: ${
|
|
216
|
-
text-transform: ${
|
|
217
|
-
}
|
|
218
|
-
`,
|
|
233
|
+
font-family: ${on};
|
|
234
|
+
font-size: ${rn};
|
|
235
|
+
font-weight: ${sn};
|
|
236
|
+
letter-spacing: ${an};
|
|
237
|
+
line-height: ${ln};
|
|
238
|
+
text-transform: ${cn};
|
|
239
|
+
}
|
|
240
|
+
`,Ln=S`
|
|
219
241
|
.ft-typography--subtitle2 {
|
|
220
|
-
font-family: ${
|
|
221
|
-
font-size: ${
|
|
222
|
-
font-weight: ${
|
|
223
|
-
letter-spacing: ${
|
|
224
|
-
line-height: ${
|
|
225
|
-
text-transform: ${
|
|
242
|
+
font-family: ${hn};
|
|
243
|
+
font-size: ${un};
|
|
244
|
+
font-weight: ${fn};
|
|
245
|
+
letter-spacing: ${dn};
|
|
246
|
+
line-height: ${pn};
|
|
247
|
+
text-transform: ${vn};
|
|
226
248
|
}
|
|
227
249
|
|
|
228
|
-
`,
|
|
250
|
+
`,Bn=S`
|
|
229
251
|
.ft-typography--body1 {
|
|
230
|
-
font-family: ${
|
|
231
|
-
font-size: ${
|
|
232
|
-
font-weight: ${
|
|
233
|
-
letter-spacing: ${
|
|
234
|
-
line-height: ${
|
|
235
|
-
text-transform: ${
|
|
236
|
-
}
|
|
237
|
-
`,
|
|
252
|
+
font-family: ${bn.fontFamily};
|
|
253
|
+
font-size: ${bn.fontSize};
|
|
254
|
+
font-weight: ${bn.fontWeight};
|
|
255
|
+
letter-spacing: ${bn.letterSpacing};
|
|
256
|
+
line-height: ${bn.lineHeight};
|
|
257
|
+
text-transform: ${bn.textTransform};
|
|
258
|
+
}
|
|
259
|
+
`,zn=S`
|
|
238
260
|
.ft-typography--body2 {
|
|
239
|
-
font-family: ${
|
|
240
|
-
font-size: ${
|
|
241
|
-
font-weight: ${
|
|
242
|
-
letter-spacing: ${
|
|
243
|
-
line-height: ${
|
|
244
|
-
text-transform: ${$
|
|
245
|
-
}
|
|
246
|
-
`,
|
|
261
|
+
font-family: ${yn};
|
|
262
|
+
font-size: ${gn};
|
|
263
|
+
font-weight: ${xn};
|
|
264
|
+
letter-spacing: ${mn};
|
|
265
|
+
line-height: ${wn};
|
|
266
|
+
text-transform: ${$n};
|
|
267
|
+
}
|
|
268
|
+
`,Hn=S`
|
|
247
269
|
.ft-typography--caption {
|
|
248
|
-
font-family: ${
|
|
249
|
-
font-size: ${
|
|
250
|
-
font-weight: ${
|
|
251
|
-
letter-spacing: ${
|
|
252
|
-
line-height: ${
|
|
253
|
-
text-transform: ${
|
|
254
|
-
}
|
|
255
|
-
`,
|
|
270
|
+
font-family: ${Sn.fontFamily};
|
|
271
|
+
font-size: ${Sn.fontSize};
|
|
272
|
+
font-weight: ${Sn.fontWeight};
|
|
273
|
+
letter-spacing: ${Sn.letterSpacing};
|
|
274
|
+
line-height: ${Sn.lineHeight};
|
|
275
|
+
text-transform: ${Sn.textTransform};
|
|
276
|
+
}
|
|
277
|
+
`,Kn=S`
|
|
256
278
|
.ft-typography--breadcrumb {
|
|
257
|
-
font-family: ${
|
|
258
|
-
font-size: ${
|
|
259
|
-
font-weight: ${
|
|
260
|
-
letter-spacing: ${
|
|
261
|
-
line-height: ${
|
|
262
|
-
text-transform: ${
|
|
263
|
-
}
|
|
264
|
-
`,
|
|
279
|
+
font-family: ${kn};
|
|
280
|
+
font-size: ${On};
|
|
281
|
+
font-weight: ${En};
|
|
282
|
+
letter-spacing: ${_n};
|
|
283
|
+
line-height: ${Rn};
|
|
284
|
+
text-transform: ${Cn};
|
|
285
|
+
}
|
|
286
|
+
`,Wn=S`
|
|
265
287
|
.ft-typography--overline {
|
|
266
|
-
font-family: ${
|
|
267
|
-
font-size: ${
|
|
268
|
-
font-weight: ${
|
|
269
|
-
letter-spacing: ${
|
|
270
|
-
line-height: ${
|
|
271
|
-
text-transform: ${
|
|
272
|
-
}
|
|
273
|
-
`,
|
|
288
|
+
font-family: ${An};
|
|
289
|
+
font-size: ${Nn};
|
|
290
|
+
font-weight: ${Tn};
|
|
291
|
+
letter-spacing: ${In};
|
|
292
|
+
line-height: ${jn};
|
|
293
|
+
text-transform: ${Un};
|
|
294
|
+
}
|
|
295
|
+
`,Vn=S`
|
|
274
296
|
.ft-typography--button {
|
|
275
|
-
font-family: ${
|
|
276
|
-
font-size: ${
|
|
277
|
-
font-weight: ${
|
|
278
|
-
letter-spacing: ${
|
|
279
|
-
line-height: ${
|
|
280
|
-
text-transform: ${
|
|
281
|
-
}
|
|
282
|
-
`,
|
|
297
|
+
font-family: ${Mn.fontFamily};
|
|
298
|
+
font-size: ${Mn.fontSize};
|
|
299
|
+
font-weight: ${Mn.fontWeight};
|
|
300
|
+
letter-spacing: ${Mn.letterSpacing};
|
|
301
|
+
line-height: ${Mn.lineHeight};
|
|
302
|
+
text-transform: ${Mn.textTransform};
|
|
303
|
+
}
|
|
304
|
+
`,Zn=S`
|
|
283
305
|
.ft-typography {
|
|
284
306
|
vertical-align: inherit;
|
|
285
307
|
}
|
|
286
|
-
`,
|
|
308
|
+
`,Gn={color:kt.extend("--ft-loader-color",Et.colorPrimary),size:kt.create("--ft-loader-size","SIZE","80px")},qn=S`
|
|
287
309
|
:host {
|
|
288
310
|
line-height: 0;
|
|
289
311
|
}
|
|
@@ -292,8 +314,8 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
292
314
|
display: inline-block;
|
|
293
315
|
position: relative;
|
|
294
316
|
|
|
295
|
-
width: ${
|
|
296
|
-
height: ${
|
|
317
|
+
width: ${Gn.size};
|
|
318
|
+
height: ${Gn.size};
|
|
297
319
|
}
|
|
298
320
|
|
|
299
321
|
.ft-loader div {
|
|
@@ -302,7 +324,7 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
302
324
|
width: 25%;
|
|
303
325
|
height: 25%;
|
|
304
326
|
border-radius: 50%;
|
|
305
|
-
background: ${
|
|
327
|
+
background: ${Gn.color};
|
|
306
328
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
307
329
|
}
|
|
308
330
|
|
|
@@ -349,10 +371,10 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
349
371
|
transform: translate(0, 0);
|
|
350
372
|
}
|
|
351
373
|
100% {
|
|
352
|
-
transform: translate(calc(0.35 * ${
|
|
374
|
+
transform: translate(calc(0.35 * ${Gn.size}), 0);
|
|
353
375
|
}
|
|
354
376
|
}
|
|
355
|
-
`,
|
|
377
|
+
`,Xn={size:kt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:kt.extend("--ft-icon-fluid-topics-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:kt.extend("--ft-icon-file-format-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:kt.extend("--ft-icon-material-font-family",kt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:kt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Jn=S`
|
|
356
378
|
:host, i.ft-icon {
|
|
357
379
|
display: inline-flex;
|
|
358
380
|
align-items: center;
|
|
@@ -361,14 +383,14 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
361
383
|
}
|
|
362
384
|
|
|
363
385
|
:host {
|
|
364
|
-
width: ${
|
|
365
|
-
height: ${
|
|
386
|
+
width: ${Xn.size};
|
|
387
|
+
height: ${Xn.size};
|
|
366
388
|
}
|
|
367
389
|
|
|
368
390
|
i.ft-icon {
|
|
369
391
|
width: 100%;
|
|
370
392
|
height: 100%;
|
|
371
|
-
font-size: ${
|
|
393
|
+
font-size: ${Xn.size};
|
|
372
394
|
line-height: 1;
|
|
373
395
|
font-weight: normal;
|
|
374
396
|
text-transform: none;
|
|
@@ -379,28 +401,28 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
379
401
|
text-rendering: auto;
|
|
380
402
|
-webkit-font-smoothing: antialiased;
|
|
381
403
|
-moz-osx-font-smoothing: grayscale;
|
|
382
|
-
vertical-align: ${
|
|
404
|
+
vertical-align: ${Xn.verticalAlign};
|
|
383
405
|
}
|
|
384
406
|
|
|
385
407
|
i.ft-icon.ft-icon--fluid-topics {
|
|
386
|
-
font-family: ${
|
|
408
|
+
font-family: ${Xn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
387
409
|
|
|
388
410
|
/* Ugly fix because font is broken */
|
|
389
|
-
font-size: calc(0.75 * ${
|
|
390
|
-
line-height: ${
|
|
411
|
+
font-size: calc(0.75 * ${Xn.size});
|
|
412
|
+
line-height: ${Xn.size};
|
|
391
413
|
position: relative;
|
|
392
414
|
top: -4%;
|
|
393
415
|
justify-content: center;
|
|
394
416
|
}
|
|
395
417
|
|
|
396
418
|
.ft-icon--file-format {
|
|
397
|
-
font-family: ${
|
|
419
|
+
font-family: ${Xn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
398
420
|
}
|
|
399
421
|
|
|
400
422
|
.ft-icon--material {
|
|
401
|
-
font-family: ${
|
|
423
|
+
font-family: ${Xn.materialFontFamily}, "Material Icons", sans-serif;
|
|
402
424
|
}
|
|
403
|
-
`,
|
|
425
|
+
`,Yn=kt.extend("--ft-button-color",Et.colorPrimary),Qn={backgroundColor:kt.extend("--ft-button-background-color",Et.colorSurface),borderRadius:kt.extend("--ft-button-border-radius",Et.borderRadiusL),color:Yn,fontSize:kt.extend("--ft-button-font-size",Mn.fontSize),iconSize:kt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:kt.extend("--ft-button-ripple-color",Yn),verticalPadding:kt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:kt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:kt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:kt.external(Et.colorOpacityDisabled,"Design system")},to=kt.extend("--ft-button-primary-color",kt.extend("--ft-button-color",Et.colorOnPrimary)),eo={backgroundColor:kt.extend("--ft-button-primary-background-color",kt.extend("--ft-button-background-color",Et.colorPrimary)),color:to,rippleColor:kt.extend("--ft-button-primary-ripple-color",to)},io=kt.extend("--ft-button-dense-border-radius",kt.extend("--ft-button-border-radius",Et.borderRadiusM)),no=kt.create("--ft-button-dense-vertical-padding","SIZE","2px"),oo=kt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ro=kt.create("--ft-button-dense-icon-padding","SIZE","4px"),so=[S`
|
|
404
426
|
:host {
|
|
405
427
|
display: inline-block;
|
|
406
428
|
max-width: 100%;
|
|
@@ -411,7 +433,7 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
411
433
|
box-shadow: 0px 0px 0px transparent;
|
|
412
434
|
border: 0px solid transparent;
|
|
413
435
|
text-shadow: 0px 0px 0px transparent;
|
|
414
|
-
font-size: ${
|
|
436
|
+
font-size: ${Qn.fontSize};
|
|
415
437
|
}
|
|
416
438
|
|
|
417
439
|
button:hover {
|
|
@@ -440,31 +462,31 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
440
462
|
border: none;
|
|
441
463
|
pointer-events: auto;
|
|
442
464
|
|
|
443
|
-
--ft-button-internal-line-height: max(calc(${
|
|
444
|
-
--ft-button-internal-color: ${
|
|
445
|
-
${Ot(
|
|
446
|
-
${Ot(
|
|
465
|
+
--ft-button-internal-line-height: max(calc(${Qn.fontSize} + 2px), ${Qn.iconSize});
|
|
466
|
+
--ft-button-internal-color: ${Qn.color};
|
|
467
|
+
${Ot(Xn.size,Qn.iconSize)};
|
|
468
|
+
${Ot(Ki.color,Qn.rippleColor)};
|
|
447
469
|
|
|
448
|
-
border-radius: ${
|
|
449
|
-
padding: ${
|
|
450
|
-
background-color: ${
|
|
470
|
+
border-radius: ${Qn.borderRadius};
|
|
471
|
+
padding: ${Qn.verticalPadding} ${Qn.horizontalPadding};
|
|
472
|
+
background-color: ${Qn.backgroundColor};
|
|
451
473
|
color: var(--ft-button-internal-color);
|
|
452
474
|
-webkit-mask-image: radial-gradient(white, black);
|
|
453
475
|
}
|
|
454
476
|
|
|
455
477
|
.ft-button.ft-button--outlined {
|
|
456
478
|
border: 1px solid var(--ft-button-internal-color);
|
|
457
|
-
padding: calc(${
|
|
479
|
+
padding: calc(${Qn.verticalPadding} - 1px) calc(${Qn.horizontalPadding} - 1px);
|
|
458
480
|
}
|
|
459
481
|
|
|
460
482
|
.ft-button.ft-button--dense {
|
|
461
|
-
padding: ${
|
|
462
|
-
border-radius: ${
|
|
463
|
-
gap: ${
|
|
483
|
+
padding: ${no} ${oo};
|
|
484
|
+
border-radius: ${io};
|
|
485
|
+
gap: ${ro};
|
|
464
486
|
}
|
|
465
487
|
|
|
466
488
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
467
|
-
padding: calc(${
|
|
489
|
+
padding: calc(${no} - 1px) calc(${oo} - 1px);
|
|
468
490
|
}
|
|
469
491
|
|
|
470
492
|
.ft-button:not([disabled]):hover {
|
|
@@ -472,22 +494,22 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
472
494
|
}
|
|
473
495
|
|
|
474
496
|
.ft-button--round {
|
|
475
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
497
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qn.verticalPadding});
|
|
476
498
|
}
|
|
477
499
|
|
|
478
500
|
.ft-button--round.ft-button--dense {
|
|
479
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
501
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${no});
|
|
480
502
|
}
|
|
481
503
|
|
|
482
504
|
.ft-button[disabled] {
|
|
483
505
|
filter: grayscale(1);
|
|
484
|
-
opacity: ${
|
|
506
|
+
opacity: ${Qn.opacityDisabled};
|
|
485
507
|
}
|
|
486
508
|
|
|
487
509
|
.ft-button.ft-button--primary {
|
|
488
|
-
background-color: ${
|
|
489
|
-
--ft-button-internal-color: ${
|
|
490
|
-
${Ot(
|
|
510
|
+
background-color: ${eo.backgroundColor};
|
|
511
|
+
--ft-button-internal-color: ${eo.color};
|
|
512
|
+
${Ot(Ki.color,eo.rippleColor)};
|
|
491
513
|
}
|
|
492
514
|
|
|
493
515
|
.ft-button:focus {
|
|
@@ -500,13 +522,13 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
500
522
|
white-space: nowrap;
|
|
501
523
|
text-overflow: ellipsis;
|
|
502
524
|
display: block;
|
|
503
|
-
margin: 0 ${
|
|
504
|
-
${Ot(
|
|
505
|
-
${Ot(
|
|
525
|
+
margin: 0 ${Qn.iconPadding};
|
|
526
|
+
${Ot(Mn.fontSize,"1em")};
|
|
527
|
+
${Ot(Mn.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
506
528
|
}
|
|
507
529
|
|
|
508
530
|
.ft-button--dense .ft-button--label {
|
|
509
|
-
margin: 0 ${
|
|
531
|
+
margin: 0 ${ro};
|
|
510
532
|
}
|
|
511
533
|
|
|
512
534
|
.ft-button--label[hidden] {
|
|
@@ -519,13 +541,13 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
519
541
|
}
|
|
520
542
|
|
|
521
543
|
.ft-button--label[hidden] + ft-icon {
|
|
522
|
-
margin: 0 calc(${
|
|
523
|
-
padding: 0 ${
|
|
544
|
+
margin: 0 calc(${Qn.horizontalPadding} * -1);
|
|
545
|
+
padding: 0 ${Qn.verticalPadding};
|
|
524
546
|
}
|
|
525
547
|
|
|
526
548
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
527
|
-
margin: 0 calc(${
|
|
528
|
-
padding: 0 ${
|
|
549
|
+
margin: 0 calc(${oo} * -1);
|
|
550
|
+
padding: 0 ${no};
|
|
529
551
|
}
|
|
530
552
|
|
|
531
553
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -534,10 +556,10 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
534
556
|
}
|
|
535
557
|
|
|
536
558
|
ft-loader {
|
|
537
|
-
${Ot(
|
|
538
|
-
${Ot(
|
|
559
|
+
${Ot(Gn.size,Qn.iconSize)};
|
|
560
|
+
${Ot(Gn.color,"var(--ft-button-internal-color)")};
|
|
539
561
|
}
|
|
540
|
-
`,
|
|
562
|
+
`,Ut],ao={textColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceHigh),backgroundColor:kt.extend("--ft-switch-background-color",Et.colorSurface),selectedTextColor:kt.extend("--ft-switch-selected-text-color",Et.colorPrimary),selectedBackgroundColor:kt.extend("--ft-switch-selected-background-color",Et.colorPrimary),borderColor:kt.extend("--ft-switch-border-color",Et.colorOutline),borderRadius:kt.extend("--ft-switch-border-radius",Et.borderRadiusL),fontSize:kt.extend("--ft-switch-font-size",Mn.fontSize),iconSize:kt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceMedium),rippleColor:kt.extend("--ft-switch-ripple-color",Et.colorPrimary),outlineColor:kt.extend("--ft-switch-outline-color",Et.colorPrimary)},lo={feedbackInputMinWidth:kt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:kt.external(Et.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:kt.extend("--ft-reader-feedback-send-feedback-color",Et.colorOnPrimary),sendFeedbackBackgroundColor:kt.extend("--ft-reader-feedback-send-feedback-background-color",Et.colorPrimary),filledRatingColor:kt.extend("--ft-reader-feedback-filled-rating-color",Et.colorPrimary),emptyRatingColor:kt.extend("--ft-reader-feedback-empty-rating-color",Et.colorOnSurfaceMedium),mainTitleFontSize:kt.external(en.fontSize,"Typography"),sectionTitleFontSize:kt.external(nn.fontSize,"Typography")},co=S`
|
|
541
563
|
.ft-reader-feedback {
|
|
542
564
|
box-sizing: border-box;
|
|
543
565
|
display: flex;
|
|
@@ -583,14 +605,14 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
583
605
|
}
|
|
584
606
|
|
|
585
607
|
.ft-reader-feedback--rating {
|
|
586
|
-
${Ot(
|
|
587
|
-
${Ot(
|
|
588
|
-
${Ot(
|
|
589
|
-
${Ot(
|
|
608
|
+
${Ot(Qn.color,lo.emptyRatingColor)};
|
|
609
|
+
${Ot(Qn.rippleColor,lo.filledRatingColor)};
|
|
610
|
+
${Ot(ao.textColor,lo.emptyRatingColor)};
|
|
611
|
+
${Ot(ao.selectedTextColor,lo.filledRatingColor)};
|
|
590
612
|
}
|
|
591
613
|
|
|
592
614
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
593
|
-
${Ot(
|
|
615
|
+
${Ot(Qn.color,lo.filledRatingColor)};
|
|
594
616
|
}
|
|
595
617
|
|
|
596
618
|
.ft-reader-feedback--feedback {
|
|
@@ -598,47 +620,47 @@ var mt,wt;let $t=class extends T{constructor(){super(...arguments),this.renderOp
|
|
|
598
620
|
}
|
|
599
621
|
|
|
600
622
|
.ft-reader-feedback--rating-date {
|
|
601
|
-
color: ${
|
|
623
|
+
color: ${lo.ratedDateColor};
|
|
602
624
|
}
|
|
603
625
|
|
|
604
626
|
.ft-reader-feedback--feedback ft-text-area {
|
|
605
|
-
min-width: ${
|
|
627
|
+
min-width: ${lo.feedbackInputMinWidth};
|
|
606
628
|
}
|
|
607
629
|
|
|
608
630
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
609
631
|
align-self: flex-end;
|
|
610
|
-
${Ot(
|
|
611
|
-
${Ot(
|
|
632
|
+
${Ot(Qn.color,lo.sendFeedbackColor)};
|
|
633
|
+
${Ot(Qn.backgroundColor,lo.sendFeedbackBackgroundColor)};
|
|
612
634
|
}
|
|
613
|
-
`
|
|
635
|
+
`;!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 n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function r(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 s(t){return"string"!=typeof t&&(t=String(t)),t}function a(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 h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function u(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t: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=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=f(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(u)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(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),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);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=r(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,e){this.map[r(t)]=s(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)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,o=(e=e||{}).body;if(t instanceof v){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,o||null==t._bodyInit||(o=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",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function y(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)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(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 x(t,n){return new Promise((function(o,r){var s=new v(t,n);if(s.signal&&s.signal.aborted)return r(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();e.append(n,o)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;o(new y(n,i))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=x,Object.defineProperty(e,"B",{value:!0})}({})}("undefined"!=typeof self?self:void 0);const ho=t=>"object"==typeof t&&null!=t,uo=t=>"string"==typeof t;var fo,po,vo,bo,yo,go,xo,mo,wo,$o,So,ko;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(fo||(fo={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(po||(po={})),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"}(vo||(vo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(bo||(bo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yo||(yo={})),function(t){t.ASC="ASC",t.DESC="DESC"}(go||(go={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(xo||(xo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(mo||(mo={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wo||(wo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}($o||($o={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(So||(So={})),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"}(ko||(ko={}));const Oo=t=>ho(t)&&(null==t.authenticationIdentifier||(t=>ho(t)&&uo(t.identifier)&&uo(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&Eo(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),Eo=t=>ho(t)&&(null==t.emailAddress||uo(t.emailAddress))&&(null==t.displayName||uo(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||uo(t.userId)),_o={[ko.PERSONAL_BOOK_SHARE_USER]:[ko.PERSONAL_BOOK_USER],[ko.HTML_EXPORT_USER]:[ko.PERSONAL_BOOK_USER],[ko.PDF_EXPORT_USER]:[ko.PERSONAL_BOOK_USER],[ko.KHUB_ADMIN]:[ko.CONTENT_PUBLISHER],[ko.ADMIN]:[ko.KHUB_ADMIN,ko.USERS_ADMIN,ko.PORTAL_ADMIN],[ko.DEVELOPER]:[ko.BETA_USER,ko.DEBUG_USER]};function Ro(t,e){return t===e||(_o[t]??[]).some((t=>Ro(t,e)))}function Co(t,e){return(Oo(t)?t.profile.roles:Eo(t)?t.roles:t).some((t=>Ro(t,e)))}
|
|
614
636
|
/**
|
|
615
637
|
* @license
|
|
616
638
|
* Copyright 2020 Google LLC
|
|
617
639
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
618
|
-
|
|
619
|
-
<${
|
|
640
|
+
*/const Ao=Symbol.for(""),No=t=>{if((null==t?void 0:t.r)===Ao)return null==t?void 0:t._$litStatic$},To=t=>({_$litStatic$:t,r:Ao}),Io=new Map,jo=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=No(r));)l+=o+e[++c],h=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=Io.get(t))&&(s.raw=s,Io.set(t,e=s)),i=a}return t(e,...i)})(it);var Uo;!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"}(Uo||(Uo={}));var Mo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Po extends jt{constructor(){super(...arguments),this.variant=Uo.body1}render(){return this.element?jo`
|
|
641
|
+
<${To(this.element)}
|
|
620
642
|
class="ft-typography ft-typography--${this.variant}">
|
|
621
643
|
<slot></slot>
|
|
622
|
-
</${
|
|
623
|
-
`:
|
|
644
|
+
</${To(this.element)}>
|
|
645
|
+
`:jo`
|
|
624
646
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
625
|
-
`}}
|
|
647
|
+
`}}Po.styles=[Pn,Dn,Fn,Ln,Bn,zn,Hn,Kn,Wn,Vn,Zn],Mo([s()],Po.prototype,"element",void 0),Mo([s()],Po.prototype,"variant",void 0),v("ft-typography")(Po);
|
|
626
648
|
/**
|
|
627
649
|
* @license
|
|
628
650
|
* Copyright 2017 Google LLC
|
|
629
651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
630
652
|
*/
|
|
631
|
-
const
|
|
653
|
+
const Do=1,Fo=2,Lo=t=>(...e)=>({_$litDirective$:t,values:e});class Bo{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)}}
|
|
632
654
|
/**
|
|
633
655
|
* @license
|
|
634
656
|
* Copyright 2017 Google LLC
|
|
635
657
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
636
|
-
*/class
|
|
658
|
+
*/class zo extends Bo{constructor(t){if(super(t),this.et=ot,t.type!==Fo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ot||null==t)return this.ft=void 0,this.et=t;if(t===nt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}zo.directiveName="unsafeHTML",zo.resultType=1;const Ho=Lo(zo);var Ko,Wo,Vo;!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.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=""}(Ko||(Ko={})),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=""}(Wo||(Wo={})),new Map([...["abw"].map((t=>[t,Wo.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,Wo.AUDIO])),...["avi"].map((t=>[t,Wo.AVI])),...["chm","xhs"].map((t=>[t,Wo.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,Wo.CODE])),...["csv"].map((t=>[t,Wo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Wo.DITA])),...["epub"].map((t=>[t,Wo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Wo.EXCEL])),...["flac"].map((t=>[t,Wo.FLAC])),...["gif"].map((t=>[t,Wo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Wo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Wo.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,Wo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Wo.JPEG])),...["json"].map((t=>[t,Wo.JSON])),...["m4a","m4p"].map((t=>[t,Wo.M4A])),...["mov","qt"].map((t=>[t,Wo.MOV])),...["mp3"].map((t=>[t,Wo.MP3])),...["mp4","m4v"].map((t=>[t,Wo.MP4])),...["ogg","oga"].map((t=>[t,Wo.OGG])),...["pdf","ps"].map((t=>[t,Wo.PDF])),...["png"].map((t=>[t,Wo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Wo.POWERPOINT])),...["rar"].map((t=>[t,Wo.RAR])),...["stp"].map((t=>[t,Wo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Wo.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,Wo.VIDEO])),...["wav"].map((t=>[t,Wo.WAV])),...["wma"].map((t=>[t,Wo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Wo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Wo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Wo.YAML])),...["zip"].map((t=>[t,Wo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Vo||(Vo={}));var Zo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Go extends jt{constructor(){super(...arguments),this.resolvedIcon=ot}render(){const t=this.variant&&Object.values(Vo).includes(this.variant)?this.variant:Vo.fluid_topics,e=t!==Vo.material||!!this.value;return it`
|
|
637
659
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
638
|
-
${
|
|
660
|
+
${Ho(this.resolvedIcon)}
|
|
639
661
|
<slot ?hidden=${e}></slot>
|
|
640
662
|
</i>
|
|
641
|
-
`}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
|
|
663
|
+
`}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 Vo.file_format:this.resolvedIcon=null!==(t=Wo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Vo.material:this.resolvedIcon=this.value||ot;break;default:this.resolvedIcon=null!==(e=Ko[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=Jn,Zo([s()],Go.prototype,"variant",void 0),Zo([s()],Go.prototype,"value",void 0),Zo([a()],Go.prototype,"resolvedIcon",void 0),Zo([c("slot")],Go.prototype,"slottedContent",void 0),v("ft-icon")(Go);const qo=kt.create("--ft-tooltip-distance","SIZE","4px"),Xo=kt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Jo=kt.create("--ft-tooltip-background-color","COLOR","#666666"),Yo=kt.create("--ft-tooltip-z-index","NUMBER","100"),Qo=kt.external(Et.borderRadiusS,"Design system"),tr=kt.create("--ft-tooltip-max-width","SIZE","150px"),er=S`
|
|
642
664
|
.ft-tooltip--container {
|
|
643
665
|
display: block;
|
|
644
666
|
}
|
|
@@ -653,21 +675,21 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
653
675
|
box-sizing: border-box;
|
|
654
676
|
overflow: hidden;
|
|
655
677
|
width: max-content;
|
|
656
|
-
max-width: ${
|
|
678
|
+
max-width: ${tr};
|
|
657
679
|
text-align: center;
|
|
658
|
-
padding: ${
|
|
659
|
-
z-index: ${
|
|
680
|
+
padding: ${qo};
|
|
681
|
+
z-index: ${Yo};
|
|
660
682
|
}
|
|
661
683
|
|
|
662
684
|
.ft-tooltip--content {
|
|
663
685
|
padding: 4px 8px;
|
|
664
|
-
border-radius: ${
|
|
665
|
-
background-color: ${
|
|
666
|
-
color: ${
|
|
686
|
+
border-radius: ${Qo};
|
|
687
|
+
background-color: ${Jo};
|
|
688
|
+
color: ${Xo};
|
|
667
689
|
position: relative;
|
|
668
690
|
word-break: break-word;
|
|
669
691
|
}
|
|
670
|
-
`;var
|
|
692
|
+
`;var ir=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class nr extends jt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return it`
|
|
671
693
|
<div part="container"
|
|
672
694
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
673
695
|
@mouseenter=${this.onHover}
|
|
@@ -685,30 +707,24 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
685
707
|
</div>
|
|
686
708
|
</div>
|
|
687
709
|
</div>
|
|
688
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,
|
|
710
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let u=-l.y,f=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(u,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${tr})`}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))}}nr.elementDefinitions={"ft-typography":Po},nr.styles=er,ir([s()],nr.prototype,"text",void 0),ir([s({type:Boolean})],nr.prototype,"manual",void 0),ir([s({type:Boolean})],nr.prototype,"inline",void 0),ir([s({type:Number})],nr.prototype,"delay",void 0),ir([s()],nr.prototype,"position",void 0),ir([d("",!0)],nr.prototype,"slotNodes",void 0),ir([c(".ft-tooltip--container")],nr.prototype,"container",void 0),ir([c(".ft-tooltip")],nr.prototype,"tooltip",void 0),ir([c(".ft-tooltip--content")],nr.prototype,"tooltipContent",void 0),ir([a()],nr.prototype,"visible",void 0),v("ft-tooltip")(nr);
|
|
689
711
|
/**
|
|
690
712
|
* @license
|
|
691
713
|
* Copyright 2018 Google LLC
|
|
692
714
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
693
715
|
*/
|
|
694
|
-
const
|
|
716
|
+
const or=Lo(class extends Bo{constructor(t){var e;if(super(t),t.type!==Do||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return nt}});var rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class sr extends jt{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 o(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 o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.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 it`
|
|
695
717
|
<style>
|
|
696
|
-
.ft-ripple .ft-ripple--effect,
|
|
697
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
698
|
-
width: ${this.rippleSize}px;
|
|
699
|
-
height: ${this.rippleSize}px;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
718
|
.ft-ripple .ft-ripple--effect {
|
|
703
719
|
left: ${this.originX}px;
|
|
704
720
|
top: ${this.originY}px;
|
|
705
721
|
}
|
|
706
722
|
</style>
|
|
707
|
-
<div class="${
|
|
723
|
+
<div class="${or(t)}">
|
|
708
724
|
<div class="ft-ripple--background"></div>
|
|
709
725
|
<div class="ft-ripple--effect"></div>
|
|
710
726
|
</div>
|
|
711
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.
|
|
727
|
+
`}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"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}}sr.elementDefinitions={},sr.styles=Ji,rr([s({type:Boolean})],sr.prototype,"primary",void 0),rr([s({type:Boolean})],sr.prototype,"secondary",void 0),rr([s({type:Boolean})],sr.prototype,"unbounded",void 0),rr([s({type:Boolean})],sr.prototype,"activated",void 0),rr([s({type:Boolean})],sr.prototype,"selected",void 0),rr([s({type:Boolean})],sr.prototype,"disabled",void 0),rr([a()],sr.prototype,"hovered",void 0),rr([a()],sr.prototype,"focused",void 0),rr([a()],sr.prototype,"pressed",void 0),rr([a()],sr.prototype,"rippling",void 0),rr([a()],sr.prototype,"originX",void 0),rr([a()],sr.prototype,"originY",void 0),rr([c(".ft-ripple")],sr.prototype,"ripple",void 0),rr([c(".ft-ripple--effect")],sr.prototype,"rippleEffect",void 0),v("ft-ripple")(sr);const ar={borderRadiusLeft:kt.extend("--ft-switch-option-border-radius-left",Et.borderRadiusL),borderRadiusRight:kt.extend("--ft-switch-option-border-radius-right",Et.borderRadiusL),borderWidthLeft:kt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:kt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:kt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},lr=S`
|
|
712
728
|
.ft-switch-option {
|
|
713
729
|
position: relative;
|
|
714
730
|
display: inline-block;
|
|
@@ -722,20 +738,20 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
722
738
|
}
|
|
723
739
|
|
|
724
740
|
.ft-switch-option--content {
|
|
725
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
726
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
741
|
+
--ft-switch-option-internal-line-height: calc(${ao.fontSize} + 2px);
|
|
742
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ao.iconSize});
|
|
727
743
|
|
|
728
744
|
border-style: solid;
|
|
729
|
-
border-color: ${
|
|
730
|
-
border-width: ${
|
|
731
|
-
border-radius: ${
|
|
745
|
+
border-color: ${ao.borderColor};
|
|
746
|
+
border-width: ${ar.borderWidthVertical} ${ar.borderWidthRight} ${ar.borderWidthVertical} ${ar.borderWidthLeft};
|
|
747
|
+
border-radius: ${ar.borderRadiusLeft} ${ar.borderRadiusRight} ${ar.borderRadiusRight} ${ar.borderRadiusLeft};
|
|
732
748
|
display: flex;
|
|
733
749
|
align-items: center;
|
|
734
750
|
justify-content: center;
|
|
735
751
|
overflow: hidden;
|
|
736
|
-
${Ot(
|
|
752
|
+
${Ot(Xn.size,ao.iconSize)};
|
|
737
753
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
738
|
-
background-color: ${
|
|
754
|
+
background-color: ${ao.backgroundColor};
|
|
739
755
|
-webkit-mask-image: radial-gradient(white, black);
|
|
740
756
|
}
|
|
741
757
|
|
|
@@ -744,8 +760,8 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
744
760
|
}
|
|
745
761
|
|
|
746
762
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
747
|
-
background-color: ${
|
|
748
|
-
border-radius: ${
|
|
763
|
+
background-color: ${ao.selectedBackgroundColor};
|
|
764
|
+
border-radius: ${ar.borderRadiusLeft} ${ar.borderRadiusRight} ${ar.borderRadiusRight} ${ar.borderRadiusLeft};
|
|
749
765
|
position: absolute;
|
|
750
766
|
inset: 0;
|
|
751
767
|
content: "";
|
|
@@ -754,18 +770,18 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
754
770
|
}
|
|
755
771
|
|
|
756
772
|
.ft-switch-option--label {
|
|
757
|
-
color: ${
|
|
773
|
+
color: ${ao.textColor};
|
|
758
774
|
overflow: hidden;
|
|
759
775
|
white-space: nowrap;
|
|
760
776
|
text-overflow: ellipsis;
|
|
761
777
|
display: block;
|
|
762
778
|
margin: 0 8px;
|
|
763
|
-
${Ot(
|
|
764
|
-
${Ot(
|
|
779
|
+
${Ot(Mn.fontSize,ao.fontSize)};
|
|
780
|
+
${Ot(Mn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
765
781
|
}
|
|
766
782
|
|
|
767
783
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
768
|
-
color: ${
|
|
784
|
+
color: ${ao.selectedTextColor};
|
|
769
785
|
}
|
|
770
786
|
|
|
771
787
|
.ft-switch-option--label[hidden] {
|
|
@@ -773,7 +789,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
773
789
|
}
|
|
774
790
|
|
|
775
791
|
.ft-switch-option--ripple {
|
|
776
|
-
${Ot(
|
|
792
|
+
${Ot(Ki.color,ao.rippleColor)};
|
|
777
793
|
}
|
|
778
794
|
|
|
779
795
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -786,20 +802,20 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
786
802
|
|
|
787
803
|
ft-icon {
|
|
788
804
|
flex-shrink: 0;
|
|
789
|
-
color: ${
|
|
805
|
+
color: ${ao.iconColor};
|
|
790
806
|
}
|
|
791
807
|
|
|
792
808
|
.ft-switch-option--selected ft-icon {
|
|
793
|
-
color: ${
|
|
809
|
+
color: ${ao.selectedTextColor};
|
|
794
810
|
}
|
|
795
|
-
`;var
|
|
796
|
-
<label part="label" for="input" class=${
|
|
811
|
+
`;var cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class hr extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class ur extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class fr extends jt{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 ur(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(it`
|
|
812
|
+
<label part="label" for="input" class=${or(t)}
|
|
797
813
|
@click=${this.onChange}>
|
|
798
814
|
<div class="ft-switch-option--content">
|
|
799
815
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
800
816
|
<ft-typography part="text"
|
|
801
817
|
variant="button"
|
|
802
|
-
class="ft-switch-option--label ${
|
|
818
|
+
class="ft-switch-option--label ${Di?"ft-safari-ellipsis-fix":""}"
|
|
803
819
|
?hidden=${!this.hasTextContent()}>
|
|
804
820
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
805
821
|
</ft-typography>
|
|
@@ -814,23 +830,23 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
814
830
|
position="${this.tooltipPosition}">
|
|
815
831
|
${t}
|
|
816
832
|
</ft-tooltip>
|
|
817
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
833
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new hr(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?it`
|
|
818
834
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
819
|
-
`:
|
|
820
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
835
|
+
`:ot}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()}}fr.elementDefinitions={"ft-ripple":sr,"ft-typography":Po,"ft-tooltip":nr,"ft-icon":Go},fr.styles=[Mt,lr],cr([s()],fr.prototype,"value",void 0),cr([s()],fr.prototype,"icon",void 0),cr([s()],fr.prototype,"iconVariant",void 0),cr([s()],fr.prototype,"label",void 0),cr([s()],fr.prototype,"tooltipPosition",void 0),cr([s({type:Boolean,reflect:!0})],fr.prototype,"selected",void 0),cr([s({type:Boolean})],fr.prototype,"trailingIcon",void 0),cr([s({type:Boolean})],fr.prototype,"unselectable",void 0),cr([c(".ft-switch-option--content slot")],fr.prototype,"slottedContent",void 0),cr([c(".ft-switch-option--input")],fr.prototype,"input",void 0);var dr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pr extends CustomEvent{constructor(t){super("change",{detail:t})}}class vr extends jt{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 it`
|
|
836
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${or(t)}">
|
|
821
837
|
<slot @slotchange=${this.onSlotchange}
|
|
822
838
|
@option-change=${this.onOptionChangeByScript}
|
|
823
839
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
824
840
|
></slot>
|
|
825
841
|
</div>
|
|
826
|
-
`}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
|
|
842
|
+
`}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 fr&&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 pr(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}))}}vr.elementDefinitions={},vr.styles=S`
|
|
827
843
|
:host {
|
|
828
844
|
display: inline-block;
|
|
829
845
|
}
|
|
830
846
|
|
|
831
847
|
.ft-switch {
|
|
832
|
-
border-radius: ${
|
|
833
|
-
outline-color: ${
|
|
848
|
+
border-radius: ${ao.borderRadius};
|
|
849
|
+
outline-color: ${ao.outlineColor};
|
|
834
850
|
}
|
|
835
851
|
|
|
836
852
|
.ft-switch slot {
|
|
@@ -839,25 +855,25 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
839
855
|
}
|
|
840
856
|
|
|
841
857
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
842
|
-
${Ot(
|
|
843
|
-
${Ot(
|
|
844
|
-
${Ot(
|
|
858
|
+
${Ot(ar.borderRadiusLeft,"0")};
|
|
859
|
+
${Ot(ar.borderRadiusRight,"0")};
|
|
860
|
+
${Ot(ar.borderWidthLeft,"0")};
|
|
845
861
|
}
|
|
846
862
|
|
|
847
863
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
848
|
-
${Ot(
|
|
849
|
-
${Ot(
|
|
864
|
+
${Ot(ar.borderRadiusLeft,ao.borderRadius)};
|
|
865
|
+
${Ot(ar.borderWidthLeft,"1px")};
|
|
850
866
|
}
|
|
851
867
|
|
|
852
868
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
853
|
-
${Ot(
|
|
869
|
+
${Ot(ar.borderRadiusRight,ao.borderRadius)};
|
|
854
870
|
}
|
|
855
871
|
|
|
856
872
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
857
873
|
--ft-switch-internal-vertical-padding: 2px;
|
|
858
874
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
859
875
|
}
|
|
860
|
-
`,
|
|
876
|
+
`,dr([s({type:Boolean})],vr.prototype,"dense",void 0),dr([s({type:Boolean})],vr.prototype,"unselectable",void 0),dr([c(".ft-switch slot")],vr.prototype,"slottedContent",void 0),dr([a()],vr.prototype,"selectedOption",void 0),dr([c(".ft-switch")],vr.prototype,"ftSwitchDiv",void 0),v("ft-switch")(vr),v("ft-switch-option")(fr);const br=kt.external(Et.colorOutline,"Design system"),yr=kt.external(Et.colorOnSurfaceMedium,"Design system"),gr=S`
|
|
861
877
|
:host {
|
|
862
878
|
display: block;
|
|
863
879
|
}
|
|
@@ -868,14 +884,14 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
868
884
|
|
|
869
885
|
ft-icon {
|
|
870
886
|
transform: rotate(-45deg);
|
|
871
|
-
color: ${
|
|
887
|
+
color: ${br};
|
|
872
888
|
}
|
|
873
889
|
|
|
874
890
|
.ft-resizer--dragging ft-icon,
|
|
875
891
|
.ft-resizer:hover ft-icon {
|
|
876
|
-
color: ${
|
|
892
|
+
color: ${yr};
|
|
877
893
|
}
|
|
878
|
-
`;var
|
|
894
|
+
`;var xr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mr extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class wr extends jt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Vo.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 it`
|
|
879
895
|
<style>
|
|
880
896
|
.ft-resizer {
|
|
881
897
|
cursor: ${$(this.cursor)}
|
|
@@ -886,25 +902,25 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
886
902
|
@touchstart=${this.initDragFromTouch}>
|
|
887
903
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
888
904
|
</div>
|
|
889
|
-
`}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,
|
|
905
|
+
`}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,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new mr(i,n))}}wr.elementDefinitions={"ft-icon":Go},wr.styles=[Ut,gr],xr([s({type:Number})],wr.prototype,"initialWidth",void 0),xr([s({type:Number})],wr.prototype,"initialHeight",void 0),xr([s()],wr.prototype,"icon",void 0),xr([s()],wr.prototype,"iconVariant",void 0),xr([s()],wr.prototype,"cursor",void 0),xr([a()],wr.prototype,"dragging",void 0),v("ft-resizer")(wr);const $r={fontSize:kt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:kt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:kt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:kt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:kt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:kt.extend("--ft-input-label-border-color",Et.colorOutline),textColor:kt.extend("--ft-input-label-text-color",Et.colorOnSurfaceMedium),disabledTextColor:kt.extend("--ft-input-label-disabled-text-color",Et.colorOnSurfaceDisabled),colorSurface:kt.external(Et.colorSurface,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system")},Sr=S`
|
|
890
906
|
.ft-input-label {
|
|
891
907
|
position: absolute;
|
|
892
908
|
inset: 0;
|
|
893
909
|
display: flex;
|
|
894
|
-
background-color: ${
|
|
895
|
-
border-radius: ${
|
|
910
|
+
background-color: ${$r.colorSurface};
|
|
911
|
+
border-radius: ${$r.borderRadiusS} ${$r.borderRadiusS} 0 0;
|
|
896
912
|
}
|
|
897
913
|
|
|
898
914
|
.ft-input-label--outlined {
|
|
899
|
-
border-radius: ${
|
|
915
|
+
border-radius: ${$r.borderRadiusS};
|
|
900
916
|
}
|
|
901
917
|
|
|
902
918
|
.ft-input-label {
|
|
903
|
-
border-color: ${
|
|
919
|
+
border-color: ${$r.borderColor};
|
|
904
920
|
}
|
|
905
921
|
|
|
906
922
|
.ft-input-label.ft-input-label--in-error {
|
|
907
|
-
border-color: ${
|
|
923
|
+
border-color: ${$r.colorError}
|
|
908
924
|
}
|
|
909
925
|
|
|
910
926
|
.ft-input-label:before,
|
|
@@ -917,7 +933,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
917
933
|
}
|
|
918
934
|
|
|
919
935
|
.ft-input-label:before {
|
|
920
|
-
width: calc(${
|
|
936
|
+
width: calc(${$r.horizontalSpacing} - 4px);
|
|
921
937
|
flex-shrink: 0;
|
|
922
938
|
}
|
|
923
939
|
|
|
@@ -933,20 +949,20 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
933
949
|
border-bottom-width: 1px;
|
|
934
950
|
border-bottom-style: solid;
|
|
935
951
|
border-color: inherit;
|
|
936
|
-
color: ${
|
|
952
|
+
color: ${$r.textColor};
|
|
937
953
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
938
|
-
max-width: calc(${
|
|
954
|
+
max-width: calc(${$r.labelMaxWidth} - 2 * (${$r.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
939
955
|
text-overflow: ellipsis;
|
|
940
|
-
${Ot(
|
|
941
|
-
${Ot(
|
|
956
|
+
${Ot(Sn.fontSize,$r.fontSize)};
|
|
957
|
+
${Ot(Sn.lineHeight,$r.fontSize)};
|
|
942
958
|
}
|
|
943
959
|
|
|
944
960
|
.ft-input-label--in-error .ft-input-label--text {
|
|
945
|
-
color: ${
|
|
961
|
+
color: ${$r.colorError}
|
|
946
962
|
}
|
|
947
963
|
|
|
948
964
|
.ft-input-label--disabled .ft-input-label--text {
|
|
949
|
-
color: ${
|
|
965
|
+
color: ${$r.disabledTextColor};
|
|
950
966
|
}
|
|
951
967
|
|
|
952
968
|
.ft-input-label--hidden-text {
|
|
@@ -963,19 +979,19 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
963
979
|
overflow: hidden;
|
|
964
980
|
white-space: nowrap;
|
|
965
981
|
text-overflow: ellipsis;
|
|
966
|
-
padding: ${
|
|
967
|
-
margin: calc(${
|
|
982
|
+
padding: ${$r.verticalSpacing} 4px;
|
|
983
|
+
margin: calc(${$r.verticalSpacing} * -1) 0;
|
|
968
984
|
max-width: 100%;
|
|
969
985
|
box-sizing: border-box;
|
|
970
986
|
}
|
|
971
987
|
|
|
972
988
|
.ft-input-label--raised .ft-input-label--text {
|
|
973
|
-
${Ot(
|
|
974
|
-
${Ot(
|
|
989
|
+
${Ot(Sn.fontSize,$r.raisedFontSize)};
|
|
990
|
+
${Ot(Sn.lineHeight,$r.raisedFontSize)};
|
|
975
991
|
}
|
|
976
992
|
|
|
977
993
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
978
|
-
top: ${
|
|
994
|
+
top: ${$r.verticalSpacing};
|
|
979
995
|
}
|
|
980
996
|
|
|
981
997
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -988,28 +1004,28 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
988
1004
|
.ft-input-label--outlined:before {
|
|
989
1005
|
border-left-width: 1px;
|
|
990
1006
|
border-left-style: solid;
|
|
991
|
-
border-radius: ${
|
|
1007
|
+
border-radius: ${$r.borderRadiusS} 0 0 ${$r.borderRadiusS};
|
|
992
1008
|
}
|
|
993
1009
|
|
|
994
1010
|
.ft-input-label--outlined:after {
|
|
995
1011
|
border-right-width: 1px;
|
|
996
1012
|
border-right-style: solid;
|
|
997
|
-
border-radius: 0 ${
|
|
1013
|
+
border-radius: 0 ${$r.borderRadiusS} ${$r.borderRadiusS} 0;
|
|
998
1014
|
}
|
|
999
1015
|
|
|
1000
1016
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1001
1017
|
padding: 2px 4px;
|
|
1002
|
-
z-index: ${
|
|
1003
|
-
background-color: ${
|
|
1004
|
-
border-radius: ${
|
|
1018
|
+
z-index: ${$r.raisedZIndex};
|
|
1019
|
+
background-color: ${$r.colorSurface};
|
|
1020
|
+
border-radius: ${$r.borderRadiusS};
|
|
1005
1021
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1006
1022
|
}
|
|
1007
1023
|
|
|
1008
1024
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1009
1025
|
border-top: none;
|
|
1010
1026
|
}
|
|
1011
|
-
`;var
|
|
1012
|
-
<div class="${
|
|
1027
|
+
`;var kr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Or extends jt{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 it`
|
|
1028
|
+
<div class="${or(t)}">
|
|
1013
1029
|
${this.text?it`
|
|
1014
1030
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1015
1031
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -1017,7 +1033,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1017
1033
|
</div>
|
|
1018
1034
|
`:null}
|
|
1019
1035
|
</div>
|
|
1020
|
-
`}}
|
|
1036
|
+
`}}Or.elementDefinitions={},Or.styles=[Hn,Sr],kr([s({type:String})],Or.prototype,"text",void 0),kr([s({type:Boolean})],Or.prototype,"raised",void 0),kr([s({type:Boolean})],Or.prototype,"outlined",void 0),kr([s({type:Boolean})],Or.prototype,"disabled",void 0),kr([s({type:Boolean})],Or.prototype,"error",void 0),v("ft-input-label")(Or);const Er={fontSize:kt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:kt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:kt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:kt.extend("--ft-text-area-helper-color",Et.colorOnSurfaceMedium),colorPrimary:kt.external(Et.colorPrimary,"Design system"),colorOnSurface:kt.external(Et.colorOnSurface,"Design system"),colorOnSurfaceDisabled:kt.external(Et.colorOnSurfaceDisabled,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system")},_r=S`
|
|
1021
1037
|
*:focus {
|
|
1022
1038
|
outline: none;
|
|
1023
1039
|
}
|
|
@@ -1029,10 +1045,10 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1029
1045
|
}
|
|
1030
1046
|
|
|
1031
1047
|
ft-input-label {
|
|
1032
|
-
${Ot(
|
|
1033
|
-
${Ot(
|
|
1034
|
-
${Ot(
|
|
1035
|
-
${Ot(
|
|
1048
|
+
${Ot($r.fontSize,Er.fontSize)};
|
|
1049
|
+
${Ot($r.raisedFontSize,Er.labelSize)};
|
|
1050
|
+
${Ot($r.verticalSpacing,Er.verticalSpacing)};
|
|
1051
|
+
${Ot($r.horizontalSpacing,Er.horizontalSpacing)};
|
|
1036
1052
|
}
|
|
1037
1053
|
|
|
1038
1054
|
.ft-text-area--main-panel {
|
|
@@ -1050,8 +1066,8 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1050
1066
|
}
|
|
1051
1067
|
|
|
1052
1068
|
.ft-text-area--input-panel ft-ripple {
|
|
1053
|
-
${Ot(
|
|
1054
|
-
${Ot(
|
|
1069
|
+
${Ot(Ki.opacityContentOnSurfaceHover,"0.08")};
|
|
1070
|
+
${Ot(Ki.opacityContentOnSurfacePressed,"0.04")};
|
|
1055
1071
|
}
|
|
1056
1072
|
|
|
1057
1073
|
.ft-text-area--input {
|
|
@@ -1063,12 +1079,12 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1063
1079
|
align-self: stretch;
|
|
1064
1080
|
resize: none;
|
|
1065
1081
|
|
|
1066
|
-
${Ot(
|
|
1067
|
-
${Ot(
|
|
1068
|
-
color: ${
|
|
1082
|
+
${Ot(bn.fontSize,Er.fontSize)};
|
|
1083
|
+
${Ot(bn.lineHeight,Er.fontSize)};
|
|
1084
|
+
color: ${Er.colorOnSurface};
|
|
1069
1085
|
|
|
1070
|
-
padding: 0 ${
|
|
1071
|
-
margin: calc(${
|
|
1086
|
+
padding: 0 ${Er.horizontalSpacing};
|
|
1087
|
+
margin: calc(${Er.verticalSpacing} + ${Er.labelSize} / 2) 0 ${Er.verticalSpacing} 0;
|
|
1072
1088
|
|
|
1073
1089
|
border: none;
|
|
1074
1090
|
background: none;
|
|
@@ -1077,7 +1093,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1077
1093
|
}
|
|
1078
1094
|
|
|
1079
1095
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1080
|
-
color: ${
|
|
1096
|
+
color: ${Er.colorOnSurfaceDisabled};
|
|
1081
1097
|
}
|
|
1082
1098
|
|
|
1083
1099
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1085,49 +1101,49 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1085
1101
|
}
|
|
1086
1102
|
|
|
1087
1103
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1088
|
-
${Ot(
|
|
1089
|
-
${Ot(
|
|
1104
|
+
${Ot($r.borderColor,Er.colorPrimary)};
|
|
1105
|
+
${Ot($r.textColor,Er.colorPrimary)};
|
|
1090
1106
|
}
|
|
1091
1107
|
|
|
1092
1108
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1093
|
-
border-radius: ${
|
|
1109
|
+
border-radius: ${Er.borderRadiusS} ${Er.borderRadiusS} 0 0;
|
|
1094
1110
|
}
|
|
1095
1111
|
|
|
1096
1112
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1097
1113
|
align-self: stretch;
|
|
1098
|
-
margin-bottom: ${
|
|
1099
|
-
margin-top: calc(${
|
|
1114
|
+
margin-bottom: ${Er.verticalSpacing};
|
|
1115
|
+
margin-top: calc(${Er.labelSize} + 2 * ${Er.verticalSpacing});
|
|
1100
1116
|
}
|
|
1101
1117
|
|
|
1102
1118
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1103
|
-
border-radius: ${
|
|
1119
|
+
border-radius: ${Er.borderRadiusS};
|
|
1104
1120
|
}
|
|
1105
1121
|
|
|
1106
1122
|
.ft-text-area--helper-text {
|
|
1107
|
-
padding: 0 12px 0 ${
|
|
1108
|
-
color: ${
|
|
1123
|
+
padding: 0 12px 0 ${Er.horizontalSpacing};
|
|
1124
|
+
color: ${Er.helperColor};
|
|
1109
1125
|
}
|
|
1110
1126
|
|
|
1111
1127
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1112
1128
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1113
|
-
color: ${
|
|
1129
|
+
color: ${Er.colorError};
|
|
1114
1130
|
}
|
|
1115
1131
|
|
|
1116
1132
|
ft-resizer {
|
|
1117
1133
|
position: absolute;
|
|
1118
1134
|
bottom: 0;
|
|
1119
1135
|
}
|
|
1120
|
-
`;var
|
|
1136
|
+
`;var Rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Cr extends jt{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 it`
|
|
1121
1137
|
<style>
|
|
1122
1138
|
.ft-text-area--main-panel {
|
|
1123
|
-
height: calc(4 * ${
|
|
1139
|
+
height: calc(4 * ${Er.verticalSpacing} + ${Er.labelSize} + ${Er.fontSize} + ${this.height}px);
|
|
1124
1140
|
}
|
|
1125
1141
|
|
|
1126
1142
|
ft-resizer {
|
|
1127
1143
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1128
1144
|
}
|
|
1129
1145
|
</style>
|
|
1130
|
-
<div class="${
|
|
1146
|
+
<div class="${or(t)}">
|
|
1131
1147
|
<div class="ft-text-area--main-panel">
|
|
1132
1148
|
<ft-input-label text="${this.label}"
|
|
1133
1149
|
?disabled=${this.disabled}
|
|
@@ -1159,34 +1175,34 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1159
1175
|
${this.helper}
|
|
1160
1176
|
</ft-typography>`:void 0}
|
|
1161
1177
|
</div>
|
|
1162
|
-
`}setValue(t,e=!1){this.value=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.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1178
|
+
`}setValue(t,e=!1){this.value=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.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Cr.elementDefinitions={"ft-input-label":Or,"ft-resizer":wr,"ft-ripple":sr,"ft-typography":Po},Cr.styles=[Bn,_r],Rr([s({type:String})],Cr.prototype,"label",void 0),Rr([s({reflect:!0})],Cr.prototype,"value",void 0),Rr([s({type:String})],Cr.prototype,"helper",void 0),Rr([s({type:Boolean})],Cr.prototype,"outlined",void 0),Rr([s({type:Boolean})],Cr.prototype,"disabled",void 0),Rr([s({type:Boolean})],Cr.prototype,"error",void 0),Rr([s({type:Number,reflect:!0})],Cr.prototype,"height",void 0),Rr([c("textarea")],Cr.prototype,"textarea",void 0),Rr([a()],Cr.prototype,"focused",void 0),v("ft-text-area")(Cr);
|
|
1163
1179
|
/**
|
|
1164
1180
|
* @license
|
|
1165
1181
|
* Copyright 2020 Google LLC
|
|
1166
1182
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1167
1183
|
*/
|
|
1168
|
-
const{I:
|
|
1184
|
+
const{I:Ar}=gt,Nr=()=>document.createComment(""),Tr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Nr(),r),n=o.insertBefore(Nr(),r);i=new Ar(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ir=(t,e,i=t)=>(t._$AI(e,i),t),jr={},Ur=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Mr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Pr=Lo(class extends Bo{constructor(t){if(super(t),t.type!==Fo)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let h,u,f=0,d=r.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[p])c[p]=Ir(r[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=Ir(r[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Ir(r[f],s[v]),Tr(t,c[v+1],r[f]),f++,v--;else if(l[d]===a[p])c[p]=Ir(r[d],s[p]),Tr(t,r[f],r[d]),d--,p++;else if(void 0===h&&(h=Mr(a,p,v),u=Mr(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=u.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=Tr(t,r[f]);Ir(e,s[p]),c[p]=e}else c[p]=Ir(i,s[p]),Tr(t,r[f],i),r[e]=null;p++}else Ur(r[d]),d--;else Ur(r[f]),f++;for(;p<=v;){const e=Tr(t,c[v+1]);Ir(e,s[p]),c[p++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ur(t)}return this.ht=a,((t,e=jr)=>{t._$AH=e})(t,c),nt}});
|
|
1169
1185
|
/**
|
|
1170
1186
|
* @license
|
|
1171
1187
|
* Copyright 2017 Google LLC
|
|
1172
1188
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1173
|
-
*/class
|
|
1189
|
+
*/class Dr extends jt{render(){return it`
|
|
1174
1190
|
<div class="ft-loader">
|
|
1175
1191
|
<div></div>
|
|
1176
1192
|
<div></div>
|
|
1177
1193
|
<div></div>
|
|
1178
1194
|
<div></div>
|
|
1179
1195
|
</div>
|
|
1180
|
-
`}}
|
|
1196
|
+
`}}Dr.styles=qn,v("ft-loader")(Dr);var Fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lr extends jt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(it`
|
|
1181
1197
|
<button part="button"
|
|
1182
|
-
class="${
|
|
1198
|
+
class="${or(t)}"
|
|
1183
1199
|
aria-label="${this.getLabel()}"
|
|
1184
1200
|
?disabled=${this.isDisabled()}>
|
|
1185
1201
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1186
1202
|
<ft-typography part="label"
|
|
1187
1203
|
variant="button"
|
|
1188
1204
|
element="span"
|
|
1189
|
-
class="ft-button--label ${
|
|
1205
|
+
class="ft-button--label ${Di?"ft-safari-ellipsis-fix":""}"
|
|
1190
1206
|
?hidden=${!this.hasTextContent()}>
|
|
1191
1207
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1192
1208
|
</ft-typography>
|
|
@@ -1200,15 +1216,15 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1200
1216
|
</ft-tooltip>
|
|
1201
1217
|
`:t}resolveIcon(){return this.loading?it`
|
|
1202
1218
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?it`
|
|
1203
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
1204
|
-
`,
|
|
1205
|
-
`,
|
|
1219
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ot}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Lr.elementDefinitions={"ft-ripple":sr,"ft-tooltip":nr,"ft-typography":Po,"ft-icon":Go,"ft-loader":Dr},Lr.styles=[Mt,so],Fr([s({type:String,reflect:!0})],Lr.prototype,"role",void 0),Fr([s({type:Boolean})],Lr.prototype,"primary",void 0),Fr([s({type:Boolean})],Lr.prototype,"outlined",void 0),Fr([s({type:Boolean})],Lr.prototype,"disabled",void 0),Fr([s({type:Boolean})],Lr.prototype,"dense",void 0),Fr([s({type:Boolean})],Lr.prototype,"round",void 0),Fr([s()],Lr.prototype,"label",void 0),Fr([s()],Lr.prototype,"icon",void 0),Fr([s()],Lr.prototype,"iconVariant",void 0),Fr([s({type:Boolean})],Lr.prototype,"trailingIcon",void 0),Fr([s({type:Boolean})],Lr.prototype,"loading",void 0),Fr([s()],Lr.prototype,"tooltipPosition",void 0),Fr([s({type:Boolean})],Lr.prototype,"hideTooltip",void 0),Fr([s({type:Boolean})],Lr.prototype,"forceTooltip",void 0),Fr([c(".ft-button")],Lr.prototype,"button",void 0),Fr([c(".ft-button--label slot")],Lr.prototype,"slottedContent",void 0),v("ft-button")(Lr);const Br=S`
|
|
1220
|
+
`,zr=S`
|
|
1221
|
+
`,Hr=Ii.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 Kr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Hr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Kr.build(t):null!==(e=Kr.API)&&void 0!==e?e:Kr.API=Kr.build()}static await(t){return new Promise((e=>{let i=Kr.get(t);if(i)e(i);else{const n=Hr.subscribe((()=>{i=Kr.get(t),i&&(n(),e(i))}))}}))}}var Wr;const Vr=Symbol("clearAfterUnitTest");class Zr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[Wr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Hr.getState().uiLocale,Hr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Hr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};p(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Pt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Wr=Vr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Zr((async(t,e)=>(await Kr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Zr((async(t,e)=>(await Kr.await()).getCustomMessageContext(t,e))));const Gr=window.FluidTopicsI18nService,qr=window.FluidTopicsCustomI18nService;var Xr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Jr extends jt{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=()=>Kr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return it`
|
|
1206
1222
|
<slot></slot>
|
|
1207
|
-
`}
|
|
1223
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Hr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Hr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Hr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Hr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Hr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Hr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Hr.actions.setSession(this.session),t.has("availableUiLocales")&&Hr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Gr.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()))))}}Jr.elementDefinitions={},Jr.styles=zr,Xr([s()],Jr.prototype,"baseUrl",void 0),Xr([s()],Jr.prototype,"apiIntegrationIdentifier",void 0),Xr([s()],Jr.prototype,"uiLocale",void 0),Xr([b([])],Jr.prototype,"availableUiLocales",void 0),Xr([s({type:Boolean})],Jr.prototype,"editorMode",void 0),Xr([s({type:Boolean})],Jr.prototype,"noCustom",void 0),Xr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Jr.prototype,"noCustomComponent",void 0),Xr([s({type:Boolean})],Jr.prototype,"withManualResources",void 0),Xr([b([])],Jr.prototype,"messageContexts",void 0),Xr([b(void 0)],Jr.prototype,"session",void 0),Xr([s({type:Object})],Jr.prototype,"apiProvider",void 0);class Yr{async listMySearches(){var t;return(null===(t=Hr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Kr.await()).listMySearches(Hr.getState().session.profile.userId):[]}}const Qr=new n;class ts{async listMyBookmarks(){return Qr.get("bookmarks",(async()=>(await Kr.await()).listMyBookmarks(Hr.getState().session.profile.userId)))}clearCache(){Qr.clear("bookmarks")}}const es=Ii.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Hr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ts,Hr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Hr.getState();p(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(){es.actions.savedSearches(void 0)}clearMyBookmarks(){es.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Yr,e=await t.listMySearches();es.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;es.actions.bookmarks(e)}}},v("ft-app-context")(Jr);var is=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ns=Symbol("i18nProperties"),os=Symbol("i18nUnsubs");function rs(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?qr:Gr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[ns])||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[ns])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ns]&&new Set([...this[ns].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[os].has(t)||this[os].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[os].forEach((t=>t())),this[os].clear()}}return e=os,is([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ss extends(rs(jt)){}class as extends(rs(Wt)){}var ls=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class cs extends as{constructor(){super(),this.editorMode=!1,this.addStore(Hr)}render(){return this.key&&this.context?it`
|
|
1208
1224
|
<span class="ft-i18n">
|
|
1209
1225
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1210
1226
|
</span>
|
|
1211
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1227
|
+
`:this.editorMode?"Select a context and a label key.":ot}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}cs.elementDefinitions={},cs.styles=Br,ls([ji()],cs.prototype,"editorMode",void 0),ls([s()],cs.prototype,"context",void 0),ls([s()],cs.prototype,"key",void 0),ls([b([])],cs.prototype,"args",void 0),ls([s()],cs.prototype,"defaultMessage",void 0);class hs{static build(t){return new hs(t)}static fromGwt(t){return new hs(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)=>Gr.resolveMessage(this.name,e,...t)})}}const us=(t,e)=>(i,n)=>{var o,r;i.constructor.createProperty(n,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(o=t.key)&&void 0!==o?o:n};i[ns]=null!==(r=i[ns])&&void 0!==r?r:new Map,i[ns].set(n,s)};v("ft-i18n")(cs);const fs=hs.build("integratedFeedbackComponent"),ds={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"},ps=hs.build("inDesignerFeedbackComponent"),vs={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."},bs={fontSize:kt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:kt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:kt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:kt.extend("--ft-text-field-helper-color",Et.colorOnSurfaceMedium),colorPrimary:kt.external(Et.colorPrimary,"Design system"),colorOnSurface:kt.external(Et.colorOnSurface,"Design system"),colorOnSurfaceDisabled:kt.external(Et.colorOnSurfaceDisabled,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system"),prefixColor:kt.extend("--ft-text-field-prefix-color",Et.colorOnSurfaceMedium),iconColor:kt.extend("--ft-text-field-icon-color",Et.colorOnSurfaceMedium),floatingZIndex:kt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:kt.external(Et.colorSurface,"Design system"),colorOutline:kt.external(Et.colorOutline,"Design system"),elevation02:kt.external(Et.elevation02,"Design system"),suggestSize:kt.create("--ft-text-field-suggest-size","SIZE","300px")},ys=S`
|
|
1212
1228
|
*:focus {
|
|
1213
1229
|
outline: none;
|
|
1214
1230
|
}
|
|
@@ -1221,16 +1237,16 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1221
1237
|
}
|
|
1222
1238
|
|
|
1223
1239
|
ft-input-label {
|
|
1224
|
-
${Ot(
|
|
1225
|
-
${Ot(
|
|
1226
|
-
${Ot(
|
|
1227
|
-
${Ot(
|
|
1240
|
+
${Ot($r.fontSize,bs.fontSize)};
|
|
1241
|
+
${Ot($r.raisedFontSize,bs.labelSize)};
|
|
1242
|
+
${Ot($r.verticalSpacing,bs.verticalSpacing)};
|
|
1243
|
+
${Ot($r.horizontalSpacing,bs.horizontalSpacing)};
|
|
1228
1244
|
}
|
|
1229
1245
|
|
|
1230
1246
|
.ft-text-field--main-panel {
|
|
1231
1247
|
position: relative;
|
|
1232
1248
|
display: flex;
|
|
1233
|
-
height: calc(4 * ${
|
|
1249
|
+
height: calc(4 * ${bs.verticalSpacing} + ${bs.labelSize} + ${bs.fontSize});
|
|
1234
1250
|
}
|
|
1235
1251
|
|
|
1236
1252
|
.ft-text-field--input-panel {
|
|
@@ -1239,24 +1255,24 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1239
1255
|
display: flex;
|
|
1240
1256
|
align-items: center;
|
|
1241
1257
|
overflow: hidden;
|
|
1242
|
-
padding: 0 ${
|
|
1258
|
+
padding: 0 ${bs.horizontalSpacing};
|
|
1243
1259
|
|
|
1244
|
-
${Ot(
|
|
1245
|
-
${Ot(
|
|
1260
|
+
${Ot(bn.fontSize,bs.fontSize)};
|
|
1261
|
+
${Ot(bn.lineHeight,bs.fontSize)};
|
|
1246
1262
|
}
|
|
1247
1263
|
|
|
1248
1264
|
.ft-text-field--input-panel ft-ripple {
|
|
1249
|
-
${Ot(
|
|
1250
|
-
${Ot(
|
|
1265
|
+
${Ot(Ki.opacityContentOnSurfaceHover,"0.08")};
|
|
1266
|
+
${Ot(Ki.opacityContentOnSurfacePressed,"0.04")};
|
|
1251
1267
|
}
|
|
1252
1268
|
|
|
1253
1269
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1254
1270
|
align-items: flex-end;
|
|
1255
|
-
padding: 0 ${
|
|
1271
|
+
padding: 0 ${bs.horizontalSpacing} ${bs.verticalSpacing} ${bs.horizontalSpacing};
|
|
1256
1272
|
}
|
|
1257
1273
|
|
|
1258
1274
|
.ft-text-field--prefix {
|
|
1259
|
-
color: ${
|
|
1275
|
+
color: ${bs.prefixColor};
|
|
1260
1276
|
margin-right: 2px;
|
|
1261
1277
|
flex-shrink: 1;
|
|
1262
1278
|
overflow: hidden;
|
|
@@ -1275,15 +1291,15 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1275
1291
|
flex-shrink: 1;
|
|
1276
1292
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1277
1293
|
|
|
1278
|
-
color: ${
|
|
1279
|
-
padding: calc(2 * ${
|
|
1294
|
+
color: ${bs.colorOnSurface};
|
|
1295
|
+
padding: calc(2 * ${bs.verticalSpacing}) 0;
|
|
1280
1296
|
border: none;
|
|
1281
1297
|
background: none;
|
|
1282
1298
|
}
|
|
1283
1299
|
|
|
1284
1300
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1285
1301
|
padding-bottom: 0;
|
|
1286
|
-
padding-top: calc(${
|
|
1302
|
+
padding-top: calc(${bs.labelSize} + 2 * ${bs.verticalSpacing});
|
|
1287
1303
|
}
|
|
1288
1304
|
|
|
1289
1305
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1292,37 +1308,37 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1292
1308
|
}
|
|
1293
1309
|
|
|
1294
1310
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1295
|
-
color: ${
|
|
1311
|
+
color: ${bs.colorOnSurfaceDisabled};
|
|
1296
1312
|
}
|
|
1297
1313
|
|
|
1298
1314
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1299
|
-
${Ot(
|
|
1300
|
-
${Ot(
|
|
1315
|
+
${Ot($r.borderColor,bs.colorPrimary)};
|
|
1316
|
+
${Ot($r.textColor,bs.colorPrimary)};
|
|
1301
1317
|
}
|
|
1302
1318
|
|
|
1303
1319
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1304
|
-
border-radius: ${
|
|
1320
|
+
border-radius: ${bs.borderRadiusS} ${bs.borderRadiusS} 0 0;
|
|
1305
1321
|
}
|
|
1306
1322
|
|
|
1307
1323
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1308
|
-
border-radius: ${
|
|
1324
|
+
border-radius: ${bs.borderRadiusS};
|
|
1309
1325
|
}
|
|
1310
1326
|
|
|
1311
1327
|
.ft-text-field--helper-text {
|
|
1312
|
-
padding: 0 12px 0 ${
|
|
1313
|
-
color: ${
|
|
1328
|
+
padding: 0 12px 0 ${bs.horizontalSpacing};
|
|
1329
|
+
color: ${bs.helperColor};
|
|
1314
1330
|
}
|
|
1315
1331
|
|
|
1316
1332
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1317
1333
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1318
1334
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1319
|
-
color: ${
|
|
1335
|
+
color: ${bs.colorError};
|
|
1320
1336
|
}
|
|
1321
1337
|
|
|
1322
1338
|
.ft-text-field--icon {
|
|
1323
1339
|
align-self: center;
|
|
1324
1340
|
margin-left: 8px;
|
|
1325
|
-
color: ${
|
|
1341
|
+
color: ${bs.iconColor};
|
|
1326
1342
|
}
|
|
1327
1343
|
|
|
1328
1344
|
.ft-text-field--container {
|
|
@@ -1335,13 +1351,13 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1335
1351
|
position: absolute;
|
|
1336
1352
|
left: 0;
|
|
1337
1353
|
right: 0;
|
|
1338
|
-
z-index: ${
|
|
1339
|
-
background: ${
|
|
1340
|
-
border: 1px solid ${
|
|
1341
|
-
border-radius: 0 0 ${
|
|
1342
|
-
box-shadow: ${
|
|
1354
|
+
z-index: ${bs.floatingZIndex};
|
|
1355
|
+
background: ${bs.colorSurface};
|
|
1356
|
+
border: 1px solid ${bs.colorOutline};
|
|
1357
|
+
border-radius: 0 0 ${bs.borderRadiusS} ${bs.borderRadiusS};
|
|
1358
|
+
box-shadow: ${bs.elevation02};
|
|
1343
1359
|
outline: none;
|
|
1344
|
-
max-height: ${
|
|
1360
|
+
max-height: ${bs.suggestSize};
|
|
1345
1361
|
overflow-y: auto;
|
|
1346
1362
|
}
|
|
1347
1363
|
|
|
@@ -1358,14 +1374,14 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1358
1374
|
}
|
|
1359
1375
|
|
|
1360
1376
|
.ft-text-field--with-icon {
|
|
1361
|
-
${Ot(
|
|
1377
|
+
${Ot($r.labelMaxWidth,`calc(100% - ${Xn.size} - ${$r.horizontalSpacing})`)};
|
|
1362
1378
|
}
|
|
1363
1379
|
|
|
1364
1380
|
.ft-text-field--with-password ft-icon:hover {
|
|
1365
1381
|
cursor: pointer;
|
|
1366
1382
|
}
|
|
1367
|
-
`;var
|
|
1368
|
-
<div class="${
|
|
1383
|
+
`;var gs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class xs extends jt{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Ko.EYE_SLASH,this.passwordRevealedIcon=Ko.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.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 it`
|
|
1384
|
+
<div class="${or(t)}">
|
|
1369
1385
|
<div class="ft-text-field--main-panel"
|
|
1370
1386
|
@keydown=${this.handleKeyboardNavigation}
|
|
1371
1387
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1375,16 +1391,16 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1375
1391
|
?raised=${this.focused||""!=this.value}
|
|
1376
1392
|
?error=${this.error}></ft-input-label>
|
|
1377
1393
|
<div class="ft-text-field--input-panel">
|
|
1378
|
-
${this.outlined?
|
|
1394
|
+
${this.outlined?ot:it`
|
|
1379
1395
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1380
1396
|
`}
|
|
1381
1397
|
${this.prefix?it`
|
|
1382
1398
|
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
1383
1399
|
${this.prefix}
|
|
1384
1400
|
</ft-typography>
|
|
1385
|
-
`:
|
|
1401
|
+
`:ot}
|
|
1386
1402
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
1387
|
-
maxlength=${(t=>null!=t?t:
|
|
1403
|
+
maxlength=${(t=>null!=t?t:ot)(this.maxLength||void 0)}
|
|
1388
1404
|
aria-label="${this.label}"
|
|
1389
1405
|
class="ft-typography--body1 ft-text-field--input"
|
|
1390
1406
|
?disabled=${this.disabled}
|
|
@@ -1403,7 +1419,7 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1403
1419
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1404
1420
|
${this.helper}
|
|
1405
1421
|
</ft-typography>
|
|
1406
|
-
`:
|
|
1422
|
+
`:ot}
|
|
1407
1423
|
</div>
|
|
1408
1424
|
`}renderPasswordIcon(){return it`
|
|
1409
1425
|
<ft-icon class="ft-text-field--icon"
|
|
@@ -1415,7 +1431,7 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1415
1431
|
.variant=${this.iconVariant}
|
|
1416
1432
|
.value=${this.icon}
|
|
1417
1433
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1418
|
-
`:
|
|
1434
|
+
`:ot}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(),n=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&n&&(this.suggestionsOnTop=t.bottom+n.height>window.innerHeight&&t.top-n.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 n;n="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[n])||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}}xs.elementDefinitions={"ft-input-label":Or,"ft-ripple":sr,"ft-typography":Po,"ft-icon":Go},xs.styles=[Bn,ys],gs([s()],xs.prototype,"label",void 0),gs([s({noAccessor:!0})],xs.prototype,"value",null),gs([a()],xs.prototype,"dispatchedValue",void 0),gs([s()],xs.prototype,"helper",void 0),gs([s({type:Boolean})],xs.prototype,"outlined",void 0),gs([s({type:Boolean})],xs.prototype,"disabled",void 0),gs([s({type:Boolean})],xs.prototype,"error",void 0),gs([s()],xs.prototype,"prefix",void 0),gs([s()],xs.prototype,"icon",void 0),gs([s()],xs.prototype,"passwordHiddenIcon",void 0),gs([s()],xs.prototype,"passwordRevealedIcon",void 0),gs([s()],xs.prototype,"iconVariant",void 0),gs([s({type:Boolean})],xs.prototype,"filterSuggestions",void 0),gs([s({type:Number})],xs.prototype,"maxLength",void 0),gs([s({type:Boolean})],xs.prototype,"password",void 0),gs([a()],xs.prototype,"focused",void 0),gs([a()],xs.prototype,"hidePassword",void 0),gs([a()],xs.prototype,"suggestionsOnTop",void 0),gs([a()],xs.prototype,"hideSuggestions",void 0),gs([a()],xs.prototype,"visibleSuggestions",void 0),gs([c(".ft-text-field--main-panel")],xs.prototype,"mainPanel",void 0),gs([c(".ft-text-field--input")],xs.prototype,"input",void 0),gs([c(".ft-text-field--suggestions")],xs.prototype,"suggestionsContainer",void 0),gs([f({selector:"ft-text-field-suggestion"})],xs.prototype,"suggestions",void 0);const ms=S`
|
|
1419
1435
|
.ft-text-field-suggestion {
|
|
1420
1436
|
position: relative;
|
|
1421
1437
|
padding: 8px 16px;
|
|
@@ -1440,7 +1456,7 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1440
1456
|
slot {
|
|
1441
1457
|
pointer-events: none;
|
|
1442
1458
|
}
|
|
1443
|
-
`;var
|
|
1459
|
+
`;var ws,$s=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ss extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ks extends jt{render(){return it`
|
|
1444
1460
|
<div class="ft-text-field-suggestion"
|
|
1445
1461
|
tabindex="-1"
|
|
1446
1462
|
@keydown=${this.onKeyDown}
|
|
@@ -1452,9 +1468,9 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1452
1468
|
<slot></slot>
|
|
1453
1469
|
</ft-typography>
|
|
1454
1470
|
</div>
|
|
1455
|
-
`}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
|
|
1471
|
+
`}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 Ss(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())}}ks.elementDefinitions={"ft-ripple":sr,"ft-typography":Po,"ft-icon":Go},ks.styles=ms,$s([s()],ks.prototype,"value",void 0),$s([c(".ft-text-field-suggestion")],ks.prototype,"container",void 0),$s([d()],ks.prototype,"assignedNodes",void 0),v("ft-text-field")(xs),v("ft-text-field-suggestion")(ks),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(ws||(ws={}));var Os=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Es extends(rs(zi)){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(fs,ds),this.addI18nContext(ps,vs)}get canAccessFeedback(){var t;return this.user&&Co(this.user.roles,"FEEDBACK_USER")&&(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ws.FEEDBACK))}get canAccessRating(){var t;return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType&&(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ws.RATING))}get userHasRatingRole(){return this.user&&Co(this.user.roles,"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?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?it`
|
|
1456
1472
|
<div class="ft-reader-feedback">
|
|
1457
|
-
${this.hideTitle?
|
|
1473
|
+
${this.hideTitle?ot:it`
|
|
1458
1474
|
<ft-typography variant="title" part="main-title">
|
|
1459
1475
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1460
1476
|
</ft-typography>
|
|
@@ -1462,7 +1478,7 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1462
1478
|
${this.renderRatingSection()}
|
|
1463
1479
|
${this.renderFeedbackSection()}
|
|
1464
1480
|
</div>
|
|
1465
|
-
`:
|
|
1481
|
+
`:ot}renderRatingSection(){return this.canAccessRating?it`
|
|
1466
1482
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1467
1483
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1468
1484
|
${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1472,16 +1488,16 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1472
1488
|
${this.renderRatingDate()}
|
|
1473
1489
|
</ft-typography>
|
|
1474
1490
|
</div>
|
|
1475
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1491
|
+
`:this.placeholderInEditor(this.userHasRatingRole?ps.messages.ratingNotConfigured():ps.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return fs.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return fs.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?fs.messages.ratedToday():fs.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return it`
|
|
1476
1492
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1477
|
-
${
|
|
1478
|
-
<ft-button round part="rating-stars-${
|
|
1479
|
-
label="${
|
|
1493
|
+
${Pr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return it`
|
|
1494
|
+
<ft-button round part="rating-stars-${n}"
|
|
1495
|
+
label="${fs.messages.starsRating(n)}"
|
|
1480
1496
|
tooltipPosition="top"
|
|
1481
1497
|
.iconVariant=${this.iconVariant}
|
|
1482
1498
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
1483
1499
|
class="ft-reader-feedback--${i?"active":"inactive"}"
|
|
1484
|
-
@click=${()=>this.rate(this.ratingValue===
|
|
1500
|
+
@click=${()=>this.rate(this.ratingValue===n?void 0:n)}
|
|
1485
1501
|
></ft-button>
|
|
1486
1502
|
`}))}
|
|
1487
1503
|
</div>
|
|
@@ -1493,39 +1509,39 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1493
1509
|
?selected=${e}
|
|
1494
1510
|
.iconVariant=${this.iconVariant}
|
|
1495
1511
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1496
|
-
${
|
|
1512
|
+
${fs.messages.like()}
|
|
1497
1513
|
</ft-switch-option>
|
|
1498
1514
|
<ft-switch-option .value=${0}
|
|
1499
1515
|
?selected=${t}
|
|
1500
1516
|
.iconVariant=${this.iconVariant}
|
|
1501
1517
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1502
|
-
${
|
|
1518
|
+
${fs.messages.dislike()}
|
|
1503
1519
|
</ft-switch-option>
|
|
1504
1520
|
</ft-switch>
|
|
1505
|
-
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,
|
|
1521
|
+
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return it`
|
|
1506
1522
|
<ft-switch unselectable
|
|
1507
1523
|
@change=${t=>this.rate(t.detail)}
|
|
1508
1524
|
part="rating rating-dichotomous">
|
|
1509
1525
|
<ft-switch-option .value=${1}
|
|
1510
|
-
?selected=${
|
|
1511
|
-
${
|
|
1526
|
+
?selected=${n}>
|
|
1527
|
+
${fs.messages.dichotomousYes()}
|
|
1512
1528
|
</ft-switch-option>
|
|
1513
1529
|
<ft-switch-option .value=${0}
|
|
1514
1530
|
?selected=${i}>
|
|
1515
|
-
${
|
|
1531
|
+
${fs.messages.dichotomousNo()}
|
|
1516
1532
|
</ft-switch-option>
|
|
1517
1533
|
</ft-switch>
|
|
1518
|
-
`}return
|
|
1534
|
+
`}return ot}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e;if(this.canAccessFeedback){const i=this.feedbackMailLinkBuilder(this.feedbackMessage);let n=it`
|
|
1519
1535
|
<ft-button primary
|
|
1520
1536
|
class="ft-reader-feedback--send-feedback"
|
|
1521
1537
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1522
1538
|
@click=${()=>i?this.onMailerFeedbackSent():this.sendFeedback()}
|
|
1523
1539
|
part="send-feedback">
|
|
1524
|
-
${
|
|
1540
|
+
${fs.messages.okButton()}
|
|
1525
1541
|
</ft-button>
|
|
1526
|
-
`;return i&&(
|
|
1542
|
+
`;return i&&(n=it`
|
|
1527
1543
|
<a class="ft-reader-feedback--feedback-link" href="${i}">
|
|
1528
|
-
${
|
|
1544
|
+
${n}
|
|
1529
1545
|
</a>
|
|
1530
1546
|
`),it`
|
|
1531
1547
|
<div class="ft-reader-feedback--feedback" part="feedback-container">
|
|
@@ -1533,30 +1549,30 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1533
1549
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1534
1550
|
</ft-typography>
|
|
1535
1551
|
${null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)?it`
|
|
1536
|
-
<ft-text-field
|
|
1552
|
+
<ft-text-field outlined
|
|
1537
1553
|
class="ft-reader-feedback--from-input"
|
|
1538
|
-
label=${
|
|
1554
|
+
label=${fs.messages.feedbackfromEmail()}
|
|
1539
1555
|
@live-change=${t=>this.from=t.detail.trim()}
|
|
1540
1556
|
?error=${this.from&&!this.validFromEmail()}
|
|
1541
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1557
|
+
helper=${this.from&&!this.validFromEmail()?fs.messages.feedbackfromEmailInvalid():""}
|
|
1542
1558
|
/>
|
|
1543
|
-
`:
|
|
1559
|
+
`:ot}
|
|
1544
1560
|
<ft-text-area outlined
|
|
1545
1561
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1546
|
-
label="${
|
|
1562
|
+
label="${fs.messages.feedbackInputLabel()}"
|
|
1547
1563
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1548
1564
|
></ft-text-area>
|
|
1549
|
-
${
|
|
1565
|
+
${n}
|
|
1550
1566
|
</div>
|
|
1551
|
-
`}return this.placeholderInEditor(
|
|
1567
|
+
`}return this.placeholderInEditor(ps.messages.missingFeedbackRole())}validFromEmail(){var t,e;return!(null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.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?it`
|
|
1552
1568
|
<div class="ft-reader-feedback--placeholder">
|
|
1553
1569
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1554
1570
|
<ft-tooltip position="left"
|
|
1555
|
-
text="${
|
|
1571
|
+
text="${ps.messages.inDesignerOnlyNotice()}">
|
|
1556
1572
|
<ft-icon>INFO</ft-icon>
|
|
1557
1573
|
</ft-tooltip>
|
|
1558
1574
|
</div>
|
|
1559
|
-
`:
|
|
1575
|
+
`:ot}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Es.elementDefinitions={"ft-button":Lr,"ft-typography":Po,"ft-icon":Go,"ft-tooltip":nr,"ft-switch":vr,"ft-switch-option":fr,"ft-text-area":Cr,"ft-text-field":xs},Es.styles=co,Os([s({type:Boolean})],Es.prototype,"editorMode",void 0),Os([s({type:Boolean})],Es.prototype,"hideTitle",void 0),Os([s({type:Boolean})],Es.prototype,"ratingAllowed",void 0),Os([s({attribute:!1})],Es.prototype,"i18nProperties",void 0),Os([s({attribute:!1})],Es.prototype,"ratingSummary",void 0),Os([s({attribute:!1})],Es.prototype,"user",void 0),Os([c(".ft-reader-feedback--feedback-input")],Es.prototype,"feedbackInput",void 0),Os([a()],Es.prototype,"from",void 0),Os([a()],Es.prototype,"feedbackMessage",void 0),Os([s()],Es.prototype,"iconVariant",void 0),Os([s()],Es.prototype,"emptyStarIcon",void 0),Os([s()],Es.prototype,"filledStarIcon",void 0),Os([s()],Es.prototype,"emptyLikeIcon",void 0),Os([s()],Es.prototype,"filledLikeIcon",void 0),Os([s()],Es.prototype,"emptyDislikeIcon",void 0),Os([s()],Es.prototype,"filledDislikeIcon",void 0),Os([ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Es.prototype,"configuration",void 0),Os([s()],Es.prototype,"feedbackMailLinkBuilder",void 0);const _s=hs.fromGwt("server");class Rs{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){var r;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=n.bodyMetadataIds)&&void 0!==r?r:[]).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,n;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 o=encodeURIComponent(this.subject+" "+this.subjectMetadata),r=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${_s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(n=this.configuration)||void 0===n?void 0:n.recipients.join(",")}?subject=${o}&body=${r}`}}var Cs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class As extends(rs(zi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Vo.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 Rs,this.i18nProperties={feedbackMainTitle:fs.properties.mapFeedbackMainTitle(),ratingSectionTitle:fs.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:fs.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:fs.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Hr)}render(){return this.map&&(this.editorMode||this.componentVisible)?it`
|
|
1560
1576
|
<ft-reader-feedback
|
|
1561
1577
|
ratingAllowed
|
|
1562
1578
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1582,7 +1598,7 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1582
1598
|
display: none !important;
|
|
1583
1599
|
}
|
|
1584
1600
|
</style>
|
|
1585
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}
|
|
1601
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}update(t){var e,i,n;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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:fs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:ps.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:ps.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:fs.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:fs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}As.elementDefinitions={"ft-reader-feedback":Es},Cs([ji({store:Hr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],As.prototype,"user",void 0),Cs([ji({store:"reader"})],As.prototype,"map",void 0),Cs([ji({store:Hr.name})],As.prototype,"editorMode",void 0),Cs([ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],As.prototype,"configuration",void 0),Cs([a()],As.prototype,"ratingSummary",void 0),Cs([s({type:Boolean})],As.prototype,"hideTitle",void 0),Cs([s()],As.prototype,"iconVariant",void 0),Cs([s()],As.prototype,"emptyStarIcon",void 0),Cs([s()],As.prototype,"filledStarIcon",void 0),Cs([s()],As.prototype,"emptyLikeIcon",void 0),Cs([s()],As.prototype,"filledLikeIcon",void 0),Cs([s()],As.prototype,"emptyDislikeIcon",void 0),Cs([s()],As.prototype,"filledDislikeIcon",void 0),Cs([c("ft-reader-feedback")],As.prototype,"readerFeedback",void 0),Cs([us(_s.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],As.prototype,"mailSubject",void 0);var Ns=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ts extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Is=Symbol("registerInterval");class js extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Is]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Is]):this.dispatchEvent(new Ts)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Is,Ns([a()],i.prototype,"tocNode",void 0),Ns([a()],i.prototype,"disableContextInteractions",void 0),i}(zi)){}var Us=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ms extends(rs(js)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Vo.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 Rs,this.i18nProperties={feedbackMainTitle:fs.properties.topicFeedbackMainTitle(),ratingSectionTitle:fs.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:fs.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:fs.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Hr)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?it`
|
|
1586
1602
|
<ft-reader-feedback
|
|
1587
1603
|
.i18nProperties=${this.i18nProperties}
|
|
1588
1604
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1608,4 +1624,4 @@ const{I:hr}=gt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1608
1624
|
display: none !important;
|
|
1609
1625
|
}
|
|
1610
1626
|
</style>
|
|
1611
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}
|
|
1627
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}update(t){var e,i,n;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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:fs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:ps.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:fs.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:ps.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:fs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Ms.elementDefinitions={"ft-reader-feedback":Es},Us([ji({store:Hr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ms.prototype,"user",void 0),Us([ji({store:"reader"})],Ms.prototype,"map",void 0),Us([ji({store:Hr.name})],Ms.prototype,"editorMode",void 0),Us([ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ms.prototype,"configuration",void 0),Us([a()],Ms.prototype,"ratingSummary",void 0),Us([s({type:Boolean})],Ms.prototype,"hideTitle",void 0),Us([s()],Ms.prototype,"iconVariant",void 0),Us([s()],Ms.prototype,"emptyStarIcon",void 0),Us([s()],Ms.prototype,"filledStarIcon",void 0),Us([s()],Ms.prototype,"emptyLikeIcon",void 0),Us([s()],Ms.prototype,"filledLikeIcon",void 0),Us([s()],Ms.prototype,"emptyDislikeIcon",void 0),Us([s()],Ms.prototype,"filledDislikeIcon",void 0),Us([c("ft-reader-feedback")],Ms.prototype,"readerFeedback",void 0),Us([us(_s.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]})))],Ms.prototype,"mailSubject",void 0),v("ft-reader-map-feedback")(As),v("ft-reader-topic-feedback")(Ms),t.FtReaderFeedbackCssVariables=lo,t.FtReaderMapFeedback=As,t.FtReaderTopicFeedback=Ms,t.styles=co}({});
|