@fluid-topics/ft-floating-menu 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/README.md +22 -0
- package/build/ft-floating-menu-item.css.d.ts +5 -0
- package/build/ft-floating-menu-item.css.js +31 -0
- package/build/ft-floating-menu-item.d.ts +14 -0
- package/build/ft-floating-menu-item.js +53 -0
- package/build/ft-floating-menu-item.properties.d.ts +5 -0
- package/build/ft-floating-menu-item.properties.js +2 -0
- package/build/ft-floating-menu.css.d.ts +8 -0
- package/build/ft-floating-menu.css.js +44 -0
- package/build/ft-floating-menu.d.ts +15 -0
- package/build/ft-floating-menu.js +75 -0
- package/build/ft-floating-menu.light.js +615 -0
- package/build/ft-floating-menu.min.js +732 -0
- package/build/ft-floating-menu.properties.d.ts +3 -0
- package/build/ft-floating-menu.properties.js +2 -0
- package/build/index.d.ts +7 -0
- package/build/index.js +12 -0
- package/package.json +30 -0
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
!function(t){
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
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
|
|
16
|
+
*/
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const 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 b=(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}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(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($i){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
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
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
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/}function n(t){return o({...t,state:!0})}
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*/const r=({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)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function s(t,e){return r({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}})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/
|
|
48
|
+
const c=window,h=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)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(h&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new u("string"==typeof t?t:t+"",void 0,f),v=(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 u(i,t,f)},b=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=c.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
|
|
49
|
+
/**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2017 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
+
*/;var g;const m=window,w=m.trustedTypes,$=w?w.emptyScript:"",O=m.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:S};class N 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=C){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)||C}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(x(t))}else void 0!==t&&e.push(x(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 b(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=C){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:k).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:k;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||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
54
|
+
/**
|
|
55
|
+
* @license
|
|
56
|
+
* Copyright 2017 Google LLC
|
|
57
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
+
*/
|
|
59
|
+
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:N}),(null!==(g=m.reactiveElementVersions)&&void 0!==g?g:m.reactiveElementVersions=[]).push("1.4.1");const R=window,M=R.trustedTypes,z=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,F="?"+U,j=`<${F}>`,B=document,A=(t="")=>B.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,P=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=B.createTreeWalker(B,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=D;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===D?"!--"===l[1]?s=_:void 0!==l[1]?s=P:void 0!==l[2]?(K.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=W):void 0!==l[3]&&(s=W):s===W?">"===l[0]?(s=null!=n?n:D,p=-1):void 0===l[1]?p=-2:(p=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?W:'"'===l[3]?H:I):s===H||s===I?s=W:s===_||s===P?s=D:(s=W,n=void 0);const h=s===W&&t[e+1].startsWith("/>")?" ":"";r+=s===D?i+j:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+U+h):i+U+(-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!==z?z.createHTML(a):a,o]};class G{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]=Y(t,e);if(this.el=G.createElement(l,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.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(U)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?rt:"@"===e[1]?st:it})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),a.push({type:2,index:++n});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var n,r,s,a;if(e===V)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=T(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=Q(t,l._$AS(t,e.values),l,o)),e}class tt{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:B).importNode(i,!0);X.currentNode=n;let r=X.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new et(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new at(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=X.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 et{constructor(t,e,i,o){var n;this.type=2,this._$AH=J,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=Q(this,t,e),T(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(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!==J&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.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=G.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 tt(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){L(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 et(this.O(A()),this.O(A()),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 it{constructor(t,e,i,o,n){this.type=1,this._$AH=J,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=J}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=Q(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Q(this,o[i+s],e,s),a===V&&(a=this._$AH[s]),r||(r=!T(a)||a!==this._$AH[s]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const nt=M?M.emptyScript:"";class rt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class st extends it{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=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,n=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==J&&(o===J||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 at{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){Q(this,t)}}const lt=R.litHtmlPolyfillSupport;null==lt||lt(G,et),(null!==(E=R.litHtmlVersions)&&void 0!==E?E:R.litHtmlVersions=[]).push("2.4.0");
|
|
60
|
+
/**
|
|
61
|
+
* @license
|
|
62
|
+
* Copyright 2017 Google LLC
|
|
63
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
+
*/
|
|
65
|
+
var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new et(e.insertBefore(A(),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 V}}ht.finalized=!0,ht._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ht});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:ht}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class dt{static create(t,e,i){let o=t=>y(null!=t?t:i),n=v`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>v`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=v`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>v`var(${y(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):y(null!=e?e:t.defaultValue),o=v`var(${y(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=>v`var(${y(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 ut(t,e){return y(`${t.name}: ${e}`)}const yt={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.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:dt.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:dt.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:dt.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:dt.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:dt.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:dt.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:dt.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:dt.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:dt.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:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
|
+
/**
|
|
67
|
+
* @license
|
|
68
|
+
* Copyright 2021 Google LLC
|
|
69
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
+
*/var vt=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 bt 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 b(n,this.constructor.elementStyles),n}}}(ht)){constructor(){super(...arguments),this.exportpartsDebouncer=new e(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
|
|
71
|
+
${t.map((t=>Z`
|
|
72
|
+
<style>${t}</style>
|
|
73
|
+
`))}
|
|
74
|
+
${this.getTemplate()}
|
|
75
|
+
`}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(", "))}}vt([o()],bt.prototype,"exportpartsPrefix",void 0),vt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0);const xt=v`
|
|
76
|
+
.ft-no-text-select {
|
|
77
|
+
-webkit-touch-callout: none;
|
|
78
|
+
-webkit-user-select: none;
|
|
79
|
+
-khtml-user-select: none;
|
|
80
|
+
-moz-user-select: none;
|
|
81
|
+
-ms-user-select: none;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
`;var gt,mt,wt;v`
|
|
85
|
+
.ft-word-wrap {
|
|
86
|
+
white-space: normal;
|
|
87
|
+
word-wrap: break-word;
|
|
88
|
+
-ms-word-break: break-all;
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
word-break: break-word;
|
|
91
|
+
-ms-hyphens: auto;
|
|
92
|
+
-moz-hyphens: auto;
|
|
93
|
+
-webkit-hyphens: auto;
|
|
94
|
+
hyphens: auto
|
|
95
|
+
}
|
|
96
|
+
`;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot={textColor:dt.extend("--ft-floating-menu-text-color",yt.colorOnSurfaceHigh),colorSurface:dt.external(yt.colorSurface,"Design system"),menuElevation:dt.external(yt.elevation02,"Design system"),borderRadiusS:dt.external(yt.borderRadiusS,"Design system")},kt=v`
|
|
97
|
+
.ft-floating-menu {
|
|
98
|
+
color: ${Ot.textColor};
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ft-floating-menu--options {
|
|
103
|
+
box-shadow: ${Ot.menuElevation};
|
|
104
|
+
background-color: ${Ot.colorSurface};
|
|
105
|
+
border-radius: ${Ot.borderRadiusS};
|
|
106
|
+
color: ${Ot.textColor};
|
|
107
|
+
display: none;
|
|
108
|
+
list-style: none;
|
|
109
|
+
left: 0;
|
|
110
|
+
max-width: calc(100vw - 32px);
|
|
111
|
+
max-height: calc(100vh - 32px);
|
|
112
|
+
margin: 0;
|
|
113
|
+
padding-left: 0;
|
|
114
|
+
position: absolute;
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
transform-origin: left top;
|
|
117
|
+
overflow: auto;
|
|
118
|
+
top: 0;
|
|
119
|
+
transition: opacity 0.03s linear 0s, transform 0.12s cubic-bezier(0, 0, 0.2, 1) 0s, height 250ms cubic-bezier(0, 0, 0.2, 1) 0s;
|
|
120
|
+
opacity: 0;
|
|
121
|
+
will-change: transform, opacity;
|
|
122
|
+
z-index: 8;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ft-floating-menu--open .ft-floating-menu--options {
|
|
126
|
+
display: inline-block;
|
|
127
|
+
opacity: 1;
|
|
128
|
+
}
|
|
129
|
+
`
|
|
130
|
+
/**
|
|
131
|
+
* @license
|
|
132
|
+
* Copyright 2017 Google LLC
|
|
133
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
+
*/,St=1,Ct=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});class Et{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)}}
|
|
135
|
+
/**
|
|
136
|
+
* @license
|
|
137
|
+
* Copyright 2018 Google LLC
|
|
138
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
|
+
*/const Rt=Nt(class extends Et{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,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 V}}),Mt=dt.extend("--ft-ripple-color",yt.colorContent),zt={color:Mt,backgroundColor:dt.extend("--ft-ripple-background-color",Mt),opacityContentOnSurfacePressed:dt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(yt.opacityContentOnSurfaceSelected,"Design system")},Ut=dt.extend("--ft-ripple-color",yt.colorPrimary),Ft=Ut,jt=dt.extend("--ft-ripple-background-color",Ut),Bt=dt.extend("--ft-ripple-color",yt.colorSecondary),At=Bt,Tt=dt.extend("--ft-ripple-background-color",Bt),Lt=v`
|
|
140
|
+
:host {
|
|
141
|
+
display: contents;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ft-ripple {
|
|
145
|
+
position: absolute;
|
|
146
|
+
inset: 0;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ft-ripple .ft-ripple--background,
|
|
155
|
+
.ft-ripple .ft-ripple--effect {
|
|
156
|
+
position: absolute;
|
|
157
|
+
opacity: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ft-ripple .ft-ripple--background {
|
|
161
|
+
background-color: ${zt.backgroundColor};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.ft-ripple .ft-ripple--effect {
|
|
165
|
+
background-color: ${zt.color};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
169
|
+
background-color: ${Tt};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
173
|
+
background-color: ${At};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
177
|
+
background-color: ${jt};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
181
|
+
background-color: ${Ft};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ft-ripple .ft-ripple--background {
|
|
185
|
+
top: 0;
|
|
186
|
+
left: 0;
|
|
187
|
+
height: 100%;
|
|
188
|
+
width: 100%;
|
|
189
|
+
transition: opacity 75ms linear;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ft-ripple .ft-ripple--effect,
|
|
193
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ft-ripple .ft-ripple--effect {
|
|
198
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
199
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
203
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
204
|
+
left: 50%;
|
|
205
|
+
top: 50%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
209
|
+
transform: translate(-50%, -50%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
213
|
+
opacity: ${zt.opacityContentOnSurfaceHover};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
217
|
+
opacity: ${zt.opacityContentOnSurfaceSelected};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
221
|
+
opacity: ${zt.opacityContentOnSurfaceFocused};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
225
|
+
opacity: ${zt.opacityContentOnSurfacePressed};
|
|
226
|
+
transform: translate(-50%, -50%) scale(1);
|
|
227
|
+
}
|
|
228
|
+
`;var Dt=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 _t extends bt{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 Z`
|
|
229
|
+
<style>
|
|
230
|
+
.ft-ripple .ft-ripple--effect,
|
|
231
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
232
|
+
width: ${this.rippleSize}px;
|
|
233
|
+
height: ${this.rippleSize}px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ft-ripple .ft-ripple--effect {
|
|
237
|
+
left: ${this.originX}px;
|
|
238
|
+
top: ${this.originY}px;
|
|
239
|
+
}
|
|
240
|
+
</style>
|
|
241
|
+
<div class="${Rt(t)}">
|
|
242
|
+
<div class="ft-ripple--background"></div>
|
|
243
|
+
<div class="ft-ripple--effect"></div>
|
|
244
|
+
</div>
|
|
245
|
+
`}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()}}_t.elementDefinitions={},_t.styles=Lt,Dt([o({type:Boolean})],_t.prototype,"primary",void 0),Dt([o({type:Boolean})],_t.prototype,"secondary",void 0),Dt([o({type:Boolean})],_t.prototype,"unbounded",void 0),Dt([o({type:Boolean})],_t.prototype,"activated",void 0),Dt([o({type:Boolean})],_t.prototype,"selected",void 0),Dt([o({type:Boolean})],_t.prototype,"disabled",void 0),Dt([n()],_t.prototype,"hovered",void 0),Dt([n()],_t.prototype,"focused",void 0),Dt([n()],_t.prototype,"pressed",void 0),Dt([n()],_t.prototype,"rippling",void 0),Dt([n()],_t.prototype,"rippleSize",void 0),Dt([n()],_t.prototype,"originX",void 0),Dt([n()],_t.prototype,"originY",void 0),Dt([s(".ft-ripple")],_t.prototype,"ripple",void 0),Dt([s(".ft-ripple--effect")],_t.prototype,"rippleEffect",void 0),p("ft-ripple")(_t);
|
|
246
|
+
/**
|
|
247
|
+
* @license
|
|
248
|
+
* Copyright 2020 Google LLC
|
|
249
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
250
|
+
*/
|
|
251
|
+
const Pt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},It=t=>({_$litStatic$:t,r:Pt}),Ht=new Map,Kt=(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=Wt(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=Ht.get(t))&&(s.raw=s,Ht.set(t,e=s)),i=a}return t(e,...i)})(Z);var Zt;!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"}(Zt||(Zt={}));const Vt=dt.extend("--ft-typography-font-family",yt.titleFont),Jt=dt.extend("--ft-typography-font-family",yt.contentFont),qt={fontFamily:Jt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=dt.extend("--ft-typography-title-font-family",Vt),Yt=dt.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=dt.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=dt.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=dt.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=dt.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=dt.extend("--ft-typography-title-dense-font-family",Vt),oe=dt.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),ne=dt.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),re=dt.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),se=dt.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),ae=dt.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),le=dt.extend("--ft-typography-subtitle1-font-family",Jt),pe=dt.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ce=dt.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),he=dt.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=dt.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=dt.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=dt.extend("--ft-typography-subtitle2-font-family",Jt),ye=dt.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),ve=dt.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),be=dt.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),xe=dt.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=dt.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me=dt.extend("--ft-typography-body1-font-family",Jt),we=dt.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=dt.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=dt.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),ke=dt.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),Se=dt.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ce=dt.extend("--ft-typography-body2-font-family",Jt),Ne=dt.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ee=dt.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Re=dt.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Me=dt.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),ze=dt.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Ue=dt.extend("--ft-typography-caption-font-family",Jt),Fe=dt.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),je=dt.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Be=dt.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Ae=dt.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Te=dt.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Le=dt.extend("--ft-typography-breadcrumb-font-family",Jt),De=dt.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),_e=dt.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Pe=dt.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),We=dt.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Ie=dt.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),He=dt.extend("--ft-typography-overline-font-family",Jt),Ke=dt.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Ze=dt.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ve=dt.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Je=dt.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qe=dt.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xe={fontFamily:dt.extend("--ft-typography-button-font-family",Jt),fontSize:dt.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Ye=v`
|
|
252
|
+
.ft-typography--title {
|
|
253
|
+
font-family: ${Xt};
|
|
254
|
+
font-size: ${Yt};
|
|
255
|
+
font-weight: ${Gt};
|
|
256
|
+
letter-spacing: ${Qt};
|
|
257
|
+
line-height: ${te};
|
|
258
|
+
text-transform: ${ee};
|
|
259
|
+
}
|
|
260
|
+
`,Ge=v`
|
|
261
|
+
.ft-typography--title-dense {
|
|
262
|
+
font-family: ${ie};
|
|
263
|
+
font-size: ${oe};
|
|
264
|
+
font-weight: ${ne};
|
|
265
|
+
letter-spacing: ${re};
|
|
266
|
+
line-height: ${se};
|
|
267
|
+
text-transform: ${ae};
|
|
268
|
+
}
|
|
269
|
+
`,Qe=v`
|
|
270
|
+
.ft-typography--subtitle1 {
|
|
271
|
+
font-family: ${le};
|
|
272
|
+
font-size: ${pe};
|
|
273
|
+
font-weight: ${ce};
|
|
274
|
+
letter-spacing: ${he};
|
|
275
|
+
line-height: ${fe};
|
|
276
|
+
text-transform: ${de};
|
|
277
|
+
}
|
|
278
|
+
`,ti=v`
|
|
279
|
+
.ft-typography--subtitle2 {
|
|
280
|
+
font-family: ${ue};
|
|
281
|
+
font-size: ${ye};
|
|
282
|
+
font-weight: ${ve};
|
|
283
|
+
letter-spacing: ${be};
|
|
284
|
+
line-height: ${xe};
|
|
285
|
+
text-transform: ${ge};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
`,ei=v`
|
|
289
|
+
.ft-typography--body1 {
|
|
290
|
+
font-family: ${me};
|
|
291
|
+
font-size: ${we};
|
|
292
|
+
font-weight: ${$e};
|
|
293
|
+
letter-spacing: ${Oe};
|
|
294
|
+
line-height: ${ke};
|
|
295
|
+
text-transform: ${Se};
|
|
296
|
+
}
|
|
297
|
+
`,ii=v`
|
|
298
|
+
.ft-typography--body2 {
|
|
299
|
+
font-family: ${Ce};
|
|
300
|
+
font-size: ${Ne};
|
|
301
|
+
font-weight: ${Ee};
|
|
302
|
+
letter-spacing: ${Re};
|
|
303
|
+
line-height: ${Me};
|
|
304
|
+
text-transform: ${ze};
|
|
305
|
+
}
|
|
306
|
+
`,oi=v`
|
|
307
|
+
.ft-typography--caption {
|
|
308
|
+
font-family: ${Ue};
|
|
309
|
+
font-size: ${Fe};
|
|
310
|
+
font-weight: ${je};
|
|
311
|
+
letter-spacing: ${Be};
|
|
312
|
+
line-height: ${Ae};
|
|
313
|
+
text-transform: ${Te};
|
|
314
|
+
}
|
|
315
|
+
`,ni=v`
|
|
316
|
+
.ft-typography--breadcrumb {
|
|
317
|
+
font-family: ${Le};
|
|
318
|
+
font-size: ${De};
|
|
319
|
+
font-weight: ${_e};
|
|
320
|
+
letter-spacing: ${Pe};
|
|
321
|
+
line-height: ${We};
|
|
322
|
+
text-transform: ${Ie};
|
|
323
|
+
}
|
|
324
|
+
`,ri=v`
|
|
325
|
+
.ft-typography--overline {
|
|
326
|
+
font-family: ${He};
|
|
327
|
+
font-size: ${Ke};
|
|
328
|
+
font-weight: ${Ze};
|
|
329
|
+
letter-spacing: ${Ve};
|
|
330
|
+
line-height: ${Je};
|
|
331
|
+
text-transform: ${qe};
|
|
332
|
+
}
|
|
333
|
+
`,si=v`
|
|
334
|
+
.ft-typography--button {
|
|
335
|
+
font-family: ${Xe.fontFamily};
|
|
336
|
+
font-size: ${Xe.fontSize};
|
|
337
|
+
font-weight: ${Xe.fontWeight};
|
|
338
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
339
|
+
line-height: ${Xe.lineHeight};
|
|
340
|
+
text-transform: ${Xe.textTransform};
|
|
341
|
+
}
|
|
342
|
+
`,ai=v`
|
|
343
|
+
.ft-typography {
|
|
344
|
+
vertical-align: inherit;
|
|
345
|
+
}
|
|
346
|
+
`;var li=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pi extends bt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
|
|
347
|
+
<${It(this.element)}
|
|
348
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
349
|
+
<slot></slot>
|
|
350
|
+
</${It(this.element)}>
|
|
351
|
+
`:Kt`
|
|
352
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
353
|
+
`}}pi.styles=[Ye,Ge,Qe,ti,ei,ii,oi,ni,ri,si,ai],li([o()],pi.prototype,"element",void 0),li([o()],pi.prototype,"variant",void 0),p("ft-typography")(pi);const ci=dt.create("--ft-tooltip-distance","SIZE","4px"),hi=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),fi=dt.create("--ft-tooltip-background-color","COLOR","#666666"),di=dt.create("--ft-tooltip-z-index","NUMBER","1"),ui=dt.external(yt.borderRadiusS,"Design system"),yi=dt.create("--ft-tooltip-max-width","SIZE","150px"),vi=v`
|
|
354
|
+
.ft-tooltip--container {
|
|
355
|
+
display: block;
|
|
356
|
+
position: relative;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.ft-tooltip--inline {
|
|
360
|
+
display: inline-block;
|
|
361
|
+
max-width: 100%;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.ft-tooltip {
|
|
365
|
+
position: absolute;
|
|
366
|
+
box-sizing: border-box;
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
width: max-content;
|
|
369
|
+
max-width: ${yi};
|
|
370
|
+
text-align: center;
|
|
371
|
+
padding: ${ci};
|
|
372
|
+
z-index: ${di};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ft-tooltip--content {
|
|
376
|
+
padding: 4px 8px;
|
|
377
|
+
border-radius: ${ui};
|
|
378
|
+
background-color: ${fi};
|
|
379
|
+
color: ${hi};
|
|
380
|
+
top: -500px;
|
|
381
|
+
left: -500px;
|
|
382
|
+
position: relative;
|
|
383
|
+
word-break: break-word;
|
|
384
|
+
}
|
|
385
|
+
`;var bi=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 xi extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return Z`
|
|
386
|
+
<div part="container"
|
|
387
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
388
|
+
@mouseenter=${this.onHover}
|
|
389
|
+
@mouseleave=${this.onOut}
|
|
390
|
+
@focusin=${this.onHover}
|
|
391
|
+
@focusout=${this.onOut}
|
|
392
|
+
@touchstart=${this.onTouch}>
|
|
393
|
+
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
394
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
395
|
+
<slot name="text"></slot>
|
|
396
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
<slot></slot>
|
|
400
|
+
</div>
|
|
401
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${yi})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xi.elementDefinitions={"ft-typography":pi},xi.styles=vi,bi([o()],xi.prototype,"text",void 0),bi([o({type:Boolean})],xi.prototype,"manual",void 0),bi([o({type:Boolean})],xi.prototype,"inline",void 0),bi([o({type:Number})],xi.prototype,"delay",void 0),bi([o()],xi.prototype,"position",void 0),bi([
|
|
402
|
+
/**
|
|
403
|
+
* @license
|
|
404
|
+
* Copyright 2017 Google LLC
|
|
405
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
406
|
+
*/
|
|
407
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],xi.prototype,"slotNodes",void 0),bi([s(".ft-tooltip--container")],xi.prototype,"container",void 0),bi([s("slot")],xi.prototype,"target",void 0),bi([s(".ft-tooltip")],xi.prototype,"tooltip",void 0),bi([s(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),bi([n()],xi.prototype,"visible",void 0),p("ft-tooltip")(xi);const gi={color:dt.extend("--ft-loader-color",yt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")},mi=v`
|
|
408
|
+
:host {
|
|
409
|
+
line-height: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ft-loader {
|
|
413
|
+
display: inline-block;
|
|
414
|
+
position: relative;
|
|
415
|
+
|
|
416
|
+
width: ${gi.size};
|
|
417
|
+
height: ${gi.size};
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ft-loader div {
|
|
421
|
+
position: absolute;
|
|
422
|
+
top: 37.5%;
|
|
423
|
+
width: 25%;
|
|
424
|
+
height: 25%;
|
|
425
|
+
border-radius: 50%;
|
|
426
|
+
background: ${gi.color};
|
|
427
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.ft-loader div:nth-child(1) {
|
|
431
|
+
left: 2.5%;
|
|
432
|
+
animation: appear 0.6s infinite;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ft-loader div:nth-child(2) {
|
|
436
|
+
left: 2.5%;
|
|
437
|
+
animation: move 0.6s infinite;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.ft-loader div:nth-child(3) {
|
|
441
|
+
left: 37.5%;
|
|
442
|
+
animation: move 0.6s infinite;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ft-loader div:nth-child(4) {
|
|
446
|
+
left: 72.5%;
|
|
447
|
+
animation: disappear 0.6s infinite;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@keyframes appear {
|
|
451
|
+
0% {
|
|
452
|
+
transform: scale(0);
|
|
453
|
+
}
|
|
454
|
+
100% {
|
|
455
|
+
transform: scale(1);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@keyframes disappear {
|
|
460
|
+
0% {
|
|
461
|
+
transform: scale(1);
|
|
462
|
+
}
|
|
463
|
+
100% {
|
|
464
|
+
transform: scale(0);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@keyframes move {
|
|
469
|
+
0% {
|
|
470
|
+
transform: translate(0, 0);
|
|
471
|
+
}
|
|
472
|
+
100% {
|
|
473
|
+
transform: translate(calc(0.35 * ${gi.size}), 0);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
`;class wi extends bt{render(){return Z`
|
|
477
|
+
<div class="ft-loader">
|
|
478
|
+
<div></div>
|
|
479
|
+
<div></div>
|
|
480
|
+
<div></div>
|
|
481
|
+
<div></div>
|
|
482
|
+
</div>
|
|
483
|
+
`}}wi.styles=mi,p("ft-loader")(wi);
|
|
484
|
+
/**
|
|
485
|
+
* @license
|
|
486
|
+
* Copyright 2017 Google LLC
|
|
487
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
488
|
+
*/
|
|
489
|
+
class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)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:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=Nt($i);var ki,Si;!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=""}(ki||(ki={})),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=""}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.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,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.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,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.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,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.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,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);const Ci={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=v`
|
|
490
|
+
:host {
|
|
491
|
+
display: inline-block;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
:host, i.ft-icon {
|
|
495
|
+
width: ${Ci.size};
|
|
496
|
+
height: ${Ci.size};
|
|
497
|
+
text-align: center;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
i.ft-icon {
|
|
501
|
+
font-size: ${Ci.size};
|
|
502
|
+
line-height: 1;
|
|
503
|
+
font-weight: normal;
|
|
504
|
+
text-transform: none;
|
|
505
|
+
font-style: normal;
|
|
506
|
+
font-variant: normal;
|
|
507
|
+
speak: none;
|
|
508
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
509
|
+
text-rendering: auto;
|
|
510
|
+
-webkit-font-smoothing: antialiased;
|
|
511
|
+
-moz-osx-font-smoothing: grayscale;
|
|
512
|
+
vertical-align: ${Ci.verticalAlign};
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.ft-icon--fluid-topics {
|
|
516
|
+
font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.ft-icon--file-format {
|
|
520
|
+
font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.ft-icon--material {
|
|
524
|
+
font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
|
|
525
|
+
}
|
|
526
|
+
`;var Ei;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ei||(Ei={}));var Ri=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 Mi extends bt{constructor(){super(...arguments),this.variant=Ei.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
|
|
527
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
528
|
+
${Oi(this.resolvedIcon)}
|
|
529
|
+
<slot ?hidden=${t}></slot>
|
|
530
|
+
</i>
|
|
531
|
+
`}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 Ei.file_format:this.resolvedIcon=null!==(t=Si[i.toUpperCase()])&&void 0!==t?t:i;break;case Ei.fluid_topics:this.resolvedIcon=null!==(e=ki[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Mi.elementDefinitions={},Mi.styles=Ni,Ri([o()],Mi.prototype,"variant",void 0),Ri([o()],Mi.prototype,"value",void 0),Ri([n()],Mi.prototype,"resolvedIcon",void 0),Ri([s("slot")],Mi.prototype,"slottedContent",void 0),p("ft-icon")(Mi);const zi=dt.extend("--ft-button-color",yt.colorPrimary),Ui={backgroundColor:dt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",yt.borderRadiusL),color:zi,fontSize:dt.extend("--ft-button-font-size",Xe.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",zi),opacityDisabled:dt.external(yt.colorOpacityDisabled,"Design system")},Fi=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",yt.colorOnPrimary)),ji={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",yt.colorPrimary)),color:Fi,rippleColor:dt.extend("--ft-button-primary-ripple-color",Fi)},Bi=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",yt.borderRadiusM)),Ai=[xt,v`
|
|
532
|
+
:host {
|
|
533
|
+
display: inline-block;
|
|
534
|
+
max-width: 100%;
|
|
535
|
+
pointer-events: none;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
button {
|
|
539
|
+
box-shadow: 0px 0px 0px transparent;
|
|
540
|
+
border: 0px solid transparent;
|
|
541
|
+
text-shadow: 0px 0px 0px transparent;
|
|
542
|
+
font-size: ${Ui.fontSize};
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
button:hover {
|
|
546
|
+
box-shadow: 0px 0px 0px transparent;
|
|
547
|
+
border: 0px solid transparent;
|
|
548
|
+
text-shadow: 0px 0px 0px transparent;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
button:active {
|
|
552
|
+
outline: none;
|
|
553
|
+
border: none;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
button:focus {
|
|
557
|
+
outline: 0;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.ft-button {
|
|
561
|
+
position: relative;
|
|
562
|
+
display: flex;
|
|
563
|
+
justify-content: center;
|
|
564
|
+
align-items: center;
|
|
565
|
+
width: 100%;
|
|
566
|
+
overflow: hidden;
|
|
567
|
+
box-sizing: border-box;
|
|
568
|
+
border: none;
|
|
569
|
+
pointer-events: auto;
|
|
570
|
+
|
|
571
|
+
--ft-button-internal-line-height: calc(${Ui.fontSize} + 2px);
|
|
572
|
+
--ft-button-internal-color: ${Ui.color};
|
|
573
|
+
${ut(Ci.size,Ui.iconSize)};
|
|
574
|
+
--ft-button-internal-vertical-padding: 6px;
|
|
575
|
+
--ft-button-internal-horizontal-padding: 8px;
|
|
576
|
+
${ut(zt.color,Ui.rippleColor)};
|
|
577
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ui.iconSize});
|
|
578
|
+
|
|
579
|
+
border-radius: ${Ui.borderRadius};
|
|
580
|
+
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
581
|
+
background-color: ${Ui.backgroundColor};
|
|
582
|
+
color: var(--ft-button-internal-color);
|
|
583
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.ft-button:not([disabled]):hover {
|
|
587
|
+
cursor: pointer;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.ft-button--dense {
|
|
591
|
+
--ft-button-internal-vertical-padding: 2px;
|
|
592
|
+
--ft-button-internal-horizontal-padding: 4px;
|
|
593
|
+
border-radius: ${Bi};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.ft-button--round {
|
|
597
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.ft-button[disabled] {
|
|
601
|
+
filter: grayscale(1);
|
|
602
|
+
opacity: ${Ui.opacityDisabled};
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.ft-button.ft-button--primary {
|
|
606
|
+
background-color: ${ji.backgroundColor};
|
|
607
|
+
--ft-button-internal-color: ${ji.color};
|
|
608
|
+
${ut(zt.color,ji.rippleColor)};
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.ft-button.ft-button--outlined {
|
|
612
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
613
|
+
padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.ft-button:focus {
|
|
617
|
+
outline: none;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.ft-button--label {
|
|
621
|
+
position: relative;
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
white-space: nowrap;
|
|
624
|
+
text-overflow: ellipsis;
|
|
625
|
+
display: block;
|
|
626
|
+
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
627
|
+
${ut(Xe.fontSize,"1em")};
|
|
628
|
+
${ut(Xe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.ft-button--safari-fix .ft-button--label {
|
|
632
|
+
margin-right: 0;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.ft-button--safari-fix .ft-button--label:after {
|
|
636
|
+
content: "\\0000a0";
|
|
637
|
+
display: inline-block;
|
|
638
|
+
width: 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.ft-button--label[hidden] {
|
|
642
|
+
display: none;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
ft-icon {
|
|
646
|
+
flex-shrink: 0;
|
|
647
|
+
position: relative;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ft-button--label[hidden] + ft-icon {
|
|
651
|
+
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
652
|
+
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
656
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
657
|
+
order: -1;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
ft-loader {
|
|
661
|
+
${ut(gi.size,Ui.iconSize)};
|
|
662
|
+
${ut(gi.color,"var(--ft-button-internal-color)")};
|
|
663
|
+
}
|
|
664
|
+
`];var Ti=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 Li extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ei.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Z`
|
|
665
|
+
<button part="button"
|
|
666
|
+
class="${Rt(t)}"
|
|
667
|
+
aria-label="${this.getLabel()}"
|
|
668
|
+
?disabled=${this.isDisabled()}>
|
|
669
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
670
|
+
<ft-typography part="label"
|
|
671
|
+
variant="button"
|
|
672
|
+
class="ft-button--label"
|
|
673
|
+
?hidden=${!this.hasTextContent()}>
|
|
674
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
675
|
+
</ft-typography>
|
|
676
|
+
${this.resolveIcon()}
|
|
677
|
+
</button>
|
|
678
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Z`
|
|
679
|
+
<ft-tooltip part="tooltip"
|
|
680
|
+
text="${this.getLabel()}"
|
|
681
|
+
position="${this.tooltipPosition}">
|
|
682
|
+
${t}
|
|
683
|
+
</ft-tooltip>
|
|
684
|
+
`:t}resolveIcon(){return this.loading?Z`
|
|
685
|
+
<ft-loader></ft-loader> `:this.icon?Z`
|
|
686
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Li.elementDefinitions={"ft-ripple":_t,"ft-tooltip":xi,"ft-typography":pi,"ft-icon":Mi,"ft-loader":wi},Li.styles=Ai,Ti([o({type:Boolean})],Li.prototype,"primary",void 0),Ti([o({type:Boolean})],Li.prototype,"outlined",void 0),Ti([o({type:Boolean})],Li.prototype,"disabled",void 0),Ti([o({type:Boolean})],Li.prototype,"dense",void 0),Ti([o({type:Boolean})],Li.prototype,"round",void 0),Ti([o({type:String})],Li.prototype,"label",void 0),Ti([o({type:String})],Li.prototype,"icon",void 0),Ti([o({type:String})],Li.prototype,"iconVariant",void 0),Ti([o({type:Boolean})],Li.prototype,"trailingIcon",void 0),Ti([o({type:Boolean})],Li.prototype,"loading",void 0),Ti([o({type:String})],Li.prototype,"tooltipPosition",void 0),Ti([o({type:Boolean})],Li.prototype,"hideTooltip",void 0),Ti([o({type:Boolean})],Li.prototype,"forceTooltip",void 0),Ti([s(".ft-button")],Li.prototype,"button",void 0),Ti([s(".ft-button--label slot")],Li.prototype,"slottedContent",void 0),p("ft-button")(Li);const Di={iconColor:dt.extend("--ft-floating-menu-icon-color",yt.colorOnSurfaceMedium)},_i=v`
|
|
687
|
+
.ft-floating-menu-item {
|
|
688
|
+
cursor: pointer;
|
|
689
|
+
display: flex;
|
|
690
|
+
position: relative;
|
|
691
|
+
align-items: center;
|
|
692
|
+
justify-content: flex-start;
|
|
693
|
+
overflow: hidden;
|
|
694
|
+
padding: 0 16px;
|
|
695
|
+
outline: none;
|
|
696
|
+
height: 48px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
ft-typography {
|
|
700
|
+
white-space: nowrap;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.ft-floating-menu-item ft-icon {
|
|
704
|
+
--ft-icon-font-size: 24px;
|
|
705
|
+
color: ${Di.iconColor};
|
|
706
|
+
margin-left: 0;
|
|
707
|
+
margin-right: 32px;
|
|
708
|
+
}
|
|
709
|
+
`;var Pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class Ii extends bt{constructor(){super(...arguments),this.value=""}render(){return Z`
|
|
710
|
+
<div class="ft-floating-menu-item"
|
|
711
|
+
@click=${this.onClick}>
|
|
712
|
+
<ft-ripple></ft-ripple>
|
|
713
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
714
|
+
<ft-typography variant="body2">
|
|
715
|
+
<slot></slot>
|
|
716
|
+
</ft-typography>
|
|
717
|
+
</div>
|
|
718
|
+
`}onClick(t){this.dispatchEvent(new Wi(this.value))}}Ii.elementDefinitions={"ft-icon":Mi,"ft-ripple":_t,"ft-typography":pi},Ii.styles=_i,Pi([o({type:String})],Ii.prototype,"icon",void 0),Pi([o({type:String})],Ii.prototype,"value",void 0);var Hi=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 Ki extends bt{constructor(){super(...arguments),this.menuOpen=!1,this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.menuContainer),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.menuOpen};return Z`
|
|
719
|
+
<div class="${Rt(t)}">
|
|
720
|
+
<ft-button part="button"
|
|
721
|
+
dense round
|
|
722
|
+
icon="more_vert"
|
|
723
|
+
id="actions-button"
|
|
724
|
+
@click=${this.onClick}
|
|
725
|
+
label="Menu">
|
|
726
|
+
</ft-button>
|
|
727
|
+
<div class="ft-floating-menu--options"
|
|
728
|
+
@select="${this.onClickItem}">
|
|
729
|
+
<slot></slot>
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
`}onClick(t){console.log("open"),this.menuOpen=!0,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(t){console.log("close"),this.menuOpen=!1}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ki.elementDefinitions={"ft-button":Li,"ft-floating-menu-item":Ii},Ki.styles=kt,Hi([n()],Ki.prototype,"menuOpen",void 0),Hi([s(".ft-floating-menu")],Ki.prototype,"container",void 0),Hi([s(".ft-floating-menu--options")],Ki.prototype,"menuContainer",void 0),p("ft-floating-menu")(Ki),p("ft-floating-menu-item")(Ii),t.FtFloatingMenu=Ki,t.FtFloatingMenuCssVariables=Ot,t.FtFloatingMenuItem=Ii,t.FtFloatingMenuItemCssVariables=Di,t.FtFloatingMenuItemSelect=Wi,t.itemStyles=_i,t.styles=kt,Object.defineProperty(t,"i",{value:!0})}({});
|