@fluid-topics/ft-reader-feedback 0.3.71 → 1.0.0-alpha.1
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.css.d.ts +0 -1
- package/build/ft-reader-feedback.css.js +0 -1
- package/build/ft-reader-feedback.d.ts +1 -2
- package/build/ft-reader-feedback.js +2 -4
- package/build/ft-reader-feedback.light.js +253 -253
- package/build/ft-reader-feedback.min.js +312 -322
- package/build/ft-reader-feedback.properties.d.ts +1 -2
- package/build/ft-reader-feedback.properties.js +0 -1
- package/build/ft-reader-map-feedback.d.ts +0 -1
- package/build/ft-reader-map-feedback.js +2 -2
- package/build/ft-reader-topic-feedback.d.ts +0 -1
- package/build/ft-reader-topic-feedback.js +2 -2
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/utils/InDesignerFeedbackComponentMessages.d.ts +0 -1
- package/build/utils/InDesignerFeedbackComponentMessages.js +0 -1
- package/build/utils/IntegratedFeedbackComponentMessages.d.ts +0 -1
- package/build/utils/IntegratedFeedbackComponentMessages.js +0 -1
- package/build/utils/ServerMessages.d.ts +0 -1
- package/build/utils/ServerMessages.js +0 -1
- package/build/utils/mail.d.ts +0 -1
- package/build/utils/mail.js +0 -1
- package/package.json +6 -6
|
@@ -14,12 +14,12 @@
|
|
|
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,
|
|
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 u=i.call(n,t);u||(u=h(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);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,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?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(yo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Promise{constructor(t){super(((e,i)=>t((t=>{this.isCanceled?i(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?i(new Error("Promise has been canceled")):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class i{constructor(){this.loaders={},this.content={},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.content[t]instanceof e&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,i){if(void 0===this.content[t]){if(null==(i=null!=i?i:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new e(((e,i)=>t.then(e).catch(i))))(i());return this.content[t]=n,n.then((e=>(this.content[t]=e,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 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
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const o=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function r(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):o(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,49 +29,39 @@ 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 a=({finisher:t,descriptor:e})=>(i,
|
|
32
|
+
*/const a=({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 l(t,e){return a({descriptor:i=>{const
|
|
37
|
+
*/;function l(t,e){return a({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 c;const
|
|
42
|
+
*/var c;const u=null!=(null===(c=window.HTMLSlotElement)||void 0===c?void 0:c.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(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(!h(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(!h(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(!h(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const f=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function d(t,e){const i=()=>JSON.parse(JSON.stringify(t));return r({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)=>!h(t,e),...null!=e?e:{}})}const p=window,v=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,b=Symbol(),y=new WeakMap;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/
|
|
47
|
+
*/let g=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==b)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(v&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&y.set(e,t))}return t}toString(){return this.cssText}};const m=t=>new g("string"==typeof t?t:t+"",void 0,b),x=(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 g(i,t,b)},w=(t,e)=>{v?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=p.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},$=v?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return m(e)})(t):t
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var
|
|
52
|
+
*/;var S;const k=window,O=k.trustedTypes,_=O?O.emptyScript:"",C=k.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?_: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}},j=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:j};let N=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=R){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)||R}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($(t))}else void 0!==t&&e.push($(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 w(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=R){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:E).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:E;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||j)(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){}};
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var
|
|
58
|
+
var I;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:N}),(null!==(S=k.reactiveElementVersions)&&void 0!==S?S:k.reactiveElementVersions=[]).push("1.6.1");const M=window,T=M.trustedTypes,A=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,F="?"+z,P=`<${F}>`,D=document,B=()=>D.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,H=t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),K="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,q=/>/g,G=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,X=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),tt=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),it=new WeakMap,nt=D.createTreeWalker(D,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=Z;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===Z?"!--"===l[1]?s=V:void 0!==l[1]?s=q:void 0!==l[2]?(Y.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=G):void 0!==l[3]&&(s=G):s===G?">"===l[0]?(s=null!=o?o:Z,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?G:'"'===l[3]?X:J):s===X||s===J?s=G:s===V||s===q?s=Z:(s=G,o=void 0);const h=s===G&&t[e+1].startsWith("/>")?" ":"";r+=s===Z?i+P:c>=0?(n.push(a),i.slice(0,c)+U+i.slice(c)+z+h):i+z+(-2===c?(n.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,n]};class rt{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]=ot(t,e);if(this.el=rt.createElement(l,i),nt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=nt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(U)||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+U).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?ft:"@"===e[1]?dt:ct})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(Y.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],B()),nt.nextNode(),a.push({type:2,index:++o});n.append(t[e],B())}}}else if(8===n.nodeType)if(n.data===F)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function st(t,e,i=t,n){var o,r,s,a;if(e===tt)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=L(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=st(t,l._$AS(t,e.values),l,n)),e}let at=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:D).importNode(i,!0);nt.currentNode=o;let r=nt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new lt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new pt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=nt.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++}},lt=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=et,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=st(this,t,e),L(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(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!==et&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.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=rt.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 at(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new rt(t)),e}T(e){W(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(B()),this.k(B()),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))}},ct=class{constructor(t,e,i,n,o){this.type=1,this._$AH=et,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=et}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=st(this,t,e,0),r=!L(t)||t!==this._$AH&&t!==tt,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=st(this,n[i+s],e,s),a===tt&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}};const ht=T?T.emptyScript:"";let ft=class extends ct{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,ht):this.element.removeAttribute(this.name)}},dt=class extends ct{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=st(this,t,e,0))&&void 0!==i?i:et)===tt)return;const n=this._$AH,o=t===et&&n!==et||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==et&&(n===et||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)}},pt=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){st(this,t)}};const vt={O:U,P:z,A:F,C:1,M:ot,L:at,D:H,R:st,I:lt,V:ct,H:ft,N:dt,U:ut,F:pt},bt=M.litHtmlPolyfillSupport;null==bt||bt(rt,lt),(null!==(I=M.litHtmlVersions)&&void 0!==I?I:M.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var vt,bt;class yt extends N{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 st(e.insertBefore(D(),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 Y}}yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:yt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.2.2");class xt{static create(t,e,i){let o=t=>x(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(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):x(null!=e?e:t.defaultValue),o=m`var(${x(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=>m`var(${x(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 mt(t,e){return x(`${t.name}: ${e}`)}const wt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class $t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
|
|
65
|
-
/**
|
|
66
|
-
* @license
|
|
67
|
-
* Copyright 2021 Google LLC
|
|
68
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/var kt=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 St extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return w(n,this.constructor.elementStyles),n}}}(yt)){constructor(){super(),this.exportpartsDebouncer=new o(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),X`
|
|
70
|
-
${t.map((t=>X`
|
|
71
|
-
<style>${t}</style>
|
|
72
|
-
`))}
|
|
73
|
-
${this.getTemplate()}
|
|
74
|
-
`}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.exportpartsDebouncer.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 h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}kt([r()],St.prototype,"exportpartsPrefix",void 0),kt([u([])],St.prototype,"exportpartsPrefixes",void 0),kt([r()],St.prototype,"customStylesheet",void 0);const Ot=m`
|
|
64
|
+
var yt,gt;let mt=class extends N{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 lt(e.insertBefore(B(),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 tt}};mt.finalized=!0,mt._$litElement$=!0,null===(yt=globalThis.litElementHydrateSupport)||void 0===yt||yt.call(globalThis,{LitElement:mt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:mt}),(null!==(gt=globalThis.litElementVersions)&&void 0!==gt?gt:globalThis.litElementVersions=[]).push("3.3.2");class wt{static create(t,e,i){let n=t=>m(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=x`var(${m(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>x`var(${m(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):m(null!=e?e:t.defaultValue),n=x`var(${m(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=>x`var(${m(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 $t(t,e){return m(`${t.name}: ${e}`)}const St={colorPrimary:wt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:wt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:wt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:wt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:wt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:wt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:wt.create("--ft-color-error","COLOR","#B00020"),colorOutline:wt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:wt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:wt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:wt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:wt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:wt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:wt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:wt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:wt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:wt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:wt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:wt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:wt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:wt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:wt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:wt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:wt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:wt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:wt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:wt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:wt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:wt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:wt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:wt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:wt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:wt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:wt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:wt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:wt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:wt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:wt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:wt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:wt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:wt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:wt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:wt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:wt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.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:wt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:wt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:wt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:wt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:wt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:wt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:wt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:wt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class kt extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ot extends mt{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 w(i,t.elementStyles),i}}var _t,Ct=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Et=Symbol("constructorPrototype"),jt=Symbol("constructorName"),Rt=Symbol("exportpartsDebouncer");class Nt extends Ot{constructor(){super(),this[_t]=new n(5),this[jt]=this.constructor.name,this[Et]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jt]&&Object.setPrototypeOf(this,this[Et])}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[Rt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}_t=Rt,Ct([r()],Nt.prototype,"exportpartsPrefix",void 0),Ct([d([])],Nt.prototype,"exportpartsPrefixes",void 0),Ct([r()],Nt.prototype,"customStylesheet",void 0);const It=x`
|
|
75
65
|
.ft-no-text-select {
|
|
76
66
|
-webkit-touch-callout: none;
|
|
77
67
|
-webkit-user-select: none;
|
|
@@ -80,7 +70,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
80
70
|
-ms-user-select: none;
|
|
81
71
|
user-select: none;
|
|
82
72
|
}
|
|
83
|
-
`;
|
|
73
|
+
`;x`
|
|
84
74
|
.ft-word-wrap {
|
|
85
75
|
white-space: normal;
|
|
86
76
|
word-wrap: break-word;
|
|
@@ -92,7 +82,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
92
82
|
-webkit-hyphens: auto;
|
|
93
83
|
hyphens: auto
|
|
94
84
|
}
|
|
95
|
-
`;const
|
|
85
|
+
`;const Mt=x`
|
|
96
86
|
.ft-safari-ellipsis-fix {
|
|
97
87
|
margin-right: 0;
|
|
98
88
|
|
|
@@ -103,7 +93,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
103
93
|
display: inline-block;
|
|
104
94
|
width: 0;
|
|
105
95
|
}
|
|
106
|
-
`;class Ct{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=`${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 Et(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 jt(t){return!!t&&!!t[ve]}function Rt(t){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)===be}(t)||Array.isArray(t)||!!t[pe]||!!t.constructor[pe]||Ut(t)||zt(t))}function Nt(t,e,i){void 0===i&&(i=!1),0===Mt(t)?(i?Object.keys:ye)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Mt(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ut(t)?2:zt(t)?3:0}function It(t,e){return 2===Mt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tt(t,e,i){var o=Mt(t);2===o?t.set(e,i):3===o?(t.delete(e),t.add(i)):t[e]=i}function At(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ut(t){return he&&t instanceof Map}function zt(t){return de&&t instanceof Set}function Ft(t){return t.o||t.t}function Pt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(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 Dt(t,e){return void 0===e&&(e=!1),Lt(t)||jt(t)||!Rt(t)||(Mt(t)>1&&(t.set=t.add=t.clear=t.delete=Bt),Object.freeze(t),e&&Nt(t,(function(t,e){return Dt(e,!0)}),!0)),t}function Bt(){Et(2)}function Lt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=xe[t];return e||Et(18,t),e}function Ht(){return le}function Kt(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function Gt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function qt(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,o),o?(i[ve].P&&(Zt(e),Et(4)),Rt(t)&&(t=Xt(e,t),e.l||Qt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Xt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==ue?t:void 0}function Xt(t,e,i){if(Lt(e))return e;var o=e[ve];if(!o)return Nt(e,(function(n,r){return Yt(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Qt(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=Pt(o.k):o.o;Nt(3===o.i?new Set(n):n,(function(e,r){return Yt(t,o,n,e,r,i)})),Qt(t,n,!1),i&&t.u&&Wt("Patches").R(o,i,t.u,t.s)}return o.o}function Yt(t,e,i,o,n,r){if(jt(n)){var s=Xt(t,n,r&&e&&3!==e.i&&!It(e.D,o)?r.concat(o):void 0);if(Tt(i,o,s),!jt(s))return;t.m=!1}if(Rt(n)&&!Lt(n)){if(!t.h.F&&t._<1)return;Xt(t,n),e&&e.A.l||Qt(t,n)}}function Qt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Dt(e,i)}function te(t,e){var i=t[ve];return(i?Ft(i):t)[e]}function ee(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 ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function oe(t){t.o||(t.o=Pt(t.t))}function ne(t,e,i){var o=Ut(e)?Wt("MapSet").N(e,i):zt(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Ht(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=me;i&&(n=[o],r=we);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Ht()).p.push(o),o}function re(t){return jt(t)||Et(22,t),function t(e){if(!Rt(e))return e;var i,o=e[ve],n=Mt(e);if(o){if(!o.P&&(o.i<4||!Wt("ES5").K(o)))return o.t;o.I=!0,i=se(e,n),o.I=!1}else i=se(e,n);return Nt(i,(function(e,n){o&&function(t,e){return 2===Mt(t)?t.get(e):t[e]}(o.t,e)===n||Tt(i,e,t(n))})),3===n?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),he="undefined"!=typeof Map,de="undefined"!=typeof Set,fe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ue=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),pe=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},xe={},me={get:function(t,e){if(e===ve)return t;var i=Ft(t);if(!It(i,e))return function(t,e,i){var o,n=ee(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||!Rt(o)?o:o===te(t.t,e)?(oe(t),t.o[e]=ne(t.A.h,o,t)):o},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,i){var o=ee(Ft(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=te(Ft(t),e),r=null==n?void 0:n[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(At(i,n)&&(void 0!==i||It(t.t,e)))return!0;oe(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,oe(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ft(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(){Et(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Et(12)}},we={};Nt(me,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return me.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=fe,this.F=!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&&Et(6),void 0!==o&&"function"!=typeof o&&Et(7),Rt(t)){var a=Gt(e),l=ne(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Kt(a,o),qt(t,a)}),(function(t){throw Zt(a),t})):(Kt(a,o),qt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===ue&&(s=void 0),e.F&&Dt(s,!0),o){var h=[],d=[];Wt("Patches").M(t,s,h,d),o(h,d)}return s}Et(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){Rt(t)||Et(8),jt(t)&&(t=re(t));var e=Gt(this),i=ne(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Kt(i,e),qt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!fe&&Et(20),this.g=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=Wt("Patches").$;return jt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),ke=new $e,Se=ke.produce;ke.produceWithPatches.bind(ke),ke.setAutoFreeze.bind(ke),ke.setUseProxies.bind(ke),ke.applyPatches.bind(ke),ke.createDraft.bind(ke),ke.finishDraft.bind(ke);var Oe=Se;function _e(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ce(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 Ee(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(i),!0).forEach((function(e){_e(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ce(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function je(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. "}var Re="function"==typeof Symbol&&Symbol.observable||"@@observable",Ne=function(){return Math.random().toString(36).substring(7).split("").join(".")},Me={INIT:"@@redux/INIT"+Ne(),REPLACE:"@@redux/REPLACE"+Ne(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ne()}};function Ie(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}function Te(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(je(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(je(1));return i(Te)(t,e)}if("function"!=typeof t)throw new Error(je(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(je(3));return r}function d(t){if("function"!=typeof t)throw new Error(je(4));if(l)throw new Error(je(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(je(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!Ie(t))throw new Error(je(7));if(void 0===t.type)throw new Error(je(8));if(l)throw new Error(je(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}function u(t){if("function"!=typeof t)throw new Error(je(10));n=t,f({type:Me.REPLACE})}function p(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(je(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Re]=function(){return this},t}return f({type:Me.INIT}),(o={dispatch:f,subscribe:d,getState:h,replaceReducer:u})[Re]=p,o}function Ae(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:Me.INIT}))throw new Error(je(12));if(void 0===i(void 0,{type:Me.PROBE_UNKNOWN_ACTION()}))throw new Error(je(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],h=t[l],d=c(h,e);if(void 0===d)throw e&&e.type,new Error(je(14));n[l]=d,o=o||d!==h}return(o=o||s.length!==Object.keys(t).length)?n:t}}function Ue(){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 ze(){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(je(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=Ue.apply(void 0,r)(i.dispatch),Ee(Ee({},i),{},{dispatch:o})}}}function Fe(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 Pe=Fe();Pe.withExtraArgument=Fe;var De,Be=Pe,Le=(De=function(t,e){return De=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])},De(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}De(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},He=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ge=function(t,e,i){return e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&Ge(t,i,e[i]);if(Ke)for(var o=0,n=Ke(e);o<n.length;o++){i=n[o];Ve.call(e,i)&&Ge(t,i,e[i])}return t},qe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ue:Ue.apply(null,arguments)};var Xe=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 Le(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,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Ye(t){return Rt(t)?Oe(t,(function(){})):t}function Qe(){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 Xe;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Be.withExtraArgument(i.extraArgument)):o.push(Be));return o}(t)}}function ti(t){var e,i=Qe(),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,h=o.preloadedState,d=void 0===h?void 0:h,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=Ae(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ze.apply(void 0,p),b=Ue;c&&(b=qe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(u)?y=We([v],u):"function"==typeof u&&(y=u(y)),Te(e,d,b.apply(void 0,y))}function ei(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 Je(Je({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 ii(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 oi(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:Ye(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(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,h=Je(Je({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?ii(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return Ye(t())};else{var c=Ye(t);n=function(){return c}}function h(t,e){void 0===t&&(t=n());var i=We([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(jt(t))return void 0===(o=i(t,e))?t:o;if(Rt(t))return Oe(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=n,h}(o,h,s,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?ei(c,o):ei(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 ni="listenerMiddleware";ei(ni+"/add"),ei(ni+"/removeAll"),ei(ni+"/remove"),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[ve];return me.get(e,t)},set:function(e){var i=this[ve];me.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][ve];if(!n.P)switch(n.i){case 5:o(n)&&ie(n);break;case 4:i(n)&&ie(n)}}}function i(t){for(var e=t.t,i=t.k,o=ye(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==ve){var s=e[r];if(void 0===s&&!It(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!At(a,s))return!0}}var c=!!e[ve];return o.length!==ye(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){xe[t]||(xe[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=ge(i);delete r[ve];for(var s=ye(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:Ht(),P:!1,I:!1,D:{},l:i,t:e,k:n,o:null,O:!1,C:!1};return Object.defineProperty(n,ve,{value:r,writable:!0}),n},S:function(t,i,n){n?jt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var n=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Nt(r,(function(e){e!==ve&&(void 0!==n[e]||It(n,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Nt(n,(function(t){void 0!==r[t]||It(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(o(i)&&(ie(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 h=Math.min(r.length,n.length),d=0;d<h;d++)r.hasOwnProperty(d)||(s[d]=!0),void 0===s[d]&&t(r[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const o=ri(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!d(t,e),(i,n)=>{var r,s;i.constructor.createProperty(n,{hasChanged:e,attribute:null!==(r=o.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?o.selector:t)&&void 0!==s?s:t=>t[n];a.reduxProperties.set(n,{selector:l,store:o.store})}};class ai extends St{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=t[e];if(o)return(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(li(o))return o;if(null==i)return;const n=oi(i);if(o)return new ci(n,o);const r=ti({reducer:n.reducer});return window.ftReduxStores[i.name]=new ci(n,r)}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var hi,di,fi;const ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(fi=null===(di=null===(hi=window.safari)||void 0===hi?void 0:hi.pushNotification)||void 0===di?void 0:di.toString())&&void 0!==fi?fi:"");var pi=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 vi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class bi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=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.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return pi([s()],e.prototype,"stateManager",void 0),e}(ai)){}const yi=xt.extend("--ft-ripple-color",wt.colorContent),gi={color:yi,backgroundColor:xt.extend("--ft-ripple-background-color",yi),opacityContentOnSurfacePressed:xt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(wt.opacityContentOnSurfaceSelected,"Design system")},xi=xt.extend("--ft-ripple-color",wt.colorPrimary),mi=xi,wi=xt.extend("--ft-ripple-background-color",xi),$i=xt.extend("--ft-ripple-color",wt.colorSecondary),ki=$i,Si=xt.extend("--ft-ripple-background-color",$i),Oi=m`
|
|
96
|
+
`;class Tt{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 At(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 Ut(t){return!!t&&!!t[$e]}function zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Se}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Wt(t)||Ht(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Pt(t)?(i?Object.keys:ke)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Pt(t){var e=t[$e];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Wt(t)?2:Ht(t)?3:0}function Dt(t,e){return 2===Pt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bt(t,e,i){var n=Pt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Lt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Wt(t){return ye&&t instanceof Map}function Ht(t){return ge&&t instanceof Set}function Kt(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Oe(t);delete e[$e];for(var i=ke(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 Vt(t,e){return void 0===e&&(e=!1),Gt(t)||Ut(t)||!zt(t)||(Pt(t)>1&&(t.set=t.add=t.clear=t.delete=qt),Object.freeze(t),e&&Ft(t,(function(t,e){return Vt(e,!0)}),!0)),t}function qt(){At(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Jt(t){var e=_e[t];return e||At(18,t),e}function Xt(){return ve}function Yt(t,e){e&&(Jt("Patches"),t.u=[],t.s=[],t.v=e)}function Qt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[$e];0===e.i||1===e.i?e.j():e.g=!0}function ne(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Jt("ES5").S(e,t,n),n?(i[$e].P&&(Qt(e),At(4)),zt(t)&&(t=oe(e,t),e.l||se(e,t)),e.u&&Jt("Patches").M(i[$e].t,t,e.u,e.s)):t=oe(e,i,[]),Qt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function oe(t,e,i){if(Gt(e))return e;var n=e[$e];if(!n)return Ft(e,(function(o,r){return re(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Zt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Ft(r,(function(e,r){return re(t,n,o,e,r,i,s)})),se(t,o,!1),i&&t.u&&Jt("Patches").N(n,i,t.u,t.s)}return n.o}function re(t,e,i,n,o,r,s){if(Ut(o)){var a=oe(t,o,r&&e&&3!==e.i&&!Dt(e.R,n)?r.concat(n):void 0);if(Bt(i,n,a),!Ut(a))return;t.m=!1}else s&&i.add(o);if(zt(o)&&!Gt(o)){if(!t.h.D&&t._<1)return;oe(t,o),e&&e.A.l||se(t,o)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Vt(e,i)}function ae(t,e){var i=t[$e];return(i?Kt(i):t)[e]}function le(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 ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function ue(t){t.o||(t.o=Zt(t.t))}function he(t,e,i){var n=Wt(e)?Jt("MapSet").F(e,i):Ht(e)?Jt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Xt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ce;i&&(o=[n],r=Ee);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Jt("ES5").J(e,i);return(i?i.A:Xt()).p.push(n),n}function fe(t){return Ut(t)||At(22,t),function t(e){if(!zt(e))return e;var i,n=e[$e],o=Pt(e);if(n){if(!n.P&&(n.i<4||!Jt("ES5").K(n)))return n.t;n.I=!0,i=de(e,o),n.I=!1}else i=de(e,o);return Ft(i,(function(e,o){n&&function(t,e){return 2===Pt(t)?t.get(e):t[e]}(n.t,e)===o||Bt(i,e,t(o))})),3===o?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var pe,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((pe={})["immer-nothing"]=!0,pe),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",$e=be?Symbol.for("immer-state"):"__$immer_state",Se=""+Object.prototype.constructor,ke="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Oe=Object.getOwnPropertyDescriptors||function(t){var e={};return ke(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},_e={},Ce={get:function(t,e){if(e===$e)return t;var i=Kt(t);if(!Dt(i,e))return function(t,e,i){var n,o=le(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!zt(n)?n:n===ae(t.t,e)?(ue(t),t.o[e]=he(t.A.h,n,t)):n},has:function(t,e){return e in Kt(t)},ownKeys:function(t){return Reflect.ownKeys(Kt(t))},set:function(t,e,i){var n=le(Kt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=ae(Kt(t),e),r=null==o?void 0:o[$e];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Lt(i,o)&&(void 0!==i||Dt(t.t,e)))return!0;ue(t),ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ae(t.t,e)||e in t.t?(t.R[e]=!1,ue(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Kt(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(){At(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){At(12)}},Ee={};Ft(Ce,(function(t,e){Ee[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ee.deleteProperty=function(t,e){return Ee.set.call(this,t,e,void 0)},Ee.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var je=function(){function t(t){var e=this;this.O=me,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&&At(6),void 0!==n&&"function"!=typeof n&&At(7),zt(t)){var a=ee(e),l=he(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Qt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),ne(t,a)}),(function(t){throw Qt(a),t})):(Yt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&Vt(s,!0),n){var u=[],h=[];Jt("Patches").M(t,s,u,h),n(u,h)}return s}At(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){zt(t)||At(8),Ut(t)&&(t=fe(t));var e=ee(this),i=he(this,t,void 0);return i[$e].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[$e]).A;return Yt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&At(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=Jt("Patches").$;return Ut(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Re=new je,Ne=Re.produce;function Ie(t){return Ie="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},Ie(t)}function Me(t){var e=function(t,e){if("object"!==Ie(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ie(e)?e:String(e)}function Te(t,e,i){return(e=Me(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ae(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 Ue(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(i),!0).forEach((function(e){Te(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ae(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Re.produceWithPatches.bind(Re),Re.setAutoFreeze.bind(Re),Re.setUseProxies.bind(Re),Re.applyPatches.bind(Re),Re.createDraft.bind(Re),Re.finishDraft.bind(Re);var Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Pe=function(){return Math.random().toString(36).substring(7).split("").join(".")},De={INIT:"@@redux/INIT"+Pe(),REPLACE:"@@redux/REPLACE"+Pe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pe()}};function Be(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ze(1));return i(Be)(t,e)}if("function"!=typeof t)throw new Error(ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(ze(3));return r}function h(t){if("function"!=typeof t)throw new Error(ze(4));if(l)throw new Error(ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function 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(ze(7));if(void 0===t.type)throw new Error(ze(8));if(l)throw new Error(ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:De.INIT}),(n={dispatch:f,subscribe:h,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ze(10));o=t,f({type:De.REPLACE})}})[Fe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},n}function Le(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:De.INIT}))throw new Error(ze(12));if(void 0===i(void 0,{type:De.PROBE_UNKNOWN_ACTION()}))throw new Error(ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],h=c(u,e);if(void 0===h)throw e&&e.type,new Error(ze(14));o[l]=h,n=n||h!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function We(){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 He(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=We.apply(void 0,r)(i.dispatch),Ue(Ue({},i),{},{dispatch:n})}}}function Ke(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 Ze=Ke();Ze.withExtraArgument=Ke;var Ve,qe=Ze,Ge=(Ve=function(t,e){return Ve=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])},Ve(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}Ve(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Je=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])}}},Xe=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ye=Object.defineProperty,Qe=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,oi=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},ri=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&oi(t,i,e[i]);if(ei)for(var n=0,o=ei(e);n<o.length;n++){i=o[n];ni.call(e,i)&&oi(t,i,e[i])}return t},si=function(t,e){return Qe(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?We:We.apply(null,arguments)};var li=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 Ge(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,Xe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],t.concat(this))))},e}(Array),ci=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 Ge(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,Xe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],t.concat(this))))},e}(Array);function ui(t){return zt(t)?Ne(t,(function(){})):t}function hi(){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 li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(qe.withExtraArgument(i.extraArgument)):n.push(qe));return n}(t)}}function fi(t){var e,i=hi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,h=void 0===u?void 0:u,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=Le(r)}var p=a;"function"==typeof p&&(p=p(i));var v=He.apply(void 0,p),b=We;c&&(b=ai(ri({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(d)?g=Xe([v],d):"function"==typeof d&&(g=d(y)),Be(e,h,b.apply(void 0,g))}function di(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 ri(ri({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 pi(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 vi(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:ui(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?pi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=ri(ri({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?pi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return ui(t())};else{var c=ui(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Xe([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(Ut(t))return void 0===(n=i(t,e))?t:n;if(zt(t))return Ne(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(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 bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function xi(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=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(ri({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(ri({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=di(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(ri({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,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 d(t){u=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Je(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||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:u||"Aborted"})}))})),a(o(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:d,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?n(e.payload,h,t,e.meta):n(e,h,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof yi?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 x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(xi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,$i,Si="listenerMiddleware";di(Si+"/add"),di(Si+"/removeAll"),di(Si+"/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[$e];return Ce.get(e,t)},set:function(e){var i=this[$e];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][$e];if(!o.P)switch(o.i){case 5:n(o)&&ce(o);break;case 4:i(o)&&ce(o)}}}function i(t){for(var e=t.t,i=t.k,n=ke(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==$e){var s=e[r];if(void 0===s&&!Dt(e,r))return!0;var a=i[r],l=a&&a[$e];if(l?l.t!==s:!Lt(a,s))return!0}}var c=!!e[$e];return n.length!==ke(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){_e[t]||(_e[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=Oe(i);delete r[$e];for(var s=ke(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:Xt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,$e,{value:r,writable:!0}),o},S:function(t,i,o){o?Ut(i)&&i[$e].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[$e];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Ft(r,(function(e){e!==$e&&(void 0!==o[e]||Dt(o,e)?s[e]||t(r[e]):(s[e]=!0,ce(i)))})),Ft(o,(function(t){void 0!==r[t]||Dt(r,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),h=0;h<u;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):n(t)}})}();const ki=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};r(o)(t,i);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Oi=Symbol("internalStoresUnsubscribers"),_i=Symbol("internalStores");class Ci extends Nt{constructor(){super(...arguments),this[wi]=new Map,this[$i]=new Map}getUnnamedStore(){if(this[_i].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_i].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[_i].get(t)}addStore(t,e){e=null!=e?e:t.name,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[_i].delete(e)}setupStore(t,e){this[_i].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[_i].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Oi].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Oi]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Oi].has(t)&&this[Oi].get(t)(),this[Oi].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}wi=Oi,$i=_i;class Ei{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(n))return n;if(null==i)return;const o=vi(i),r=fi({reducer:o.reducer});return window.ftReduxStores[i.name]=new Ei(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var ji,Ri,Ni;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ni=null===(Ri=null===(ji=window.safari)||void 0===ji?void 0:ji.pushNotification)||void 0===Ri?void 0:Ri.toString())&&void 0!==Ni?Ni:"");var Mi=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 Ti extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ai=Symbol("registerInterval");class Ui 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[Ai]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ai]):this.dispatchEvent(new Ti)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ai,Mi([s()],i.prototype,"stateManager",void 0),i}(Ci)){}const zi=wt.extend("--ft-ripple-color",St.colorContent),Fi={color:zi,backgroundColor:wt.extend("--ft-ripple-background-color",zi),opacityContentOnSurfacePressed:wt.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:wt.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:wt.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:wt.external(St.opacityContentOnSurfaceSelected,"Design system")},Pi=wt.extend("--ft-ripple-color",St.colorPrimary),Di=Pi,Bi=wt.extend("--ft-ripple-background-color",Pi),Li=wt.extend("--ft-ripple-color",St.colorSecondary),Wi=Li,Hi=wt.extend("--ft-ripple-background-color",Li),Ki=x`
|
|
107
97
|
:host {
|
|
108
98
|
display: contents;
|
|
109
99
|
}
|
|
@@ -125,27 +115,27 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
125
115
|
}
|
|
126
116
|
|
|
127
117
|
.ft-ripple .ft-ripple--background {
|
|
128
|
-
background-color: ${
|
|
118
|
+
background-color: ${Fi.backgroundColor};
|
|
129
119
|
}
|
|
130
120
|
|
|
131
121
|
.ft-ripple .ft-ripple--effect {
|
|
132
|
-
background-color: ${
|
|
122
|
+
background-color: ${Fi.color};
|
|
133
123
|
}
|
|
134
124
|
|
|
135
125
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
136
|
-
background-color: ${
|
|
126
|
+
background-color: ${Hi};
|
|
137
127
|
}
|
|
138
128
|
|
|
139
129
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
140
|
-
background-color: ${
|
|
130
|
+
background-color: ${Wi};
|
|
141
131
|
}
|
|
142
132
|
|
|
143
133
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
144
|
-
background-color: ${
|
|
134
|
+
background-color: ${Bi};
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
148
|
-
background-color: ${
|
|
138
|
+
background-color: ${Di};
|
|
149
139
|
}
|
|
150
140
|
|
|
151
141
|
.ft-ripple .ft-ripple--background {
|
|
@@ -177,117 +167,117 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
177
167
|
}
|
|
178
168
|
|
|
179
169
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
170
|
+
opacity: ${Fi.opacityContentOnSurfaceHover};
|
|
181
171
|
}
|
|
182
172
|
|
|
183
173
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
184
|
-
opacity: ${
|
|
174
|
+
opacity: ${Fi.opacityContentOnSurfaceSelected};
|
|
185
175
|
}
|
|
186
176
|
|
|
187
177
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
188
|
-
opacity: ${
|
|
178
|
+
opacity: ${Fi.opacityContentOnSurfaceFocused};
|
|
189
179
|
}
|
|
190
180
|
|
|
191
181
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
192
|
-
opacity: ${
|
|
182
|
+
opacity: ${Fi.opacityContentOnSurfacePressed};
|
|
193
183
|
transform: translate(-50%, -50%) scale(1);
|
|
194
184
|
}
|
|
195
|
-
`,
|
|
185
|
+
`,Zi=wt.extend("--ft-typography-font-family",St.titleFont),Vi=wt.extend("--ft-typography-font-family",St.contentFont),qi={fontFamily:Vi,fontSize:wt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:wt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:wt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:wt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:wt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gi={fontFamily:wt.extend("--ft-typography-title-font-family",Zi),fontSize:wt.extend("--ft-typography-title-font-size",qi.fontSize,"20px"),fontWeight:wt.extend("--ft-typography-title-font-weight",qi.fontWeight,"normal"),letterSpacing:wt.extend("--ft-typography-title-letter-spacing",qi.letterSpacing,"0.15px"),lineHeight:wt.extend("--ft-typography-title-line-height",qi.lineHeight,"1.2"),textTransform:wt.extend("--ft-typography-title-text-transform",qi.textTransform,"inherit")},Ji={fontFamily:wt.extend("--ft-typography-title-dense-font-family",Zi),fontSize:wt.extend("--ft-typography-title-dense-font-size",qi.fontSize,"14px"),fontWeight:wt.extend("--ft-typography-title-dense-font-weight",qi.fontWeight,"normal"),letterSpacing:wt.extend("--ft-typography-title-dense-letter-spacing",qi.letterSpacing,"0.105px"),lineHeight:wt.extend("--ft-typography-title-dense-line-height",qi.lineHeight,"1.7"),textTransform:wt.extend("--ft-typography-title-dense-text-transform",qi.textTransform,"inherit")},Xi=wt.extend("--ft-typography-subtitle1-font-family",Vi),Yi=wt.extend("--ft-typography-subtitle1-font-size",qi.fontSize,"16px"),Qi=wt.extend("--ft-typography-subtitle1-font-weight",qi.fontWeight,"600"),tn=wt.extend("--ft-typography-subtitle1-letter-spacing",qi.letterSpacing,"0.144px"),en=wt.extend("--ft-typography-subtitle1-line-height",qi.lineHeight,"1.5"),nn=wt.extend("--ft-typography-subtitle1-text-transform",qi.textTransform,"inherit"),on=wt.extend("--ft-typography-subtitle2-font-family",Vi),rn=wt.extend("--ft-typography-subtitle2-font-size",qi.fontSize,"14px"),sn=wt.extend("--ft-typography-subtitle2-font-weight",qi.fontWeight,"normal"),an=wt.extend("--ft-typography-subtitle2-letter-spacing",qi.letterSpacing,"0.098px"),ln=wt.extend("--ft-typography-subtitle2-line-height",qi.lineHeight,"1.7"),cn=wt.extend("--ft-typography-subtitle2-text-transform",qi.textTransform,"inherit"),un={fontFamily:wt.extend("--ft-typography-body1-font-family",Vi),fontSize:wt.extend("--ft-typography-body1-font-size",qi.fontSize,"16px"),fontWeight:wt.extend("--ft-typography-body1-font-weight",qi.fontWeight,"normal"),letterSpacing:wt.extend("--ft-typography-body1-letter-spacing",qi.letterSpacing,"0.496px"),lineHeight:wt.extend("--ft-typography-body1-line-height",qi.lineHeight,"1.5"),textTransform:wt.extend("--ft-typography-body1-text-transform",qi.textTransform,"inherit")},hn=wt.extend("--ft-typography-body2-font-family",Vi),fn=wt.extend("--ft-typography-body2-font-size",qi.fontSize,"14px"),dn=wt.extend("--ft-typography-body2-font-weight",qi.fontWeight,"normal"),pn=wt.extend("--ft-typography-body2-letter-spacing",qi.letterSpacing,"0.252px"),vn=wt.extend("--ft-typography-body2-line-height",qi.lineHeight,"1.4"),bn=wt.extend("--ft-typography-body2-text-transform",qi.textTransform,"inherit"),yn={fontFamily:wt.extend("--ft-typography-caption-font-family",Vi),fontSize:wt.extend("--ft-typography-caption-font-size",qi.fontSize,"12px"),fontWeight:wt.extend("--ft-typography-caption-font-weight",qi.fontWeight,"normal"),letterSpacing:wt.extend("--ft-typography-caption-letter-spacing",qi.letterSpacing,"0.396px"),lineHeight:wt.extend("--ft-typography-caption-line-height",qi.lineHeight,"1.33"),textTransform:wt.extend("--ft-typography-caption-text-transform",qi.textTransform,"inherit")},gn=wt.extend("--ft-typography-breadcrumb-font-family",Vi),mn=wt.extend("--ft-typography-breadcrumb-font-size",qi.fontSize,"10px"),xn=wt.extend("--ft-typography-breadcrumb-font-weight",qi.fontWeight,"normal"),wn=wt.extend("--ft-typography-breadcrumb-letter-spacing",qi.letterSpacing,"0.33px"),$n=wt.extend("--ft-typography-breadcrumb-line-height",qi.lineHeight,"1.6"),Sn=wt.extend("--ft-typography-breadcrumb-text-transform",qi.textTransform,"inherit"),kn=wt.extend("--ft-typography-overline-font-family",Vi),On=wt.extend("--ft-typography-overline-font-size",qi.fontSize,"10px"),_n=wt.extend("--ft-typography-overline-font-weight",qi.fontWeight,"normal"),Cn=wt.extend("--ft-typography-overline-letter-spacing",qi.letterSpacing,"1.5px"),En=wt.extend("--ft-typography-overline-line-height",qi.lineHeight,"1.6"),jn=wt.extend("--ft-typography-overline-text-transform",qi.textTransform,"uppercase"),Rn={fontFamily:wt.extend("--ft-typography-button-font-family",Vi),fontSize:wt.extend("--ft-typography-button-font-size",qi.fontSize,"14px"),fontWeight:wt.extend("--ft-typography-button-font-weight",qi.fontWeight,"600"),letterSpacing:wt.extend("--ft-typography-button-letter-spacing",qi.letterSpacing,"1.246px"),lineHeight:wt.extend("--ft-typography-button-line-height",qi.lineHeight,"1.15"),textTransform:wt.extend("--ft-typography-button-text-transform",qi.textTransform,"uppercase")},Nn=x`
|
|
196
186
|
.ft-typography--title {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
}
|
|
204
|
-
`,
|
|
187
|
+
font-family: ${Gi.fontFamily};
|
|
188
|
+
font-size: ${Gi.fontSize};
|
|
189
|
+
font-weight: ${Gi.fontWeight};
|
|
190
|
+
letter-spacing: ${Gi.letterSpacing};
|
|
191
|
+
line-height: ${Gi.lineHeight};
|
|
192
|
+
text-transform: ${Gi.textTransform};
|
|
193
|
+
}
|
|
194
|
+
`,In=x`
|
|
205
195
|
.ft-typography--title-dense {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
210
|
-
line-height: ${
|
|
211
|
-
text-transform: ${
|
|
212
|
-
}
|
|
213
|
-
`,
|
|
196
|
+
font-family: ${Ji.fontFamily};
|
|
197
|
+
font-size: ${Ji.fontSize};
|
|
198
|
+
font-weight: ${Ji.fontWeight};
|
|
199
|
+
letter-spacing: ${Ji.letterSpacing};
|
|
200
|
+
line-height: ${Ji.lineHeight};
|
|
201
|
+
text-transform: ${Ji.textTransform};
|
|
202
|
+
}
|
|
203
|
+
`,Mn=x`
|
|
214
204
|
.ft-typography--subtitle1 {
|
|
215
|
-
font-family: ${
|
|
216
|
-
font-size: ${
|
|
217
|
-
font-weight: ${
|
|
218
|
-
letter-spacing: ${
|
|
219
|
-
line-height: ${
|
|
220
|
-
text-transform: ${
|
|
221
|
-
}
|
|
222
|
-
`,
|
|
205
|
+
font-family: ${Xi};
|
|
206
|
+
font-size: ${Yi};
|
|
207
|
+
font-weight: ${Qi};
|
|
208
|
+
letter-spacing: ${tn};
|
|
209
|
+
line-height: ${en};
|
|
210
|
+
text-transform: ${nn};
|
|
211
|
+
}
|
|
212
|
+
`,Tn=x`
|
|
223
213
|
.ft-typography--subtitle2 {
|
|
224
|
-
font-family: ${
|
|
225
|
-
font-size: ${
|
|
226
|
-
font-weight: ${
|
|
227
|
-
letter-spacing: ${
|
|
228
|
-
line-height: ${
|
|
229
|
-
text-transform: ${
|
|
214
|
+
font-family: ${on};
|
|
215
|
+
font-size: ${rn};
|
|
216
|
+
font-weight: ${sn};
|
|
217
|
+
letter-spacing: ${an};
|
|
218
|
+
line-height: ${ln};
|
|
219
|
+
text-transform: ${cn};
|
|
230
220
|
}
|
|
231
221
|
|
|
232
|
-
`,
|
|
222
|
+
`,An=x`
|
|
233
223
|
.ft-typography--body1 {
|
|
234
|
-
font-family: ${
|
|
235
|
-
font-size: ${
|
|
236
|
-
font-weight: ${
|
|
237
|
-
letter-spacing: ${
|
|
238
|
-
line-height: ${
|
|
239
|
-
text-transform: ${
|
|
240
|
-
}
|
|
241
|
-
`,
|
|
224
|
+
font-family: ${un.fontFamily};
|
|
225
|
+
font-size: ${un.fontSize};
|
|
226
|
+
font-weight: ${un.fontWeight};
|
|
227
|
+
letter-spacing: ${un.letterSpacing};
|
|
228
|
+
line-height: ${un.lineHeight};
|
|
229
|
+
text-transform: ${un.textTransform};
|
|
230
|
+
}
|
|
231
|
+
`,Un=x`
|
|
242
232
|
.ft-typography--body2 {
|
|
243
|
-
font-family: ${
|
|
244
|
-
font-size: ${
|
|
245
|
-
font-weight: ${
|
|
246
|
-
letter-spacing: ${
|
|
247
|
-
line-height: ${
|
|
248
|
-
text-transform: ${
|
|
249
|
-
}
|
|
250
|
-
`,
|
|
233
|
+
font-family: ${hn};
|
|
234
|
+
font-size: ${fn};
|
|
235
|
+
font-weight: ${dn};
|
|
236
|
+
letter-spacing: ${pn};
|
|
237
|
+
line-height: ${vn};
|
|
238
|
+
text-transform: ${bn};
|
|
239
|
+
}
|
|
240
|
+
`,zn=x`
|
|
251
241
|
.ft-typography--caption {
|
|
252
|
-
font-family: ${
|
|
253
|
-
font-size: ${
|
|
254
|
-
font-weight: ${
|
|
255
|
-
letter-spacing: ${
|
|
256
|
-
line-height: ${
|
|
257
|
-
text-transform: ${
|
|
258
|
-
}
|
|
259
|
-
`,
|
|
242
|
+
font-family: ${yn.fontFamily};
|
|
243
|
+
font-size: ${yn.fontSize};
|
|
244
|
+
font-weight: ${yn.fontWeight};
|
|
245
|
+
letter-spacing: ${yn.letterSpacing};
|
|
246
|
+
line-height: ${yn.lineHeight};
|
|
247
|
+
text-transform: ${yn.textTransform};
|
|
248
|
+
}
|
|
249
|
+
`,Fn=x`
|
|
260
250
|
.ft-typography--breadcrumb {
|
|
261
|
-
font-family: ${
|
|
262
|
-
font-size: ${
|
|
263
|
-
font-weight: ${
|
|
264
|
-
letter-spacing: ${
|
|
265
|
-
line-height: ${
|
|
266
|
-
text-transform: ${
|
|
267
|
-
}
|
|
268
|
-
`,
|
|
251
|
+
font-family: ${gn};
|
|
252
|
+
font-size: ${mn};
|
|
253
|
+
font-weight: ${xn};
|
|
254
|
+
letter-spacing: ${wn};
|
|
255
|
+
line-height: ${$n};
|
|
256
|
+
text-transform: ${Sn};
|
|
257
|
+
}
|
|
258
|
+
`,Pn=x`
|
|
269
259
|
.ft-typography--overline {
|
|
270
|
-
font-family: ${
|
|
271
|
-
font-size: ${
|
|
272
|
-
font-weight: ${
|
|
273
|
-
letter-spacing: ${
|
|
274
|
-
line-height: ${
|
|
275
|
-
text-transform: ${
|
|
276
|
-
}
|
|
277
|
-
`,
|
|
260
|
+
font-family: ${kn};
|
|
261
|
+
font-size: ${On};
|
|
262
|
+
font-weight: ${_n};
|
|
263
|
+
letter-spacing: ${Cn};
|
|
264
|
+
line-height: ${En};
|
|
265
|
+
text-transform: ${jn};
|
|
266
|
+
}
|
|
267
|
+
`,Dn=x`
|
|
278
268
|
.ft-typography--button {
|
|
279
|
-
font-family: ${
|
|
280
|
-
font-size: ${
|
|
281
|
-
font-weight: ${
|
|
282
|
-
letter-spacing: ${
|
|
283
|
-
line-height: ${
|
|
284
|
-
text-transform: ${
|
|
285
|
-
}
|
|
286
|
-
`,
|
|
269
|
+
font-family: ${Rn.fontFamily};
|
|
270
|
+
font-size: ${Rn.fontSize};
|
|
271
|
+
font-weight: ${Rn.fontWeight};
|
|
272
|
+
letter-spacing: ${Rn.letterSpacing};
|
|
273
|
+
line-height: ${Rn.lineHeight};
|
|
274
|
+
text-transform: ${Rn.textTransform};
|
|
275
|
+
}
|
|
276
|
+
`,Bn=x`
|
|
287
277
|
.ft-typography {
|
|
288
278
|
vertical-align: inherit;
|
|
289
279
|
}
|
|
290
|
-
|
|
280
|
+
`,Ln={color:wt.extend("--ft-loader-color",St.colorPrimary),size:wt.create("--ft-loader-size","SIZE","80px")},Wn=x`
|
|
291
281
|
:host {
|
|
292
282
|
line-height: 0;
|
|
293
283
|
}
|
|
@@ -296,8 +286,8 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
296
286
|
display: inline-block;
|
|
297
287
|
position: relative;
|
|
298
288
|
|
|
299
|
-
width: ${
|
|
300
|
-
height: ${
|
|
289
|
+
width: ${Ln.size};
|
|
290
|
+
height: ${Ln.size};
|
|
301
291
|
}
|
|
302
292
|
|
|
303
293
|
.ft-loader div {
|
|
@@ -306,7 +296,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
306
296
|
width: 25%;
|
|
307
297
|
height: 25%;
|
|
308
298
|
border-radius: 50%;
|
|
309
|
-
background: ${
|
|
299
|
+
background: ${Ln.color};
|
|
310
300
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
311
301
|
}
|
|
312
302
|
|
|
@@ -353,10 +343,10 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
353
343
|
transform: translate(0, 0);
|
|
354
344
|
}
|
|
355
345
|
100% {
|
|
356
|
-
transform: translate(calc(0.35 * ${
|
|
346
|
+
transform: translate(calc(0.35 * ${Ln.size}), 0);
|
|
357
347
|
}
|
|
358
348
|
}
|
|
359
|
-
`,
|
|
349
|
+
`,Hn={size:wt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:wt.extend("--ft-icon-fluid-topics-font-family",wt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:wt.extend("--ft-icon-file-format-font-family",wt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:wt.extend("--ft-icon-material-font-family",wt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:wt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Kn=x`
|
|
360
350
|
:host, i.ft-icon {
|
|
361
351
|
display: inline-flex;
|
|
362
352
|
align-items: center;
|
|
@@ -365,14 +355,14 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
365
355
|
}
|
|
366
356
|
|
|
367
357
|
:host {
|
|
368
|
-
width: ${
|
|
369
|
-
height: ${
|
|
358
|
+
width: ${Hn.size};
|
|
359
|
+
height: ${Hn.size};
|
|
370
360
|
}
|
|
371
361
|
|
|
372
362
|
i.ft-icon {
|
|
373
363
|
width: 100%;
|
|
374
364
|
height: 100%;
|
|
375
|
-
font-size: ${
|
|
365
|
+
font-size: ${Hn.size};
|
|
376
366
|
line-height: 1;
|
|
377
367
|
font-weight: normal;
|
|
378
368
|
text-transform: none;
|
|
@@ -383,27 +373,27 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
383
373
|
text-rendering: auto;
|
|
384
374
|
-webkit-font-smoothing: antialiased;
|
|
385
375
|
-moz-osx-font-smoothing: grayscale;
|
|
386
|
-
vertical-align: ${
|
|
376
|
+
vertical-align: ${Hn.verticalAlign};
|
|
387
377
|
}
|
|
388
378
|
|
|
389
379
|
i.ft-icon.ft-icon--fluid-topics {
|
|
390
|
-
font-family: ${
|
|
380
|
+
font-family: ${Hn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
391
381
|
|
|
392
382
|
/* Ugly fix because font is broken */
|
|
393
|
-
font-size: calc(0.
|
|
383
|
+
font-size: calc(0.75 * ${Hn.size});
|
|
394
384
|
position: relative;
|
|
395
|
-
top: -
|
|
385
|
+
top: -4%;
|
|
396
386
|
justify-content: center;
|
|
397
387
|
}
|
|
398
388
|
|
|
399
389
|
.ft-icon--file-format {
|
|
400
|
-
font-family: ${
|
|
390
|
+
font-family: ${Hn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
401
391
|
}
|
|
402
392
|
|
|
403
393
|
.ft-icon--material {
|
|
404
|
-
font-family: ${
|
|
394
|
+
font-family: ${Hn.materialFontFamily}, "Material Icons", sans-serif;
|
|
405
395
|
}
|
|
406
|
-
`,
|
|
396
|
+
`,Zn=wt.extend("--ft-button-color",St.colorPrimary),Vn={backgroundColor:wt.extend("--ft-button-background-color",St.colorSurface),borderRadius:wt.extend("--ft-button-border-radius",St.borderRadiusL),color:Zn,fontSize:wt.extend("--ft-button-font-size",Rn.fontSize),iconSize:wt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:wt.extend("--ft-button-ripple-color",Zn),verticalPadding:wt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:wt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:wt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:wt.external(St.colorOpacityDisabled,"Design system")},qn=wt.extend("--ft-button-primary-color",wt.extend("--ft-button-color",St.colorOnPrimary)),Gn={backgroundColor:wt.extend("--ft-button-primary-background-color",wt.extend("--ft-button-background-color",St.colorPrimary)),color:qn,rippleColor:wt.extend("--ft-button-primary-ripple-color",qn)},Jn=wt.extend("--ft-button-dense-border-radius",wt.extend("--ft-button-border-radius",St.borderRadiusM)),Xn=wt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Yn=wt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Qn=wt.create("--ft-button-dense-icon-padding","SIZE","4px"),to=[It,x`
|
|
407
397
|
:host {
|
|
408
398
|
display: inline-block;
|
|
409
399
|
max-width: 100%;
|
|
@@ -414,7 +404,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
414
404
|
box-shadow: 0px 0px 0px transparent;
|
|
415
405
|
border: 0px solid transparent;
|
|
416
406
|
text-shadow: 0px 0px 0px transparent;
|
|
417
|
-
font-size: ${
|
|
407
|
+
font-size: ${Vn.fontSize};
|
|
418
408
|
}
|
|
419
409
|
|
|
420
410
|
button:hover {
|
|
@@ -443,32 +433,32 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
443
433
|
border: none;
|
|
444
434
|
pointer-events: auto;
|
|
445
435
|
|
|
446
|
-
--ft-button-internal-line-height: calc(${
|
|
447
|
-
--ft-button-internal-color: ${
|
|
448
|
-
${
|
|
449
|
-
${
|
|
450
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
436
|
+
--ft-button-internal-line-height: calc(${Vn.fontSize} + 2px);
|
|
437
|
+
--ft-button-internal-color: ${Vn.color};
|
|
438
|
+
${$t(Hn.size,Vn.iconSize)};
|
|
439
|
+
${$t(Fi.color,Vn.rippleColor)};
|
|
440
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Vn.iconSize});
|
|
451
441
|
|
|
452
|
-
border-radius: ${
|
|
453
|
-
padding: ${
|
|
454
|
-
background-color: ${
|
|
442
|
+
border-radius: ${Vn.borderRadius};
|
|
443
|
+
padding: ${Vn.verticalPadding} ${Vn.horizontalPadding};
|
|
444
|
+
background-color: ${Vn.backgroundColor};
|
|
455
445
|
color: var(--ft-button-internal-color);
|
|
456
446
|
-webkit-mask-image: radial-gradient(white, black);
|
|
457
447
|
}
|
|
458
448
|
|
|
459
449
|
.ft-button.ft-button--outlined {
|
|
460
450
|
border: 1px solid var(--ft-button-internal-color);
|
|
461
|
-
padding: calc(${
|
|
451
|
+
padding: calc(${Vn.verticalPadding} - 1px) calc(${Vn.horizontalPadding} - 1px);
|
|
462
452
|
}
|
|
463
453
|
|
|
464
454
|
.ft-button.ft-button--dense {
|
|
465
|
-
padding: ${
|
|
466
|
-
border-radius: ${
|
|
467
|
-
gap: ${
|
|
455
|
+
padding: ${Xn} ${Yn};
|
|
456
|
+
border-radius: ${Jn};
|
|
457
|
+
gap: ${Qn};
|
|
468
458
|
}
|
|
469
459
|
|
|
470
460
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
471
|
-
padding: calc(${
|
|
461
|
+
padding: calc(${Xn} - 1px) calc(${Yn} - 1px);
|
|
472
462
|
}
|
|
473
463
|
|
|
474
464
|
.ft-button:not([disabled]):hover {
|
|
@@ -476,22 +466,22 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
476
466
|
}
|
|
477
467
|
|
|
478
468
|
.ft-button--round {
|
|
479
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
469
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Vn.verticalPadding});
|
|
480
470
|
}
|
|
481
471
|
|
|
482
472
|
.ft-button--round.ft-button--dense {
|
|
483
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
473
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Xn});
|
|
484
474
|
}
|
|
485
475
|
|
|
486
476
|
.ft-button[disabled] {
|
|
487
477
|
filter: grayscale(1);
|
|
488
|
-
opacity: ${
|
|
478
|
+
opacity: ${Vn.opacityDisabled};
|
|
489
479
|
}
|
|
490
480
|
|
|
491
481
|
.ft-button.ft-button--primary {
|
|
492
|
-
background-color: ${
|
|
493
|
-
--ft-button-internal-color: ${
|
|
494
|
-
${
|
|
482
|
+
background-color: ${Gn.backgroundColor};
|
|
483
|
+
--ft-button-internal-color: ${Gn.color};
|
|
484
|
+
${$t(Fi.color,Gn.rippleColor)};
|
|
495
485
|
}
|
|
496
486
|
|
|
497
487
|
.ft-button:focus {
|
|
@@ -504,13 +494,13 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
504
494
|
white-space: nowrap;
|
|
505
495
|
text-overflow: ellipsis;
|
|
506
496
|
display: block;
|
|
507
|
-
margin: 0 ${
|
|
508
|
-
${
|
|
509
|
-
${
|
|
497
|
+
margin: 0 ${Vn.iconPadding};
|
|
498
|
+
${$t(Rn.fontSize,"1em")};
|
|
499
|
+
${$t(Rn.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
510
500
|
}
|
|
511
501
|
|
|
512
502
|
.ft-button--dense .ft-button--label {
|
|
513
|
-
margin: 0 ${
|
|
503
|
+
margin: 0 ${Qn};
|
|
514
504
|
}
|
|
515
505
|
|
|
516
506
|
.ft-button--label[hidden] {
|
|
@@ -523,13 +513,13 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
523
513
|
}
|
|
524
514
|
|
|
525
515
|
.ft-button--label[hidden] + ft-icon {
|
|
526
|
-
margin: 0 calc(${
|
|
527
|
-
padding: 0 ${
|
|
516
|
+
margin: 0 calc(${Vn.horizontalPadding} * -1);
|
|
517
|
+
padding: 0 ${Vn.verticalPadding};
|
|
528
518
|
}
|
|
529
519
|
|
|
530
520
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
531
|
-
margin: 0 calc(${
|
|
532
|
-
padding: 0 ${
|
|
521
|
+
margin: 0 calc(${Yn} * -1);
|
|
522
|
+
padding: 0 ${Xn};
|
|
533
523
|
}
|
|
534
524
|
|
|
535
525
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -538,10 +528,10 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
538
528
|
}
|
|
539
529
|
|
|
540
530
|
ft-loader {
|
|
541
|
-
${
|
|
542
|
-
${
|
|
531
|
+
${$t(Ln.size,Vn.iconSize)};
|
|
532
|
+
${$t(Ln.color,"var(--ft-button-internal-color)")};
|
|
543
533
|
}
|
|
544
|
-
`],
|
|
534
|
+
`],eo={textColor:wt.extend("--ft-switch-text-color",St.colorOnSurfaceHigh),backgroundColor:wt.extend("--ft-switch-background-color",St.colorSurface),selectedTextColor:wt.extend("--ft-switch-selected-text-color",St.colorPrimary),selectedBackgroundColor:wt.extend("--ft-switch-selected-background-color",St.colorPrimary),borderColor:wt.extend("--ft-switch-border-color",St.colorOutline),borderRadius:wt.extend("--ft-switch-border-radius",St.borderRadiusL),fontSize:wt.extend("--ft-switch-font-size",Rn.fontSize),iconSize:wt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:wt.extend("--ft-switch-text-color",St.colorOnSurfaceMedium),rippleColor:wt.extend("--ft-switch-ripple-color",St.colorPrimary),outlineColor:wt.extend("--ft-switch-outline-color",St.colorPrimary)},io={feedbackInputMinWidth:wt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:wt.external(St.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:wt.extend("--ft-reader-feedback-send-feedback-color",St.colorOnPrimary),sendFeedbackBackgroundColor:wt.extend("--ft-reader-feedback-send-feedback-background-color",St.colorPrimary),filledRatingColor:wt.extend("--ft-reader-feedback-filled-rating-color",St.colorPrimary),emptyRatingColor:wt.extend("--ft-reader-feedback-empty-rating-color",St.colorOnSurfaceMedium),mainTitleFontSize:wt.external(Gi.fontSize,"Typography"),sectionTitleFontSize:wt.external(Ji.fontSize,"Typography")},no=x`
|
|
545
535
|
.ft-reader-feedback {
|
|
546
536
|
box-sizing: border-box;
|
|
547
537
|
display: flex;
|
|
@@ -587,14 +577,14 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
587
577
|
}
|
|
588
578
|
|
|
589
579
|
.ft-reader-feedback--rating {
|
|
590
|
-
${
|
|
591
|
-
${
|
|
592
|
-
${
|
|
593
|
-
${
|
|
580
|
+
${$t(Vn.color,io.emptyRatingColor)};
|
|
581
|
+
${$t(Vn.rippleColor,io.filledRatingColor)};
|
|
582
|
+
${$t(eo.textColor,io.emptyRatingColor)};
|
|
583
|
+
${$t(eo.selectedTextColor,io.filledRatingColor)};
|
|
594
584
|
}
|
|
595
585
|
|
|
596
586
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
597
|
-
${
|
|
587
|
+
${$t(Vn.color,io.filledRatingColor)};
|
|
598
588
|
}
|
|
599
589
|
|
|
600
590
|
.ft-reader-feedback--feedback {
|
|
@@ -602,47 +592,47 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
|
|
|
602
592
|
}
|
|
603
593
|
|
|
604
594
|
.ft-reader-feedback--rating-date {
|
|
605
|
-
color: ${
|
|
595
|
+
color: ${io.ratedDateColor};
|
|
606
596
|
}
|
|
607
597
|
|
|
608
598
|
.ft-reader-feedback--feedback ft-text-area {
|
|
609
|
-
min-width: ${
|
|
599
|
+
min-width: ${io.feedbackInputMinWidth};
|
|
610
600
|
}
|
|
611
601
|
|
|
612
602
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
613
603
|
align-self: flex-end;
|
|
614
|
-
${
|
|
615
|
-
${
|
|
604
|
+
${$t(Vn.color,io.sendFeedbackColor)};
|
|
605
|
+
${$t(Vn.backgroundColor,io.sendFeedbackBackgroundColor)};
|
|
616
606
|
}
|
|
617
607
|
`
|
|
618
608
|
/**
|
|
619
609
|
* @license
|
|
620
610
|
* Copyright 2020 Google LLC
|
|
621
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
622
|
-
*/,
|
|
623
|
-
<${
|
|
612
|
+
*/,oo=Symbol.for(""),ro=t=>{if((null==t?void 0:t.r)===oo)return null==t?void 0:t._$litStatic$},so=t=>({_$litStatic$:t,r:oo}),ao=new Map,lo=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=ro(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=ao.get(t))&&(s.raw=s,ao.set(t,e=s)),i=a}return t(e,...i)})(Q);var co;!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"}(co||(co={}));var uo=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 ho extends Nt{constructor(){super(...arguments),this.variant=co.body1}render(){return this.element?lo`
|
|
613
|
+
<${so(this.element)}
|
|
624
614
|
class="ft-typography ft-typography--${this.variant}">
|
|
625
615
|
<slot></slot>
|
|
626
|
-
</${
|
|
627
|
-
`:
|
|
616
|
+
</${so(this.element)}>
|
|
617
|
+
`:lo`
|
|
628
618
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
629
|
-
`}}
|
|
619
|
+
`}}ho.styles=[Nn,In,Mn,Tn,An,Un,zn,Fn,Pn,Dn,Bn],uo([r()],ho.prototype,"element",void 0),uo([r()],ho.prototype,"variant",void 0),f("ft-typography")(ho);
|
|
630
620
|
/**
|
|
631
621
|
* @license
|
|
632
622
|
* Copyright 2017 Google LLC
|
|
633
623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
634
624
|
*/
|
|
635
|
-
const
|
|
625
|
+
const fo=1,po=2,vo=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)}}
|
|
636
626
|
/**
|
|
637
627
|
* @license
|
|
638
628
|
* Copyright 2017 Google LLC
|
|
639
629
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
640
|
-
*/class
|
|
641
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
642
|
-
${
|
|
643
|
-
<slot ?hidden=${
|
|
630
|
+
*/class yo extends bo{constructor(t){if(super(t),this.et=et,t.type!==po)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.ft=void 0,this.et=t;if(t===tt)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:[]}}}yo.directiveName="unsafeHTML",yo.resultType=1;const go=vo(yo);var mo,xo,wo;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(mo||(mo={})),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=""}(xo||(xo={})),new Map([...["abw"].map((t=>[t,xo.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,xo.AUDIO])),...["avi"].map((t=>[t,xo.AVI])),...["chm","xhs"].map((t=>[t,xo.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,xo.CODE])),...["csv"].map((t=>[t,xo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xo.DITA])),...["epub"].map((t=>[t,xo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xo.EXCEL])),...["flac"].map((t=>[t,xo.FLAC])),...["gif"].map((t=>[t,xo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xo.GZIP])),...["html","htm","xhtml"].map((t=>[t,xo.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,xo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xo.JPEG])),...["json"].map((t=>[t,xo.JSON])),...["m4a","m4p"].map((t=>[t,xo.M4A])),...["mov","qt"].map((t=>[t,xo.MOV])),...["mp3"].map((t=>[t,xo.MP3])),...["mp4","m4v"].map((t=>[t,xo.MP4])),...["ogg","oga"].map((t=>[t,xo.OGG])),...["pdf","ps"].map((t=>[t,xo.PDF])),...["png"].map((t=>[t,xo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xo.POWERPOINT])),...["rar"].map((t=>[t,xo.RAR])),...["stp"].map((t=>[t,xo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xo.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,xo.VIDEO])),...["wav"].map((t=>[t,xo.WAV])),...["wma"].map((t=>[t,xo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xo.WORD])),...["xml","xsl","rdf"].map((t=>[t,xo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xo.YAML])),...["zip"].map((t=>[t,xo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(wo||(wo={}));var $o=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 So extends Nt{constructor(){super(...arguments),this.resolvedIcon=et}render(){const t=this.variant&&Object.values(wo).includes(this.variant)?this.variant:wo.fluid_topics,e=t!==wo.material||!!this.value;return Q`
|
|
631
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
632
|
+
${go(this.resolvedIcon)}
|
|
633
|
+
<slot ?hidden=${e}></slot>
|
|
644
634
|
</i>
|
|
645
|
-
`}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
|
|
635
|
+
`}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 wo.file_format:this.resolvedIcon=null!==(t=xo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case wo.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=mo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}So.elementDefinitions={},So.styles=Kn,$o([r()],So.prototype,"variant",void 0),$o([r()],So.prototype,"value",void 0),$o([s()],So.prototype,"resolvedIcon",void 0),$o([l("slot")],So.prototype,"slottedContent",void 0),f("ft-icon")(So);const ko=wt.create("--ft-tooltip-distance","SIZE","4px"),Oo=wt.create("--ft-tooltip-color","COLOR","#FFFFFF"),_o=wt.create("--ft-tooltip-background-color","COLOR","#666666"),Co=wt.create("--ft-tooltip-z-index","NUMBER","1"),Eo=wt.external(St.borderRadiusS,"Design system"),jo=wt.create("--ft-tooltip-max-width","SIZE","150px"),Ro=x`
|
|
646
636
|
.ft-tooltip--container {
|
|
647
637
|
display: block;
|
|
648
638
|
position: relative;
|
|
@@ -658,23 +648,23 @@ const Zo=1,Vo=2,Go=t=>(...e)=>({_$litDirective$:t,values:e});class Jo{constructo
|
|
|
658
648
|
box-sizing: border-box;
|
|
659
649
|
overflow: hidden;
|
|
660
650
|
width: max-content;
|
|
661
|
-
max-width: ${
|
|
651
|
+
max-width: ${jo};
|
|
662
652
|
text-align: center;
|
|
663
|
-
padding: ${
|
|
664
|
-
z-index: ${
|
|
653
|
+
padding: ${ko};
|
|
654
|
+
z-index: ${Co};
|
|
665
655
|
}
|
|
666
656
|
|
|
667
657
|
.ft-tooltip--content {
|
|
668
658
|
padding: 4px 8px;
|
|
669
|
-
border-radius: ${
|
|
670
|
-
background-color: ${
|
|
671
|
-
color: ${
|
|
659
|
+
border-radius: ${Eo};
|
|
660
|
+
background-color: ${_o};
|
|
661
|
+
color: ${Oo};
|
|
672
662
|
top: -500px;
|
|
673
663
|
left: -500px;
|
|
674
664
|
position: relative;
|
|
675
665
|
word-break: break-word;
|
|
676
666
|
}
|
|
677
|
-
`;var
|
|
667
|
+
`;var No=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 Io extends Nt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Q`
|
|
678
668
|
<div part="container"
|
|
679
669
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
680
670
|
@mouseenter=${this.onHover}
|
|
@@ -692,19 +682,19 @@ const Zo=1,Vo=2,Go=t=>(...e)=>({_$litDirective$:t,values:e});class Jo{constructo
|
|
|
692
682
|
</div>
|
|
693
683
|
</div>
|
|
694
684
|
</div>
|
|
695
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,
|
|
685
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=0);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${jo})`}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())}}Io.elementDefinitions={"ft-typography":ho},Io.styles=Ro,No([r()],Io.prototype,"text",void 0),No([r({type:Boolean})],Io.prototype,"manual",void 0),No([r({type:Boolean})],Io.prototype,"inline",void 0),No([r({type:Number})],Io.prototype,"delay",void 0),No([r()],Io.prototype,"position",void 0),No([
|
|
696
686
|
/**
|
|
697
687
|
* @license
|
|
698
688
|
* Copyright 2017 Google LLC
|
|
699
689
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
700
690
|
*/
|
|
701
|
-
function(t,e,i){let o
|
|
691
|
+
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return a({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})})}({slot:o,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Io.prototype,"slotNodes",void 0),No([l(".ft-tooltip--container")],Io.prototype,"container",void 0),No([l("slot")],Io.prototype,"target",void 0),No([l(".ft-tooltip")],Io.prototype,"tooltip",void 0),No([l(".ft-tooltip--content")],Io.prototype,"tooltipContent",void 0),No([s()],Io.prototype,"visible",void 0),f("ft-tooltip")(Io);
|
|
702
692
|
/**
|
|
703
693
|
* @license
|
|
704
694
|
* Copyright 2018 Google LLC
|
|
705
695
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
706
696
|
*/
|
|
707
|
-
const
|
|
697
|
+
const Mo=vo(class extends bo{constructor(t){var e;if(super(t),t.type!==fo||"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 tt}});var To=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 Ao extends Nt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x: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.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 Q`
|
|
708
698
|
<style>
|
|
709
699
|
.ft-ripple .ft-ripple--effect,
|
|
710
700
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -717,11 +707,11 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
717
707
|
top: ${this.originY}px;
|
|
718
708
|
}
|
|
719
709
|
</style>
|
|
720
|
-
<div class="${
|
|
710
|
+
<div class="${Mo(t)}">
|
|
721
711
|
<div class="ft-ripple--background"></div>
|
|
722
712
|
<div class="ft-ripple--effect"></div>
|
|
723
713
|
</div>
|
|
724
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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"),
|
|
714
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ao.elementDefinitions={},Ao.styles=Ki,To([r({type:Boolean})],Ao.prototype,"primary",void 0),To([r({type:Boolean})],Ao.prototype,"secondary",void 0),To([r({type:Boolean})],Ao.prototype,"unbounded",void 0),To([r({type:Boolean})],Ao.prototype,"activated",void 0),To([r({type:Boolean})],Ao.prototype,"selected",void 0),To([r({type:Boolean})],Ao.prototype,"disabled",void 0),To([s()],Ao.prototype,"hovered",void 0),To([s()],Ao.prototype,"focused",void 0),To([s()],Ao.prototype,"pressed",void 0),To([s()],Ao.prototype,"rippling",void 0),To([s()],Ao.prototype,"rippleSize",void 0),To([s()],Ao.prototype,"originX",void 0),To([s()],Ao.prototype,"originY",void 0),To([l(".ft-ripple")],Ao.prototype,"ripple",void 0),To([l(".ft-ripple--effect")],Ao.prototype,"rippleEffect",void 0),f("ft-ripple")(Ao);const Uo={borderRadiusLeft:wt.extend("--ft-switch-option-border-radius-left",St.borderRadiusL),borderRadiusRight:wt.extend("--ft-switch-option-border-radius-right",St.borderRadiusL),borderWidthLeft:wt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:wt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:wt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},zo=x`
|
|
725
715
|
.ft-switch-option {
|
|
726
716
|
position: relative;
|
|
727
717
|
display: inline-block;
|
|
@@ -735,20 +725,20 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
735
725
|
}
|
|
736
726
|
|
|
737
727
|
.ft-switch-option--content {
|
|
738
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
739
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
728
|
+
--ft-switch-option-internal-line-height: calc(${eo.fontSize} + 2px);
|
|
729
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${eo.iconSize});
|
|
740
730
|
|
|
741
731
|
border-style: solid;
|
|
742
|
-
border-color: ${
|
|
743
|
-
border-width: ${
|
|
744
|
-
border-radius: ${
|
|
732
|
+
border-color: ${eo.borderColor};
|
|
733
|
+
border-width: ${Uo.borderWidthVertical} ${Uo.borderWidthRight} ${Uo.borderWidthVertical} ${Uo.borderWidthLeft};
|
|
734
|
+
border-radius: ${Uo.borderRadiusLeft} ${Uo.borderRadiusRight} ${Uo.borderRadiusRight} ${Uo.borderRadiusLeft};
|
|
745
735
|
display: flex;
|
|
746
736
|
align-items: center;
|
|
747
737
|
justify-content: center;
|
|
748
738
|
overflow: hidden;
|
|
749
|
-
${
|
|
739
|
+
${$t(Hn.size,eo.iconSize)};
|
|
750
740
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
751
|
-
background-color: ${
|
|
741
|
+
background-color: ${eo.backgroundColor};
|
|
752
742
|
-webkit-mask-image: radial-gradient(white, black);
|
|
753
743
|
}
|
|
754
744
|
|
|
@@ -757,28 +747,28 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
757
747
|
}
|
|
758
748
|
|
|
759
749
|
.ft-switch-option--input:checked + .ft-switch-option--content:before {
|
|
760
|
-
background-color: ${
|
|
761
|
-
border-radius: ${
|
|
750
|
+
background-color: ${eo.selectedBackgroundColor};
|
|
751
|
+
border-radius: ${Uo.borderRadiusLeft} ${Uo.borderRadiusRight} ${Uo.borderRadiusRight} ${Uo.borderRadiusLeft};
|
|
762
752
|
position: absolute;
|
|
763
753
|
inset: 0;
|
|
764
754
|
content: "";
|
|
765
755
|
z-index: 1;
|
|
766
|
-
opacity: ${
|
|
756
|
+
opacity: ${St.opacityPrimaryOnSurfaceSelected};
|
|
767
757
|
}
|
|
768
758
|
|
|
769
759
|
.ft-switch-option--label {
|
|
770
|
-
color: ${
|
|
760
|
+
color: ${eo.textColor};
|
|
771
761
|
overflow: hidden;
|
|
772
762
|
white-space: nowrap;
|
|
773
763
|
text-overflow: ellipsis;
|
|
774
764
|
display: block;
|
|
775
765
|
margin: 0 8px;
|
|
776
|
-
${
|
|
777
|
-
${
|
|
766
|
+
${$t(Rn.fontSize,eo.fontSize)};
|
|
767
|
+
${$t(Rn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
778
768
|
}
|
|
779
769
|
|
|
780
770
|
.ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
|
|
781
|
-
color: ${
|
|
771
|
+
color: ${eo.selectedTextColor};
|
|
782
772
|
}
|
|
783
773
|
|
|
784
774
|
.ft-switch-option--label[hidden] {
|
|
@@ -786,7 +776,7 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
786
776
|
}
|
|
787
777
|
|
|
788
778
|
.ft-switch-option--ripple {
|
|
789
|
-
${
|
|
779
|
+
${$t(Fi.color,eo.rippleColor)};
|
|
790
780
|
}
|
|
791
781
|
|
|
792
782
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -799,14 +789,14 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
799
789
|
|
|
800
790
|
ft-icon {
|
|
801
791
|
flex-shrink: 0;
|
|
802
|
-
color: ${
|
|
792
|
+
color: ${eo.iconColor};
|
|
803
793
|
}
|
|
804
794
|
|
|
805
795
|
.ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
|
|
806
|
-
color: ${
|
|
796
|
+
color: ${eo.selectedTextColor};
|
|
807
797
|
}
|
|
808
|
-
`;var
|
|
809
|
-
<label part="label" for="input" class=${
|
|
798
|
+
`;var Fo=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 CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Do extends Nt{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Po)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Q`
|
|
799
|
+
<label part="label" for="input" class=${Mo(t)}
|
|
810
800
|
@click=${this.onChange}>
|
|
811
801
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
812
802
|
.checked=${this.selected}>
|
|
@@ -814,34 +804,34 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
814
804
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
815
805
|
<ft-typography part="text"
|
|
816
806
|
variant="button"
|
|
817
|
-
class="ft-switch-option--label ${
|
|
807
|
+
class="ft-switch-option--label ${Ii?"ft-safari-ellipsis-fix":""}"
|
|
818
808
|
?hidden=${!this.hasTextContent()}>
|
|
819
809
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
820
810
|
</ft-typography>
|
|
821
811
|
${this.resolveIcon()}
|
|
822
812
|
</div>
|
|
823
813
|
</label>
|
|
824
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
814
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:Q`
|
|
825
815
|
<ft-tooltip part="tooltip"
|
|
826
816
|
text="${this.getLabel()}"
|
|
827
817
|
position="${this.tooltipPosition}">
|
|
828
818
|
${t}
|
|
829
819
|
</ft-tooltip>
|
|
830
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?
|
|
831
|
-
<ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
|
|
832
|
-
`:
|
|
833
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
820
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Q`
|
|
821
|
+
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
822
|
+
`:et}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()}}Do.elementDefinitions={"ft-ripple":Ao,"ft-typography":ho,"ft-tooltip":Io,"ft-icon":So},Do.styles=[Mt,zo],Fo([r()],Do.prototype,"value",void 0),Fo([r()],Do.prototype,"icon",void 0),Fo([r()],Do.prototype,"iconVariant",void 0),Fo([r()],Do.prototype,"label",void 0),Fo([r()],Do.prototype,"tooltipPosition",void 0),Fo([r({type:Boolean,reflect:!0})],Do.prototype,"selected",void 0),Fo([r({type:Boolean})],Do.prototype,"trailingIcon",void 0),Fo([r({type:Boolean})],Do.prototype,"unselectable",void 0),Fo([l(".ft-switch-option--content slot")],Do.prototype,"slottedContent",void 0),Fo([l(".ft-switch-option--input")],Do.prototype,"input",void 0);var Bo=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 Lo extends CustomEvent{constructor(t){super("change",{detail:t})}}class Wo extends Nt{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}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Lo(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Q`
|
|
823
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${Mo(t)}">
|
|
834
824
|
<slot @slotchange=${this.onSlotchange}
|
|
835
825
|
@option-change=${this.onOptionChange}></slot>
|
|
836
826
|
</div>
|
|
837
|
-
`}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
|
|
827
|
+
`}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 Do&&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)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Wo.elementDefinitions={},Wo.styles=x`
|
|
838
828
|
:host {
|
|
839
829
|
display: inline-block;
|
|
840
830
|
}
|
|
841
831
|
|
|
842
832
|
.ft-switch {
|
|
843
|
-
border-radius: ${
|
|
844
|
-
outline-color: ${
|
|
833
|
+
border-radius: ${eo.borderRadius};
|
|
834
|
+
outline-color: ${eo.outlineColor};
|
|
845
835
|
}
|
|
846
836
|
|
|
847
837
|
.ft-switch slot {
|
|
@@ -850,25 +840,25 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
850
840
|
}
|
|
851
841
|
|
|
852
842
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
853
|
-
${
|
|
854
|
-
${
|
|
855
|
-
${
|
|
843
|
+
${$t(Uo.borderRadiusLeft,"0")};
|
|
844
|
+
${$t(Uo.borderRadiusRight,"0")};
|
|
845
|
+
${$t(Uo.borderWidthLeft,"0")};
|
|
856
846
|
}
|
|
857
847
|
|
|
858
848
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
859
|
-
${
|
|
860
|
-
${
|
|
849
|
+
${$t(Uo.borderRadiusLeft,eo.borderRadius)};
|
|
850
|
+
${$t(Uo.borderWidthLeft,"1px")};
|
|
861
851
|
}
|
|
862
852
|
|
|
863
853
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
864
|
-
${
|
|
854
|
+
${$t(Uo.borderRadiusRight,eo.borderRadius)};
|
|
865
855
|
}
|
|
866
856
|
|
|
867
857
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
868
858
|
--ft-switch-internal-vertical-padding: 2px;
|
|
869
859
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
870
860
|
}
|
|
871
|
-
`,
|
|
861
|
+
`,Bo([r({type:Boolean})],Wo.prototype,"dense",void 0),Bo([r({type:Boolean})],Wo.prototype,"unselectable",void 0),Bo([l(".ft-switch slot")],Wo.prototype,"slottedContent",void 0),Bo([s()],Wo.prototype,"selectedOption",void 0),Bo([l(".ft-switch")],Wo.prototype,"ftSwitchDiv",void 0),f("ft-switch")(Wo),f("ft-switch-option")(Do);const Ho=wt.external(St.colorOutline,"Design system"),Ko=wt.external(St.colorOnSurfaceMedium,"Design system"),Zo=x`
|
|
872
862
|
:host {
|
|
873
863
|
display: block;
|
|
874
864
|
}
|
|
@@ -879,43 +869,43 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
879
869
|
|
|
880
870
|
ft-icon {
|
|
881
871
|
transform: rotate(-45deg);
|
|
882
|
-
color: ${
|
|
872
|
+
color: ${Ho};
|
|
883
873
|
}
|
|
884
874
|
|
|
885
875
|
.ft-resizer--dragging ft-icon,
|
|
886
876
|
.ft-resizer:hover ft-icon {
|
|
887
|
-
color: ${
|
|
877
|
+
color: ${Ko};
|
|
888
878
|
}
|
|
889
|
-
`;var
|
|
879
|
+
`;var Vo=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 qo extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Go extends Nt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=wo.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 Q`
|
|
890
880
|
<style>
|
|
891
881
|
.ft-resizer {
|
|
892
|
-
cursor: ${
|
|
882
|
+
cursor: ${m(this.cursor)}
|
|
893
883
|
}
|
|
894
884
|
</style>
|
|
895
885
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
896
886
|
@mousedown=${this.initDragFromMouse}
|
|
897
887
|
@touchstart=${this.initDragFromTouch}>
|
|
898
|
-
<ft-icon variant="
|
|
888
|
+
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
899
889
|
</div>
|
|
900
|
-
`}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,
|
|
890
|
+
`}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 qo(i,n))}}Go.elementDefinitions={"ft-icon":So},Go.styles=[It,Zo],Vo([r({type:Number})],Go.prototype,"initialWidth",void 0),Vo([r({type:Number})],Go.prototype,"initialHeight",void 0),Vo([r()],Go.prototype,"icon",void 0),Vo([r()],Go.prototype,"iconVariant",void 0),Vo([r()],Go.prototype,"cursor",void 0),Vo([s()],Go.prototype,"dragging",void 0),f("ft-resizer")(Go);const Jo={fontSize:wt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:wt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:wt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:wt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:wt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:wt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:wt.extend("--ft-input-label-border-color",St.colorOutline),textColor:wt.extend("--ft-input-label-text-color",St.colorOnSurfaceMedium),disabledTextColor:wt.extend("--ft-input-label-disabled-text-color",St.colorOnSurfaceDisabled),colorSurface:wt.external(St.colorSurface,"Design system"),borderRadiusS:wt.external(St.borderRadiusS,"Design system"),colorError:wt.external(St.colorError,"Design system")},Xo=x`
|
|
901
891
|
.ft-input-label {
|
|
902
892
|
position: absolute;
|
|
903
893
|
inset: 0;
|
|
904
894
|
display: flex;
|
|
905
|
-
background-color: ${
|
|
906
|
-
border-radius: ${
|
|
895
|
+
background-color: ${Jo.colorSurface};
|
|
896
|
+
border-radius: ${Jo.borderRadiusS} ${Jo.borderRadiusS} 0 0;
|
|
907
897
|
}
|
|
908
898
|
|
|
909
899
|
.ft-input-label--outlined {
|
|
910
|
-
border-radius: ${
|
|
900
|
+
border-radius: ${Jo.borderRadiusS};
|
|
911
901
|
}
|
|
912
902
|
|
|
913
903
|
.ft-input-label {
|
|
914
|
-
border-color: ${
|
|
904
|
+
border-color: ${Jo.borderColor};
|
|
915
905
|
}
|
|
916
906
|
|
|
917
907
|
.ft-input-label.ft-input-label--in-error {
|
|
918
|
-
border-color: ${
|
|
908
|
+
border-color: ${Jo.colorError}
|
|
919
909
|
}
|
|
920
910
|
|
|
921
911
|
.ft-input-label:before,
|
|
@@ -928,7 +918,7 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
928
918
|
}
|
|
929
919
|
|
|
930
920
|
.ft-input-label:before {
|
|
931
|
-
width: calc(${
|
|
921
|
+
width: calc(${Jo.horizontalSpacing} - 4px);
|
|
932
922
|
flex-shrink: 0;
|
|
933
923
|
}
|
|
934
924
|
|
|
@@ -944,20 +934,20 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
944
934
|
border-bottom-width: 1px;
|
|
945
935
|
border-bottom-style: solid;
|
|
946
936
|
border-color: inherit;
|
|
947
|
-
color: ${
|
|
937
|
+
color: ${Jo.textColor};
|
|
948
938
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
949
|
-
max-width: calc(${
|
|
939
|
+
max-width: calc(${Jo.labelMaxWidth} - 2 * (${Jo.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
950
940
|
text-overflow: ellipsis;
|
|
951
|
-
${
|
|
952
|
-
${
|
|
941
|
+
${$t(yn.fontSize,Jo.fontSize)};
|
|
942
|
+
${$t(yn.lineHeight,Jo.fontSize)};
|
|
953
943
|
}
|
|
954
944
|
|
|
955
945
|
.ft-input-label--in-error .ft-input-label--text {
|
|
956
|
-
color: ${
|
|
946
|
+
color: ${Jo.colorError}
|
|
957
947
|
}
|
|
958
948
|
|
|
959
949
|
.ft-input-label--disabled .ft-input-label--text {
|
|
960
|
-
color: ${
|
|
950
|
+
color: ${Jo.disabledTextColor};
|
|
961
951
|
}
|
|
962
952
|
|
|
963
953
|
.ft-input-label--hidden-text {
|
|
@@ -974,19 +964,19 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
974
964
|
overflow: hidden;
|
|
975
965
|
white-space: nowrap;
|
|
976
966
|
text-overflow: ellipsis;
|
|
977
|
-
padding: ${
|
|
978
|
-
margin: calc(${
|
|
967
|
+
padding: ${Jo.verticalSpacing} 4px;
|
|
968
|
+
margin: calc(${Jo.verticalSpacing} * -1) 0;
|
|
979
969
|
max-width: 100%;
|
|
980
970
|
box-sizing: border-box;
|
|
981
971
|
}
|
|
982
972
|
|
|
983
973
|
.ft-input-label--raised .ft-input-label--text {
|
|
984
|
-
${
|
|
985
|
-
${
|
|
974
|
+
${$t(yn.fontSize,Jo.raisedFontSize)};
|
|
975
|
+
${$t(yn.lineHeight,Jo.raisedFontSize)};
|
|
986
976
|
}
|
|
987
977
|
|
|
988
978
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
989
|
-
top: ${
|
|
979
|
+
top: ${Jo.verticalSpacing};
|
|
990
980
|
}
|
|
991
981
|
|
|
992
982
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -999,36 +989,36 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
999
989
|
.ft-input-label--outlined:before {
|
|
1000
990
|
border-left-width: 1px;
|
|
1001
991
|
border-left-style: solid;
|
|
1002
|
-
border-radius: ${
|
|
992
|
+
border-radius: ${Jo.borderRadiusS} 0 0 ${Jo.borderRadiusS};
|
|
1003
993
|
}
|
|
1004
994
|
|
|
1005
995
|
.ft-input-label--outlined:after {
|
|
1006
996
|
border-right-width: 1px;
|
|
1007
997
|
border-right-style: solid;
|
|
1008
|
-
border-radius: 0 ${
|
|
998
|
+
border-radius: 0 ${Jo.borderRadiusS} ${Jo.borderRadiusS} 0;
|
|
1009
999
|
}
|
|
1010
1000
|
|
|
1011
1001
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1012
1002
|
padding: 2px 4px;
|
|
1013
|
-
z-index: ${
|
|
1014
|
-
background-color: ${
|
|
1015
|
-
border-radius: ${
|
|
1003
|
+
z-index: ${Jo.raisedZIndex};
|
|
1004
|
+
background-color: ${Jo.colorSurface};
|
|
1005
|
+
border-radius: ${Jo.borderRadiusS};
|
|
1016
1006
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1017
1007
|
}
|
|
1018
1008
|
|
|
1019
1009
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1020
1010
|
border-top: none;
|
|
1021
1011
|
}
|
|
1022
|
-
`;var
|
|
1023
|
-
<div class="${
|
|
1024
|
-
${this.text?
|
|
1012
|
+
`;var Yo=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 Qo extends Nt{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 Q`
|
|
1013
|
+
<div class="${Mo(t)}">
|
|
1014
|
+
${this.text?Q`
|
|
1025
1015
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1026
1016
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
1027
1017
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1028
1018
|
</div>
|
|
1029
1019
|
`:null}
|
|
1030
1020
|
</div>
|
|
1031
|
-
`}}
|
|
1021
|
+
`}}Qo.elementDefinitions={},Qo.styles=[zn,Xo],Yo([r({type:String})],Qo.prototype,"text",void 0),Yo([r({type:Boolean})],Qo.prototype,"raised",void 0),Yo([r({type:Boolean})],Qo.prototype,"outlined",void 0),Yo([r({type:Boolean})],Qo.prototype,"disabled",void 0),Yo([r({type:Boolean})],Qo.prototype,"error",void 0),f("ft-input-label")(Qo);const tr={fontSize:wt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:wt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:wt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:wt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:wt.extend("--ft-text-area-helper-color",St.colorOnSurfaceMedium),colorPrimary:wt.external(St.colorPrimary,"Design system"),colorOnSurface:wt.external(St.colorOnSurface,"Design system"),colorOnSurfaceDisabled:wt.external(St.colorOnSurfaceDisabled,"Design system"),borderRadiusS:wt.external(St.borderRadiusS,"Design system"),colorError:wt.external(St.colorError,"Design system")},er=x`
|
|
1032
1022
|
*:focus {
|
|
1033
1023
|
outline: none;
|
|
1034
1024
|
}
|
|
@@ -1040,10 +1030,10 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1040
1030
|
}
|
|
1041
1031
|
|
|
1042
1032
|
ft-input-label {
|
|
1043
|
-
${
|
|
1044
|
-
${
|
|
1045
|
-
${
|
|
1046
|
-
${
|
|
1033
|
+
${$t(Jo.fontSize,tr.fontSize)};
|
|
1034
|
+
${$t(Jo.raisedFontSize,tr.labelSize)};
|
|
1035
|
+
${$t(Jo.verticalSpacing,tr.verticalSpacing)};
|
|
1036
|
+
${$t(Jo.horizontalSpacing,tr.horizontalSpacing)};
|
|
1047
1037
|
}
|
|
1048
1038
|
|
|
1049
1039
|
.ft-text-area--main-panel {
|
|
@@ -1061,8 +1051,8 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1061
1051
|
}
|
|
1062
1052
|
|
|
1063
1053
|
.ft-text-area--input-panel ft-ripple {
|
|
1064
|
-
${
|
|
1065
|
-
${
|
|
1054
|
+
${$t(Fi.opacityContentOnSurfaceHover,"0.08")};
|
|
1055
|
+
${$t(Fi.opacityContentOnSurfacePressed,"0.04")};
|
|
1066
1056
|
}
|
|
1067
1057
|
|
|
1068
1058
|
.ft-text-area--input {
|
|
@@ -1074,12 +1064,12 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1074
1064
|
align-self: stretch;
|
|
1075
1065
|
resize: none;
|
|
1076
1066
|
|
|
1077
|
-
${
|
|
1078
|
-
${
|
|
1079
|
-
color: ${
|
|
1067
|
+
${$t(un.fontSize,tr.fontSize)};
|
|
1068
|
+
${$t(un.lineHeight,tr.fontSize)};
|
|
1069
|
+
color: ${tr.colorOnSurface};
|
|
1080
1070
|
|
|
1081
|
-
padding: 0 ${
|
|
1082
|
-
margin: calc(${
|
|
1071
|
+
padding: 0 ${tr.horizontalSpacing};
|
|
1072
|
+
margin: calc(${tr.verticalSpacing} + ${tr.labelSize} / 2) 0 ${tr.verticalSpacing} 0;
|
|
1083
1073
|
|
|
1084
1074
|
border: none;
|
|
1085
1075
|
background: none;
|
|
@@ -1088,7 +1078,7 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1088
1078
|
}
|
|
1089
1079
|
|
|
1090
1080
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1091
|
-
color: ${
|
|
1081
|
+
color: ${tr.colorOnSurfaceDisabled};
|
|
1092
1082
|
}
|
|
1093
1083
|
|
|
1094
1084
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1096,32 +1086,32 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1096
1086
|
}
|
|
1097
1087
|
|
|
1098
1088
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1099
|
-
${
|
|
1100
|
-
${
|
|
1089
|
+
${$t(Jo.borderColor,tr.colorPrimary)};
|
|
1090
|
+
${$t(Jo.textColor,tr.colorPrimary)};
|
|
1101
1091
|
}
|
|
1102
1092
|
|
|
1103
1093
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1104
|
-
border-radius: ${
|
|
1094
|
+
border-radius: ${tr.borderRadiusS} ${tr.borderRadiusS} 0 0;
|
|
1105
1095
|
}
|
|
1106
1096
|
|
|
1107
1097
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1108
1098
|
align-self: stretch;
|
|
1109
|
-
margin-bottom: ${
|
|
1110
|
-
margin-top: calc(${
|
|
1099
|
+
margin-bottom: ${tr.verticalSpacing};
|
|
1100
|
+
margin-top: calc(${tr.labelSize} + 2 * ${tr.verticalSpacing});
|
|
1111
1101
|
}
|
|
1112
1102
|
|
|
1113
1103
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1114
|
-
border-radius: ${
|
|
1104
|
+
border-radius: ${tr.borderRadiusS};
|
|
1115
1105
|
}
|
|
1116
1106
|
|
|
1117
1107
|
.ft-text-area--helper-text {
|
|
1118
|
-
padding: 0 12px 0 ${
|
|
1119
|
-
color: ${
|
|
1108
|
+
padding: 0 12px 0 ${tr.horizontalSpacing};
|
|
1109
|
+
color: ${tr.helperColor};
|
|
1120
1110
|
}
|
|
1121
1111
|
|
|
1122
1112
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1123
1113
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1124
|
-
color: ${
|
|
1114
|
+
color: ${tr.colorError};
|
|
1125
1115
|
}
|
|
1126
1116
|
|
|
1127
1117
|
ft-resizer {
|
|
@@ -1129,13 +1119,13 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1129
1119
|
right: 0;
|
|
1130
1120
|
bottom: 0;
|
|
1131
1121
|
}
|
|
1132
|
-
`;var
|
|
1122
|
+
`;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 Nt{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 Q`
|
|
1133
1123
|
<style>
|
|
1134
1124
|
.ft-text-area--main-panel {
|
|
1135
|
-
height: calc(4 * ${
|
|
1125
|
+
height: calc(4 * ${tr.verticalSpacing} + ${tr.labelSize} + ${tr.fontSize} + ${this.height}px);
|
|
1136
1126
|
}
|
|
1137
1127
|
</style>
|
|
1138
|
-
<div class="${
|
|
1128
|
+
<div class="${Mo(t)}">
|
|
1139
1129
|
<div class="ft-text-area--main-panel">
|
|
1140
1130
|
<ft-input-label text="${this.label}"
|
|
1141
1131
|
?disabled=${this.disabled}
|
|
@@ -1145,7 +1135,7 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1145
1135
|
></ft-input-label>
|
|
1146
1136
|
<div class="ft-text-area--input-panel"
|
|
1147
1137
|
aria-label="${this.label}">
|
|
1148
|
-
${this.outlined?null:
|
|
1138
|
+
${this.outlined?null:Q`
|
|
1149
1139
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1150
1140
|
`}
|
|
1151
1141
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1162,61 +1152,61 @@ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"clas
|
|
|
1162
1152
|
initialHeight="${this.height}"
|
|
1163
1153
|
cursor="ns-resize"></ft-resizer>
|
|
1164
1154
|
</div>
|
|
1165
|
-
${this.helper?
|
|
1155
|
+
${this.helper?Q`
|
|
1166
1156
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1167
1157
|
${this.helper}
|
|
1168
1158
|
</ft-typography>`:void 0}
|
|
1169
1159
|
</div>
|
|
1170
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}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)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1160
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}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)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}nr.elementDefinitions={"ft-input-label":Qo,"ft-resizer":Go,"ft-ripple":Ao,"ft-typography":ho},nr.styles=[An,er],ir([r({type:String})],nr.prototype,"label",void 0),ir([r({reflect:!0})],nr.prototype,"value",void 0),ir([r({type:String})],nr.prototype,"helper",void 0),ir([r({type:Boolean})],nr.prototype,"outlined",void 0),ir([r({type:Boolean})],nr.prototype,"disabled",void 0),ir([r({type:Boolean})],nr.prototype,"error",void 0),ir([r({type:Number,reflect:!0})],nr.prototype,"height",void 0),ir([l("textarea")],nr.prototype,"textarea",void 0),ir([s()],nr.prototype,"focused",void 0),f("ft-text-area")(nr);
|
|
1171
1161
|
/**
|
|
1172
1162
|
* @license
|
|
1173
1163
|
* Copyright 2020 Google LLC
|
|
1174
1164
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1175
1165
|
*/
|
|
1176
|
-
const{I:
|
|
1166
|
+
const{I:or}=vt,rr=()=>document.createComment(""),sr=(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(rr(),r),n=o.insertBefore(rr(),r);i=new or(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},ar=(t,e,i=t)=>(t._$AI(e,i),t),lr={},cr=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}},ur=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},hr=vo(class extends bo{constructor(t){if(super(t),t.type!==po)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 u,h,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]=ar(r[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=ar(r[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=ar(r[f],s[v]),sr(t,c[v+1],r[f]),f++,v--;else if(l[d]===a[p])c[p]=ar(r[d],s[p]),sr(t,r[f],r[d]),d--,p++;else if(void 0===u&&(u=ur(a,p,v),h=ur(l,f,d)),u.has(l[f]))if(u.has(l[d])){const e=h.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=sr(t,r[f]);ar(e,s[p]),c[p]=e}else c[p]=ar(i,s[p]),sr(t,r[f],i),r[e]=null;p++}else cr(r[d]),d--;else cr(r[f]),f++;for(;p<=v;){const e=sr(t,c[v+1]);ar(e,s[p]),c[p++]=e}for(;f<=d;){const t=r[f++];null!==t&&cr(t)}return this.ht=a,((t,e=lr)=>{t._$AH=e})(t,c),tt}});
|
|
1177
1167
|
/**
|
|
1178
1168
|
* @license
|
|
1179
1169
|
* Copyright 2017 Google LLC
|
|
1180
1170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1181
|
-
*/class
|
|
1171
|
+
*/class fr extends Nt{render(){return Q`
|
|
1182
1172
|
<div class="ft-loader">
|
|
1183
1173
|
<div></div>
|
|
1184
1174
|
<div></div>
|
|
1185
1175
|
<div></div>
|
|
1186
1176
|
<div></div>
|
|
1187
1177
|
</div>
|
|
1188
|
-
`}}
|
|
1178
|
+
`}}fr.styles=Wn,f("ft-loader")(fr);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 Nt{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(Q`
|
|
1189
1179
|
<button part="button"
|
|
1190
|
-
class="${
|
|
1180
|
+
class="${Mo(t)}"
|
|
1191
1181
|
aria-label="${this.getLabel()}"
|
|
1192
1182
|
?disabled=${this.isDisabled()}>
|
|
1193
1183
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1194
1184
|
<ft-typography part="label"
|
|
1195
1185
|
variant="button"
|
|
1196
1186
|
element="span"
|
|
1197
|
-
class="ft-button--label ${
|
|
1187
|
+
class="ft-button--label ${Ii?"ft-safari-ellipsis-fix":""}"
|
|
1198
1188
|
?hidden=${!this.hasTextContent()}>
|
|
1199
1189
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1200
1190
|
</ft-typography>
|
|
1201
1191
|
${this.resolveIcon()}
|
|
1202
1192
|
</button>
|
|
1203
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1193
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Q`
|
|
1204
1194
|
<ft-tooltip part="tooltip"
|
|
1205
1195
|
text="${this.getLabel()}"
|
|
1206
1196
|
position="${this.tooltipPosition}">
|
|
1207
1197
|
${t}
|
|
1208
1198
|
</ft-tooltip>
|
|
1209
|
-
`:t}resolveIcon(){return this.loading?
|
|
1210
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1211
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
1212
|
-
`,
|
|
1213
|
-
`,
|
|
1199
|
+
`:t}resolveIcon(){return this.loading?Q`
|
|
1200
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Q`
|
|
1201
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}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}}pr.elementDefinitions={"ft-ripple":Ao,"ft-tooltip":Io,"ft-typography":ho,"ft-icon":So,"ft-loader":fr},pr.styles=[Mt,to],dr([r({type:String,reflect:!0})],pr.prototype,"role",void 0),dr([r({type:Boolean})],pr.prototype,"primary",void 0),dr([r({type:Boolean})],pr.prototype,"outlined",void 0),dr([r({type:Boolean})],pr.prototype,"disabled",void 0),dr([r({type:Boolean})],pr.prototype,"dense",void 0),dr([r({type:Boolean})],pr.prototype,"round",void 0),dr([r()],pr.prototype,"label",void 0),dr([r()],pr.prototype,"icon",void 0),dr([r()],pr.prototype,"iconVariant",void 0),dr([r({type:Boolean})],pr.prototype,"trailingIcon",void 0),dr([r({type:Boolean})],pr.prototype,"loading",void 0),dr([r()],pr.prototype,"tooltipPosition",void 0),dr([r({type:Boolean})],pr.prototype,"hideTooltip",void 0),dr([r({type:Boolean})],pr.prototype,"forceTooltip",void 0),dr([l(".ft-button")],pr.prototype,"button",void 0),dr([l(".ft-button--label slot")],pr.prototype,"slottedContent",void 0),f("ft-button")(pr);const vr=x`
|
|
1202
|
+
`,br=x`
|
|
1203
|
+
`,yr=Ei.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 gr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=yr.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?gr.build(t):null!==(e=gr.API)&&void 0!==e?e:gr.API=gr.build()}static await(t){return new Promise((e=>{let i=gr.get(t);if(i)e(i);else{const n=yr.subscribe((()=>{i=gr.get(t),i&&(n(),e(i))}))}}))}}var mr;const xr=Symbol("clearAfterUnitTest");class wr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=yr.getState().uiLocale,yr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=yr.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};h(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 Tt(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})))}}mr=xr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new wr((async(t,e)=>(await gr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new wr((async(t,e)=>(await gr.await()).getCustomMessageContext(t,e))));const $r=window.FluidTopicsI18nService,Sr=window.FluidTopicsCustomI18nService;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 Nt{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=()=>gr.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return Q`
|
|
1214
1204
|
<slot></slot>
|
|
1215
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
1205
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&yr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&yr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&yr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&yr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&yr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&yr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&yr.actions.setSession(this.session),t.has("availableUiLocales")&&yr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>$r.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()))))}}Or.elementDefinitions={},Or.styles=br,kr([r()],Or.prototype,"baseUrl",void 0),kr([r()],Or.prototype,"apiIntegrationIdentifier",void 0),kr([r()],Or.prototype,"uiLocale",void 0),kr([d([])],Or.prototype,"availableUiLocales",void 0),kr([r({type:Boolean})],Or.prototype,"editorMode",void 0),kr([r({type:Boolean})],Or.prototype,"noCustom",void 0),kr([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Or.prototype,"noCustomComponent",void 0),kr([r({type:Boolean})],Or.prototype,"withManualResources",void 0),kr([d([])],Or.prototype,"messageContexts",void 0),kr([d(void 0)],Or.prototype,"session",void 0),kr([r({type:Object})],Or.prototype,"apiProvider",void 0),f("ft-app-context")(Or);var _r=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 Cr=Symbol("i18nProperties"),Er=Symbol("i18nUnsubs");function jr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Sr:$r}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[Cr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[Cr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Cr]&&new Set([...this[Cr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Er].has(t)||this[Er].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[Er].forEach((t=>t())),this[Er].clear()}}return e=Er,_r([r({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Rr extends(jr(Nt)){}class Nr extends(jr(Ci)){}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 Mr extends Nr{constructor(){super(),this.editorMode=!1,this.addStore(yr)}render(){return this.key&&this.context?Q`
|
|
1216
1206
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
1217
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1207
|
+
`:this.editorMode?"Select a context and a label key.":et}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Mr.elementDefinitions={},Mr.styles=vr,Ir([ki()],Mr.prototype,"editorMode",void 0),Ir([r()],Mr.prototype,"context",void 0),Ir([r()],Mr.prototype,"key",void 0),Ir([d([])],Mr.prototype,"args",void 0),Ir([r()],Mr.prototype,"defaultMessage",void 0);class Tr{static build(t){return new Tr(t)}static fromGwt(t){return new Tr(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)=>$r.resolveMessage(this.name,e,...t)})}}const Ar=t=>(e,i)=>{var n,o;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(n=t.key)&&void 0!==n?n:i};e[Cr]=null!==(o=e[Cr])&&void 0!==o?o:new Map,e[Cr].set(i,r)};f("ft-i18n")(Mr);const Ur=Tr.build("integratedFeedbackComponent"),zr={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?",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"},Fr=Tr.build("inDesignerFeedbackComponent"),Pr={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."};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 Br extends Rr{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,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(Ur,zr),this.addI18nContext(Fr,Pr)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("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?Q`
|
|
1218
1208
|
<div class="ft-reader-feedback">
|
|
1219
|
-
${this.hideTitle?Q
|
|
1209
|
+
${this.hideTitle?et:Q`
|
|
1220
1210
|
<ft-typography variant="title" part="main-title">
|
|
1221
1211
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1222
1212
|
</ft-typography>
|
|
@@ -1224,7 +1214,7 @@ const{I:Fn}=ut,Pn=()=>document.createComment(""),Dn=(t,e,i)=>{var o;const n=t._$
|
|
|
1224
1214
|
${this.renderRatingSection()}
|
|
1225
1215
|
${this.renderFeedbackSection()}
|
|
1226
1216
|
</div>
|
|
1227
|
-
`:
|
|
1217
|
+
`:et}renderRatingSection(){return this.canAccessRating?Q`
|
|
1228
1218
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1229
1219
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1230
1220
|
${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1234,79 +1224,79 @@ const{I:Fn}=ut,Pn=()=>document.createComment(""),Dn=(t,e,i)=>{var o;const n=t._$
|
|
|
1234
1224
|
${this.renderRatingDate()}
|
|
1235
1225
|
</ft-typography>
|
|
1236
1226
|
</div>
|
|
1237
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1227
|
+
`:this.placeholderInEditor(this.userHasRatingRole?Fr.messages.ratingNotConfigured():Fr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ur.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ur.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ur.messages.ratedToday():Ur.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return Q`
|
|
1238
1228
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1239
|
-
${
|
|
1240
|
-
<ft-button round part="rating-stars-${
|
|
1241
|
-
label="${
|
|
1229
|
+
${hr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return Q`
|
|
1230
|
+
<ft-button round part="rating-stars-${n}"
|
|
1231
|
+
label="${Ur.messages.starsRating(n)}"
|
|
1242
1232
|
tooltipPosition="top"
|
|
1243
1233
|
.iconVariant=${this.iconVariant}
|
|
1244
1234
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
1245
1235
|
class="ft-reader-feedback--${i?"active":"inactive"}"
|
|
1246
|
-
@click=${()=>this.rate(this.ratingValue===
|
|
1236
|
+
@click=${()=>this.rate(this.ratingValue===n?void 0:n)}
|
|
1247
1237
|
></ft-button>
|
|
1248
1238
|
`}))}
|
|
1249
1239
|
</div>
|
|
1250
|
-
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return
|
|
1240
|
+
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return Q`
|
|
1251
1241
|
<ft-switch @change=${t=>this.rate(t.detail)} part="rating rating-like">
|
|
1252
1242
|
<ft-switch-option .value=${1}
|
|
1253
1243
|
?selected=${e}
|
|
1254
1244
|
.iconVariant=${this.iconVariant}
|
|
1255
1245
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1256
|
-
${
|
|
1246
|
+
${Ur.messages.like()}
|
|
1257
1247
|
</ft-switch-option>
|
|
1258
1248
|
<ft-switch-option .value=${0}
|
|
1259
1249
|
?selected=${t}
|
|
1260
1250
|
.iconVariant=${this.iconVariant}
|
|
1261
1251
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1262
|
-
${
|
|
1252
|
+
${Ur.messages.dislike()}
|
|
1263
1253
|
</ft-switch-option>
|
|
1264
1254
|
</ft-switch>
|
|
1265
|
-
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,
|
|
1255
|
+
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return Q`
|
|
1266
1256
|
<ft-switch @change=${t=>this.rate(t.detail)}
|
|
1267
1257
|
part="rating rating-dichotomous">
|
|
1268
1258
|
<ft-switch-option .value=${1}
|
|
1269
|
-
?selected=${
|
|
1270
|
-
${
|
|
1259
|
+
?selected=${n}>
|
|
1260
|
+
${Ur.messages.dichotomousYes()}
|
|
1271
1261
|
</ft-switch-option>
|
|
1272
1262
|
<ft-switch-option .value=${0}
|
|
1273
1263
|
?selected=${i}>
|
|
1274
|
-
${
|
|
1264
|
+
${Ur.messages.dichotomousNo()}
|
|
1275
1265
|
</ft-switch-option>
|
|
1276
1266
|
</ft-switch>
|
|
1277
|
-
`}return
|
|
1267
|
+
`}return et}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=Q`
|
|
1278
1268
|
<ft-button primary
|
|
1279
1269
|
class="ft-reader-feedback--send-feedback"
|
|
1280
1270
|
?disabled=${!this.feedbackMessage}
|
|
1281
1271
|
@click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
|
|
1282
1272
|
part="send-feedback">
|
|
1283
|
-
${
|
|
1273
|
+
${Ur.messages.okButton()}
|
|
1284
1274
|
</ft-button>
|
|
1285
|
-
`;return t&&(e=
|
|
1275
|
+
`;return t&&(e=Q`
|
|
1286
1276
|
<a class="ft-reader-feedback--feedback-link" href="${t}">
|
|
1287
1277
|
${e}
|
|
1288
1278
|
</a>
|
|
1289
|
-
`),
|
|
1279
|
+
`),Q`
|
|
1290
1280
|
<div class="ft-reader-feedback--feedback" part="feedback-container">
|
|
1291
1281
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1292
1282
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1293
1283
|
</ft-typography>
|
|
1294
1284
|
<ft-text-area outlined
|
|
1295
1285
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1296
|
-
label="${
|
|
1286
|
+
label="${Ur.messages.feedbackInputLabel()}"
|
|
1297
1287
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1298
1288
|
></ft-text-area>
|
|
1299
1289
|
${e}
|
|
1300
1290
|
</div>
|
|
1301
|
-
`}return this.placeholderInEditor(
|
|
1291
|
+
`}return this.placeholderInEditor(Fr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?Q`
|
|
1302
1292
|
<div class="ft-reader-feedback--placeholder">
|
|
1303
1293
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1304
1294
|
<ft-tooltip position="left"
|
|
1305
|
-
text="${
|
|
1295
|
+
text="${Fr.messages.inDesignerOnlyNotice()}">
|
|
1306
1296
|
<ft-icon>INFO</ft-icon>
|
|
1307
1297
|
</ft-tooltip>
|
|
1308
1298
|
</div>
|
|
1309
|
-
`:
|
|
1299
|
+
`:et}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Br.elementDefinitions={"ft-button":pr,"ft-typography":ho,"ft-icon":So,"ft-tooltip":Io,"ft-switch":Wo,"ft-switch-option":Do,"ft-text-area":nr},Br.styles=no,Dr([r({type:Boolean})],Br.prototype,"editorMode",void 0),Dr([r({type:Boolean})],Br.prototype,"hideTitle",void 0),Dr([r({type:Boolean})],Br.prototype,"ratingAllowed",void 0),Dr([r({attribute:!1})],Br.prototype,"i18nProperties",void 0),Dr([r({attribute:!1})],Br.prototype,"ratingSummary",void 0),Dr([r({attribute:!1})],Br.prototype,"user",void 0),Dr([l(".ft-reader-feedback--feedback-input")],Br.prototype,"feedbackInput",void 0),Dr([s()],Br.prototype,"feedbackMessage",void 0),Dr([r()],Br.prototype,"iconVariant",void 0),Dr([r()],Br.prototype,"emptyStarIcon",void 0),Dr([r()],Br.prototype,"filledStarIcon",void 0),Dr([r()],Br.prototype,"emptyLikeIcon",void 0),Dr([r()],Br.prototype,"filledLikeIcon",void 0),Dr([r()],Br.prototype,"emptyDislikeIcon",void 0),Dr([r()],Br.prototype,"filledDislikeIcon",void 0),Dr([r()],Br.prototype,"feedbackMailLinkBuilder",void 0);const Lr=Tr.fromGwt("server");class Wr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=n.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),o=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Lr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${n}&body=${o}`}}var Hr=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 Kr extends(jr(Ui)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=wo.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 Wr,this.i18nProperties={feedbackMainTitle:Ur.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ur.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ur.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ur.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(yr)}render(){return null==this.map?et:Q`
|
|
1310
1300
|
<ft-reader-feedback
|
|
1311
1301
|
ratingAllowed
|
|
1312
1302
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1325,7 +1315,7 @@ const{I:Fn}=ut,Pn=()=>document.createComment(""),Dn=(t,e,i)=>{var o;const n=t._$
|
|
|
1325
1315
|
@rate=${this.rate}
|
|
1326
1316
|
@send-feedback=${this.sendFeedback}
|
|
1327
1317
|
></ft-reader-feedback>
|
|
1328
|
-
`}updated(t){var e,i,
|
|
1318
|
+
`}updated(t){var e,i,n;super.updated(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 kt({type:"error",message:Ur.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Fr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new kt({type:"info",message:Fr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new kt({type:"info",message:Ur.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new kt({type:"error",message:Ur.messages.feedbackFailure()}))}}}Kr.elementDefinitions={"ft-reader-feedback":Br},Hr([ki({store:yr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Kr.prototype,"user",void 0),Hr([ki({store:"reader"})],Kr.prototype,"map",void 0),Hr([ki({store:yr.name})],Kr.prototype,"editorMode",void 0),Hr([ki({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Kr.prototype,"configuration",void 0),Hr([s()],Kr.prototype,"ratingSummary",void 0),Hr([r({type:Boolean})],Kr.prototype,"hideTitle",void 0),Hr([r()],Kr.prototype,"iconVariant",void 0),Hr([r()],Kr.prototype,"emptyStarIcon",void 0),Hr([r()],Kr.prototype,"filledStarIcon",void 0),Hr([r()],Kr.prototype,"emptyLikeIcon",void 0),Hr([r()],Kr.prototype,"filledLikeIcon",void 0),Hr([r()],Kr.prototype,"emptyDislikeIcon",void 0),Hr([r()],Kr.prototype,"filledDislikeIcon",void 0),Hr([l("ft-reader-feedback")],Kr.prototype,"readerFeedback",void 0),Hr([Ar(Lr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Kr.prototype,"mailSubject",void 0);var Zr=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 Vr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const qr=Symbol("registerInterval");class Gr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[qr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[qr]):this.dispatchEvent(new Vr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=qr,Zr([s()],i.prototype,"tocNode",void 0),Zr([s()],i.prototype,"disableContextInteractions",void 0),i}(Ui)){}var Jr=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 Xr extends(jr(Gr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=wo.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 Wr,this.i18nProperties={feedbackMainTitle:Ur.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ur.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ur.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ur.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(yr)}render(){return null==this.map||null==this.tocNode?et:Q`
|
|
1329
1319
|
<ft-reader-feedback
|
|
1330
1320
|
.i18nProperties=${this.i18nProperties}
|
|
1331
1321
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1344,4 +1334,4 @@ const{I:Fn}=ut,Pn=()=>document.createComment(""),Dn=(t,e,i)=>{var o;const n=t._$
|
|
|
1344
1334
|
@rate=${this.rate}
|
|
1345
1335
|
@send-feedback=${this.sendFeedback}
|
|
1346
1336
|
></ft-reader-feedback>
|
|
1347
|
-
`}updated(t){var e,i,
|
|
1337
|
+
`}updated(t){var e,i,n;super.updated(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 kt({type:"error",message:Ur.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Fr.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)),this.dispatchEvent(new kt({type:"info",message:Ur.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Fr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new kt({type:"error",message:Ur.messages.feedbackFailure()}))}}}Xr.elementDefinitions={"ft-reader-feedback":Br},Jr([ki({store:yr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Xr.prototype,"user",void 0),Jr([ki({store:"reader"})],Xr.prototype,"map",void 0),Jr([ki({store:yr.name})],Xr.prototype,"editorMode",void 0),Jr([ki({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Xr.prototype,"configuration",void 0),Jr([s()],Xr.prototype,"ratingSummary",void 0),Jr([r({type:Boolean})],Xr.prototype,"hideTitle",void 0),Jr([r()],Xr.prototype,"iconVariant",void 0),Jr([r()],Xr.prototype,"emptyStarIcon",void 0),Jr([r()],Xr.prototype,"filledStarIcon",void 0),Jr([r()],Xr.prototype,"emptyLikeIcon",void 0),Jr([r()],Xr.prototype,"filledLikeIcon",void 0),Jr([r()],Xr.prototype,"emptyDislikeIcon",void 0),Jr([r()],Xr.prototype,"filledDislikeIcon",void 0),Jr([l("ft-reader-feedback")],Xr.prototype,"readerFeedback",void 0),Jr([Ar(Lr.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]})))],Xr.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")(Kr),f("ft-reader-topic-feedback")(Xr),t.FtReaderFeedbackCssVariables=io,t.FtReaderMapFeedback=Kr,t.FtReaderTopicFeedback=Xr,t.styles=no}({});
|