@fluid-topics/ft-text-area 0.1.16 → 0.2.0
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 +2 -2
- package/build/ft-text-area.inline-styles.js +616 -0
- package/build/ft-text-area.js +109 -111
- package/build/ft-text-area.light.js +403 -444
- package/build/ft-text-area.min.js +453 -485
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +7 -7
|
@@ -1,80 +1,78 @@
|
|
|
1
1
|
!function(t){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
6
16
|
*/
|
|
7
|
-
const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.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),s.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.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 g=(t,e,i)=>{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}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(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(m(Element,"innerHTML"),m(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!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(je){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
8
18
|
/**
|
|
9
19
|
* @license
|
|
10
20
|
* Copyright 2017 Google LLC
|
|
11
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
|
|
22
|
+
*/const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
|
|
13
23
|
/**
|
|
14
24
|
* @license
|
|
15
25
|
* Copyright 2017 Google LLC
|
|
16
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/
|
|
18
|
-
var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,N=/>/g,z=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,M=/"/g,F=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),D=new WeakMap,_=O.createTreeWalker(O,129,null,!1),B=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",a=R;for(let e=0;e<i;e++){const i=t[e];let s,c,p=-1,l=0;for(;l<i.length&&(a.lastIndex=l,c=a.exec(i),null!==c);)l=a.lastIndex,a===R?"!--"===c[1]?a=C:void 0!==c[1]?a=N:void 0!==c[2]?(F.test(c[2])&&(o=RegExp("</"+c[2],"g")),a=z):void 0!==c[3]&&(a=z):a===z?">"===c[0]?(a=null!=o?o:R,p=-1):void 0===c[1]?p=-2:(p=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?z:'"'===c[3]?M:A):a===M||a===A?a=z:a===C||a===N?a=R:(a=z,o=void 0);const d=a===z&&t[e+1].startsWith("/>")?" ":"";n+=a===R?i+$:p>=0?(r.push(s),i.slice(0,p)+"$lit$"+i.slice(p)+x+d):i+x+(-2===p?(r.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(s):s,r]};class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,s=this.parts,[c,p]=B(t,e);if(this.el=I.createElement(c,i),_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=_.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=p[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?K:"@"===e[1]?G:W})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(F.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),_.nextNode(),s.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)s.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,r){var o,n,a,s;if(e===j)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const p=E(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,i,r)),void 0!==r?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=L(t,c._$AS(t,e.values),c,r)),e}class P{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(i,!0);_.currentNode=o;let n=_.nextNode(),a=0,s=0,c=r[0];for(;void 0!==c;){if(a===c.index){let e;2===c.type?e=new H(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new q(n,this,t)),this.v.push(e),c=r[++s]}a!==(null==c?void 0:c.index)&&(n=_.nextNode(),a++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{constructor(t,e,i,r){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),E(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==j&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==U&&E(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=I.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new P(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new I(t)),e}A(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new H(this.M(S()),this.M(S()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,i,r,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=L(this,t,e,0),n=!E(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let a,s;for(t=o[0],a=0;a<o.length-1;a++)s=L(this,r[i+a],e,a),s===j&&(s=this._$AH[a]),n||(n=!E(s)||s!==this._$AH[a]),s===U?t=U:t!==U&&(t+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}n&&!r&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const Z=g?g.emptyScript:"";class K extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class G extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:U)===j)return;const r=this._$AH,o=t===U&&r!==U||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==U&&(r===U||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class q{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){L(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
27
|
+
*/}function o(t){return i({...t,state:!0})}
|
|
19
28
|
/**
|
|
20
29
|
* @license
|
|
21
30
|
* Copyright 2017 Google LLC
|
|
22
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
32
|
*/
|
|
24
|
-
var J,Y;null==X||X(I,H),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class Q extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let a=n._$litPart$;if(void 0===a){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=a=new H(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return j}}Q.finalized=!0,Q._$litElement$=!0,null===(J=globalThis.litElementHydrateSupport)||void 0===J||J.call(globalThis,{LitElement:Q});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Q}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.1.2");
|
|
25
33
|
/**
|
|
26
34
|
* @license
|
|
27
35
|
* Copyright 2017 Google LLC
|
|
28
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
37
|
*/
|
|
30
|
-
|
|
38
|
+
function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
31
39
|
/**
|
|
32
40
|
* @license
|
|
33
|
-
* Copyright
|
|
41
|
+
* Copyright 2021 Google LLC
|
|
34
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
|
|
43
|
+
*/var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const n=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
36
44
|
/**
|
|
37
45
|
* @license
|
|
38
|
-
* Copyright
|
|
46
|
+
* Copyright 2019 Google LLC
|
|
39
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
|
|
48
|
+
*/,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),p=new Map;class h{constructor(t,e){if(this._$cssResult$=!0,e!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=p.get(this.cssText);return a&&void 0===t&&(p.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const c=t=>new h("string"==typeof t?t:t+"",l),f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new h(i,l)},d=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t
|
|
41
49
|
/**
|
|
42
50
|
* @license
|
|
43
51
|
* Copyright 2017 Google LLC
|
|
44
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
|
|
53
|
+
*/;var x;const y=window.trustedTypes,g=y?y.emptyScript:"",m=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?g: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}},v=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:v};class w extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=$){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=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(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 d(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||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._$Eg)||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)}_$ES(t,e,i=$){var o,s;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:b.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(s=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==s?s:b.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||v)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
46
54
|
/**
|
|
47
55
|
* @license
|
|
48
56
|
* Copyright 2017 Google LLC
|
|
49
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
58
|
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @license
|
|
54
|
-
* Copyright 2021 Google LLC
|
|
55
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/var at;null===(at=window.HTMLSlotElement)||void 0===at||at.prototype.assignedElements;
|
|
59
|
+
var O;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:w}),(null!==(x=globalThis.reactiveElementVersions)&&void 0!==x?x:globalThis.reactiveElementVersions=[]).push("1.2.2");const S=globalThis.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,N="?"+E,k=`<${N}>`,R=document,z=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,D=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,T=/"/g,A=/^(?:script|style|textarea|title)$/i,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),W=new WeakMap,H=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=F;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===F?"!--"===l[1]?n=j:void 0!==l[1]?n=D:void 0!==l[2]?(A.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=B):void 0!==l[3]&&(n=B):n===B?">"===l[0]?(n=null!=s?s:F,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?B:'"'===l[3]?T:L):n===T||n===L?n=B:n===j||n===D?n=F:(n=B,s=void 0);const c=n===B&&t[e+1].startsWith("/>")?" ":"";r+=n===F?i+k:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+E+c):i+E+(-2===p?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,p]=K(t,e);if(this.el=Z.createElement(l,i),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=H.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?Q:"@"===e[1]?tt:J})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],z()),H.nextNode(),a.push({type:2,index:++s});o.append(t[e],z())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:s}),t+=E.length-1}s++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,o){var s,r,n,a;if(e===P)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.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)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,o)),e}class q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);H.currentNode=s;let r=H.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new X(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new et(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=H.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),M(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new q(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Z(t)),e}A(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new X(this.M(z()),this.M(z()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=V(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=V(this,o[i+n],e,n),a===P&&(a=this._$AH[n]),r||(r=!M(a)||a!==this._$AH[n]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const G=S?S.emptyScript:"";class Q extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=V(this,t,e,0))&&void 0!==i?i:I)===P)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{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){V(this,t)}}const it=window.litHtmlPolyfillSupport;
|
|
57
60
|
/**
|
|
58
61
|
* @license
|
|
59
62
|
* Copyright 2017 Google LLC
|
|
60
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
64
|
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @license
|
|
65
|
-
* Copyright 2018 Google LLC
|
|
66
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
-
*/const lt=ct(class extends pt{constructor(t){var e;if(super(t),t.type!==st||"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,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return j}});(function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),a=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var s;t:{var c={};try{c.__proto__={a:!0},s=c.a;break t}catch(t){}s=!1}o=s?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var p=o;if(!ShadowRoot.prototype.createElement){var l,d=window.HTMLElement,u=window.customElements.define,f=window.customElements.get,h=window.customElements,m=new WeakMap,y=new WeakMap,v=new WeakMap,g=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=f.call(h,t))||(o=b(t),u.call(h,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,y.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),h.upgrade.apply(h,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=l;if(t)return l=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):y.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):y.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):y.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),l=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],E=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),S.pop(),t}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");var k=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(k(Element),k(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var R=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=C.call.apply(C,[this].concat(i(e))),R.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=R.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var N=function(t){var e=a(Array,[].concat(i(t)),this.constructor);return e.h=t,e},z=N,A=Array;if(z.prototype=r(A.prototype),z.prototype.constructor=z,p)p(z,A);else for(var M in A)if("prototype"!=M)if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(A,M);F&&Object.defineProperty(z,M,F)}else z[M]=A[M];z.u=A.prototype,n.Object.defineProperty(N.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var T=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new N(t))}))};T.prototype.namedItem=function(t){return this[t]};var j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=j.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new T(i)}})}}}).call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,r)=>{try{e.bind(window.customElements)(t,i,r)}catch(e){console.warn(t,i,r,e)}}}const dt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class ut{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ut(t,e,void 0,i)}static extend(t,e,i){return new ut(t,e.category,e,i)}static external(t,e){return new ut(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return a`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ft(t,e){return n(`${t.name}: ${e}`)}const ht={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")};
|
|
65
|
+
var ot,st;null==it||it(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.1.3");class rt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new X(e.insertBefore(z(),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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return P}}rt.finalized=!0,rt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:rt});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:rt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.1.2");class at{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new at(t,e,void 0,i)}static extend(t,e,i){return new at(t,e.category,e,i)}static external(t,e){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return f`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function lt(t,e){return c(`${t.name}: ${e}`)}const pt={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
68
66
|
/**
|
|
69
67
|
* @license
|
|
70
68
|
* Copyright 2021 Google LLC
|
|
71
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/class
|
|
73
|
-
${t.map((t=>
|
|
70
|
+
*/class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(s,this.constructor.elementStyles),s}}}(rt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),_`
|
|
71
|
+
${t.map((t=>_`
|
|
74
72
|
<style>${t}</style>
|
|
75
73
|
`))}
|
|
76
74
|
${this.getTemplate()}
|
|
77
|
-
`}
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ct=f`
|
|
78
76
|
.ft-no-text-select {
|
|
79
77
|
-webkit-touch-callout: none;
|
|
80
78
|
-webkit-user-select: none;
|
|
@@ -83,533 +81,408 @@ const st=1,ct=t=>(...e)=>({_$litDirective$:t,values:e});class pt{constructor(t){
|
|
|
83
81
|
-ms-user-select: none;
|
|
84
82
|
user-select: none;
|
|
85
83
|
}
|
|
86
|
-
`;var
|
|
84
|
+
`;var ft,dt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(dt=null===(ft=window.safari)||void 0===ft?void 0:ft.pushNotification)||void 0===dt||dt.toString());
|
|
87
85
|
/**
|
|
88
86
|
* @license
|
|
89
|
-
* Copyright
|
|
87
|
+
* Copyright 2017 Google LLC
|
|
90
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
89
|
*/
|
|
92
|
-
const
|
|
90
|
+
const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{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)}}
|
|
91
|
+
/**
|
|
92
|
+
* @license
|
|
93
|
+
* Copyright 2018 Google LLC
|
|
94
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
+
*/const mt=yt(class extends gt{constructor(t){var e;if(super(t),t.type!==ut||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const s=t.element.classList;this.st.forEach((t=>{t in e||(s.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return P}}),bt=t=>({_$litStatic$:t}),vt=new Map,$t=(t=>(e,...i)=>{var o;const s=i.length;let r,n;const a=[],l=[];let p,h=0,c=!1;for(;h<s;){for(p=e[h];h<s&&void 0!==(n=i[h],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=r+e[++h],c=!0;l.push(n),a.push(p),h++}if(h===s&&a.push(e[s]),c){const t=a.join("$$lit$$");void 0===(e=vt.get(t))&&(a.raw=a,vt.set(t,e=a)),i=l}return t(e,...i)})(_);
|
|
96
|
+
/**
|
|
97
|
+
* @license
|
|
98
|
+
* Copyright 2020 Google LLC
|
|
99
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
+
*/var wt,Ot=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(wt||(wt={}));const St=at.extend("--ft-typography-font-family",pt.titleFont),Ct=at.extend("--ft-typography-font-family",pt.contentFont),Et={fontFamily:Ct,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},Nt=at.extend("--ft-typography-title-font-family",St),kt=at.extend("--ft-typography-title-font-size",Et.fontSize,"20px"),Rt=at.extend("--ft-typography-title-font-weight",Et.fontWeight,"normal"),zt=at.extend("--ft-typography-title-letter-spacing",Et.letterSpacing,"0.15px"),Mt=at.extend("--ft-typography-title-line-height",Et.lineHeight,"24px"),Ut=at.extend("--ft-typography-title-text-transform",Et.textTransform,"inherit"),Ft=at.extend("--ft-typography-title-dense-font-family",St),jt=at.extend("--ft-typography-title-dense-font-size",Et.fontSize,"14px"),Dt=at.extend("--ft-typography-title-dense-font-weight",Et.fontWeight,"normal"),Bt=at.extend("--ft-typography-title-dense-letter-spacing",Et.letterSpacing,"0.105px"),Lt=at.extend("--ft-typography-title-dense-line-height",Et.lineHeight,"24px"),Tt=at.extend("--ft-typography-title-dense-text-transform",Et.textTransform,"inherit"),At=at.extend("--ft-typography-subtitle1-font-family",Ct),_t=at.extend("--ft-typography-subtitle1-font-size",Et.fontSize,"16px"),Pt=at.extend("--ft-typography-subtitle1-font-weight",Et.fontWeight,"600"),It=at.extend("--ft-typography-subtitle1-letter-spacing",Et.letterSpacing,"0.144px"),Wt=at.extend("--ft-typography-subtitle1-line-height",Et.lineHeight,"24px"),Ht=at.extend("--ft-typography-subtitle1-text-transform",Et.textTransform,"inherit"),Kt=at.extend("--ft-typography-subtitle2-font-family",Ct),Zt=at.extend("--ft-typography-subtitle2-font-size",Et.fontSize,"14px"),Vt=at.extend("--ft-typography-subtitle2-font-weight",Et.fontWeight,"normal"),qt=at.extend("--ft-typography-subtitle2-letter-spacing",Et.letterSpacing,"0.098px"),Xt=at.extend("--ft-typography-subtitle2-line-height",Et.lineHeight,"24px"),Jt=at.extend("--ft-typography-subtitle2-text-transform",Et.textTransform,"inherit"),Yt={fontFamily:at.extend("--ft-typography-body1-font-family",Ct),fontSize:at.extend("--ft-typography-body1-font-size",Et.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",Et.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",Et.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",Et.lineHeight,"24px"),textTransform:at.extend("--ft-typography-body1-text-transform",Et.textTransform,"inherit")},Gt=at.extend("--ft-typography-body2-font-family",Ct),Qt=at.extend("--ft-typography-body2-font-size",Et.fontSize,"14px"),te=at.extend("--ft-typography-body2-font-weight",Et.fontWeight,"normal"),ee=at.extend("--ft-typography-body2-letter-spacing",Et.letterSpacing,"0.252px"),ie=at.extend("--ft-typography-body2-line-height",Et.lineHeight,"20px"),oe=at.extend("--ft-typography-body2-text-transform",Et.textTransform,"inherit"),se={fontFamily:at.extend("--ft-typography-caption-font-family",Ct),fontSize:at.extend("--ft-typography-caption-font-size",Et.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",Et.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",Et.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",Et.lineHeight,"16px"),textTransform:at.extend("--ft-typography-caption-text-transform",Et.textTransform,"inherit")},re=at.extend("--ft-typography-breadcrumb-font-family",Ct),ne=at.extend("--ft-typography-breadcrumb-font-size",Et.fontSize,"10px"),ae=at.extend("--ft-typography-breadcrumb-font-weight",Et.fontWeight,"normal"),le=at.extend("--ft-typography-breadcrumb-letter-spacing",Et.letterSpacing,"0.33px"),pe=at.extend("--ft-typography-breadcrumb-line-height",Et.lineHeight,"16px"),he=at.extend("--ft-typography-breadcrumb-text-transform",Et.textTransform,"inherit"),ce=at.extend("--ft-typography-overline-font-family",Ct),fe=at.extend("--ft-typography-overline-font-size",Et.fontSize,"10px"),de=at.extend("--ft-typography-overline-font-weight",Et.fontWeight,"normal"),ue=at.extend("--ft-typography-overline-letter-spacing",Et.letterSpacing,"1.5px"),xe=at.extend("--ft-typography-overline-line-height",Et.lineHeight,"16px"),ye=at.extend("--ft-typography-overline-text-transform",Et.textTransform,"uppercase"),ge=at.extend("--ft-typography-button-font-family",Ct),me=at.extend("--ft-typography-button-font-size",Et.fontSize,"14px"),be=at.extend("--ft-typography-button-font-weight",Et.fontWeight,"600"),ve=at.extend("--ft-typography-button-letter-spacing",Et.letterSpacing,"1.246px"),$e=at.extend("--ft-typography-button-line-height",Et.lineHeight,"16px"),we=at.extend("--ft-typography-button-text-transform",Et.textTransform,"uppercase"),Oe=f`
|
|
93
101
|
.ft-typography--title {
|
|
94
|
-
font-family: ${
|
|
95
|
-
font-size: ${
|
|
96
|
-
font-weight: ${
|
|
102
|
+
font-family: ${Nt};
|
|
103
|
+
font-size: ${kt};
|
|
104
|
+
font-weight: ${Rt};
|
|
97
105
|
letter-spacing: ${zt};
|
|
98
|
-
line-height: ${
|
|
99
|
-
text-transform: ${
|
|
106
|
+
line-height: ${Mt};
|
|
107
|
+
text-transform: ${Ut};
|
|
100
108
|
}
|
|
101
|
-
`,Se=
|
|
109
|
+
`,Se=f`
|
|
102
110
|
.ft-typography--title-dense {
|
|
103
111
|
font-family: ${Ft};
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
112
|
+
font-size: ${jt};
|
|
113
|
+
font-weight: ${Dt};
|
|
114
|
+
letter-spacing: ${Bt};
|
|
115
|
+
line-height: ${Lt};
|
|
116
|
+
text-transform: ${Tt};
|
|
109
117
|
}
|
|
110
|
-
`,
|
|
118
|
+
`,Ce=f`
|
|
111
119
|
.ft-typography--subtitle1 {
|
|
112
|
-
font-family: ${
|
|
113
|
-
font-size: ${
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
120
|
+
font-family: ${At};
|
|
121
|
+
font-size: ${_t};
|
|
122
|
+
font-weight: ${Pt};
|
|
123
|
+
letter-spacing: ${It};
|
|
124
|
+
line-height: ${Wt};
|
|
125
|
+
text-transform: ${Ht};
|
|
118
126
|
}
|
|
119
|
-
`,
|
|
127
|
+
`,Ee=f`
|
|
120
128
|
.ft-typography--subtitle2 {
|
|
121
|
-
font-family: ${
|
|
129
|
+
font-family: ${Kt};
|
|
122
130
|
font-size: ${Zt};
|
|
123
|
-
font-weight: ${
|
|
124
|
-
letter-spacing: ${
|
|
125
|
-
line-height: ${
|
|
126
|
-
text-transform: ${
|
|
131
|
+
font-weight: ${Vt};
|
|
132
|
+
letter-spacing: ${qt};
|
|
133
|
+
line-height: ${Xt};
|
|
134
|
+
text-transform: ${Jt};
|
|
127
135
|
}
|
|
128
136
|
|
|
129
|
-
`,
|
|
137
|
+
`,Ne=f`
|
|
130
138
|
.ft-typography--body1 {
|
|
131
|
-
font-family: ${
|
|
132
|
-
font-size: ${
|
|
133
|
-
font-weight: ${
|
|
134
|
-
letter-spacing: ${
|
|
135
|
-
line-height: ${
|
|
136
|
-
text-transform: ${
|
|
139
|
+
font-family: ${Yt.fontFamily};
|
|
140
|
+
font-size: ${Yt.fontSize};
|
|
141
|
+
font-weight: ${Yt.fontWeight};
|
|
142
|
+
letter-spacing: ${Yt.letterSpacing};
|
|
143
|
+
line-height: ${Yt.lineHeight};
|
|
144
|
+
text-transform: ${Yt.textTransform};
|
|
137
145
|
}
|
|
138
|
-
`,
|
|
146
|
+
`,ke=f`
|
|
139
147
|
.ft-typography--body2 {
|
|
140
|
-
font-family: ${
|
|
148
|
+
font-family: ${Gt};
|
|
141
149
|
font-size: ${Qt};
|
|
142
150
|
font-weight: ${te};
|
|
143
151
|
letter-spacing: ${ee};
|
|
144
152
|
line-height: ${ie};
|
|
145
|
-
text-transform: ${
|
|
153
|
+
text-transform: ${oe};
|
|
146
154
|
}
|
|
147
|
-
`,
|
|
155
|
+
`,Re=f`
|
|
148
156
|
.ft-typography--caption {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
157
|
+
font-family: ${se.fontFamily};
|
|
158
|
+
font-size: ${se.fontSize};
|
|
159
|
+
font-weight: ${se.fontWeight};
|
|
160
|
+
letter-spacing: ${se.letterSpacing};
|
|
161
|
+
line-height: ${se.lineHeight};
|
|
162
|
+
text-transform: ${se.textTransform};
|
|
155
163
|
}
|
|
156
|
-
`,ze=
|
|
164
|
+
`,ze=f`
|
|
157
165
|
.ft-typography--breadcrumb {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
166
|
+
font-family: ${re};
|
|
167
|
+
font-size: ${ne};
|
|
168
|
+
font-weight: ${ae};
|
|
169
|
+
letter-spacing: ${le};
|
|
162
170
|
line-height: ${pe};
|
|
163
|
-
text-transform: ${
|
|
171
|
+
text-transform: ${he};
|
|
164
172
|
}
|
|
165
|
-
`,
|
|
173
|
+
`,Me=f`
|
|
166
174
|
.ft-typography--overline {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
175
|
+
font-family: ${ce};
|
|
176
|
+
font-size: ${fe};
|
|
177
|
+
font-weight: ${de};
|
|
178
|
+
letter-spacing: ${ue};
|
|
179
|
+
line-height: ${xe};
|
|
172
180
|
text-transform: ${ye};
|
|
173
181
|
}
|
|
174
|
-
`,
|
|
182
|
+
`,Ue=f`
|
|
175
183
|
.ft-typography--button {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
184
|
+
font-family: ${ge};
|
|
185
|
+
font-size: ${me};
|
|
178
186
|
font-weight: ${be};
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
187
|
+
letter-spacing: ${ve};
|
|
188
|
+
line-height: ${$e};
|
|
189
|
+
text-transform: ${we};
|
|
182
190
|
}
|
|
183
|
-
`;
|
|
184
|
-
.ft-typography {
|
|
185
|
-
vertical-align: inherit;
|
|
186
|
-
}
|
|
187
|
-
`]}getTemplate(){return this.element?wt`
|
|
191
|
+
`;class Fe extends ht{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?$t`
|
|
188
192
|
<${bt(this.element)}
|
|
189
193
|
class="ft-typography ft-typography--${this.variant}">
|
|
190
194
|
<slot></slot>
|
|
191
195
|
</${bt(this.element)}>
|
|
192
|
-
|
|
196
|
+
`:$t`
|
|
193
197
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
194
|
-
`}}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
purpose with or without fee is hereby granted.
|
|
200
|
-
|
|
201
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
202
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
203
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
204
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
205
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
206
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
207
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
208
|
-
***************************************************************************** */
|
|
209
|
-
var Te=function(t,e){return Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Te(t,e)};var je=function(){return je=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},je.apply(this,arguments)};function Ue(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}function De(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
|
|
210
|
-
/**
|
|
211
|
-
* @license
|
|
212
|
-
* Copyright 2021 Google LLC
|
|
213
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
214
|
-
*/const _e=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
|
|
198
|
+
`}}Fe.styles=[Oe,Se,Ce,Ee,Ne,ke,Re,ze,Me,Ue,f`
|
|
199
|
+
.ft-typography {
|
|
200
|
+
vertical-align: inherit;
|
|
201
|
+
}
|
|
202
|
+
`],Ot([i()],Fe.prototype,"element",void 0),Ot([i()],Fe.prototype,"variant",void 0),n("ft-typography")(Fe);
|
|
215
203
|
/**
|
|
216
204
|
* @license
|
|
217
|
-
* Copyright
|
|
218
|
-
* SPDX-License-Identifier:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
205
|
+
* Copyright 2017 Google LLC
|
|
206
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
|
+
*/
|
|
208
|
+
class je extends gt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.vt=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}je.directiveName="unsafeHTML",je.resultType=1;const De=yt(je);var Be,Le;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",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=""}(Be||(Be={})),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=""}(Le||(Le={})),new Map([...["abw"].map((t=>[t,Le.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,Le.AUDIO])),...["avi"].map((t=>[t,Le.AVI])),...["chm","xhs"].map((t=>[t,Le.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,Le.CODE])),...["csv"].map((t=>[t,Le.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Le.DITA])),...["epub"].map((t=>[t,Le.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Le.EXCEL])),...["flac"].map((t=>[t,Le.FLAC])),...["gif"].map((t=>[t,Le.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Le.GZIP])),...["html","htm","xhtml"].map((t=>[t,Le.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,Le.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Le.JPEG])),...["json"].map((t=>[t,Le.JSON])),...["m4a","m4p"].map((t=>[t,Le.M4A])),...["mov","qt"].map((t=>[t,Le.MOV])),...["mp3"].map((t=>[t,Le.MP3])),...["mp4","m4v"].map((t=>[t,Le.MP4])),...["ogg","oga"].map((t=>[t,Le.OGG])),...["pdf","ps"].map((t=>[t,Le.PDF])),...["png"].map((t=>[t,Le.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Le.POWERPOINT])),...["rar"].map((t=>[t,Le.RAR])),...["stp"].map((t=>[t,Le.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Le.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,Le.VIDEO])),...["wav"].map((t=>[t,Le.WAV])),...["wma"].map((t=>[t,Le.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Le.WORD])),...["xml","xsl","rdf"].map((t=>[t,Le.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Le.YAML])),...["zip"].map((t=>[t,Le.ZIP]))]);var Te,Ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Te||(Te={}));const _e=at.create("--ft-icon-font-size","SIZE","24px"),Pe=at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ie=at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),We=at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class He extends ht{constructor(){super(...arguments),this.variant=Te.fluid_topics}render(){return _`
|
|
209
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
210
|
+
${De(this.getIcon())}
|
|
211
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
212
|
+
</i>
|
|
213
|
+
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===Te.file_format?null!==(t=Le[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Te.fluid_topics?null!==(e=Be[i.toUpperCase()])&&void 0!==e?e:i:I}}He.elementDefinitions={},He.styles=f`
|
|
214
|
+
:host, i.ft-icon {
|
|
215
|
+
display: inline-block;
|
|
216
|
+
width: ${_e};
|
|
217
|
+
height: ${_e};
|
|
218
|
+
text-align: center;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
i.ft-icon {
|
|
222
|
+
font-size: ${_e};
|
|
223
|
+
line-height: 1;
|
|
224
|
+
font-weight: normal;
|
|
225
|
+
text-transform: none;
|
|
226
|
+
font-style: normal;
|
|
227
|
+
font-variant: normal;
|
|
228
|
+
speak: none;
|
|
229
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
230
|
+
text-rendering: auto;
|
|
231
|
+
-webkit-font-smoothing: antialiased;
|
|
232
|
+
-moz-osx-font-smoothing: grayscale;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.ft-icon--fluid-topics {
|
|
236
|
+
font-family: ${Pe}, ft-icons, fticons, sans-serif;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ft-icon--file-format {
|
|
240
|
+
font-family: ${Ie}, ft-mime, sans-serif;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.ft-icon--material {
|
|
244
|
+
font-family: ${We}, "Material Icons", sans-serif;
|
|
245
|
+
}
|
|
246
|
+
`,Ae([i()],He.prototype,"variant",void 0),Ae([s("slot")],He.prototype,"slottedContent",void 0),n("ft-icon")(He);var Ke=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ze extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const Ve=at.external(pt.colorOutline,"Design system"),qe=at.external(pt.colorOnSurfaceMedium,"Design system");class Xe extends ht{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",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 _`
|
|
247
|
+
<style>
|
|
224
248
|
.ft-resizer {
|
|
225
|
-
|
|
226
|
-
cursor: ${n(this.cursor)}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
mwc-icon {
|
|
230
|
-
transform: rotate(-45deg);
|
|
231
|
-
color: ${Pe};
|
|
249
|
+
cursor: ${c(this.cursor)}
|
|
232
250
|
}
|
|
233
|
-
|
|
234
|
-
.ft-resizer--dragging mwc-icon,
|
|
235
|
-
.ft-resizer:hover mwc-icon {
|
|
236
|
-
color: ${He};
|
|
237
|
-
}
|
|
238
|
-
`]}getTemplate(){return T`
|
|
251
|
+
</style>
|
|
239
252
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
240
253
|
@mousedown=${this.initDragFromMouse}
|
|
241
254
|
@touchstart=${this.initDragFromTouch}>
|
|
242
|
-
<
|
|
255
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
243
256
|
</div>
|
|
244
|
-
`}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,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
display: flex;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.ft-input-label {
|
|
252
|
-
border-color: ${Ze.borderColor};
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ft-input-label:before,
|
|
256
|
-
.ft-input-label:after {
|
|
257
|
-
content: "";
|
|
258
|
-
display: flex;
|
|
259
|
-
border-bottom-width: 1px;
|
|
260
|
-
border-bottom-style: solid;
|
|
261
|
-
border-color: inherit;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.ft-input-label:before {
|
|
265
|
-
width: ${Ze.horizontalSpacing};
|
|
266
|
-
flex-shrink: 0;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.ft-input-label:after {
|
|
270
|
-
flex-grow: 1;
|
|
271
|
-
flex-shrink: 1;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.ft-input-label--text {
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-shrink: 1;
|
|
277
|
-
position: relative;
|
|
278
|
-
border-bottom-width: 1px;
|
|
279
|
-
border-bottom-style: solid;
|
|
280
|
-
border-color: inherit;
|
|
281
|
-
color: ${Ze.textColor};
|
|
282
|
-
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
283
|
-
${ft(oe.fontSize,Ze.fontSize)};
|
|
284
|
-
${ft(oe.lineHeight,Ze.fontSize)};
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.ft-input-label--disabled .ft-input-label--text {
|
|
288
|
-
color: ${Ze.disabledTextColor};
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.ft-input-label--hidden-text {
|
|
292
|
-
padding: 0 4px;
|
|
293
|
-
opacity: 0;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.ft-input-label--floating-text {
|
|
297
|
-
position: absolute;
|
|
298
|
-
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
299
|
-
transition: top 250ms;
|
|
300
|
-
width: calc(100% - 8px);
|
|
301
|
-
overflow: hidden;
|
|
302
|
-
white-space: nowrap;
|
|
303
|
-
text-overflow: ellipsis;
|
|
304
|
-
padding: ${Ze.verticalSpacing} 4px;
|
|
305
|
-
margin: calc(${Ze.verticalSpacing} * -1) 0;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.ft-input-label--raised .ft-input-label--text {
|
|
309
|
-
${ft(oe.fontSize,Ze.raisedFontSize)};
|
|
310
|
-
${ft(oe.lineHeight,Ze.raisedFontSize)};
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.ft-input-label--raised .ft-input-label--floating-text {
|
|
314
|
-
top: ${Ze.verticalSpacing};
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.ft-input-label--outlined .ft-input-label--text,
|
|
318
|
-
.ft-input-label--outlined:before,
|
|
319
|
-
.ft-input-label--outlined:after {
|
|
320
|
-
border-top-width: 1px;
|
|
321
|
-
border-top-style: solid;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.ft-input-label--outlined:before {
|
|
325
|
-
border-left-width: 1px;
|
|
326
|
-
border-left-style: solid;
|
|
327
|
-
border-radius: ${Ze.borderRadiusS} 0 0 ${Ze.borderRadiusS};
|
|
328
|
-
}
|
|
257
|
+
`}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 Ze(i,o))}}Xe.elementDefinitions={"ft-icon":He},Xe.styles=[ct,f`
|
|
258
|
+
:host {
|
|
259
|
+
display: block;
|
|
260
|
+
}
|
|
329
261
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
border-radius: 0 ${Ze.borderRadiusS} ${Ze.borderRadiusS} 0;
|
|
334
|
-
}
|
|
262
|
+
.ft-resizer {
|
|
263
|
+
display: flex;
|
|
264
|
+
}
|
|
335
265
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
border-radius: ${Ze.borderRadiusS};
|
|
341
|
-
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
342
|
-
}
|
|
266
|
+
ft-icon {
|
|
267
|
+
transform: rotate(-45deg);
|
|
268
|
+
color: ${Ve};
|
|
269
|
+
}
|
|
343
270
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
271
|
+
.ft-resizer--dragging ft-icon,
|
|
272
|
+
.ft-resizer:hover ft-icon {
|
|
273
|
+
color: ${qe};
|
|
274
|
+
}
|
|
275
|
+
`],Ke([i({type:Number})],Xe.prototype,"initialWidth",void 0),Ke([i({type:Number})],Xe.prototype,"initialHeight",void 0),Ke([i()],Xe.prototype,"icon",void 0),Ke([i()],Xe.prototype,"cursor",void 0),Ke([o()],Xe.prototype,"dragging",void 0),n("ft-resizer")(Xe);var Je=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ye={fontSize:at.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:at.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:at.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:at.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:at.extend("--ft-input-label-border-color",pt.colorOutline),textColor:at.extend("--ft-input-label-text-color",pt.colorOnSurfaceMedium),disabledTextColor:at.extend("--ft-input-label-disabled-text-color",pt.colorOnSurfaceDisabled),colorSurface:at.external(pt.colorSurface,"Design system"),borderRadiusS:at.external(pt.borderRadiusS,"Design system")};class Ge extends ht{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!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};return _`
|
|
276
|
+
<div class="${mt(t)}">
|
|
277
|
+
${this.text?_`
|
|
350
278
|
<div class="ft-input-label--text ft-typography--caption">
|
|
351
279
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
352
280
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
353
281
|
</div>
|
|
354
282
|
`:null}
|
|
355
283
|
</div>
|
|
356
|
-
`}}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
const Ge=()=>{},qe={get passive(){return!1}};document.addEventListener("x",Ge,qe),document.removeEventListener("x",Ge);
|
|
363
|
-
/**
|
|
364
|
-
* @license
|
|
365
|
-
* Copyright 2018 Google LLC
|
|
366
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
367
|
-
*/
|
|
368
|
-
class Xe extends Q{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
|
|
369
|
-
/**
|
|
370
|
-
* @license
|
|
371
|
-
* Copyright 2016 Google Inc.
|
|
372
|
-
*
|
|
373
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
374
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
375
|
-
* in the Software without restriction, including without limitation the rights
|
|
376
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
377
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
378
|
-
* furnished to do so, subject to the following conditions:
|
|
379
|
-
*
|
|
380
|
-
* The above copyright notice and this permission notice shall be included in
|
|
381
|
-
* all copies or substantial portions of the Software.
|
|
382
|
-
*
|
|
383
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
384
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
385
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
386
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
387
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
388
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
389
|
-
* THE SOFTWARE.
|
|
390
|
-
*/var Je=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),Ye={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Qe={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},ti={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
|
|
391
|
-
/**
|
|
392
|
-
* @license
|
|
393
|
-
* Copyright 2016 Google Inc.
|
|
394
|
-
*
|
|
395
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
396
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
397
|
-
* in the Software without restriction, including without limitation the rights
|
|
398
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
399
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
400
|
-
* furnished to do so, subject to the following conditions:
|
|
401
|
-
*
|
|
402
|
-
* The above copyright notice and this permission notice shall be included in
|
|
403
|
-
* all copies or substantial portions of the Software.
|
|
404
|
-
*
|
|
405
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
406
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
407
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
408
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
409
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
410
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
411
|
-
* THE SOFTWARE.
|
|
412
|
-
*/
|
|
413
|
-
/**
|
|
414
|
-
* @license
|
|
415
|
-
* Copyright 2016 Google Inc.
|
|
416
|
-
*
|
|
417
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
418
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
419
|
-
* in the Software without restriction, including without limitation the rights
|
|
420
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
421
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
422
|
-
* furnished to do so, subject to the following conditions:
|
|
423
|
-
*
|
|
424
|
-
* The above copyright notice and this permission notice shall be included in
|
|
425
|
-
* all copies or substantial portions of the Software.
|
|
426
|
-
*
|
|
427
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
428
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
429
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
430
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
431
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
432
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
433
|
-
* THE SOFTWARE.
|
|
434
|
-
*/
|
|
435
|
-
var ei=["touchstart","pointerdown","mousedown","keydown"],ii=["touchend","pointerup","mouseup","contextmenu"],ri=[],oi=function(t){function e(i){var r=t.call(this,je(je({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Te(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ye},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Qe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ti},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=De(ei),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerInteractionHandler(n,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=De(ii),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerDocumentInteractionHandler(n,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=De(ei),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=De(ii),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ri.length>0&&ri.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ri.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ri=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,n=e.cssClasses,a=n.FG_DEACTIVATION,s=n.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var p="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),u=d.startPoint,f=d.endPoint;p=u.x+"px, "+u.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,p),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,n=e.x,a=e.y,s=n+i.left,c=a+i.top;if("touchstart"===t.type){var p=t;r=p.changedTouches[0].pageX-s,o=p.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-s,o=l.pageY-c}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),ti.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=je({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(Je),ni=oi;
|
|
436
|
-
/**
|
|
437
|
-
* @license
|
|
438
|
-
* Copyright 2018 Google LLC
|
|
439
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
440
|
-
*/
|
|
441
|
-
const ai=ct(class extends pt{constructor(t){var e;if(super(t),t.type!==st||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return j}});
|
|
442
|
-
/**
|
|
443
|
-
* @license
|
|
444
|
-
* Copyright 2018 Google LLC
|
|
445
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
446
|
-
*/class si extends Xe{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=ni}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);
|
|
447
|
-
/**
|
|
448
|
-
* @license
|
|
449
|
-
* Copyright 2018 Google Inc.
|
|
450
|
-
*
|
|
451
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
452
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
453
|
-
* in the Software without restriction, including without limitation the rights
|
|
454
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
455
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
456
|
-
* furnished to do so, subject to the following conditions:
|
|
457
|
-
*
|
|
458
|
-
* The above copyright notice and this permission notice shall be included in
|
|
459
|
-
* all copies or substantial portions of the Software.
|
|
460
|
-
*
|
|
461
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
462
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
463
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
464
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
465
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
466
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
467
|
-
* THE SOFTWARE.
|
|
468
|
-
*/
|
|
469
|
-
var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return T`
|
|
470
|
-
<div class="mdc-ripple-surface mdc-ripple-upgraded ${lt(i)}"
|
|
471
|
-
style="${ai({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}Ue([nt(".mdc-ripple-surface")],si.prototype,"mdcRoot",void 0),Ue([rt({type:Boolean})],si.prototype,"primary",void 0),Ue([rt({type:Boolean})],si.prototype,"accent",void 0),Ue([rt({type:Boolean})],si.prototype,"unbounded",void 0),Ue([rt({type:Boolean})],si.prototype,"disabled",void 0),Ue([rt({type:Boolean})],si.prototype,"activated",void 0),Ue([rt({type:Boolean})],si.prototype,"selected",void 0),Ue([rt({type:Boolean})],si.prototype,"internalUseStateLayerCustomProperties",void 0),Ue([ot()],si.prototype,"hovering",void 0),Ue([ot()],si.prototype,"bgFocused",void 0),Ue([ot()],si.prototype,"fgActivation",void 0),Ue([ot()],si.prototype,"fgDeactivation",void 0),Ue([ot()],si.prototype,"fgScale",void 0),Ue([ot()],si.prototype,"fgSize",void 0),Ue([ot()],si.prototype,"translateStart",void 0),Ue([ot()],si.prototype,"translateEnd",void 0),Ue([ot()],si.prototype,"leftPos",void 0),Ue([ot()],si.prototype,"topPos",void 0);
|
|
472
|
-
/**
|
|
473
|
-
* @license
|
|
474
|
-
* Copyright 2021 Google LLC
|
|
475
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
476
|
-
*/
|
|
477
|
-
const ci=a`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
|
|
478
|
-
/**
|
|
479
|
-
* @license
|
|
480
|
-
* Copyright 2018 Google LLC
|
|
481
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
482
|
-
*/;let pi=class extends si{};pi.styles=[ci],pi=Ue([et("mwc-ripple")],pi);
|
|
483
|
-
/**
|
|
484
|
-
* @license
|
|
485
|
-
* Copyright 2020 Google LLC
|
|
486
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
487
|
-
*/
|
|
488
|
-
class li{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var di=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ui={color:ut.extend("--ft-ripple-color",ht.colorContent),primaryColor:ut.extend("--ft-ripple-primary-color",ut.extend("--ft-ripple-color",ht.colorPrimary)),secondaryColor:ut.extend("--ft-ripple-secondary-color",ut.extend("--ft-ripple-color",ht.colorSecondary)),opacityContentOnSurfacePressed:ut.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(ht.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:ut.external(ht.opacityContentOnSurfaceDragged,"Design system")};let fi=class extends mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return a`
|
|
489
|
-
:host {
|
|
490
|
-
display: contents;
|
|
491
|
-
|
|
492
|
-
--mdc-ripple-color: ${ui.color};
|
|
493
|
-
--mdc-ripple-press-opacity: ${ui.opacityContentOnSurfacePressed};
|
|
494
|
-
--mdc-ripple-hover-opacity: ${ui.opacityContentOnSurfaceHover};
|
|
495
|
-
--mdc-ripple-focus-opacity: ${ui.opacityContentOnSurfaceFocused};
|
|
496
|
-
--mdc-ripple-selected-opacity: ${ui.opacityContentOnSurfaceSelected};
|
|
497
|
-
--mdc-ripple-activated-opacity: ${ui.opacityContentOnSurfaceDragged};
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
mwc-ripple.ft-ripple--secondary {
|
|
501
|
-
--mdc-ripple-color: ${ui.secondaryColor};
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
mwc-ripple.ft-ripple--primary {
|
|
505
|
-
--mdc-ripple-color: ${ui.primaryColor};
|
|
506
|
-
}
|
|
507
|
-
`}getTemplate(){return T`
|
|
508
|
-
<mwc-ripple
|
|
509
|
-
class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
|
|
510
|
-
?unbounded=${this.unbounded}
|
|
511
|
-
?activated=${this.activated}
|
|
512
|
-
?selected=${this.selected}
|
|
513
|
-
?disabled=${this.disabled}
|
|
514
|
-
></mwc-ripple>
|
|
515
|
-
`}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new li((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",n),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",o),e.removeEventListener("keydown",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};fi.elementDefinitions={"mwc-ripple":pi},di([rt({type:Boolean})],fi.prototype,"primary",void 0),di([rt({type:Boolean})],fi.prototype,"secondary",void 0),di([rt({type:Boolean})],fi.prototype,"unbounded",void 0),di([rt({type:Boolean})],fi.prototype,"activated",void 0),di([rt({type:Boolean})],fi.prototype,"selected",void 0),di([rt({type:Boolean})],fi.prototype,"disabled",void 0),di([nt("mwc-ripple")],fi.prototype,"mwcRipple",void 0),fi=di([dt("ft-ripple")],fi);var hi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};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",ht.colorOnSurfaceMedium),colorPrimary:ut.external(ht.colorPrimary,"Design system"),colorOnSurface:ut.external(ht.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ut.external(ht.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ut.external(ht.borderRadiusS,"Design system")};t.FtTextArea=class extends mt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.height=50,this.focused=!1}getStyles(){return[Re,a`
|
|
516
|
-
*:focus {
|
|
517
|
-
outline: none;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.ft-text-area {
|
|
521
|
-
display: flex;
|
|
522
|
-
flex-direction: column;
|
|
523
|
-
align-items: stretch;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
ft-input-label {
|
|
527
|
-
${ft(Ze.fontSize,mi.fontSize)};
|
|
528
|
-
${ft(Ze.raisedFontSize,mi.labelSize)};
|
|
529
|
-
${ft(Ze.verticalSpacing,mi.verticalSpacing)};
|
|
530
|
-
${ft(Ze.horizontalSpacing,a`calc(${mi.horizontalSpacing} - 4px)`)};
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.ft-text-area--main-panel {
|
|
534
|
-
position: relative;
|
|
535
|
-
display: flex;
|
|
536
|
-
height: calc(4 * ${mi.verticalSpacing} + ${mi.labelSize} + ${mi.fontSize} + ${this.height}px);
|
|
537
|
-
}
|
|
284
|
+
`}}Ge.elementDefinitions={},Ge.styles=[Re,f`
|
|
285
|
+
.ft-input-label {
|
|
286
|
+
position: absolute;
|
|
287
|
+
inset: 0;
|
|
288
|
+
display: flex;
|
|
289
|
+
}
|
|
538
290
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
display: flex;
|
|
543
|
-
align-items: center;
|
|
544
|
-
overflow: hidden;
|
|
545
|
-
gap: 8px;
|
|
546
|
-
}
|
|
291
|
+
.ft-input-label {
|
|
292
|
+
border-color: ${Ye.borderColor};
|
|
293
|
+
}
|
|
547
294
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
295
|
+
.ft-input-label:before,
|
|
296
|
+
.ft-input-label:after {
|
|
297
|
+
content: "";
|
|
298
|
+
display: flex;
|
|
299
|
+
border-bottom-width: 1px;
|
|
300
|
+
border-bottom-style: solid;
|
|
301
|
+
border-color: inherit;
|
|
302
|
+
}
|
|
552
303
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
558
|
-
align-self: stretch;
|
|
559
|
-
resize: none;
|
|
304
|
+
.ft-input-label:before {
|
|
305
|
+
width: ${Ye.horizontalSpacing};
|
|
306
|
+
flex-shrink: 0;
|
|
307
|
+
}
|
|
560
308
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
309
|
+
.ft-input-label:after {
|
|
310
|
+
flex-grow: 1;
|
|
311
|
+
flex-shrink: 1;
|
|
312
|
+
}
|
|
564
313
|
|
|
565
|
-
|
|
566
|
-
|
|
314
|
+
.ft-input-label--text {
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-shrink: 1;
|
|
317
|
+
position: relative;
|
|
318
|
+
border-bottom-width: 1px;
|
|
319
|
+
border-bottom-style: solid;
|
|
320
|
+
border-color: inherit;
|
|
321
|
+
color: ${Ye.textColor};
|
|
322
|
+
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
323
|
+
${lt(se.fontSize,Ye.fontSize)};
|
|
324
|
+
${lt(se.lineHeight,Ye.fontSize)};
|
|
325
|
+
}
|
|
567
326
|
|
|
568
|
-
|
|
569
|
-
|
|
327
|
+
.ft-input-label--disabled .ft-input-label--text {
|
|
328
|
+
color: ${Ye.disabledTextColor};
|
|
329
|
+
}
|
|
570
330
|
|
|
571
|
-
|
|
572
|
-
|
|
331
|
+
.ft-input-label--hidden-text {
|
|
332
|
+
padding: 0 4px;
|
|
333
|
+
opacity: 0;
|
|
334
|
+
}
|
|
573
335
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
336
|
+
.ft-input-label--floating-text {
|
|
337
|
+
position: absolute;
|
|
338
|
+
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
339
|
+
transition: top 250ms;
|
|
340
|
+
width: calc(100% - 8px);
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
white-space: nowrap;
|
|
343
|
+
text-overflow: ellipsis;
|
|
344
|
+
padding: ${Ye.verticalSpacing} 4px;
|
|
345
|
+
margin: calc(${Ye.verticalSpacing} * -1) 0;
|
|
346
|
+
}
|
|
577
347
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
348
|
+
.ft-input-label--raised .ft-input-label--text {
|
|
349
|
+
${lt(se.fontSize,Ye.raisedFontSize)};
|
|
350
|
+
${lt(se.lineHeight,Ye.raisedFontSize)};
|
|
351
|
+
}
|
|
581
352
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}
|
|
353
|
+
.ft-input-label--raised .ft-input-label--floating-text {
|
|
354
|
+
top: ${Ye.verticalSpacing};
|
|
355
|
+
}
|
|
586
356
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
357
|
+
.ft-input-label--outlined .ft-input-label--text,
|
|
358
|
+
.ft-input-label--outlined:before,
|
|
359
|
+
.ft-input-label--outlined:after {
|
|
360
|
+
border-top-width: 1px;
|
|
361
|
+
border-top-style: solid;
|
|
362
|
+
}
|
|
590
363
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
364
|
+
.ft-input-label--outlined:before {
|
|
365
|
+
border-left-width: 1px;
|
|
366
|
+
border-left-style: solid;
|
|
367
|
+
border-radius: ${Ye.borderRadiusS} 0 0 ${Ye.borderRadiusS};
|
|
368
|
+
}
|
|
596
369
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
370
|
+
.ft-input-label--outlined:after {
|
|
371
|
+
border-right-width: 1px;
|
|
372
|
+
border-right-style: solid;
|
|
373
|
+
border-radius: 0 ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0;
|
|
374
|
+
}
|
|
600
375
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
376
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
377
|
+
padding: 2px 4px;
|
|
378
|
+
z-index: ${Ye.raisedZIndex};
|
|
379
|
+
background-color: ${Ye.colorSurface};
|
|
380
|
+
border-radius: ${Ye.borderRadiusS};
|
|
381
|
+
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
382
|
+
}
|
|
605
383
|
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
384
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
385
|
+
border-top: none;
|
|
386
|
+
}
|
|
387
|
+
`],Je([i({type:String})],Ge.prototype,"text",void 0),Je([i({type:Boolean})],Ge.prototype,"raised",void 0),Je([i({type:Boolean})],Ge.prototype,"outlined",void 0),Je([i({type:Boolean})],Ge.prototype,"disabled",void 0),n("ft-input-label")(Ge);var Qe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const ti={color:at.extend("--ft-ripple-color",pt.colorContent),primaryColor:at.extend("--ft-ripple-primary-color",at.extend("--ft-ripple-color",pt.colorPrimary)),secondaryColor:at.extend("--ft-ripple-secondary-color",at.extend("--ft-ripple-color",pt.colorSecondary)),opacityContentOnSurfacePressed:at.external(pt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:at.external(pt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:at.external(pt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:at.external(pt.opacityContentOnSurfaceSelected,"Design system")};class ei extends ht{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return _`
|
|
388
|
+
<style>
|
|
389
|
+
.ft-ripple .ft-ripple--effect,
|
|
390
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
391
|
+
width: ${this.rippleSize}px;
|
|
392
|
+
height: ${this.rippleSize}px;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ft-ripple .ft-ripple--effect {
|
|
396
|
+
left: ${this.originX}px;
|
|
397
|
+
top: ${this.originY}px;
|
|
398
|
+
}
|
|
399
|
+
</style>
|
|
400
|
+
<div class="${mt(t)}">
|
|
401
|
+
<div class="ft-ripple--background"></div>
|
|
402
|
+
<div class="ft-ripple--effect"></div>
|
|
403
|
+
</div>
|
|
404
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=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",s),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",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ei.elementDefinitions={},ei.styles=f`
|
|
405
|
+
:host {
|
|
406
|
+
display: contents;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.ft-ripple {
|
|
410
|
+
position: absolute;
|
|
411
|
+
inset: 0;
|
|
412
|
+
pointer-events: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.ft-ripple .ft-ripple--background,
|
|
420
|
+
.ft-ripple .ft-ripple--effect {
|
|
421
|
+
position: absolute;
|
|
422
|
+
opacity: 0;
|
|
423
|
+
background-color: ${ti.color};
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
427
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
428
|
+
background-color: ${ti.secondaryColor};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
432
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
433
|
+
background-color: ${ti.primaryColor};
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.ft-ripple .ft-ripple--background {
|
|
437
|
+
top: 0;
|
|
438
|
+
left: 0;
|
|
439
|
+
height: 100%;
|
|
440
|
+
width: 100%;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.ft-ripple .ft-ripple--effect,
|
|
444
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
445
|
+
border-radius: 50%;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.ft-ripple .ft-ripple--effect {
|
|
449
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
450
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
454
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
455
|
+
left: 50%;
|
|
456
|
+
top: 50%;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
460
|
+
transform: translate(-50%, -50%);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
464
|
+
opacity: ${ti.opacityContentOnSurfaceHover};
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
468
|
+
opacity: ${ti.opacityContentOnSurfaceSelected};
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
472
|
+
opacity: ${ti.opacityContentOnSurfaceFocused};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
476
|
+
opacity: ${ti.opacityContentOnSurfacePressed};
|
|
477
|
+
transform: translate(-50%, -50%) scale(1);
|
|
478
|
+
}
|
|
479
|
+
`,Qe([i({type:Boolean})],ei.prototype,"primary",void 0),Qe([i({type:Boolean})],ei.prototype,"secondary",void 0),Qe([i({type:Boolean})],ei.prototype,"unbounded",void 0),Qe([i({type:Boolean})],ei.prototype,"activated",void 0),Qe([i({type:Boolean})],ei.prototype,"selected",void 0),Qe([i({type:Boolean})],ei.prototype,"disabled",void 0),Qe([o()],ei.prototype,"hovered",void 0),Qe([o()],ei.prototype,"focused",void 0),Qe([o()],ei.prototype,"pressed",void 0),Qe([o()],ei.prototype,"rippling",void 0),Qe([o()],ei.prototype,"rippleSize",void 0),Qe([o()],ei.prototype,"originX",void 0),Qe([o()],ei.prototype,"originY",void 0),Qe([s(".ft-ripple")],ei.prototype,"ripple",void 0),Qe([s(".ft-ripple--effect")],ei.prototype,"rippleEffect",void 0),n("ft-ripple")(ei);var ii=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const oi={fontSize:at.create("--ft-text-area-font-size","SIZE","14px"),labelSize:at.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:at.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:at.extend("--ft-text-area-helper-color",pt.colorOnSurfaceMedium),colorPrimary:at.external(pt.colorPrimary,"Design system"),colorOnSurface:at.external(pt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:at.external(pt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:at.external(pt.borderRadiusS,"Design system")};class si extends ht{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!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};return _`
|
|
480
|
+
<style>
|
|
481
|
+
.ft-text-area--main-panel {
|
|
482
|
+
height: calc(4 * ${oi.verticalSpacing} + ${oi.labelSize} + ${oi.fontSize} + ${this.height}px);
|
|
610
483
|
}
|
|
611
|
-
|
|
612
|
-
<div class="${
|
|
484
|
+
</style>
|
|
485
|
+
<div class="${mt(t)}">
|
|
613
486
|
<div class="ft-text-area--main-panel">
|
|
614
487
|
<ft-input-label text="${this.label}"
|
|
615
488
|
?disabled=${this.disabled}
|
|
@@ -618,7 +491,7 @@ class li{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
618
491
|
></ft-input-label>
|
|
619
492
|
<div class="ft-text-area--input-panel"
|
|
620
493
|
aria-label="${this.label}">
|
|
621
|
-
${this.outlined?null:
|
|
494
|
+
${this.outlined?null:_`
|
|
622
495
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
623
496
|
`}
|
|
624
497
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -635,9 +508,104 @@ class li{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
635
508
|
initialHeight="${this.height}"
|
|
636
509
|
cursor="ns-resize"></ft-resizer>
|
|
637
510
|
</div>
|
|
638
|
-
${this.helper?
|
|
511
|
+
${this.helper?_`
|
|
639
512
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
640
513
|
${this.helper}
|
|
641
514
|
</ft-typography>`:void 0}
|
|
642
515
|
</div>
|
|
643
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
516
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}si.elementDefinitions={"ft-input-label":Ge,"ft-resizer":Xe,"ft-ripple":ei,"ft-typography":Fe},si.styles=[Ne,f`
|
|
517
|
+
*:focus {
|
|
518
|
+
outline: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ft-text-area {
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-direction: column;
|
|
524
|
+
align-items: stretch;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
ft-input-label {
|
|
528
|
+
${lt(Ye.fontSize,oi.fontSize)};
|
|
529
|
+
${lt(Ye.raisedFontSize,oi.labelSize)};
|
|
530
|
+
${lt(Ye.verticalSpacing,oi.verticalSpacing)};
|
|
531
|
+
${lt(Ye.horizontalSpacing,f`calc(${oi.horizontalSpacing} - 4px)`)};
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.ft-text-area--main-panel {
|
|
535
|
+
position: relative;
|
|
536
|
+
display: flex;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.ft-text-area--input-panel {
|
|
540
|
+
flex-grow: 1;
|
|
541
|
+
position: relative;
|
|
542
|
+
display: flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
overflow: hidden;
|
|
545
|
+
gap: 8px;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.ft-text-area--input-panel ft-ripple {
|
|
549
|
+
${lt(ti.opacityContentOnSurfaceHover,"0.08")};
|
|
550
|
+
${lt(ti.opacityContentOnSurfacePressed,"0.04")};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.ft-text-area--input {
|
|
554
|
+
display: block;
|
|
555
|
+
flex-grow: 1;
|
|
556
|
+
flex-shrink: 1;
|
|
557
|
+
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
558
|
+
align-self: stretch;
|
|
559
|
+
resize: none;
|
|
560
|
+
|
|
561
|
+
${lt(Yt.fontSize,oi.fontSize)};
|
|
562
|
+
${lt(Yt.lineHeight,oi.fontSize)};
|
|
563
|
+
color: ${oi.colorOnSurface};
|
|
564
|
+
|
|
565
|
+
padding: 0 ${oi.horizontalSpacing};
|
|
566
|
+
margin: calc(${oi.verticalSpacing} + ${oi.labelSize} / 2) 0 ${oi.verticalSpacing} 0;
|
|
567
|
+
|
|
568
|
+
border: none;
|
|
569
|
+
background: none;
|
|
570
|
+
|
|
571
|
+
line-height: 1.4;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.ft-text-area--disabled .ft-text-area--input {
|
|
575
|
+
color: ${oi.colorOnSurfaceDisabled};
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
579
|
+
cursor: pointer;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
583
|
+
${lt(Ye.borderColor,oi.colorPrimary)};
|
|
584
|
+
${lt(Ye.textColor,oi.colorPrimary)};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ft-text-area--filled .ft-text-area--input-panel {
|
|
588
|
+
border-radius: ${oi.borderRadiusS} ${oi.borderRadiusS} 0 0;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
592
|
+
align-self: stretch;
|
|
593
|
+
margin-bottom: ${oi.verticalSpacing};
|
|
594
|
+
margin-top: calc(${oi.labelSize} + 2 * ${oi.verticalSpacing});
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
598
|
+
border-radius: ${oi.borderRadiusS};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.ft-text-area--helper-text {
|
|
602
|
+
padding: 0 12px 0 ${oi.horizontalSpacing};
|
|
603
|
+
color: ${oi.helperColor};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
ft-resizer {
|
|
607
|
+
position: absolute;
|
|
608
|
+
right: 0;
|
|
609
|
+
bottom: 0;
|
|
610
|
+
}
|
|
611
|
+
`],ii([i({type:String})],si.prototype,"label",void 0),ii([i({reflect:!0})],si.prototype,"value",void 0),ii([i({type:String})],si.prototype,"helper",void 0),ii([i({type:Boolean})],si.prototype,"outlined",void 0),ii([i({type:Boolean})],si.prototype,"disabled",void 0),ii([i({type:Number,reflect:!0})],si.prototype,"height",void 0),ii([s("textarea")],si.prototype,"textarea",void 0),ii([o()],si.prototype,"focused",void 0),n("ft-text-area")(si),t.FtTextArea=si,t.FtTextAreaCssVariables=oi,Object.defineProperty(t,"t",{value:!0})}({});
|