@fluid-topics/ft-snap-scroll 0.1.16 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-snap-scroll.d.ts +2 -2
- package/build/ft-snap-scroll.inline-styles.js +773 -0
- package/build/ft-snap-scroll.js +131 -137
- package/build/ft-snap-scroll.light.js +402 -449
- package/build/ft-snap-scroll.min.js +442 -478
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +6 -6
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
!function(){
|
|
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,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=x.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),y.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ie){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}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,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function e(t){return(e,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,e,o):i(t,e)
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/}function o(t){return e({...t,state:!0})}
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*/const s=({finisher:t,descriptor:i})=>(e,o)=>{var s;if(void 0===o){const o=null!==(s=e.originalKey)&&void 0!==s?s:e.key,n=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(n.finisher=function(i){t(i,o)}),n}{const s=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(s,o)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function n(t,i){return s({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/var r;const l=null!=(null===(r=window.HTMLSlotElement)||void 0===r?void 0:r.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const a=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/,h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),c=new Map;class f{constructor(t,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=c.get(this.cssText);return h&&void 0===t&&(c.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",p),u=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(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.")})(e)+t[o+1]),t[0]);return new f(e,p)},x=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},y=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return d(i)})(t):t
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2017 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*/;var v;const b=window.trustedTypes,g=b?b.emptyScript:"",m=window.reactiveElementPolyfillSupport,w={toAttribute(t,i){switch(i){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},$=(t,i)=>i!==t&&(i==i||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:$};class S extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=O){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const s=this[t];this[i]=o,this.requestUpdate(t,s,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(y(t))}else void 0!==t&&i.push(y(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=O){var o,s;const n=this.constructor._$Eh(t,e);if(void 0!==n&&!0===e.reflect){const r=(null!==(s=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:w.toAttribute)(i,e.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,i){var e,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(e=l)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:w.fromAttribute;this._$Ei=r,this[r]=a(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
53
|
+
/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright 2017 Google LLC
|
|
56
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
+
*/
|
|
58
|
+
var k;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:S}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.2.2");const C=globalThis.trustedTypes,N=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,z="?"+E,R=`<${z}>`,M=document,F=(t="")=>M.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,L=/>/g,A=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,D=/"/g,P=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,Z=M.createTreeWalker(M,129,null,!1),V=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===j?"!--"===a[1]?r=B:void 0!==a[1]?r=L:void 0!==a[2]?(P.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=A):void 0!==a[3]&&(r=A):r===A?">"===a[0]?(r=null!=s?s:j,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?A:'"'===a[3]?D:_):r===D||r===_?r=A:r===B||r===L?r=j:(r=A,s=void 0);const c=r===A&&t[i+1].startsWith("/>")?" ":"";n+=r===j?e+R:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+E+c):e+E+(-2===h?(o.push(void 0),i):c)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=V(t,i);if(this.el=q.createElement(a,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(E)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(E),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?Q:"?"===i[1]?it:"@"===i[1]?et:G})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(P.test(o.tagName)){const t=o.textContent.split(E),i=t.length-1;if(i>0){o.textContent=C?C.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],F()),Z.nextNode(),l.push({type:2,index:++s});o.append(t[i],F())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)l.push({type:7,index:s}),t+=E.length-1}s++}}static createElement(t,i){const e=M.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,n,r,l;if(i===W)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=U(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=X(t,a._$AS(t,i.values),a,o)),i}class J{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:M).importNode(e,!0);Z.currentNode=s;let n=Z.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new Y(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new ot(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Z.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Y{constructor(t,i,e,o){var s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),U(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return T(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==H&&U(this._$AH)?this._$AA.nextSibling.data=t:this.S(M.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new J(s,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=K.get(t.strings);return void 0===i&&K.set(t.strings,i=new q(t)),i}A(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new Y(this.M(F()),this.M(F()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,i,0),n=!U(t)||t!==this._$AH&&t!==W,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[e+r],i,r),l===W&&(l=this._$AH[r]),n||(n=!U(l)||l!==this._$AH[r]),l===H?t=H:t!==H&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===H?void 0:t}}const tt=C?C.emptyScript:"";class it extends G{constructor(){super(...arguments),this.type=4}k(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class et extends G{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:H)===W)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const st=window.litHtmlPolyfillSupport;
|
|
59
|
+
/**
|
|
60
|
+
* @license
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
62
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
+
*/
|
|
64
|
+
var nt,rt;null==st||st(q,Y),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k:globalThis.litHtmlVersions=[]).push("2.1.3");class lt extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Y(i.insertBefore(F(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return W}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:lt}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.1.2");class ht{constructor(t,i,e,o,s){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new ht(t,i,void 0,e)}static extend(t,i,e){return new ht(t,i.category,i,e)}static external(t,i){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return u`var(${d(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):d(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function pt(t,i){return d(`${t.name}: ${i}`)}const ct={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")};
|
|
65
|
+
/**
|
|
66
|
+
* @license
|
|
67
|
+
* Copyright 2021 Google LLC
|
|
68
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
+
*/class ft extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(s,this.constructor.elementStyles),s}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),I`
|
|
70
|
+
${t.map((t=>I`
|
|
71
|
+
<style>${t}</style>
|
|
72
|
+
`))}
|
|
73
|
+
${this.getTemplate()}
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const dt=u`
|
|
75
|
+
.ft-no-text-select {
|
|
76
|
+
-webkit-touch-callout: none;
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
-khtml-user-select: none;
|
|
79
|
+
-moz-user-select: none;
|
|
80
|
+
-ms-user-select: none;
|
|
81
|
+
user-select: none;
|
|
82
|
+
}
|
|
83
|
+
`;var ut,xt,yt;const vt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(yt=null===(xt=null===(ut=window.safari)||void 0===ut?void 0:ut.pushNotification)||void 0===xt?void 0:xt.toString())&&void 0!==yt?yt:""),bt=1,gt=2,mt=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
* Copyright 2017 Google LLC
|
|
87
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*/class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
89
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2018 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
+
*/const $t=mt(class extends wt{constructor(t){var i;if(super(t),t.type!==bt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.et)||void 0===e?void 0:e.has(t))&&this.st.add(t);return this.render(i)}const s=t.element.classList;this.st.forEach((t=>{t in i||(s.remove(t),this.st.delete(t))}));for(const t in i){const e=!!i[t];e===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return W}});var Ot=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const St={color:ht.extend("--ft-ripple-color",ct.colorContent),primaryColor:ht.extend("--ft-ripple-primary-color",ht.extend("--ft-ripple-color",ct.colorPrimary)),secondaryColor:ht.extend("--ft-ripple-secondary-color",ht.extend("--ft-ripple-color",ct.colorSecondary)),opacityContentOnSurfacePressed:ht.external(ct.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ct.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ct.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ct.opacityContentOnSurfaceSelected,"Design system")};class kt extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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 I`
|
|
94
|
+
<style>
|
|
95
|
+
.ft-ripple .ft-ripple--effect,
|
|
96
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
97
|
+
width: ${this.rippleSize}px;
|
|
98
|
+
height: ${this.rippleSize}px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ft-ripple .ft-ripple--effect {
|
|
102
|
+
left: ${this.originX}px;
|
|
103
|
+
top: ${this.originY}px;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
106
|
+
<div class="${$t(t)}">
|
|
107
|
+
<div class="ft-ripple--background"></div>
|
|
108
|
+
<div class="ft-ripple--effect"></div>
|
|
109
|
+
</div>
|
|
110
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}kt.elementDefinitions={},kt.styles=u`
|
|
111
|
+
:host {
|
|
112
|
+
display: contents;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ft-ripple {
|
|
116
|
+
position: absolute;
|
|
117
|
+
inset: 0;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ft-ripple .ft-ripple--background,
|
|
126
|
+
.ft-ripple .ft-ripple--effect {
|
|
127
|
+
position: absolute;
|
|
128
|
+
opacity: 0;
|
|
129
|
+
background-color: ${St.color};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
133
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
134
|
+
background-color: ${St.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
138
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
139
|
+
background-color: ${St.primaryColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ft-ripple .ft-ripple--background {
|
|
143
|
+
top: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
height: 100%;
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ft-ripple .ft-ripple--effect,
|
|
150
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
151
|
+
border-radius: 50%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ft-ripple .ft-ripple--effect {
|
|
155
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
156
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
160
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
161
|
+
left: 50%;
|
|
162
|
+
top: 50%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
166
|
+
transform: translate(-50%, -50%);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
170
|
+
opacity: ${St.opacityContentOnSurfaceHover};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
174
|
+
opacity: ${St.opacityContentOnSurfaceSelected};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
178
|
+
opacity: ${St.opacityContentOnSurfaceFocused};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
182
|
+
opacity: ${St.opacityContentOnSurfacePressed};
|
|
183
|
+
transform: translate(-50%, -50%) scale(1);
|
|
184
|
+
}
|
|
185
|
+
`,Ot([e({type:Boolean})],kt.prototype,"primary",void 0),Ot([e({type:Boolean})],kt.prototype,"secondary",void 0),Ot([e({type:Boolean})],kt.prototype,"unbounded",void 0),Ot([e({type:Boolean})],kt.prototype,"activated",void 0),Ot([e({type:Boolean})],kt.prototype,"selected",void 0),Ot([e({type:Boolean})],kt.prototype,"disabled",void 0),Ot([o()],kt.prototype,"hovered",void 0),Ot([o()],kt.prototype,"focused",void 0),Ot([o()],kt.prototype,"pressed",void 0),Ot([o()],kt.prototype,"rippling",void 0),Ot([o()],kt.prototype,"rippleSize",void 0),Ot([o()],kt.prototype,"originX",void 0),Ot([o()],kt.prototype,"originY",void 0),Ot([n(".ft-ripple")],kt.prototype,"ripple",void 0),Ot([n(".ft-ripple--effect")],kt.prototype,"rippleEffect",void 0),a("ft-ripple")(kt);
|
|
186
|
+
/**
|
|
187
|
+
* @license
|
|
188
|
+
* Copyright 2020 Google LLC
|
|
189
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
190
|
+
*/
|
|
191
|
+
const Ct=t=>({_$litStatic$:t}),Nt=new Map,Et=(t=>(i,...e)=>{var o;const s=e.length;let n,r;const l=[],a=[];let h,p=0,c=!1;for(;p<s;){for(h=i[p];p<s&&void 0!==(r=e[p],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)h+=n+i[++p],c=!0;a.push(r),l.push(h),p++}if(p===s&&l.push(i[s]),c){const t=l.join("$$lit$$");void 0===(i=Nt.get(t))&&(l.raw=l,Nt.set(t,i=l)),e=a}return t(i,...e)})(I);var zt,Rt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!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 Mt=ht.extend("--ft-typography-font-family",ct.titleFont),Ft=ht.extend("--ft-typography-font-family",ct.contentFont),Ut={fontFamily:Ft,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","SIZE","24px"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=ht.extend("--ft-typography-title-font-family",Mt),jt=ht.extend("--ft-typography-title-font-size",Ut.fontSize,"20px"),Bt=ht.extend("--ft-typography-title-font-weight",Ut.fontWeight,"normal"),Lt=ht.extend("--ft-typography-title-letter-spacing",Ut.letterSpacing,"0.15px"),At=ht.extend("--ft-typography-title-line-height",Ut.lineHeight,"24px"),_t=ht.extend("--ft-typography-title-text-transform",Ut.textTransform,"inherit"),Dt=ht.extend("--ft-typography-title-dense-font-family",Mt),Pt=ht.extend("--ft-typography-title-dense-font-size",Ut.fontSize,"14px"),It=ht.extend("--ft-typography-title-dense-font-weight",Ut.fontWeight,"normal"),Wt=ht.extend("--ft-typography-title-dense-letter-spacing",Ut.letterSpacing,"0.105px"),Ht=ht.extend("--ft-typography-title-dense-line-height",Ut.lineHeight,"24px"),Kt=ht.extend("--ft-typography-title-dense-text-transform",Ut.textTransform,"inherit"),Zt=ht.extend("--ft-typography-subtitle1-font-family",Ft),Vt=ht.extend("--ft-typography-subtitle1-font-size",Ut.fontSize,"16px"),qt=ht.extend("--ft-typography-subtitle1-font-weight",Ut.fontWeight,"600"),Xt=ht.extend("--ft-typography-subtitle1-letter-spacing",Ut.letterSpacing,"0.144px"),Jt=ht.extend("--ft-typography-subtitle1-line-height",Ut.lineHeight,"24px"),Yt=ht.extend("--ft-typography-subtitle1-text-transform",Ut.textTransform,"inherit"),Gt=ht.extend("--ft-typography-subtitle2-font-family",Ft),Qt=ht.extend("--ft-typography-subtitle2-font-size",Ut.fontSize,"14px"),ti=ht.extend("--ft-typography-subtitle2-font-weight",Ut.fontWeight,"normal"),ii=ht.extend("--ft-typography-subtitle2-letter-spacing",Ut.letterSpacing,"0.098px"),ei=ht.extend("--ft-typography-subtitle2-line-height",Ut.lineHeight,"24px"),oi=ht.extend("--ft-typography-subtitle2-text-transform",Ut.textTransform,"inherit"),si=ht.extend("--ft-typography-body1-font-family",Ft),ni=ht.extend("--ft-typography-body1-font-size",Ut.fontSize,"16px"),ri=ht.extend("--ft-typography-body1-font-weight",Ut.fontWeight,"normal"),li=ht.extend("--ft-typography-body1-letter-spacing",Ut.letterSpacing,"0.496px"),ai=ht.extend("--ft-typography-body1-line-height",Ut.lineHeight,"24px"),hi=ht.extend("--ft-typography-body1-text-transform",Ut.textTransform,"inherit"),pi=ht.extend("--ft-typography-body2-font-family",Ft),ci=ht.extend("--ft-typography-body2-font-size",Ut.fontSize,"14px"),fi=ht.extend("--ft-typography-body2-font-weight",Ut.fontWeight,"normal"),di=ht.extend("--ft-typography-body2-letter-spacing",Ut.letterSpacing,"0.252px"),ui=ht.extend("--ft-typography-body2-line-height",Ut.lineHeight,"20px"),xi=ht.extend("--ft-typography-body2-text-transform",Ut.textTransform,"inherit"),yi=ht.extend("--ft-typography-caption-font-family",Ft),vi=ht.extend("--ft-typography-caption-font-size",Ut.fontSize,"12px"),bi=ht.extend("--ft-typography-caption-font-weight",Ut.fontWeight,"normal"),gi=ht.extend("--ft-typography-caption-letter-spacing",Ut.letterSpacing,"0.396px"),mi=ht.extend("--ft-typography-caption-line-height",Ut.lineHeight,"16px"),wi=ht.extend("--ft-typography-caption-text-transform",Ut.textTransform,"inherit"),$i=ht.extend("--ft-typography-breadcrumb-font-family",Ft),Oi=ht.extend("--ft-typography-breadcrumb-font-size",Ut.fontSize,"10px"),Si=ht.extend("--ft-typography-breadcrumb-font-weight",Ut.fontWeight,"normal"),ki=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ut.letterSpacing,"0.33px"),Ci=ht.extend("--ft-typography-breadcrumb-line-height",Ut.lineHeight,"16px"),Ni=ht.extend("--ft-typography-breadcrumb-text-transform",Ut.textTransform,"inherit"),Ei=ht.extend("--ft-typography-overline-font-family",Ft),zi=ht.extend("--ft-typography-overline-font-size",Ut.fontSize,"10px"),Ri=ht.extend("--ft-typography-overline-font-weight",Ut.fontWeight,"normal"),Mi=ht.extend("--ft-typography-overline-letter-spacing",Ut.letterSpacing,"1.5px"),Fi=ht.extend("--ft-typography-overline-line-height",Ut.lineHeight,"16px"),Ui=ht.extend("--ft-typography-overline-text-transform",Ut.textTransform,"uppercase"),Ti={fontFamily:ht.extend("--ft-typography-button-font-family",Ft),fontSize:ht.extend("--ft-typography-button-font-size",Ut.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Ut.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Ut.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Ut.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-button-text-transform",Ut.textTransform,"uppercase")},ji=u`
|
|
192
|
+
.ft-typography--title {
|
|
193
|
+
font-family: ${Tt};
|
|
194
|
+
font-size: ${jt};
|
|
195
|
+
font-weight: ${Bt};
|
|
196
|
+
letter-spacing: ${Lt};
|
|
197
|
+
line-height: ${At};
|
|
198
|
+
text-transform: ${_t};
|
|
199
|
+
}
|
|
200
|
+
`,Bi=u`
|
|
201
|
+
.ft-typography--title-dense {
|
|
202
|
+
font-family: ${Dt};
|
|
203
|
+
font-size: ${Pt};
|
|
204
|
+
font-weight: ${It};
|
|
205
|
+
letter-spacing: ${Wt};
|
|
206
|
+
line-height: ${Ht};
|
|
207
|
+
text-transform: ${Kt};
|
|
208
|
+
}
|
|
209
|
+
`,Li=u`
|
|
210
|
+
.ft-typography--subtitle1 {
|
|
211
|
+
font-family: ${Zt};
|
|
212
|
+
font-size: ${Vt};
|
|
213
|
+
font-weight: ${qt};
|
|
214
|
+
letter-spacing: ${Xt};
|
|
215
|
+
line-height: ${Jt};
|
|
216
|
+
text-transform: ${Yt};
|
|
217
|
+
}
|
|
218
|
+
`,Ai=u`
|
|
219
|
+
.ft-typography--subtitle2 {
|
|
220
|
+
font-family: ${Gt};
|
|
221
|
+
font-size: ${Qt};
|
|
222
|
+
font-weight: ${ti};
|
|
223
|
+
letter-spacing: ${ii};
|
|
224
|
+
line-height: ${ei};
|
|
225
|
+
text-transform: ${oi};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
`,_i=u`
|
|
229
|
+
.ft-typography--body1 {
|
|
230
|
+
font-family: ${si};
|
|
231
|
+
font-size: ${ni};
|
|
232
|
+
font-weight: ${ri};
|
|
233
|
+
letter-spacing: ${li};
|
|
234
|
+
line-height: ${ai};
|
|
235
|
+
text-transform: ${hi};
|
|
236
|
+
}
|
|
237
|
+
`,Di=u`
|
|
238
|
+
.ft-typography--body2 {
|
|
239
|
+
font-family: ${pi};
|
|
240
|
+
font-size: ${ci};
|
|
241
|
+
font-weight: ${fi};
|
|
242
|
+
letter-spacing: ${di};
|
|
243
|
+
line-height: ${ui};
|
|
244
|
+
text-transform: ${xi};
|
|
245
|
+
}
|
|
246
|
+
`,Pi=u`
|
|
247
|
+
.ft-typography--caption {
|
|
248
|
+
font-family: ${yi};
|
|
249
|
+
font-size: ${vi};
|
|
250
|
+
font-weight: ${bi};
|
|
251
|
+
letter-spacing: ${gi};
|
|
252
|
+
line-height: ${mi};
|
|
253
|
+
text-transform: ${wi};
|
|
254
|
+
}
|
|
255
|
+
`,Ii=u`
|
|
256
|
+
.ft-typography--breadcrumb {
|
|
257
|
+
font-family: ${$i};
|
|
258
|
+
font-size: ${Oi};
|
|
259
|
+
font-weight: ${Si};
|
|
260
|
+
letter-spacing: ${ki};
|
|
261
|
+
line-height: ${Ci};
|
|
262
|
+
text-transform: ${Ni};
|
|
263
|
+
}
|
|
264
|
+
`,Wi=u`
|
|
265
|
+
.ft-typography--overline {
|
|
266
|
+
font-family: ${Ei};
|
|
267
|
+
font-size: ${zi};
|
|
268
|
+
font-weight: ${Ri};
|
|
269
|
+
letter-spacing: ${Mi};
|
|
270
|
+
line-height: ${Fi};
|
|
271
|
+
text-transform: ${Ui};
|
|
272
|
+
}
|
|
273
|
+
`,Hi=u`
|
|
274
|
+
.ft-typography--button {
|
|
275
|
+
font-family: ${Ti.fontFamily};
|
|
276
|
+
font-size: ${Ti.fontSize};
|
|
277
|
+
font-weight: ${Ti.fontWeight};
|
|
278
|
+
letter-spacing: ${Ti.letterSpacing};
|
|
279
|
+
line-height: ${Ti.lineHeight};
|
|
280
|
+
text-transform: ${Ti.textTransform};
|
|
281
|
+
}
|
|
282
|
+
`;class Ki extends ft{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Et`
|
|
283
|
+
<${Ct(this.element)}
|
|
284
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
285
|
+
<slot></slot>
|
|
286
|
+
</${Ct(this.element)}>
|
|
287
|
+
`:Et`
|
|
288
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
289
|
+
`}}Ki.styles=[ji,Bi,Li,Ai,_i,Di,Pi,Ii,Wi,Hi,u`
|
|
290
|
+
.ft-typography {
|
|
291
|
+
vertical-align: inherit;
|
|
292
|
+
}
|
|
293
|
+
`],Rt([e()],Ki.prototype,"element",void 0),Rt([e()],Ki.prototype,"variant",void 0),a("ft-typography")(Ki);var Zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Vi=ht.create("--ft-tooltip-distance","SIZE","4px"),qi=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),Xi=ht.create("--ft-tooltip-background-color","COLOR","#666666"),Ji=ht.create("--ft-tooltip-z-index","NUMBER","1"),Yi=ht.external(ct.borderRadiusS,"Design system");class Gi extends ft{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return I`
|
|
294
|
+
<div part="container"
|
|
295
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
296
|
+
@mouseenter=${this.onHover}
|
|
297
|
+
@mouseleave=${this.onOut}
|
|
298
|
+
@focusin=${this.onHover}
|
|
299
|
+
@focusout=${this.onOut}
|
|
300
|
+
@touchstart=${this.onTouch}>
|
|
301
|
+
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
302
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
303
|
+
<ft-typography variant="caption">${this.text}</ft-typography>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
<slot></slot>
|
|
307
|
+
</div>
|
|
308
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}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())}}Gi.elementDefinitions={"ft-typography":Ki},Gi.styles=u`
|
|
309
|
+
.ft-tooltip--container {
|
|
310
|
+
display: block;
|
|
311
|
+
position: relative;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.ft-tooltip--inline {
|
|
315
|
+
display: inline-block;
|
|
316
|
+
max-width: 100%;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.ft-tooltip {
|
|
320
|
+
position: absolute;
|
|
321
|
+
box-sizing: border-box;
|
|
322
|
+
overflow: hidden;
|
|
323
|
+
width: max-content;
|
|
324
|
+
max-width: 150px;
|
|
325
|
+
text-align: center;
|
|
326
|
+
padding: ${Vi};
|
|
327
|
+
z-index: ${Ji};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ft-tooltip--content {
|
|
331
|
+
padding: 4px 8px;
|
|
332
|
+
border-radius: ${Yi};
|
|
333
|
+
background-color: ${Xi};
|
|
334
|
+
color: ${qi};
|
|
335
|
+
top: -500px;
|
|
336
|
+
left: -500px;
|
|
337
|
+
position: relative;
|
|
338
|
+
word-break: break-word;
|
|
339
|
+
}
|
|
340
|
+
`,Zi([e()],Gi.prototype,"text",void 0),Zi([e({type:Boolean})],Gi.prototype,"manual",void 0),Zi([e({type:Boolean})],Gi.prototype,"inline",void 0),Zi([e({type:Number})],Gi.prototype,"delay",void 0),Zi([e()],Gi.prototype,"position",void 0),Zi([
|
|
341
|
+
/**
|
|
342
|
+
* @license
|
|
343
|
+
* Copyright 2017 Google LLC
|
|
344
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
345
|
+
*/
|
|
346
|
+
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?l(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Gi.prototype,"slotNodes",void 0),Zi([n(".ft-tooltip--container")],Gi.prototype,"container",void 0),Zi([n("slot")],Gi.prototype,"target",void 0),Zi([n(".ft-tooltip")],Gi.prototype,"tooltip",void 0),Zi([n(".ft-tooltip--content")],Gi.prototype,"tooltipContent",void 0),Zi([o()],Gi.prototype,"visible",void 0),a("ft-tooltip")(Gi);const Qi={color:ht.extend("--ft-loader-color",ct.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class te extends ft{static get styles(){return u`
|
|
347
|
+
:host {
|
|
348
|
+
line-height: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.ft-loader {
|
|
352
|
+
display: inline-block;
|
|
353
|
+
position: relative;
|
|
354
|
+
|
|
355
|
+
width: ${Qi.size};
|
|
356
|
+
height: ${Qi.size};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.ft-loader div {
|
|
360
|
+
position: absolute;
|
|
361
|
+
top: 37.5%;
|
|
362
|
+
width: 25%;
|
|
363
|
+
height: 25%;
|
|
364
|
+
border-radius: 50%;
|
|
365
|
+
background: ${Qi.color};
|
|
366
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ft-loader div:nth-child(1) {
|
|
370
|
+
left: 2.5%;
|
|
371
|
+
animation: appear 0.6s infinite;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.ft-loader div:nth-child(2) {
|
|
375
|
+
left: 2.5%;
|
|
376
|
+
animation: move 0.6s infinite;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ft-loader div:nth-child(3) {
|
|
380
|
+
left: 37.5%;
|
|
381
|
+
animation: move 0.6s infinite;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ft-loader div:nth-child(4) {
|
|
385
|
+
left: 72.5%;
|
|
386
|
+
animation: disappear 0.6s infinite;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@keyframes appear {
|
|
390
|
+
0% {
|
|
391
|
+
transform: scale(0);
|
|
392
|
+
}
|
|
393
|
+
100% {
|
|
394
|
+
transform: scale(1);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@keyframes disappear {
|
|
399
|
+
0% {
|
|
400
|
+
transform: scale(1);
|
|
401
|
+
}
|
|
402
|
+
100% {
|
|
403
|
+
transform: scale(0);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@keyframes move {
|
|
408
|
+
0% {
|
|
409
|
+
transform: translate(0, 0);
|
|
410
|
+
}
|
|
411
|
+
100% {
|
|
412
|
+
transform: translate(calc(0.35 * ${Qi.size}), 0);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
`}render(){return I`
|
|
416
|
+
<div class="ft-loader">
|
|
417
|
+
<div></div>
|
|
418
|
+
<div></div>
|
|
419
|
+
<div></div>
|
|
420
|
+
<div></div>
|
|
421
|
+
</div>
|
|
422
|
+
`}}a("ft-loader")(te);
|
|
423
|
+
/**
|
|
424
|
+
* @license
|
|
425
|
+
* Copyright 2017 Google LLC
|
|
426
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
|
+
*/
|
|
428
|
+
class ie extends wt{constructor(t){if(super(t),this.it=H,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this.vt=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const i=[t];return i.raw=i,this.vt={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ie.directiveName="unsafeHTML",ie.resultType=1;const ee=mt(ie);var oe,se;!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=""}(oe||(oe={})),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=""}(se||(se={})),new Map([...["abw"].map((t=>[t,se.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,se.AUDIO])),...["avi"].map((t=>[t,se.AVI])),...["chm","xhs"].map((t=>[t,se.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,se.CODE])),...["csv"].map((t=>[t,se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,se.DITA])),...["epub"].map((t=>[t,se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,se.EXCEL])),...["flac"].map((t=>[t,se.FLAC])),...["gif"].map((t=>[t,se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,se.GZIP])),...["html","htm","xhtml"].map((t=>[t,se.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,se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,se.JPEG])),...["json"].map((t=>[t,se.JSON])),...["m4a","m4p"].map((t=>[t,se.M4A])),...["mov","qt"].map((t=>[t,se.MOV])),...["mp3"].map((t=>[t,se.MP3])),...["mp4","m4v"].map((t=>[t,se.MP4])),...["ogg","oga"].map((t=>[t,se.OGG])),...["pdf","ps"].map((t=>[t,se.PDF])),...["png"].map((t=>[t,se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,se.POWERPOINT])),...["rar"].map((t=>[t,se.RAR])),...["stp"].map((t=>[t,se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,se.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,se.VIDEO])),...["wav"].map((t=>[t,se.WAV])),...["wma"].map((t=>[t,se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,se.WORD])),...["xml","xsl","rdf"].map((t=>[t,se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,se.YAML])),...["zip"].map((t=>[t,se.ZIP]))]);var ne,re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ne||(ne={}));const le={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"))};class ae extends ft{constructor(){super(...arguments),this.variant=ne.fluid_topics}render(){return I`
|
|
429
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
430
|
+
${ee(this.getIcon())}
|
|
431
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
432
|
+
</i>
|
|
433
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===ne.file_format?null!==(t=se[e.toUpperCase()])&&void 0!==t?t:e:this.variant===ne.fluid_topics?null!==(i=oe[e.toUpperCase()])&&void 0!==i?i:e:H}}ae.elementDefinitions={},ae.styles=u`
|
|
434
|
+
:host, i.ft-icon {
|
|
435
|
+
display: inline-block;
|
|
436
|
+
width: ${le.size};
|
|
437
|
+
height: ${le.size};
|
|
438
|
+
text-align: center;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
i.ft-icon {
|
|
442
|
+
font-size: ${le.size};
|
|
443
|
+
line-height: 1;
|
|
444
|
+
font-weight: normal;
|
|
445
|
+
text-transform: none;
|
|
446
|
+
font-style: normal;
|
|
447
|
+
font-variant: normal;
|
|
448
|
+
speak: none;
|
|
449
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
450
|
+
text-rendering: auto;
|
|
451
|
+
-webkit-font-smoothing: antialiased;
|
|
452
|
+
-moz-osx-font-smoothing: grayscale;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.ft-icon--fluid-topics {
|
|
456
|
+
font-family: ${le.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-icon--file-format {
|
|
460
|
+
font-family: ${le.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.ft-icon--material {
|
|
464
|
+
font-family: ${le.materialFontFamily}, "Material Icons", sans-serif;
|
|
465
|
+
}
|
|
466
|
+
`,re([e()],ae.prototype,"variant",void 0),re([n("slot")],ae.prototype,"slottedContent",void 0),a("ft-icon")(ae);var he=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const pe=ht.extend("--ft-button-color",ct.colorPrimary),ce={backgroundColor:ht.extend("--ft-button-background-color",ct.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ct.borderRadiusL),color:pe,fontSize:ht.extend("--ft-button-font-size",Ti.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",pe),opacityDisabled:ht.external(ct.colorOpacityDisabled,"Design system")},fe=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ct.colorOnPrimary)),de={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ct.colorPrimary)),color:fe,rippleColor:ht.extend("--ft-button-primary-ripple-color",fe)},ue=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ct.borderRadiusM));class xe extends ft{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.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[dt,u`
|
|
467
|
+
:host {
|
|
468
|
+
display: inline-block;
|
|
469
|
+
max-width: 100%;
|
|
470
|
+
pointer-events: none;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
button {
|
|
474
|
+
box-shadow: 0px 0px 0px transparent;
|
|
475
|
+
border: 0px solid transparent;
|
|
476
|
+
text-shadow: 0px 0px 0px transparent;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
button:hover {
|
|
480
|
+
box-shadow: 0px 0px 0px transparent;
|
|
481
|
+
border: 0px solid transparent;
|
|
482
|
+
text-shadow: 0px 0px 0px transparent;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
button:active {
|
|
486
|
+
outline: none;
|
|
487
|
+
border: none;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
button:focus {
|
|
491
|
+
outline: 0;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.ft-button {
|
|
495
|
+
position: relative;
|
|
496
|
+
display: flex;
|
|
497
|
+
justify-content: center;
|
|
498
|
+
align-items: center;
|
|
499
|
+
width: 100%;
|
|
500
|
+
overflow: hidden;
|
|
501
|
+
box-sizing: border-box;
|
|
502
|
+
border: none;
|
|
503
|
+
pointer-events: auto;
|
|
504
|
+
|
|
505
|
+
--ft-button-internal-font-size: ${ce.fontSize};
|
|
506
|
+
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
507
|
+
--ft-button-internal-color: ${ce.color};
|
|
508
|
+
${pt(le.size,ce.iconSize)};
|
|
509
|
+
--ft-button-internal-vertical-padding: 6px;
|
|
510
|
+
--ft-button-internal-horizontal-padding: 8px;
|
|
511
|
+
${pt(St.color,ce.rippleColor)};
|
|
512
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${ce.iconSize});
|
|
513
|
+
|
|
514
|
+
border-radius: ${ce.borderRadius};
|
|
515
|
+
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
516
|
+
background-color: ${ce.backgroundColor};
|
|
517
|
+
color: var(--ft-button-internal-color);
|
|
518
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ft-button:not([disabled]):hover {
|
|
522
|
+
cursor: pointer;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ft-button--dense {
|
|
526
|
+
--ft-button-internal-vertical-padding: 2px;
|
|
527
|
+
--ft-button-internal-horizontal-padding: 4px;
|
|
528
|
+
border-radius: ${ue};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.ft-button--round {
|
|
532
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ft-button[disabled] {
|
|
536
|
+
filter: grayscale(1);
|
|
537
|
+
opacity: ${ce.opacityDisabled};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.ft-button.ft-button--primary {
|
|
541
|
+
background-color: ${de.backgroundColor};
|
|
542
|
+
--ft-button-internal-color: ${de.color};
|
|
543
|
+
${pt(St.color,de.rippleColor)};
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.ft-button.ft-button--outlined {
|
|
547
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
548
|
+
padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.ft-button:focus {
|
|
552
|
+
outline: none;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.ft-button--label {
|
|
556
|
+
overflow: hidden;
|
|
557
|
+
white-space: nowrap;
|
|
558
|
+
text-overflow: ellipsis;
|
|
559
|
+
display: block;
|
|
560
|
+
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
561
|
+
${pt(Ti.fontSize,"var(--ft-button-internal-font-size)")};
|
|
562
|
+
${pt(Ti.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.ft-button--safari-fix .ft-button--label {
|
|
566
|
+
margin-right: 0;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.ft-button--safari-fix .ft-button--label:after {
|
|
570
|
+
content: "\\0000a0";
|
|
571
|
+
display: inline-block;
|
|
572
|
+
width: 0;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.ft-button--label[hidden] {
|
|
576
|
+
display: none;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
ft-icon {
|
|
580
|
+
flex-shrink: 0;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.ft-button--label[hidden] + ft-icon {
|
|
584
|
+
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
585
|
+
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
589
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
590
|
+
order: -1;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
ft-loader {
|
|
594
|
+
${pt(Qi.size,ce.iconSize)};
|
|
595
|
+
${pt(Qi.color,"var(--ft-button-internal-color)")};
|
|
596
|
+
}
|
|
597
|
+
`]}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":vt,"ft-no-text-select":!0};return this.addTooltip(I`
|
|
598
|
+
<button part="button"
|
|
599
|
+
class="${$t(t)}"
|
|
600
|
+
aria-label="${this.getLabel()}"
|
|
601
|
+
?disabled=${this.isDisabled()}>
|
|
602
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
603
|
+
<ft-typography part="label"
|
|
604
|
+
variant="button"
|
|
605
|
+
class="ft-button--label"
|
|
606
|
+
?hidden=${!this.hasTextContent()}>
|
|
607
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
608
|
+
</ft-typography>
|
|
609
|
+
${this.resolveIcon()}
|
|
610
|
+
</button>
|
|
611
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:I`
|
|
612
|
+
<ft-tooltip part="tooltip"
|
|
613
|
+
text="${this.getLabel()}"
|
|
614
|
+
position="${this.tooltipPosition}">
|
|
615
|
+
${t}
|
|
616
|
+
</ft-tooltip>
|
|
617
|
+
`}resolveIcon(){return this.loading?I`
|
|
618
|
+
<ft-loader></ft-loader> `:this.icon?I`
|
|
619
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:H}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}}xe.elementDefinitions={"ft-ripple":kt,"ft-tooltip":Gi,"ft-typography":Ki,"ft-icon":ae,"ft-loader":te},he([e({type:Boolean})],xe.prototype,"primary",void 0),he([e({type:Boolean})],xe.prototype,"outlined",void 0),he([e({type:Boolean})],xe.prototype,"disabled",void 0),he([e({type:Boolean})],xe.prototype,"dense",void 0),he([e({type:Boolean})],xe.prototype,"round",void 0),he([e({type:String})],xe.prototype,"label",void 0),he([e({type:String})],xe.prototype,"icon",void 0),he([e({type:Boolean})],xe.prototype,"trailingIcon",void 0),he([e({type:Boolean})],xe.prototype,"loading",void 0),he([e({type:String})],xe.prototype,"tooltipPosition",void 0),he([n(".ft-button")],xe.prototype,"button",void 0),he([n(".ft-button--label slot")],xe.prototype,"slottedContent",void 0),a("ft-button")(xe);var ye=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const ve={buttonsColor:ht.extend("--ft-snap-scroll-buttons-color",ct.colorPrimary),buttonsZIndex:ht.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ht.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ht.external(ct.colorSurface,"Design system")};class be extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class ge extends ft{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new t(200),this.updateScrollDebouncer=new t(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=$t({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":vt}),i=this.controls&&this.withScroll;return I`
|
|
620
|
+
<div part="container" class="${t}">
|
|
621
|
+
<ft-button
|
|
622
|
+
class="ft-snap-scroll--previous"
|
|
623
|
+
part="controls"
|
|
624
|
+
primary
|
|
625
|
+
icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
|
|
626
|
+
?hidden=${!i||this.startReached}
|
|
627
|
+
?disabled=${!i||this.startReached}
|
|
628
|
+
@click=${this.previous}
|
|
629
|
+
></ft-button>
|
|
630
|
+
<slot class="ft-snap-scroll--content"
|
|
631
|
+
part="content"
|
|
632
|
+
@slotchange=${this.onSlotChange}></slot>
|
|
633
|
+
<ft-button
|
|
634
|
+
class="ft-snap-scroll--next"
|
|
635
|
+
part="controls"
|
|
636
|
+
primary
|
|
637
|
+
icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
|
|
638
|
+
?hidden=${!i||this.endReached}
|
|
639
|
+
?disabled=${!i||this.endReached}
|
|
640
|
+
@click=${this.next}
|
|
641
|
+
></ft-button>
|
|
642
|
+
</div>
|
|
643
|
+
`}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new be(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}ge.elementDefinitions={"ft-button":xe},ge.styles=u`
|
|
644
|
+
.ft-snap-scroll {
|
|
645
|
+
box-sizing: border-box;
|
|
646
|
+
position: relative;
|
|
647
|
+
display: flex;
|
|
648
|
+
|
|
649
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
653
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
654
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
655
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.ft-snap-scroll,
|
|
659
|
+
.ft-snap-scroll--content {
|
|
660
|
+
overflow: hidden;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.ft-snap-scroll--limit-size,
|
|
664
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
665
|
+
width: 100%;
|
|
666
|
+
height: 100%;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.ft-snap-scroll--content {
|
|
670
|
+
flex-grow: 1;
|
|
671
|
+
flex-shrink: 1;
|
|
672
|
+
box-sizing: border-box;
|
|
673
|
+
scroll-snap-align: start;
|
|
674
|
+
display: flex;
|
|
675
|
+
flex-wrap: nowrap;
|
|
676
|
+
align-items: flex-start;
|
|
677
|
+
justify-content: flex-start;
|
|
678
|
+
gap: ${ve.gap};
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
682
|
+
display: none;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
686
|
+
-ms-overflow-style: none;
|
|
687
|
+
scrollbar-width: none;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
691
|
+
flex-shrink: 0;
|
|
692
|
+
flex-grow: 1;
|
|
693
|
+
max-height: 100%;
|
|
694
|
+
max-width: 100%;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.ft-snap-scroll--horizontal,
|
|
698
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
699
|
+
width: 100%;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.ft-snap-scroll--vertical,
|
|
703
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
704
|
+
height: 100%;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
708
|
+
flex-direction: row;
|
|
709
|
+
overflow-x: auto;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
713
|
+
flex-direction: column;
|
|
714
|
+
overflow-y: auto;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.ft-snap-scroll--previous,
|
|
718
|
+
.ft-snap-scroll--next {
|
|
719
|
+
position: absolute;
|
|
720
|
+
display: flex;
|
|
721
|
+
z-index: ${ve.buttonsZIndex};
|
|
722
|
+
opacity: 1;
|
|
723
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
724
|
+
${pt(ce.backgroundColor,"transparent")};
|
|
725
|
+
${pt(ce.color,ve.buttonsColor)};
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ft-snap-scroll--previous[hidden],
|
|
729
|
+
.ft-snap-scroll--next[hidden] {
|
|
730
|
+
z-index: -1;
|
|
731
|
+
opacity: 0;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
735
|
+
top: 0;
|
|
736
|
+
left: -1px;
|
|
737
|
+
bottom: 0;
|
|
738
|
+
background: linear-gradient(to right, ${ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
742
|
+
top: -1px;
|
|
743
|
+
left: 0;
|
|
744
|
+
right: 0;
|
|
745
|
+
background: linear-gradient(to bottom, ${ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
749
|
+
top: 0;
|
|
750
|
+
right: -1px;
|
|
751
|
+
bottom: 0;
|
|
752
|
+
background: linear-gradient(to left, ${ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
756
|
+
left: 0;
|
|
757
|
+
right: 0;
|
|
758
|
+
bottom: -1px;
|
|
759
|
+
background: linear-gradient(to top, ${ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
763
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
764
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
765
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
766
|
+
background-color: ${ve.colorSurface};
|
|
767
|
+
}
|
|
768
|
+
`,ye([e({type:Boolean})],ge.prototype,"horizontal",void 0),ye([e({type:Boolean})],ge.prototype,"hideScrollbar",void 0),ye([e({type:Boolean})],ge.prototype,"controls",void 0),ye([e({type:Boolean})],ge.prototype,"limitSize",void 0),ye([o()],ge.prototype,"elements",void 0),ye([o()],ge.prototype,"currentElement",void 0),ye([o()],ge.prototype,"withScroll",void 0),ye([o()],ge.prototype,"startReached",void 0),ye([o()],ge.prototype,"endReached",void 0),ye([n(".ft-snap-scroll--content")],ge.prototype,"contentSlot",void 0),a("ft-snap-scroll")(function t(i){var e;let o;if("elementDefinitions"in i){o={};const e=i.elementDefinitions;for(let i in e)o[i]=t(e[i])}return e=class extends i{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let e=null!==(t=i.styles)&&void 0!==t?t:[];return Array.isArray(e)||(e=[e]),I`
|
|
769
|
+
${e.map((t=>I`
|
|
770
|
+
<style>${t}</style>
|
|
771
|
+
`))}
|
|
772
|
+
${super.render()}
|
|
773
|
+
`}},e.styles=void 0,e.elementDefinitions=o,e}(ge))}();
|