@fluid-topics/ft-text-area 1.0.57 → 1.0.59
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-text-area.d.ts +3 -1
- package/build/ft-text-area.js +4 -2
- package/build/ft-text-area.light.js +9 -9
- package/build/ft-text-area.min.js +161 -161
- package/package.json +5 -5
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,s=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(r,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},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)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,s=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(r,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},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)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ye){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -51,19 +51,19 @@ const p=window,h=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
|
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var g;const v=window,m=v.trustedTypes,w=m?m.emptyScript:"",$=v.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w: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}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};let E=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}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(b(t))}else void 0!==t&&e.push(b(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 y(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=k){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=r,this[r]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(v
|
|
60
|
+
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(g=v.reactiveElementVersions)&&void 0!==g?g:v.reactiveElementVersions=[]).push("1.6.1");const C=window,R=C.trustedTypes,z=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,F=`<${j}>`,D=document,A=()=>D.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,I=/>/g,W=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=D.createTreeWalker(D,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=_;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===_?"!--"===l[1]?n=T:void 0!==l[1]?n=I:void 0!==l[2]?(Z.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=W):void 0!==l[3]&&(n=W):n===W?">"===l[0]?(n=null!=r?r:_,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?W:'"'===l[3]?K:H):n===K||n===H?n=W:n===T||n===I?n=_:(n=W,r=void 0);const c=n===W&&t[e+1].startsWith("/>")?" ":"";s+=n===_?i+F:p>=0?(o.push(a),i.slice(0,p)+M+i.slice(p)+U+c):i+U+(-2===p?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,p]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(M)||e.startsWith(U)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+M).split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?nt:"@"===e[1]?at:ot})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Y.nextNode(),a.push({type:2,index:++r});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:r}),t+=U.length-1}r++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var r,s,n,a;if(e===J)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);Y.currentNode=r;let s=Y.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new it(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new lt(s,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=Y.nextNode(),n++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{constructor(t,e,i,o){var r;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),B(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new et(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}T(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new it(this.k(A()),this.k(A()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.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))}}class ot{constructor(t,e,i,o,r){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=tt(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=tt(this,o[i+n],e,n),a===J&&(a=this._$AH[n]),s||(s=!B(a)||a!==this._$AH[n]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=R?R.emptyScript:"";class nt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,r=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||r);r&&this.element.removeEventListener(this.name,this,o),s&&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)}}class lt{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){tt(this,t)}}const pt=C.litHtmlPolyfillSupport;null==pt||pt(Q,it),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.7.3");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var ht,ct;let ft=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new it(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(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 J}};ft.finalized=!0,ft._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),r=x`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>x`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=x`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>x`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=x`var(${u(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=>x`var(${u(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 xt(t,e){return u(`${t.name}: ${e}`)}const yt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class bt extends ft{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 y(i,t.elementStyles),i}}var vt,gt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const mt=Symbol("constructorPrototype"),wt=Symbol("constructorName"),$t=Symbol("exportpartsDebouncer");class Ot extends bt{constructor(){super(),this[vt]=new e(5),this[wt]=this.constructor.name,this[mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wt]&&Object.setPrototypeOf(this,this[mt])}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[$t].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,s,n;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 p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}vt=$t,gt([o()],Ot.prototype,"exportpartsPrefix",void 0),gt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({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)=>!a(t,e),...null!=e?e:{}})}([])],Ot.prototype,"exportpartsPrefixes",void 0),gt([o()],Ot.prototype,"customStylesheet",void 0);const St=x`
|
|
66
|
+
var ht,ct;let ft=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new it(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(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 J}};ft.finalized=!0,ft._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),r=x`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>x`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=x`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>x`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=x`var(${u(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=>x`var(${u(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 xt(t,e){return u(`${t.name}: ${e}`)}const yt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class bt extends ft{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 y(i,t.elementStyles),i}}var gt,vt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const mt=Symbol("constructorPrototype"),wt=Symbol("constructorName"),$t=Symbol("exportpartsDebouncer");class Ot extends bt{constructor(){super(),this[gt]=new e(5),this[wt]=this.constructor.name,this[mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wt]&&Object.setPrototypeOf(this,this[mt])}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[$t].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,s,n;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 p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}gt=$t,vt([o()],Ot.prototype,"exportpartsPrefix",void 0),vt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({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)=>!a(t,e),...null!=e?e:{}})}([])],Ot.prototype,"exportpartsPrefixes",void 0),vt([o()],Ot.prototype,"customStylesheet",void 0);const St=x`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -72,7 +72,7 @@ var ht,ct;let ft=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
72
72
|
-ms-user-select: none;
|
|
73
73
|
user-select: none;
|
|
74
74
|
}
|
|
75
|
-
`;
|
|
75
|
+
`;x`
|
|
76
76
|
.ft-word-wrap {
|
|
77
77
|
white-space: normal;
|
|
78
78
|
word-wrap: break-word;
|
|
@@ -95,78 +95,78 @@ var ht,ct;let ft=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
95
95
|
display: inline-block;
|
|
96
96
|
width: 0;
|
|
97
97
|
}
|
|
98
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
98
|
+
`,window.ftReduxStores||(window.ftReduxStores={});const kt=Symbol("elementInternals");var Et,Nt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Nt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===Nt||Nt.toString());
|
|
99
99
|
/**
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright 2017 Google LLC
|
|
102
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
103
|
*/
|
|
104
|
-
const
|
|
104
|
+
const Ct=1,Rt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Mt{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)}}
|
|
105
105
|
/**
|
|
106
106
|
* @license
|
|
107
107
|
* Copyright 2018 Google LLC
|
|
108
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
-
*/const
|
|
109
|
+
*/const Ut=zt(class extends Mt{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return J}}),jt=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===jt)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:jt}),At=new Map,Bt=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],r=Ft(s));)l+=r+e[++p],h=!0;p!==o&&a.push(s),n.push(l),p++}if(p===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=At.get(t))&&(n.raw=n,At.set(t,e=n)),i=a}return t(e,...i)})(V);
|
|
110
110
|
/**
|
|
111
111
|
* @license
|
|
112
112
|
* Copyright 2020 Google LLC
|
|
113
113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
-
*/var
|
|
114
|
+
*/var Lt;!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"}(Lt||(Lt={}));const Pt=ut.extend("--ft-typography-font-family",yt.titleFont),_t=ut.extend("--ft-typography-font-family",yt.contentFont),Tt={fontFamily:_t,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},It=ut.extend("--ft-typography-title-font-family",Pt),Wt=ut.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),Ht=ut.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),Kt=ut.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),Zt=ut.extend("--ft-typography-title-line-height",Tt.lineHeight,"1.2"),Vt=ut.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),Jt=ut.extend("--ft-typography-title-dense-font-family",Pt),qt=ut.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Xt=ut.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),Yt=ut.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),Gt=ut.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"1.7"),Qt=ut.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),te=ut.extend("--ft-typography-subtitle1-font-family",_t),ee=ut.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),ie=ut.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),oe=ut.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),re=ut.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"1.5"),se=ut.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),ne=ut.extend("--ft-typography-subtitle2-font-family",_t),ae=ut.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),le=ut.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),pe=ut.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"1.7"),ce=ut.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),fe={fontFamily:ut.extend("--ft-typography-body1-font-family",_t),fontSize:ut.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",Tt.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit")},de=ut.extend("--ft-typography-body2-font-family",_t),ue=ut.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),ye=ut.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",Tt.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit"),ve={fontFamily:ut.extend("--ft-typography-caption-font-family",_t),fontSize:ut.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",Tt.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit")},me=ut.extend("--ft-typography-breadcrumb-font-family",_t),we=ut.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),$e=ut.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Oe=ut.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Se=ut.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"1.6"),ke=ut.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),Ee=ut.extend("--ft-typography-overline-font-family",_t),Ne=ut.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),Ce=ut.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),ze=ut.extend("--ft-typography-overline-line-height",Tt.lineHeight,"1.6"),Me=ut.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),Ue=ut.extend("--ft-typography-button-font-family",_t),je=ut.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),Fe=ut.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),De=ut.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),Ae=ut.extend("--ft-typography-button-line-height",Tt.lineHeight,"1.15"),Be=ut.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase"),Le=x`
|
|
115
115
|
.ft-typography--title {
|
|
116
|
-
font-family: ${
|
|
117
|
-
font-size: ${
|
|
118
|
-
font-weight: ${
|
|
119
|
-
letter-spacing: ${
|
|
120
|
-
line-height: ${
|
|
121
|
-
text-transform: ${
|
|
122
|
-
}
|
|
123
|
-
`,Le=x`
|
|
124
|
-
.ft-typography--title-dense {
|
|
125
|
-
font-family: ${Vt};
|
|
126
|
-
font-size: ${Jt};
|
|
127
|
-
font-weight: ${qt};
|
|
128
|
-
letter-spacing: ${Xt};
|
|
129
|
-
line-height: ${Yt};
|
|
130
|
-
text-transform: ${Gt};
|
|
116
|
+
font-family: ${It};
|
|
117
|
+
font-size: ${Wt};
|
|
118
|
+
font-weight: ${Ht};
|
|
119
|
+
letter-spacing: ${Kt};
|
|
120
|
+
line-height: ${Zt};
|
|
121
|
+
text-transform: ${Vt};
|
|
131
122
|
}
|
|
132
123
|
`,Pe=x`
|
|
133
|
-
.ft-typography--
|
|
134
|
-
font-family: ${
|
|
135
|
-
font-size: ${
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
124
|
+
.ft-typography--title-dense {
|
|
125
|
+
font-family: ${Jt};
|
|
126
|
+
font-size: ${qt};
|
|
127
|
+
font-weight: ${Xt};
|
|
128
|
+
letter-spacing: ${Yt};
|
|
129
|
+
line-height: ${Gt};
|
|
130
|
+
text-transform: ${Qt};
|
|
140
131
|
}
|
|
141
132
|
`,_e=x`
|
|
133
|
+
.ft-typography--subtitle1 {
|
|
134
|
+
font-family: ${te};
|
|
135
|
+
font-size: ${ee};
|
|
136
|
+
font-weight: ${ie};
|
|
137
|
+
letter-spacing: ${oe};
|
|
138
|
+
line-height: ${re};
|
|
139
|
+
text-transform: ${se};
|
|
140
|
+
}
|
|
141
|
+
`,Te=x`
|
|
142
142
|
.ft-typography--subtitle2 {
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
143
|
+
font-family: ${ne};
|
|
144
|
+
font-size: ${ae};
|
|
145
|
+
font-weight: ${le};
|
|
146
|
+
letter-spacing: ${pe};
|
|
147
|
+
line-height: ${he};
|
|
148
|
+
text-transform: ${ce};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
`,
|
|
151
|
+
`,Ie=x`
|
|
152
152
|
.ft-typography--body1 {
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
155
|
-
font-weight: ${
|
|
156
|
-
letter-spacing: ${
|
|
157
|
-
line-height: ${
|
|
158
|
-
text-transform: ${
|
|
153
|
+
font-family: ${fe.fontFamily};
|
|
154
|
+
font-size: ${fe.fontSize};
|
|
155
|
+
font-weight: ${fe.fontWeight};
|
|
156
|
+
letter-spacing: ${fe.letterSpacing};
|
|
157
|
+
line-height: ${fe.lineHeight};
|
|
158
|
+
text-transform: ${fe.textTransform};
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,We=x`
|
|
161
161
|
.ft-typography--body2 {
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
165
|
-
letter-spacing: ${
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
162
|
+
font-family: ${de};
|
|
163
|
+
font-size: ${ue};
|
|
164
|
+
font-weight: ${xe};
|
|
165
|
+
letter-spacing: ${ye};
|
|
166
|
+
line-height: ${be};
|
|
167
|
+
text-transform: ${ge};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,He=x`
|
|
170
170
|
.ft-typography--caption {
|
|
171
171
|
font-family: ${ve.fontFamily};
|
|
172
172
|
font-size: ${ve.fontSize};
|
|
@@ -175,51 +175,51 @@ const Nt=1,Ct=2,Rt=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
175
175
|
line-height: ${ve.lineHeight};
|
|
176
176
|
text-transform: ${ve.textTransform};
|
|
177
177
|
}
|
|
178
|
-
`,He=x`
|
|
179
|
-
.ft-typography--breadcrumb {
|
|
180
|
-
font-family: ${ge};
|
|
181
|
-
font-size: ${me};
|
|
182
|
-
font-weight: ${we};
|
|
183
|
-
letter-spacing: ${$e};
|
|
184
|
-
line-height: ${Oe};
|
|
185
|
-
text-transform: ${Se};
|
|
186
|
-
}
|
|
187
178
|
`,Ke=x`
|
|
188
|
-
.ft-typography--
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
179
|
+
.ft-typography--breadcrumb {
|
|
180
|
+
font-family: ${me};
|
|
181
|
+
font-size: ${we};
|
|
182
|
+
font-weight: ${$e};
|
|
183
|
+
letter-spacing: ${Oe};
|
|
184
|
+
line-height: ${Se};
|
|
185
|
+
text-transform: ${ke};
|
|
195
186
|
}
|
|
196
187
|
`,Ze=x`
|
|
197
|
-
.ft-typography--
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
188
|
+
.ft-typography--overline {
|
|
189
|
+
font-family: ${Ee};
|
|
190
|
+
font-size: ${Ne};
|
|
191
|
+
font-weight: ${Ce};
|
|
192
|
+
letter-spacing: ${Re};
|
|
193
|
+
line-height: ${ze};
|
|
194
|
+
text-transform: ${Me};
|
|
204
195
|
}
|
|
205
196
|
`,Ve=x`
|
|
197
|
+
.ft-typography--button {
|
|
198
|
+
font-family: ${Ue};
|
|
199
|
+
font-size: ${je};
|
|
200
|
+
font-weight: ${Fe};
|
|
201
|
+
letter-spacing: ${De};
|
|
202
|
+
line-height: ${Ae};
|
|
203
|
+
text-transform: ${Be};
|
|
204
|
+
}
|
|
205
|
+
`,Je=x`
|
|
206
206
|
.ft-typography {
|
|
207
207
|
vertical-align: inherit;
|
|
208
208
|
}
|
|
209
|
-
`;var
|
|
210
|
-
<${
|
|
209
|
+
`;var qe=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Xe extends Ot{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Bt`
|
|
210
|
+
<${Dt(this.element)}
|
|
211
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
212
|
<slot></slot>
|
|
213
|
-
</${
|
|
214
|
-
`:
|
|
213
|
+
</${Dt(this.element)}>
|
|
214
|
+
`:Bt`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}
|
|
216
|
+
`}}Xe.styles=[Le,Pe,_e,Te,Ie,We,He,Ke,Ze,Ve,Je],qe([o()],Xe.prototype,"element",void 0),qe([o()],Xe.prototype,"variant",void 0),l("ft-typography")(Xe);
|
|
217
217
|
/**
|
|
218
218
|
* @license
|
|
219
219
|
* Copyright 2017 Google LLC
|
|
220
220
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
221
221
|
*/
|
|
222
|
-
class
|
|
222
|
+
class Ye extends Mt{constructor(t){if(super(t),this.et=q,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===J)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:[]}}}Ye.directiveName="unsafeHTML",Ye.resultType=1;const Ge=zt(Ye);var Qe,ti;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Qe||(Qe={})),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=""}(ti||(ti={})),new Map([...["abw"].map((t=>[t,ti.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,ti.AUDIO])),...["avi"].map((t=>[t,ti.AVI])),...["chm","xhs"].map((t=>[t,ti.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,ti.CODE])),...["csv"].map((t=>[t,ti.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ti.DITA])),...["epub"].map((t=>[t,ti.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ti.EXCEL])),...["flac"].map((t=>[t,ti.FLAC])),...["gif"].map((t=>[t,ti.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ti.GZIP])),...["html","htm","xhtml"].map((t=>[t,ti.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,ti.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ti.JPEG])),...["json"].map((t=>[t,ti.JSON])),...["m4a","m4p"].map((t=>[t,ti.M4A])),...["mov","qt"].map((t=>[t,ti.MOV])),...["mp3"].map((t=>[t,ti.MP3])),...["mp4","m4v"].map((t=>[t,ti.MP4])),...["ogg","oga"].map((t=>[t,ti.OGG])),...["pdf","ps"].map((t=>[t,ti.PDF])),...["png"].map((t=>[t,ti.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ti.POWERPOINT])),...["rar"].map((t=>[t,ti.RAR])),...["stp"].map((t=>[t,ti.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ti.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,ti.VIDEO])),...["wav"].map((t=>[t,ti.WAV])),...["wma"].map((t=>[t,ti.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ti.WORD])),...["xml","xsl","rdf"].map((t=>[t,ti.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ti.YAML])),...["zip"].map((t=>[t,ti.ZIP]))]);const ei=ut.create("--ft-icon-font-size","SIZE","24px"),ii=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),oi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ri=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),si=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),ni=x`
|
|
223
223
|
:host, i.ft-icon {
|
|
224
224
|
display: inline-flex;
|
|
225
225
|
align-items: center;
|
|
@@ -228,14 +228,14 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
:host {
|
|
231
|
-
width: ${
|
|
232
|
-
height: ${
|
|
231
|
+
width: ${ei};
|
|
232
|
+
height: ${ei};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
i.ft-icon {
|
|
236
236
|
width: 100%;
|
|
237
237
|
height: 100%;
|
|
238
|
-
font-size: ${
|
|
238
|
+
font-size: ${ei};
|
|
239
239
|
line-height: 1;
|
|
240
240
|
font-weight: normal;
|
|
241
241
|
text-transform: none;
|
|
@@ -246,33 +246,33 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
246
246
|
text-rendering: auto;
|
|
247
247
|
-webkit-font-smoothing: antialiased;
|
|
248
248
|
-moz-osx-font-smoothing: grayscale;
|
|
249
|
-
vertical-align: ${
|
|
249
|
+
vertical-align: ${si};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
i.ft-icon.ft-icon--fluid-topics {
|
|
253
|
-
font-family: ${
|
|
253
|
+
font-family: ${ii}, ft-icons, fticons, sans-serif;
|
|
254
254
|
|
|
255
255
|
/* Ugly fix because font is broken */
|
|
256
|
-
font-size: calc(0.75 * ${
|
|
257
|
-
line-height: ${
|
|
256
|
+
font-size: calc(0.75 * ${ei});
|
|
257
|
+
line-height: ${ei};
|
|
258
258
|
position: relative;
|
|
259
259
|
top: -4%;
|
|
260
260
|
justify-content: center;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.ft-icon--file-format {
|
|
264
|
-
font-family: ${
|
|
264
|
+
font-family: ${oi}, ft-mime, sans-serif;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.ft-icon--material {
|
|
268
|
-
font-family: ${
|
|
268
|
+
font-family: ${ri}, "Material Icons", sans-serif;
|
|
269
269
|
}
|
|
270
|
-
`;var
|
|
270
|
+
`;var ai;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ai||(ai={}));var li=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class pi extends Ot{constructor(){super(...arguments),this.resolvedIcon=q}render(){const t=this.variant&&Object.values(ai).includes(this.variant)?this.variant:ai.fluid_topics,e=t!==ai.material||!!this.value;return V`
|
|
271
271
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
272
|
-
${
|
|
272
|
+
${Ge(this.resolvedIcon)}
|
|
273
273
|
<slot ?hidden=${e}></slot>
|
|
274
274
|
</i>
|
|
275
|
-
`}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
|
|
275
|
+
`}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 ai.file_format:this.resolvedIcon=null!==(t=ti[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ai.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Qe[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}pi.elementDefinitions={},pi.styles=ni,li([o()],pi.prototype,"variant",void 0),li([o()],pi.prototype,"value",void 0),li([r()],pi.prototype,"resolvedIcon",void 0),li([s("slot")],pi.prototype,"slottedContent",void 0),l("ft-icon")(pi);const hi=ut.external(yt.colorOutline,"Design system"),ci=ut.external(yt.colorOnSurfaceMedium,"Design system"),fi=x`
|
|
276
276
|
:host {
|
|
277
277
|
display: block;
|
|
278
278
|
}
|
|
@@ -283,14 +283,14 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
283
283
|
|
|
284
284
|
ft-icon {
|
|
285
285
|
transform: rotate(-45deg);
|
|
286
|
-
color: ${
|
|
286
|
+
color: ${hi};
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
.ft-resizer--dragging ft-icon,
|
|
290
290
|
.ft-resizer:hover ft-icon {
|
|
291
|
-
color: ${
|
|
291
|
+
color: ${ci};
|
|
292
292
|
}
|
|
293
|
-
`;var
|
|
293
|
+
`;var di=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class ui extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class xi extends Ot{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=ai.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 V`
|
|
294
294
|
<style>
|
|
295
295
|
.ft-resizer {
|
|
296
296
|
cursor: ${u(this.cursor)}
|
|
@@ -301,25 +301,25 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
301
301
|
@touchstart=${this.initDragFromTouch}>
|
|
302
302
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
303
303
|
</div>
|
|
304
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
304
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ui(i,o))}}xi.elementDefinitions={"ft-icon":pi},xi.styles=[St,fi],di([o({type:Number})],xi.prototype,"initialWidth",void 0),di([o({type:Number})],xi.prototype,"initialHeight",void 0),di([o()],xi.prototype,"icon",void 0),di([o()],xi.prototype,"iconVariant",void 0),di([o()],xi.prototype,"cursor",void 0),di([r()],xi.prototype,"dragging",void 0),l("ft-resizer")(xi);const yi={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:ut.create("--ft-input-label-max-width","SIZE","100%"),borderColor:ut.extend("--ft-input-label-border-color",yt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:ut.external(yt.colorSurface,"Design system"),borderRadiusS:ut.external(yt.borderRadiusS,"Design system"),colorError:ut.external(yt.colorError,"Design system")},bi=x`
|
|
305
305
|
.ft-input-label {
|
|
306
306
|
position: absolute;
|
|
307
307
|
inset: 0;
|
|
308
308
|
display: flex;
|
|
309
|
-
background-color: ${
|
|
310
|
-
border-radius: ${
|
|
309
|
+
background-color: ${yi.colorSurface};
|
|
310
|
+
border-radius: ${yi.borderRadiusS} ${yi.borderRadiusS} 0 0;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-input-label--outlined {
|
|
314
|
-
border-radius: ${
|
|
314
|
+
border-radius: ${yi.borderRadiusS};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-input-label {
|
|
318
|
-
border-color: ${
|
|
318
|
+
border-color: ${yi.borderColor};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-input-label.ft-input-label--in-error {
|
|
322
|
-
border-color: ${
|
|
322
|
+
border-color: ${yi.colorError}
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-input-label:before,
|
|
@@ -332,7 +332,7 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
.ft-input-label:before {
|
|
335
|
-
width: calc(${
|
|
335
|
+
width: calc(${yi.horizontalSpacing} - 4px);
|
|
336
336
|
flex-shrink: 0;
|
|
337
337
|
}
|
|
338
338
|
|
|
@@ -348,20 +348,20 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
348
348
|
border-bottom-width: 1px;
|
|
349
349
|
border-bottom-style: solid;
|
|
350
350
|
border-color: inherit;
|
|
351
|
-
color: ${
|
|
351
|
+
color: ${yi.textColor};
|
|
352
352
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
353
|
-
max-width: calc(${
|
|
353
|
+
max-width: calc(${yi.labelMaxWidth} - 2 * (${yi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
354
354
|
text-overflow: ellipsis;
|
|
355
|
-
${xt(ve.fontSize,
|
|
356
|
-
${xt(ve.lineHeight,
|
|
355
|
+
${xt(ve.fontSize,yi.fontSize)};
|
|
356
|
+
${xt(ve.lineHeight,yi.fontSize)};
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.ft-input-label--in-error .ft-input-label--text {
|
|
360
|
-
color: ${
|
|
360
|
+
color: ${yi.colorError}
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.ft-input-label--disabled .ft-input-label--text {
|
|
364
|
-
color: ${
|
|
364
|
+
color: ${yi.disabledTextColor};
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.ft-input-label--hidden-text {
|
|
@@ -378,19 +378,19 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
378
378
|
overflow: hidden;
|
|
379
379
|
white-space: nowrap;
|
|
380
380
|
text-overflow: ellipsis;
|
|
381
|
-
padding: ${
|
|
382
|
-
margin: calc(${
|
|
381
|
+
padding: ${yi.verticalSpacing} 4px;
|
|
382
|
+
margin: calc(${yi.verticalSpacing} * -1) 0;
|
|
383
383
|
max-width: 100%;
|
|
384
384
|
box-sizing: border-box;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
.ft-input-label--raised .ft-input-label--text {
|
|
388
|
-
${xt(ve.fontSize,
|
|
389
|
-
${xt(ve.lineHeight,
|
|
388
|
+
${xt(ve.fontSize,yi.raisedFontSize)};
|
|
389
|
+
${xt(ve.lineHeight,yi.raisedFontSize)};
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
393
|
-
top: ${
|
|
393
|
+
top: ${yi.verticalSpacing};
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -403,28 +403,28 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
403
403
|
.ft-input-label--outlined:before {
|
|
404
404
|
border-left-width: 1px;
|
|
405
405
|
border-left-style: solid;
|
|
406
|
-
border-radius: ${
|
|
406
|
+
border-radius: ${yi.borderRadiusS} 0 0 ${yi.borderRadiusS};
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.ft-input-label--outlined:after {
|
|
410
410
|
border-right-width: 1px;
|
|
411
411
|
border-right-style: solid;
|
|
412
|
-
border-radius: 0 ${
|
|
412
|
+
border-radius: 0 ${yi.borderRadiusS} ${yi.borderRadiusS} 0;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
416
416
|
padding: 2px 4px;
|
|
417
|
-
z-index: ${
|
|
418
|
-
background-color: ${
|
|
419
|
-
border-radius: ${
|
|
417
|
+
z-index: ${yi.raisedZIndex};
|
|
418
|
+
background-color: ${yi.colorSurface};
|
|
419
|
+
border-radius: ${yi.borderRadiusS};
|
|
420
420
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
424
424
|
border-top: none;
|
|
425
425
|
}
|
|
426
|
-
`;var
|
|
427
|
-
<div class="${
|
|
426
|
+
`;var gi=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class vi extends Ot{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 V`
|
|
427
|
+
<div class="${Ut(t)}">
|
|
428
428
|
${this.text?V`
|
|
429
429
|
<div class="ft-input-label--text ft-typography--caption">
|
|
430
430
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -432,7 +432,7 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
432
432
|
</div>
|
|
433
433
|
`:null}
|
|
434
434
|
</div>
|
|
435
|
-
`}}vi.elementDefinitions={},vi.styles=[
|
|
435
|
+
`}}vi.elementDefinitions={},vi.styles=[He,bi],gi([o({type:String})],vi.prototype,"text",void 0),gi([o({type:Boolean})],vi.prototype,"raised",void 0),gi([o({type:Boolean})],vi.prototype,"outlined",void 0),gi([o({type:Boolean})],vi.prototype,"disabled",void 0),gi([o({type:Boolean})],vi.prototype,"error",void 0),l("ft-input-label")(vi);const mi=ut.extend("--ft-ripple-color",yt.colorContent),wi={color:mi,backgroundColor:ut.extend("--ft-ripple-background-color",mi),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ut.create("--ft-ripple-border-radius","SIZE","0px")},$i=ut.extend("--ft-ripple-color",yt.colorPrimary),Oi=$i,Si=ut.extend("--ft-ripple-background-color",$i),ki=ut.extend("--ft-ripple-color",yt.colorSecondary),Ei=ki,Ni=ut.extend("--ft-ripple-background-color",ki),Ci=x`
|
|
436
436
|
:host {
|
|
437
437
|
display: contents;
|
|
438
438
|
}
|
|
@@ -445,7 +445,7 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
445
445
|
|
|
446
446
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
447
447
|
overflow: hidden;
|
|
448
|
-
border-radius: ${
|
|
448
|
+
border-radius: ${wi.borderRadius};
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
.ft-ripple .ft-ripple--background,
|
|
@@ -479,27 +479,27 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
.ft-ripple .ft-ripple--background {
|
|
482
|
-
background-color: ${
|
|
482
|
+
background-color: ${wi.backgroundColor};
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
.ft-ripple .ft-ripple--effect {
|
|
486
|
-
background-color: ${
|
|
486
|
+
background-color: ${wi.color};
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
490
|
-
background-color: ${
|
|
490
|
+
background-color: ${Ni};
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
494
|
-
background-color: ${
|
|
494
|
+
background-color: ${Ei};
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
498
|
-
background-color: ${
|
|
498
|
+
background-color: ${Si};
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
502
|
-
background-color: ${
|
|
502
|
+
background-color: ${Oi};
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-ripple .ft-ripple--background {
|
|
@@ -529,33 +529,33 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
532
|
-
opacity: ${
|
|
532
|
+
opacity: ${wi.opacityContentOnSurfaceHover};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
536
|
-
opacity: ${
|
|
536
|
+
opacity: ${wi.opacityContentOnSurfaceSelected};
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
540
|
-
opacity: ${
|
|
540
|
+
opacity: ${wi.opacityContentOnSurfaceFocused};
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
544
|
-
opacity: ${
|
|
544
|
+
opacity: ${wi.opacityContentOnSurfacePressed};
|
|
545
545
|
transform: translate(-50%, -50%) scale(1);
|
|
546
546
|
}
|
|
547
|
-
`;var
|
|
547
|
+
`;var Ri=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class zi extends Ot{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
|
|
548
548
|
<style>
|
|
549
549
|
.ft-ripple .ft-ripple--effect {
|
|
550
550
|
left: ${this.originX}px;
|
|
551
551
|
top: ${this.originY}px;
|
|
552
552
|
}
|
|
553
553
|
</style>
|
|
554
|
-
<div class="${
|
|
554
|
+
<div class="${Ut(t)}">
|
|
555
555
|
<div class="ft-ripple--background"></div>
|
|
556
556
|
<div class="ft-ripple--effect"></div>
|
|
557
557
|
</div>
|
|
558
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
558
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}zi.elementDefinitions={},zi.styles=Ci,Ri([o({type:Boolean})],zi.prototype,"primary",void 0),Ri([o({type:Boolean})],zi.prototype,"secondary",void 0),Ri([o({type:Boolean})],zi.prototype,"unbounded",void 0),Ri([o({type:Boolean})],zi.prototype,"activated",void 0),Ri([o({type:Boolean})],zi.prototype,"selected",void 0),Ri([o({type:Boolean})],zi.prototype,"disabled",void 0),Ri([r()],zi.prototype,"hovered",void 0),Ri([r()],zi.prototype,"focused",void 0),Ri([r()],zi.prototype,"pressed",void 0),Ri([r()],zi.prototype,"rippling",void 0),Ri([r()],zi.prototype,"originX",void 0),Ri([r()],zi.prototype,"originY",void 0),Ri([s(".ft-ripple")],zi.prototype,"ripple",void 0),Ri([s(".ft-ripple--effect")],zi.prototype,"rippleEffect",void 0),l("ft-ripple")(zi);const Mi={fontSize:ut.create("--ft-text-area-font-size","SIZE","14px"),labelSize:ut.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:ut.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:ut.extend("--ft-text-area-helper-color",yt.colorOnSurfaceMedium),colorPrimary:ut.external(yt.colorPrimary,"Design system"),colorOnSurface:ut.external(yt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ut.external(yt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ut.external(yt.borderRadiusS,"Design system"),colorError:ut.external(yt.colorError,"Design system")},Ui=x`
|
|
559
559
|
*:focus {
|
|
560
560
|
outline: none;
|
|
561
561
|
}
|
|
@@ -567,10 +567,10 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
ft-input-label {
|
|
570
|
-
${xt(
|
|
571
|
-
${xt(
|
|
572
|
-
${xt(
|
|
573
|
-
${xt(
|
|
570
|
+
${xt(yi.fontSize,Mi.fontSize)};
|
|
571
|
+
${xt(yi.raisedFontSize,Mi.labelSize)};
|
|
572
|
+
${xt(yi.verticalSpacing,Mi.verticalSpacing)};
|
|
573
|
+
${xt(yi.horizontalSpacing,Mi.horizontalSpacing)};
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.ft-text-area--main-panel {
|
|
@@ -588,8 +588,8 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
.ft-text-area--input-panel ft-ripple {
|
|
591
|
-
${xt(
|
|
592
|
-
${xt(
|
|
591
|
+
${xt(wi.opacityContentOnSurfaceHover,"0.08")};
|
|
592
|
+
${xt(wi.opacityContentOnSurfacePressed,"0.04")};
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
.ft-text-area--input {
|
|
@@ -601,12 +601,12 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
601
601
|
align-self: stretch;
|
|
602
602
|
resize: none;
|
|
603
603
|
|
|
604
|
-
${xt(
|
|
605
|
-
${xt(
|
|
606
|
-
color: ${
|
|
604
|
+
${xt(fe.fontSize,Mi.fontSize)};
|
|
605
|
+
${xt(fe.lineHeight,Mi.fontSize)};
|
|
606
|
+
color: ${Mi.colorOnSurface};
|
|
607
607
|
|
|
608
|
-
padding: 0 ${
|
|
609
|
-
margin: calc(${
|
|
608
|
+
padding: 0 ${Mi.horizontalSpacing};
|
|
609
|
+
margin: calc(${Mi.verticalSpacing} + ${Mi.labelSize} / 2) 0 ${Mi.verticalSpacing} 0;
|
|
610
610
|
|
|
611
611
|
border: none;
|
|
612
612
|
background: none;
|
|
@@ -615,7 +615,7 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
.ft-text-area--disabled .ft-text-area--input {
|
|
618
|
-
color: ${
|
|
618
|
+
color: ${Mi.colorOnSurfaceDisabled};
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -623,49 +623,49 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
626
|
-
${xt(
|
|
627
|
-
${xt(
|
|
626
|
+
${xt(yi.borderColor,Mi.colorPrimary)};
|
|
627
|
+
${xt(yi.textColor,Mi.colorPrimary)};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
631
|
-
border-radius: ${
|
|
631
|
+
border-radius: ${Mi.borderRadiusS} ${Mi.borderRadiusS} 0 0;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
635
635
|
align-self: stretch;
|
|
636
|
-
margin-bottom: ${
|
|
637
|
-
margin-top: calc(${
|
|
636
|
+
margin-bottom: ${Mi.verticalSpacing};
|
|
637
|
+
margin-top: calc(${Mi.labelSize} + 2 * ${Mi.verticalSpacing});
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
641
|
-
border-radius: ${
|
|
641
|
+
border-radius: ${Mi.borderRadiusS};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-text-area--helper-text {
|
|
645
|
-
padding: 0 12px 0 ${
|
|
646
|
-
color: ${
|
|
645
|
+
padding: 0 12px 0 ${Mi.horizontalSpacing};
|
|
646
|
+
color: ${Mi.helperColor};
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.ft-text-area--in-error .ft-text-area--input,
|
|
650
650
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
651
|
-
color: ${
|
|
651
|
+
color: ${Mi.colorError};
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
ft-resizer {
|
|
655
655
|
position: absolute;
|
|
656
656
|
bottom: 0;
|
|
657
657
|
}
|
|
658
|
-
`;var
|
|
658
|
+
`;var ji=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Fi extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[kt].form}constructor(...t){super(t),this[kt]=this.attachInternals(),this[kt].role=e}setFormValue(t){this[kt].setFormValue(t)}}}(Ot,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return V`
|
|
659
659
|
<style>
|
|
660
660
|
.ft-text-area--main-panel {
|
|
661
|
-
height: calc(4 * ${
|
|
661
|
+
height: calc(4 * ${Mi.verticalSpacing} + ${Mi.labelSize} + ${Mi.fontSize} + ${this.height}px);
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
ft-resizer {
|
|
665
665
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
666
666
|
}
|
|
667
667
|
</style>
|
|
668
|
-
<div class="${
|
|
668
|
+
<div class="${Ut(t)}">
|
|
669
669
|
<div class="ft-text-area--main-panel">
|
|
670
670
|
<ft-input-label text="${this.label}"
|
|
671
671
|
?disabled=${this.disabled}
|
|
@@ -697,4 +697,4 @@ class Xe extends zt{constructor(t){if(super(t),this.et=q,t.type!==Ct)throw Error
|
|
|
697
697
|
${this.helper}
|
|
698
698
|
</ft-typography>`:void 0}
|
|
699
699
|
</div>
|
|
700
|
-
`}setValue(t,e=!1){this.value=t,e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
700
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Fi.elementDefinitions={"ft-input-label":vi,"ft-resizer":xi,"ft-ripple":zi,"ft-typography":Xe},Fi.styles=[Ie,Ui],ji([o({type:String})],Fi.prototype,"label",void 0),ji([o({reflect:!0})],Fi.prototype,"value",void 0),ji([o({type:String})],Fi.prototype,"helper",void 0),ji([o({type:Boolean})],Fi.prototype,"outlined",void 0),ji([o({type:Boolean})],Fi.prototype,"disabled",void 0),ji([o({type:Boolean})],Fi.prototype,"error",void 0),ji([o({type:Number,reflect:!0})],Fi.prototype,"height",void 0),ji([s("textarea")],Fi.prototype,"textarea",void 0),ji([r()],Fi.prototype,"focused",void 0),l("ft-text-area")(Fi),t.FtTextArea=Fi,t.FtTextAreaCssVariables=Mi,t.styles=Ui}({});
|