@fluid-topics/ft-file-drop 0.3.20 → 0.3.22
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-file-drop.min.js +131 -131
- package/package.json +4 -4
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,p),p.standInClass=c);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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},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),n.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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(si){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const i=(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 o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -35,45 +35,45 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
function r(t,
|
|
38
|
+
function r(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n: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 n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,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}})}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const a=t=>
|
|
43
|
+
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const a=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const l=window,p=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;class f{constructor(t,i
|
|
49
|
+
const l=window,p=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",void 0,c),u=(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 f(i,t,c)},y=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=l.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},v=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return d(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var g;const x=window,b=x.trustedTypes,m=b?b.emptyScript:"",w=x.reactiveElementPolyfillSupport,$={toAttribute(t,
|
|
54
|
+
*/;var g;const x=window,b=x.trustedTypes,m=b?b.emptyScript:"",w=x.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}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._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:$).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:$;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(g=x.reactiveElementVersions)&&void 0!==g?g:x.reactiveElementVersions=[]).push("1.4.1");const N=window,E=N.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,U=`<${z}>`,F=document,j=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,I=/"/g,W=/^(?:script|style|textarea|title)$/i,K=(t=>(i
|
|
60
|
+
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(g=x.reactiveElementVersions)&&void 0!==g?g:x.reactiveElementVersions=[]).push("1.4.1");const N=window,E=N.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,U=`<${z}>`,F=document,j=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,I=/"/g,W=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),H=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=F.createTreeWalker(F,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=L;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===L?"!--"===l[1]?s=D:void 0!==l[1]?s=P:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=T):void 0!==l[3]&&(s=T):s===T?">"===l[0]?(s=null!=n?n:L,p=-1):void 0===l[1]?p=-2:(p=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?T:'"'===l[3]?I:_):s===I||s===_?s=T:s===D||s===P?s=L:(s=T,n=void 0);const h=s===T&&t[e+1].startsWith("/>")?" ":"";r+=s===L?i+U:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+M+h):i+M+(-2===p?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,p]=q(t,e);if(this.el=X.createElement(l,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(W.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),J.nextNode(),a.push({type:2,index:++n});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var n,r,s,a;if(e===H)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=B(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!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);J.currentNode=n;let r=J.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=J.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=Y(this,t,e),B(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==H&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new G(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new X(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Q(this.O(j()),this.O(j()),this,this.options)):i=e[o],i._$AI(n),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=Y(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Y(this,o[i+s],e,s),a===H&&(a=this._$AH[s]),r||(r=!B(a)||a!==this._$AH[s]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:Z)===H)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||n);n&&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 rt{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){Y(this,t)}}const st=N.litHtmlPolyfillSupport;null==st||st(X,Q),(null!==(C=N.litHtmlVersions)&&void 0!==C?C:N.litHtmlVersions=[]).push("2.4.0");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,
|
|
66
|
+
var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Q(e.insertBefore(j(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}pt.finalized=!0,pt._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:pt});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:pt}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ht{static create(t,e,i){let o=t=>d(null!=t?t:i),n=u`var(${d(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${d(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=u`var(${d(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${d(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):d(null!=e?e:t.defaultValue),o=u`var(${d(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>u`var(${d(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ft(t,e){return d(`${t.name}: ${e}`)}const dt={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var ut=function(t,i,
|
|
71
|
+
*/var ut=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class yt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(n,this.constructor.elementStyles),n}}}(pt)){constructor(){super(...arguments),this.exportpartsDebouncer=new e(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
|
|
72
72
|
${t.map((t=>K`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}ut([o()],yt.prototype,"exportpartsPrefix",void 0),ut([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0);const vt=u`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -94,17 +94,17 @@ var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOption
|
|
|
94
94
|
-webkit-hyphens: auto;
|
|
95
95
|
hyphens: auto
|
|
96
96
|
}
|
|
97
|
-
`;const mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(bt=null===(xt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===xt?void 0:xt.toString())&&void 0!==bt?bt:""),wt=1,$t=2,Ot=t=>(...
|
|
97
|
+
`;const mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(bt=null===(xt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===xt?void 0:xt.toString())&&void 0!==bt?bt:""),wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
98
98
|
/**
|
|
99
99
|
* @license
|
|
100
100
|
* Copyright 2017 Google LLC
|
|
101
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
-
*/class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i
|
|
102
|
+
*/class St{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)}}
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright 2018 Google LLC
|
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
-
*/const kt=Ot(class extends St{constructor(t){var
|
|
107
|
+
*/const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==wt||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return H}});const Ct=ht.extend("--ft-ripple-color",dt.colorContent),Nt={color:Ct,backgroundColor:ht.extend("--ft-ripple-background-color",Ct),opacityContentOnSurfacePressed:ht.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(dt.opacityContentOnSurfaceSelected,"Design system")},Et=ht.extend("--ft-ripple-color",dt.colorPrimary),Rt=Et,Mt=ht.extend("--ft-ripple-background-color",Et),zt=ht.extend("--ft-ripple-color",dt.colorSecondary),Ut=zt,Ft=ht.extend("--ft-ripple-background-color",zt),jt=u`
|
|
108
108
|
:host {
|
|
109
109
|
display: contents;
|
|
110
110
|
}
|
|
@@ -193,7 +193,7 @@ var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOption
|
|
|
193
193
|
opacity: ${Nt.opacityContentOnSurfacePressed};
|
|
194
194
|
transform: translate(-50%, -50%) scale(1);
|
|
195
195
|
}
|
|
196
|
-
`;var Bt=function(t,i,
|
|
196
|
+
`;var Bt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class At extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=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!=n?n-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 K`
|
|
197
197
|
<style>
|
|
198
198
|
.ft-ripple .ft-ripple--effect,
|
|
199
199
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -210,13 +210,13 @@ var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOption
|
|
|
210
210
|
<div class="ft-ripple--background"></div>
|
|
211
211
|
<div class="ft-ripple--effect"></div>
|
|
212
212
|
</div>
|
|
213
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i
|
|
213
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}At.elementDefinitions={},At.styles=jt,Bt([o({type:Boolean})],At.prototype,"primary",void 0),Bt([o({type:Boolean})],At.prototype,"secondary",void 0),Bt([o({type:Boolean})],At.prototype,"unbounded",void 0),Bt([o({type:Boolean})],At.prototype,"activated",void 0),Bt([o({type:Boolean})],At.prototype,"selected",void 0),Bt([o({type:Boolean})],At.prototype,"disabled",void 0),Bt([n()],At.prototype,"hovered",void 0),Bt([n()],At.prototype,"focused",void 0),Bt([n()],At.prototype,"pressed",void 0),Bt([n()],At.prototype,"rippling",void 0),Bt([n()],At.prototype,"rippleSize",void 0),Bt([n()],At.prototype,"originX",void 0),Bt([n()],At.prototype,"originY",void 0),Bt([r(".ft-ripple")],At.prototype,"ripple",void 0),Bt([r(".ft-ripple--effect")],At.prototype,"rippleEffect",void 0),a("ft-ripple")(At);
|
|
214
214
|
/**
|
|
215
215
|
* @license
|
|
216
216
|
* Copyright 2020 Google LLC
|
|
217
217
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
218
218
|
*/
|
|
219
|
-
const Lt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void 0:t._$litStatic$},Pt=t=>({_$litStatic$:t,r:Lt}),Tt=new Map,_t=(t=>(i
|
|
219
|
+
const Lt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void 0:t._$litStatic$},Pt=t=>({_$litStatic$:t,r:Lt}),Tt=new Map,_t=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,p=0,c=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],n=Dt(r));)l+=n+e[++p],c=!0;a.push(r),s.push(l),p++}if(p===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Tt.get(t))&&(s.raw=s,Tt.set(t,e=s)),i=a}return t(e,...i)})(K);var It;!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"}(It||(It={}));const Wt=ht.extend("--ft-typography-font-family",dt.titleFont),Kt=ht.extend("--ft-typography-font-family",dt.contentFont),Ht={fontFamily:Kt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Zt=ht.extend("--ft-typography-title-font-family",Wt),Vt=ht.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Jt=ht.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),qt=ht.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),Xt=ht.extend("--ft-typography-title-line-height",Ht.lineHeight,"1.2"),Yt=ht.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Gt=ht.extend("--ft-typography-title-dense-font-family",Wt),Qt=ht.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),te=ht.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),ee=ht.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),ie=ht.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"1.7"),oe=ht.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),ne=ht.extend("--ft-typography-subtitle1-font-family",Kt),re=ht.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),se=ht.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),ae=ht.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),le=ht.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"1.5"),pe=ht.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),ce=ht.extend("--ft-typography-subtitle2-font-family",Kt),he=ht.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),fe=ht.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),de=ht.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),ue=ht.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"1.7"),ye=ht.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),ve=ht.extend("--ft-typography-body1-font-family",Kt),ge=ht.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),xe=ht.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),be=ht.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),me=ht.extend("--ft-typography-body1-line-height",Ht.lineHeight,"1.5"),we=ht.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit"),$e={fontFamily:ht.extend("--ft-typography-body2-font-family",Kt),fontSize:ht.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),letterSpacing:ht.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),lineHeight:ht.extend("--ft-typography-body2-line-height",Ht.lineHeight,"1.4"),textTransform:ht.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit")},Oe=ht.extend("--ft-typography-caption-font-family",Kt),Se=ht.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),ke=ht.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),Ce=ht.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),Ne=ht.extend("--ft-typography-caption-line-height",Ht.lineHeight,"1.33"),Ee=ht.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit"),Re=ht.extend("--ft-typography-breadcrumb-font-family",Kt),Me=ht.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),ze=ht.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),Ue=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Fe=ht.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"1.6"),je=ht.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),Be=ht.extend("--ft-typography-overline-font-family",Kt),Ae=ht.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),Le=ht.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),De=ht.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Pe=ht.extend("--ft-typography-overline-line-height",Ht.lineHeight,"1.6"),Te=ht.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),_e=ht.extend("--ft-typography-button-font-family",Kt),Ie=ht.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),We=ht.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),Ke=ht.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),He=ht.extend("--ft-typography-button-line-height",Ht.lineHeight,"1.15"),Ze=ht.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase"),Ve=u`
|
|
220
220
|
.ft-typography--title {
|
|
221
221
|
font-family: ${Zt};
|
|
222
222
|
font-size: ${Vt};
|
|
@@ -225,118 +225,118 @@ const Lt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void
|
|
|
225
225
|
line-height: ${Xt};
|
|
226
226
|
text-transform: ${Yt};
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
228
|
+
`,Je=u`
|
|
229
229
|
.ft-typography--title-dense {
|
|
230
230
|
font-family: ${Gt};
|
|
231
231
|
font-size: ${Qt};
|
|
232
|
-
font-weight: ${
|
|
233
|
-
letter-spacing: ${
|
|
234
|
-
line-height: ${
|
|
235
|
-
text-transform: ${
|
|
232
|
+
font-weight: ${te};
|
|
233
|
+
letter-spacing: ${ee};
|
|
234
|
+
line-height: ${ie};
|
|
235
|
+
text-transform: ${oe};
|
|
236
236
|
}
|
|
237
|
-
`,
|
|
237
|
+
`,qe=u`
|
|
238
238
|
.ft-typography--subtitle1 {
|
|
239
|
-
font-family: ${
|
|
240
|
-
font-size: ${
|
|
241
|
-
font-weight: ${
|
|
242
|
-
letter-spacing: ${
|
|
243
|
-
line-height: ${
|
|
244
|
-
text-transform: ${
|
|
245
|
-
}
|
|
246
|
-
`,
|
|
239
|
+
font-family: ${ne};
|
|
240
|
+
font-size: ${re};
|
|
241
|
+
font-weight: ${se};
|
|
242
|
+
letter-spacing: ${ae};
|
|
243
|
+
line-height: ${le};
|
|
244
|
+
text-transform: ${pe};
|
|
245
|
+
}
|
|
246
|
+
`,Xe=u`
|
|
247
247
|
.ft-typography--subtitle2 {
|
|
248
|
-
font-family: ${
|
|
249
|
-
font-size: ${
|
|
250
|
-
font-weight: ${
|
|
251
|
-
letter-spacing: ${
|
|
252
|
-
line-height: ${
|
|
253
|
-
text-transform: ${
|
|
248
|
+
font-family: ${ce};
|
|
249
|
+
font-size: ${he};
|
|
250
|
+
font-weight: ${fe};
|
|
251
|
+
letter-spacing: ${de};
|
|
252
|
+
line-height: ${ue};
|
|
253
|
+
text-transform: ${ye};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
`,
|
|
256
|
+
`,Ye=u`
|
|
257
257
|
.ft-typography--body1 {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
264
|
-
}
|
|
265
|
-
`,
|
|
258
|
+
font-family: ${ve};
|
|
259
|
+
font-size: ${ge};
|
|
260
|
+
font-weight: ${xe};
|
|
261
|
+
letter-spacing: ${be};
|
|
262
|
+
line-height: ${me};
|
|
263
|
+
text-transform: ${we};
|
|
264
|
+
}
|
|
265
|
+
`,Ge=u`
|
|
266
266
|
.ft-typography--body2 {
|
|
267
|
-
font-family: ${$
|
|
268
|
-
font-size: ${$
|
|
269
|
-
font-weight: ${$
|
|
270
|
-
letter-spacing: ${$
|
|
271
|
-
line-height: ${$
|
|
272
|
-
text-transform: ${$
|
|
273
|
-
}
|
|
274
|
-
`,
|
|
267
|
+
font-family: ${$e.fontFamily};
|
|
268
|
+
font-size: ${$e.fontSize};
|
|
269
|
+
font-weight: ${$e.fontWeight};
|
|
270
|
+
letter-spacing: ${$e.letterSpacing};
|
|
271
|
+
line-height: ${$e.lineHeight};
|
|
272
|
+
text-transform: ${$e.textTransform};
|
|
273
|
+
}
|
|
274
|
+
`,Qe=u`
|
|
275
275
|
.ft-typography--caption {
|
|
276
|
-
font-family: ${
|
|
277
|
-
font-size: ${
|
|
278
|
-
font-weight: ${
|
|
279
|
-
letter-spacing: ${
|
|
280
|
-
line-height: ${
|
|
281
|
-
text-transform: ${
|
|
282
|
-
}
|
|
283
|
-
`,
|
|
276
|
+
font-family: ${Oe};
|
|
277
|
+
font-size: ${Se};
|
|
278
|
+
font-weight: ${ke};
|
|
279
|
+
letter-spacing: ${Ce};
|
|
280
|
+
line-height: ${Ne};
|
|
281
|
+
text-transform: ${Ee};
|
|
282
|
+
}
|
|
283
|
+
`,ti=u`
|
|
284
284
|
.ft-typography--breadcrumb {
|
|
285
|
-
font-family: ${
|
|
286
|
-
font-size: ${
|
|
287
|
-
font-weight: ${
|
|
288
|
-
letter-spacing: ${
|
|
289
|
-
line-height: ${
|
|
290
|
-
text-transform: ${
|
|
291
|
-
}
|
|
292
|
-
`,
|
|
285
|
+
font-family: ${Re};
|
|
286
|
+
font-size: ${Me};
|
|
287
|
+
font-weight: ${ze};
|
|
288
|
+
letter-spacing: ${Ue};
|
|
289
|
+
line-height: ${Fe};
|
|
290
|
+
text-transform: ${je};
|
|
291
|
+
}
|
|
292
|
+
`,ei=u`
|
|
293
293
|
.ft-typography--overline {
|
|
294
|
-
font-family: ${
|
|
295
|
-
font-size: ${
|
|
296
|
-
font-weight: ${
|
|
297
|
-
letter-spacing: ${
|
|
298
|
-
line-height: ${
|
|
299
|
-
text-transform: ${
|
|
300
|
-
}
|
|
301
|
-
`,
|
|
294
|
+
font-family: ${Be};
|
|
295
|
+
font-size: ${Ae};
|
|
296
|
+
font-weight: ${Le};
|
|
297
|
+
letter-spacing: ${De};
|
|
298
|
+
line-height: ${Pe};
|
|
299
|
+
text-transform: ${Te};
|
|
300
|
+
}
|
|
301
|
+
`,ii=u`
|
|
302
302
|
.ft-typography--button {
|
|
303
|
-
font-family: ${
|
|
304
|
-
font-size: ${
|
|
305
|
-
font-weight: ${
|
|
306
|
-
letter-spacing: ${
|
|
307
|
-
line-height: ${
|
|
308
|
-
text-transform: ${
|
|
309
|
-
}
|
|
310
|
-
`,
|
|
303
|
+
font-family: ${_e};
|
|
304
|
+
font-size: ${Ie};
|
|
305
|
+
font-weight: ${We};
|
|
306
|
+
letter-spacing: ${Ke};
|
|
307
|
+
line-height: ${He};
|
|
308
|
+
text-transform: ${Ze};
|
|
309
|
+
}
|
|
310
|
+
`,oi=u`
|
|
311
311
|
.ft-typography {
|
|
312
312
|
vertical-align: inherit;
|
|
313
313
|
}
|
|
314
|
-
`;var
|
|
314
|
+
`;var ni=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ri extends yt{constructor(){super(...arguments),this.variant=It.body1}render(){return this.element?_t`
|
|
315
315
|
<${Pt(this.element)}
|
|
316
316
|
class="ft-typography ft-typography--${this.variant}">
|
|
317
317
|
<slot></slot>
|
|
318
318
|
</${Pt(this.element)}>
|
|
319
319
|
`:_t`
|
|
320
320
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
321
|
-
`}}
|
|
321
|
+
`}}ri.styles=[Ve,Je,qe,Xe,Ye,Ge,Qe,ti,ei,ii,oi],ni([o()],ri.prototype,"element",void 0),ni([o()],ri.prototype,"variant",void 0),a("ft-typography")(ri);
|
|
322
322
|
/**
|
|
323
323
|
* @license
|
|
324
324
|
* Copyright 2017 Google LLC
|
|
325
325
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
326
326
|
*/
|
|
327
|
-
class
|
|
327
|
+
class si extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}si.directiveName="unsafeHTML",si.resultType=1;const ai=Ot(si);var li,pi;!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=""}(li||(li={})),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=""}(pi||(pi={})),new Map([...["abw"].map((t=>[t,pi.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,pi.AUDIO])),...["avi"].map((t=>[t,pi.AVI])),...["chm","xhs"].map((t=>[t,pi.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,pi.CODE])),...["csv"].map((t=>[t,pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,pi.DITA])),...["epub"].map((t=>[t,pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,pi.EXCEL])),...["flac"].map((t=>[t,pi.FLAC])),...["gif"].map((t=>[t,pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,pi.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,pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,pi.JPEG])),...["json"].map((t=>[t,pi.JSON])),...["m4a","m4p"].map((t=>[t,pi.M4A])),...["mov","qt"].map((t=>[t,pi.MOV])),...["mp3"].map((t=>[t,pi.MP3])),...["mp4","m4v"].map((t=>[t,pi.MP4])),...["ogg","oga"].map((t=>[t,pi.OGG])),...["pdf","ps"].map((t=>[t,pi.PDF])),...["png"].map((t=>[t,pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,pi.POWERPOINT])),...["rar"].map((t=>[t,pi.RAR])),...["stp"].map((t=>[t,pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,pi.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,pi.VIDEO])),...["wav"].map((t=>[t,pi.WAV])),...["wma"].map((t=>[t,pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,pi.YAML])),...["zip"].map((t=>[t,pi.ZIP]))]);const ci={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ht.create("--ft-icon-vertical-align","UNKNOWN","unset")},hi=u`
|
|
328
328
|
:host {
|
|
329
329
|
display: inline-block;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
:host, i.ft-icon {
|
|
333
|
-
width: ${
|
|
334
|
-
height: ${
|
|
333
|
+
width: ${ci.size};
|
|
334
|
+
height: ${ci.size};
|
|
335
335
|
text-align: center;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
i.ft-icon {
|
|
339
|
-
font-size: ${
|
|
339
|
+
font-size: ${ci.size};
|
|
340
340
|
line-height: 1;
|
|
341
341
|
font-weight: normal;
|
|
342
342
|
text-transform: none;
|
|
@@ -347,26 +347,26 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
347
347
|
text-rendering: auto;
|
|
348
348
|
-webkit-font-smoothing: antialiased;
|
|
349
349
|
-moz-osx-font-smoothing: grayscale;
|
|
350
|
-
vertical-align: ${
|
|
350
|
+
vertical-align: ${ci.verticalAlign};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-icon--fluid-topics {
|
|
354
|
-
font-family: ${
|
|
354
|
+
font-family: ${ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
.ft-icon--file-format {
|
|
358
|
-
font-family: ${
|
|
358
|
+
font-family: ${ci.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-icon--material {
|
|
362
|
-
font-family: ${
|
|
362
|
+
font-family: ${ci.materialFontFamily}, "Material Icons", sans-serif;
|
|
363
363
|
}
|
|
364
|
-
`;var
|
|
364
|
+
`;var fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fi||(fi={}));var di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ui extends yt{constructor(){super(...arguments),this.variant=fi.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return K`
|
|
365
365
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
366
|
-
${
|
|
366
|
+
${ai(this.resolvedIcon)}
|
|
367
367
|
<slot ?hidden=${t}></slot>
|
|
368
368
|
</i>
|
|
369
|
-
`}get textContent(){var t,
|
|
369
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case fi.file_format:this.resolvedIcon=null!==(t=pi[i.toUpperCase()])&&void 0!==t?t:i;break;case fi.fluid_topics:this.resolvedIcon=null!==(e=li[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ui.elementDefinitions={},ui.styles=hi,di([o()],ui.prototype,"variant",void 0),di([o()],ui.prototype,"value",void 0),di([n()],ui.prototype,"resolvedIcon",void 0),di([r("slot")],ui.prototype,"slottedContent",void 0),a("ft-icon")(ui);const yi=ht.extend("--ft-chip-color",dt.colorOnSurface),vi={backgroundColor:ht.extend("--ft-chip-background-color",dt.colorSurface),color:yi,fontSize:ht.extend("--ft-chip-font-size",$e.fontSize),iconSize:ht.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:ht.extend("--ft-chip-ripple-color",yi),horizontalPadding:ht.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:ht.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:ht.external(dt.colorOutline,"Design system"),opacityDisabled:ht.external(dt.colorOpacityDisabled,"Design system")},gi=ht.extend("--ft-chip-highlighted-color",ht.extend("--ft-chip-color",dt.colorOnPrimary)),xi={backgroundColor:ht.extend("--ft-chip-highlighted-background-color",ht.extend("--ft-chip-background-color",dt.colorPrimary)),color:gi,rippleColor:ht.extend("--ft-chip-highlighted-ripple-color",gi)},bi=ht.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),mi=ht.create("--ft-chip-dense-vertical-padding","SIZE","4px"),wi=[vt,u`
|
|
370
370
|
:host {
|
|
371
371
|
display: inline-block;
|
|
372
372
|
max-width: 100%;
|
|
@@ -383,20 +383,20 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
383
383
|
box-sizing: border-box;
|
|
384
384
|
pointer-events: auto;
|
|
385
385
|
|
|
386
|
-
--ft-chip-internal-font-size: ${
|
|
386
|
+
--ft-chip-internal-font-size: ${vi.fontSize};
|
|
387
387
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
388
|
-
${ft(
|
|
389
|
-
--ft-chip-internal-vertical-padding: ${
|
|
390
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
388
|
+
${ft(ci.size,vi.iconSize)};
|
|
389
|
+
--ft-chip-internal-vertical-padding: ${vi.verticalPadding};
|
|
390
|
+
--ft-chip-internal-horizontal-padding: ${vi.horizontalPadding};
|
|
391
391
|
--ft-chip-internal-icon-padding: 3px;
|
|
392
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
392
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${vi.iconSize});
|
|
393
393
|
|
|
394
|
-
border: 1px solid ${
|
|
395
|
-
color: ${
|
|
396
|
-
${ft(Nt.color,
|
|
394
|
+
border: 1px solid ${vi.colorOutline};
|
|
395
|
+
color: ${vi.color};
|
|
396
|
+
${ft(Nt.color,vi.rippleColor)};
|
|
397
397
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
398
398
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
399
|
-
background-color: ${
|
|
399
|
+
background-color: ${vi.backgroundColor};
|
|
400
400
|
line-height: var(--ft-chip-internal-content-height);
|
|
401
401
|
}
|
|
402
402
|
|
|
@@ -406,8 +406,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
406
406
|
|
|
407
407
|
.ft-chip--dense {
|
|
408
408
|
--ft-chip-internal-icon-padding: 3px;
|
|
409
|
-
--ft-chip-internal-vertical-padding: ${
|
|
410
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
409
|
+
--ft-chip-internal-vertical-padding: ${mi};
|
|
410
|
+
--ft-chip-internal-horizontal-padding: ${bi};
|
|
411
411
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
412
412
|
}
|
|
413
413
|
|
|
@@ -419,15 +419,15 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
419
419
|
cursor: default;
|
|
420
420
|
pointer-events: none;
|
|
421
421
|
filter: grayscale(1);
|
|
422
|
-
opacity: ${
|
|
422
|
+
opacity: ${vi.opacityDisabled};
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.ft-chip--highlighted {
|
|
426
426
|
border: none;
|
|
427
427
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
428
|
-
background-color: ${
|
|
429
|
-
${ft(Nt.color,
|
|
430
|
-
color: ${
|
|
428
|
+
background-color: ${xi.backgroundColor};
|
|
429
|
+
${ft(Nt.color,xi.rippleColor)};
|
|
430
|
+
color: ${xi.color};
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
.ft-chip--clickable {
|
|
@@ -460,8 +460,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
460
460
|
vertical-align: bottom;
|
|
461
461
|
display: block;
|
|
462
462
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
463
|
-
${ft($
|
|
464
|
-
${ft($
|
|
463
|
+
${ft($e.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
464
|
+
${ft($e.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -496,7 +496,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
496
496
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
497
497
|
order: -1;
|
|
498
498
|
}
|
|
499
|
-
`];var $
|
|
499
|
+
`];var $i=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Oi extends CustomEvent{constructor(){super("icon-click")}}class Si extends yt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":mt};return K`
|
|
500
500
|
<div class="${kt(t)}"
|
|
501
501
|
aria-label="${this.getLabel()}"
|
|
502
502
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -515,7 +515,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
515
515
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
516
516
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
517
517
|
</div>
|
|
518
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
518
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Oi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Oi))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Si.elementDefinitions={"ft-ripple":At,"ft-typography":ri,"ft-icon":ui},Si.styles=wi,$i([o({type:Boolean})],Si.prototype,"highlighted",void 0),$i([o({type:Boolean})],Si.prototype,"removable",void 0),$i([o({type:Boolean})],Si.prototype,"disabled",void 0),$i([o({type:Boolean})],Si.prototype,"clickable",void 0),$i([o({type:Boolean})],Si.prototype,"iconClickable",void 0),$i([o({type:Boolean})],Si.prototype,"dense",void 0),$i([o({type:Boolean})],Si.prototype,"multiLine",void 0),$i([o({type:String})],Si.prototype,"label",void 0),$i([o({type:String})],Si.prototype,"icon",void 0),$i([o({type:Boolean})],Si.prototype,"trailingIcon",void 0),$i([r("ft-typography slot")],Si.prototype,"slottedContent",void 0),a("ft-chip")(Si);const ki={zIndex:ht.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:ht.extend("--ft-file-drop-hint-background-color",dt.colorSurface),hintColor:ht.extend("--ft-file-drop-hint-color",dt.colorPrimary),errorColor:ht.extend("--ft-file-drop-error-color",dt.colorError),borderRadius:ht.extend("--ft-file-drop-border-radius",dt.borderRadiusL),borderWidth:ht.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:ht.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:ht.extend("--ft-file-drop-visible-border-color",dt.colorOutline),activeBorderColor:ht.extend("--ft-file-drop-active-border-color",dt.colorPrimary)},Ci=u`
|
|
519
519
|
:host {
|
|
520
520
|
display: block;
|
|
521
521
|
position: relative;
|
|
@@ -524,16 +524,16 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
524
524
|
#container {
|
|
525
525
|
position: absolute;
|
|
526
526
|
inset: 0;
|
|
527
|
-
border: dashed ${
|
|
528
|
-
border-radius: ${
|
|
527
|
+
border: dashed ${ki.borderWidth} ${ki.borderColor};
|
|
528
|
+
border-radius: ${ki.borderRadius};
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
#container.visible {
|
|
532
|
-
border-color: ${
|
|
532
|
+
border-color: ${ki.visibleBorderColor}
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
#container.dragging {
|
|
536
|
-
border-color: ${
|
|
536
|
+
border-color: ${ki.activeBorderColor}
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
slot {
|
|
@@ -547,7 +547,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
547
547
|
display: none;
|
|
548
548
|
position: absolute;
|
|
549
549
|
inset: 0;
|
|
550
|
-
z-index: ${
|
|
550
|
+
z-index: ${ki.zIndex};
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
#container.dragging #overlay {
|
|
@@ -558,9 +558,9 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
558
558
|
z-index: 1;
|
|
559
559
|
position: absolute;
|
|
560
560
|
inset: 0;
|
|
561
|
-
background-color: ${
|
|
561
|
+
background-color: ${ki.activeBorderColor};
|
|
562
562
|
opacity: 0.20;
|
|
563
|
-
border-radius: ${
|
|
563
|
+
border-radius: ${ki.borderRadius};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
#overlay-drop {
|
|
@@ -580,20 +580,20 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
580
580
|
|
|
581
581
|
#overlay-content ft-chip {
|
|
582
582
|
margin-bottom: 10%;
|
|
583
|
-
${ft(
|
|
584
|
-
${ft(
|
|
585
|
-
${ft(
|
|
583
|
+
${ft(vi.color,ki.hintColor)};
|
|
584
|
+
${ft(vi.iconSize,"32px")};
|
|
585
|
+
${ft(vi.colorOutline,"transparent")};
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
#overlay-content xft-chip[icon=error] {
|
|
589
|
-
${ft(
|
|
590
|
-
${ft(
|
|
589
|
+
${ft(vi.color,ki.errorColor)};
|
|
590
|
+
${ft(vi.backgroundColor,ki.hintBackgroundColor)};
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
[hidden] {
|
|
594
594
|
display: none;
|
|
595
595
|
}
|
|
596
|
-
`;var
|
|
596
|
+
`;var Ni=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ei extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class Ri extends yt{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return K`
|
|
597
597
|
<div id="container"
|
|
598
598
|
class="${kt(t)}"
|
|
599
599
|
@dragenter=${this.onDragEnter}
|
|
@@ -611,4 +611,4 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
611
611
|
</div>
|
|
612
612
|
<slot></slot>
|
|
613
613
|
</div>
|
|
614
|
-
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let
|
|
614
|
+
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let e=t.dataTransfer.files[0];!function(t,e,i){if(0==t.length)return!0;let o=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),n=new RegExp(o),r=e.includes(".")?"."+e.split(".").pop():void 0;return!(!r||!n.test(r))||n.test(i)}(this.accept,e.name,e.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Ei(e)))}}}Ri.elementDefinitions={"ft-chip":Si},Ri.styles=Ci,Ni([o()],Ri.prototype,"dropHint",void 0),Ni([o()],Ri.prototype,"accept",void 0),Ni([o()],Ri.prototype,"fileTypeError",void 0),Ni([o({type:Boolean})],Ri.prototype,"visible",void 0),Ni([n()],Ri.prototype,"dragging",void 0),Ni([n()],Ri.prototype,"fileError",void 0),a("ft-file-drop")(Ri),t.FileDropEvent=Ei,t.FtFileDrop=Ri,t.FtFileDropCssVariables=ki,t.styles=Ci,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-drop",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"description": "Container that accepts dropping files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "0.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "0.3.22",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "0.3.22",
|
|
24
24
|
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "5ca6dd4bc6ec9dca0bf645892ec3f07e4b62683d"
|
|
27
27
|
}
|