@fluid-topics/ft-snap-scroll 0.3.70 → 0.3.71
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.light.js +16 -12
- package/build/ft-snap-scroll.min.js +174 -170
- package/package.json +4 -4
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,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 c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);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 v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=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,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.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(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(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){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,50 +29,50 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const n=({finisher:t,descriptor:
|
|
32
|
+
*/const n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function r(t,
|
|
37
|
+
*/;function r(t,e){return n({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
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,
|
|
42
|
+
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,s;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!h(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(s=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=i;0!=o--;){var n=s[o];if(!h(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,i
|
|
48
|
+
const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)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(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const x=t=>new v("string"==typeof t?t:t+"",void 0,d),b=(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 v(i,t,d)},y=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return x(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,
|
|
53
|
+
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?O: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}},E=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:E};class C 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=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}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(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=N){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="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=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||E)(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
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var R;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:C}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i
|
|
59
|
+
var R;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:C}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===P?"!--"===a[1]?r=I:void 0!==a[1]?r=D:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=s?s:P,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:H):r===K||r===H?r=W:r===I||r===D?r=P:(r=W,s=void 0);const p=r===W&&t[e+1].startsWith("/>")?" ":"";n+=r===P?i+B:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+U+p):i+U+(-2===h?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=G(t,e);if(this.el=Q.createElement(a,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?rt:"@"===e[1]?lt:ot})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var s,n,r,l;if(e===J)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=L(e)?void 0:e._$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,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=tt(t,a._$AS(t,e.values),a,o)),e}class et{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(i,!0);Y.currentNode=s;let n=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new it(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new at(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Y.nextNode(),r++)}return s}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 it{constructor(t,e,i,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$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=tt(this,t,e),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(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!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$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===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new et(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new it(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=tt(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=tt(this,o[i+r],e,r),l===J&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const nt=M?M.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class 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){tt(this,t)}}const ht=z.litHtmlPolyfillSupport;null==ht||ht(Q,it),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,
|
|
65
|
+
var ct,pt;class ft extends C{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,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new it(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,e,i){let o=t=>x(null!=t?t:i),s=b`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>b`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=b`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>b`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),o=b`var(${x(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=>b`var(${x(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 vt(t,e){return x(`${t.name}: ${e}`)}const xt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/var
|
|
70
|
+
*/var bt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class yt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(s,this.constructor.elementStyles),s}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),V`
|
|
71
71
|
${t.map((t=>V`
|
|
72
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.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,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=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!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}bt([o()],yt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0),bt([o()],yt.prototype,"customStylesheet",void 0);const gt=b`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOption
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;
|
|
84
|
+
`;b`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -93,7 +93,7 @@ var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const mt=
|
|
96
|
+
`;const mt=b`
|
|
97
97
|
.ft-safari-ellipsis-fix {
|
|
98
98
|
margin-right: 0;
|
|
99
99
|
|
|
@@ -104,17 +104,17 @@ var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOption
|
|
|
104
104
|
display: inline-block;
|
|
105
105
|
width: 0;
|
|
106
106
|
}
|
|
107
|
-
`;var wt,$t,Ot;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),kt=1,Et=2,Nt=t=>(...
|
|
107
|
+
`;var wt,$t,Ot;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),kt=1,Et=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2017 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i
|
|
112
|
+
*/class Ct{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)}}
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2018 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/const Rt=Nt(class extends Ct{constructor(t){var
|
|
117
|
+
*/const Rt=Nt(class extends Ct{constructor(t){var e;if(super(t),t.type!==kt||"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 s=t.element.classList;this.nt.forEach((t=>{t in e||(s.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?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return J}}),zt=ut.extend("--ft-ripple-color",xt.colorContent),Mt={color:zt,backgroundColor:ut.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:ut.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(xt.opacityContentOnSurfaceSelected,"Design system")},Ft=ut.extend("--ft-ripple-color",xt.colorPrimary),Ut=Ft,jt=ut.extend("--ft-ripple-background-color",Ft),Bt=ut.extend("--ft-ripple-color",xt.colorSecondary),Tt=Bt,At=ut.extend("--ft-ripple-background-color",Bt),Lt=b`
|
|
118
118
|
:host {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
@@ -203,7 +203,7 @@ var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOption
|
|
|
203
203
|
opacity: ${Mt.opacityContentOnSurfacePressed};
|
|
204
204
|
transform: translate(-50%, -50%) scale(1);
|
|
205
205
|
}
|
|
206
|
-
`;var _t=function(t,i,
|
|
206
|
+
`;var _t=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Pt extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=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-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 V`
|
|
207
207
|
<style>
|
|
208
208
|
.ft-ripple .ft-ripple--effect,
|
|
209
209
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -220,115 +220,115 @@ var ct,pt;class ft extends C{constructor(){super(...arguments),this.renderOption
|
|
|
220
220
|
<div class="ft-ripple--background"></div>
|
|
221
221
|
<div class="ft-ripple--effect"></div>
|
|
222
222
|
</div>
|
|
223
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i
|
|
223
|
+
`}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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Pt.elementDefinitions={},Pt.styles=Lt,_t([o({type:Boolean})],Pt.prototype,"primary",void 0),_t([o({type:Boolean})],Pt.prototype,"secondary",void 0),_t([o({type:Boolean})],Pt.prototype,"unbounded",void 0),_t([o({type:Boolean})],Pt.prototype,"activated",void 0),_t([o({type:Boolean})],Pt.prototype,"selected",void 0),_t([o({type:Boolean})],Pt.prototype,"disabled",void 0),_t([s()],Pt.prototype,"hovered",void 0),_t([s()],Pt.prototype,"focused",void 0),_t([s()],Pt.prototype,"pressed",void 0),_t([s()],Pt.prototype,"rippling",void 0),_t([s()],Pt.prototype,"rippleSize",void 0),_t([s()],Pt.prototype,"originX",void 0),_t([s()],Pt.prototype,"originY",void 0),_t([r(".ft-ripple")],Pt.prototype,"ripple",void 0),_t([r(".ft-ripple--effect")],Pt.prototype,"rippleEffect",void 0),c("ft-ripple")(Pt);
|
|
224
224
|
/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2020 Google LLC
|
|
227
227
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228
228
|
*/
|
|
229
|
-
const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:It}),Ht=new Map,Kt=(t=>(i
|
|
229
|
+
const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:It}),Ht=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(n=i[h],s=Dt(n));)a+=s+e[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Ht.get(t))&&(r.raw=r,Ht.set(t,e=r)),i=l}return t(e,...i)})(V);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=ut.extend("--ft-typography-font-family",xt.titleFont),Jt=ut.extend("--ft-typography-font-family",xt.contentFont),qt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ut.extend("--ft-typography-title-font-family",Vt),Yt=ut.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ut.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=ut.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=ut.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=ut.extend("--ft-typography-title-dense-font-family",Vt),oe=ut.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),se=ut.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),ne=ut.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),re=ut.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),le=ut.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ae=ut.extend("--ft-typography-subtitle1-font-family",Jt),he=ut.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ce=ut.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),pe=ut.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=ut.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=ut.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=ut.extend("--ft-typography-subtitle2-font-family",Jt),ve=ut.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xe=ut.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),be=ut.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),ye=ut.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=ut.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me=ut.extend("--ft-typography-body1-font-family",Jt),we=ut.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=ut.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=ut.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Se=ut.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ke=ut.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ee=ut.extend("--ft-typography-body2-font-family",Jt),Ne=ut.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ce=ut.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Re=ut.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),ze=ut.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Me=ut.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Fe=ut.extend("--ft-typography-caption-font-family",Jt),Ue=ut.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),je=ut.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Be=ut.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Te=ut.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Ae=ut.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Le=ut.extend("--ft-typography-breadcrumb-font-family",Jt),_e=ut.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Pe=ut.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Ie=ut.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),De=ut.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),We=ut.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),He=ut.extend("--ft-typography-overline-font-family",Jt),Ke=ut.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Ze=ut.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ve=ut.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Je=ut.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qe=ut.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xe={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Ye=b`
|
|
230
230
|
.ft-typography--title {
|
|
231
231
|
font-family: ${Xt};
|
|
232
232
|
font-size: ${Yt};
|
|
233
233
|
font-weight: ${Gt};
|
|
234
234
|
letter-spacing: ${Qt};
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
235
|
+
line-height: ${te};
|
|
236
|
+
text-transform: ${ee};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
238
|
+
`,Ge=b`
|
|
239
239
|
.ft-typography--title-dense {
|
|
240
|
-
font-family: ${
|
|
241
|
-
font-size: ${
|
|
242
|
-
font-weight: ${
|
|
243
|
-
letter-spacing: ${
|
|
244
|
-
line-height: ${
|
|
245
|
-
text-transform: ${
|
|
246
|
-
}
|
|
247
|
-
`,
|
|
240
|
+
font-family: ${ie};
|
|
241
|
+
font-size: ${oe};
|
|
242
|
+
font-weight: ${se};
|
|
243
|
+
letter-spacing: ${ne};
|
|
244
|
+
line-height: ${re};
|
|
245
|
+
text-transform: ${le};
|
|
246
|
+
}
|
|
247
|
+
`,Qe=b`
|
|
248
248
|
.ft-typography--subtitle1 {
|
|
249
|
-
font-family: ${
|
|
250
|
-
font-size: ${
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
255
|
-
}
|
|
256
|
-
`,
|
|
249
|
+
font-family: ${ae};
|
|
250
|
+
font-size: ${he};
|
|
251
|
+
font-weight: ${ce};
|
|
252
|
+
letter-spacing: ${pe};
|
|
253
|
+
line-height: ${fe};
|
|
254
|
+
text-transform: ${de};
|
|
255
|
+
}
|
|
256
|
+
`,ti=b`
|
|
257
257
|
.ft-typography--subtitle2 {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
258
|
+
font-family: ${ue};
|
|
259
|
+
font-size: ${ve};
|
|
260
|
+
font-weight: ${xe};
|
|
261
|
+
letter-spacing: ${be};
|
|
262
|
+
line-height: ${ye};
|
|
263
|
+
text-transform: ${ge};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
`,
|
|
266
|
+
`,ei=b`
|
|
267
267
|
.ft-typography--body1 {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${$
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
274
|
-
}
|
|
275
|
-
`,
|
|
268
|
+
font-family: ${me};
|
|
269
|
+
font-size: ${we};
|
|
270
|
+
font-weight: ${$e};
|
|
271
|
+
letter-spacing: ${Oe};
|
|
272
|
+
line-height: ${Se};
|
|
273
|
+
text-transform: ${ke};
|
|
274
|
+
}
|
|
275
|
+
`,ii=b`
|
|
276
276
|
.ft-typography--body2 {
|
|
277
|
-
font-family: ${
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
281
|
-
line-height: ${
|
|
282
|
-
text-transform: ${
|
|
283
|
-
}
|
|
284
|
-
`,
|
|
277
|
+
font-family: ${Ee};
|
|
278
|
+
font-size: ${Ne};
|
|
279
|
+
font-weight: ${Ce};
|
|
280
|
+
letter-spacing: ${Re};
|
|
281
|
+
line-height: ${ze};
|
|
282
|
+
text-transform: ${Me};
|
|
283
|
+
}
|
|
284
|
+
`,oi=b`
|
|
285
285
|
.ft-typography--caption {
|
|
286
|
-
font-family: ${
|
|
287
|
-
font-size: ${
|
|
288
|
-
font-weight: ${
|
|
289
|
-
letter-spacing: ${
|
|
290
|
-
line-height: ${
|
|
291
|
-
text-transform: ${
|
|
292
|
-
}
|
|
293
|
-
`,
|
|
286
|
+
font-family: ${Fe};
|
|
287
|
+
font-size: ${Ue};
|
|
288
|
+
font-weight: ${je};
|
|
289
|
+
letter-spacing: ${Be};
|
|
290
|
+
line-height: ${Te};
|
|
291
|
+
text-transform: ${Ae};
|
|
292
|
+
}
|
|
293
|
+
`,si=b`
|
|
294
294
|
.ft-typography--breadcrumb {
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
297
|
-
font-weight: ${
|
|
298
|
-
letter-spacing: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
text-transform: ${
|
|
301
|
-
}
|
|
302
|
-
`,
|
|
295
|
+
font-family: ${Le};
|
|
296
|
+
font-size: ${_e};
|
|
297
|
+
font-weight: ${Pe};
|
|
298
|
+
letter-spacing: ${Ie};
|
|
299
|
+
line-height: ${De};
|
|
300
|
+
text-transform: ${We};
|
|
301
|
+
}
|
|
302
|
+
`,ni=b`
|
|
303
303
|
.ft-typography--overline {
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
307
|
-
letter-spacing: ${
|
|
308
|
-
line-height: ${
|
|
309
|
-
text-transform: ${
|
|
310
|
-
}
|
|
311
|
-
`,
|
|
304
|
+
font-family: ${He};
|
|
305
|
+
font-size: ${Ke};
|
|
306
|
+
font-weight: ${Ze};
|
|
307
|
+
letter-spacing: ${Ve};
|
|
308
|
+
line-height: ${Je};
|
|
309
|
+
text-transform: ${qe};
|
|
310
|
+
}
|
|
311
|
+
`,ri=b`
|
|
312
312
|
.ft-typography--button {
|
|
313
|
-
font-family: ${
|
|
314
|
-
font-size: ${
|
|
315
|
-
font-weight: ${
|
|
316
|
-
letter-spacing: ${
|
|
317
|
-
line-height: ${
|
|
318
|
-
text-transform: ${
|
|
319
|
-
}
|
|
320
|
-
`,
|
|
313
|
+
font-family: ${Xe.fontFamily};
|
|
314
|
+
font-size: ${Xe.fontSize};
|
|
315
|
+
font-weight: ${Xe.fontWeight};
|
|
316
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
317
|
+
line-height: ${Xe.lineHeight};
|
|
318
|
+
text-transform: ${Xe.textTransform};
|
|
319
|
+
}
|
|
320
|
+
`,li=b`
|
|
321
321
|
.ft-typography {
|
|
322
322
|
vertical-align: inherit;
|
|
323
323
|
}
|
|
324
|
-
`;var
|
|
324
|
+
`;var ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class hi extends yt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
|
|
325
325
|
<${Wt(this.element)}
|
|
326
326
|
class="ft-typography ft-typography--${this.variant}">
|
|
327
327
|
<slot></slot>
|
|
328
328
|
</${Wt(this.element)}>
|
|
329
329
|
`:Kt`
|
|
330
330
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
331
|
-
`}}
|
|
331
|
+
`}}hi.styles=[Ye,Ge,Qe,ti,ei,ii,oi,si,ni,ri,li],ai([o()],hi.prototype,"element",void 0),ai([o()],hi.prototype,"variant",void 0),c("ft-typography")(hi);const ci=ut.create("--ft-tooltip-distance","SIZE","4px"),pi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),fi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),di=ut.create("--ft-tooltip-z-index","NUMBER","1"),ui=ut.external(xt.borderRadiusS,"Design system"),vi=ut.create("--ft-tooltip-max-width","SIZE","150px"),xi=b`
|
|
332
332
|
.ft-tooltip--container {
|
|
333
333
|
display: block;
|
|
334
334
|
position: relative;
|
|
@@ -344,23 +344,23 @@ const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void
|
|
|
344
344
|
box-sizing: border-box;
|
|
345
345
|
overflow: hidden;
|
|
346
346
|
width: max-content;
|
|
347
|
-
max-width: ${
|
|
347
|
+
max-width: ${vi};
|
|
348
348
|
text-align: center;
|
|
349
|
-
padding: ${
|
|
350
|
-
z-index: ${
|
|
349
|
+
padding: ${ci};
|
|
350
|
+
z-index: ${di};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-tooltip--content {
|
|
354
354
|
padding: 4px 8px;
|
|
355
|
-
border-radius: ${
|
|
356
|
-
background-color: ${
|
|
357
|
-
color: ${
|
|
355
|
+
border-radius: ${ui};
|
|
356
|
+
background-color: ${fi};
|
|
357
|
+
color: ${pi};
|
|
358
358
|
top: -500px;
|
|
359
359
|
left: -500px;
|
|
360
360
|
position: relative;
|
|
361
361
|
word-break: break-word;
|
|
362
362
|
}
|
|
363
|
-
`;var
|
|
363
|
+
`;var bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class yi extends yt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
|
|
364
364
|
<div part="container"
|
|
365
365
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
366
366
|
@mouseenter=${this.onHover}
|
|
@@ -378,13 +378,13 @@ const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void
|
|
|
378
378
|
</div>
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((
|
|
381
|
+
`}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.validPosition){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 s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${vi})`}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())}}yi.elementDefinitions={"ft-typography":hi},yi.styles=xi,bi([o()],yi.prototype,"text",void 0),bi([o({type:Boolean})],yi.prototype,"manual",void 0),bi([o({type:Boolean})],yi.prototype,"inline",void 0),bi([o({type:Number})],yi.prototype,"delay",void 0),bi([o()],yi.prototype,"position",void 0),bi([
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
384
384
|
* Copyright 2017 Google LLC
|
|
385
385
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
386
386
|
*/
|
|
387
|
-
function(t,i
|
|
387
|
+
function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],yi.prototype,"slotNodes",void 0),bi([r(".ft-tooltip--container")],yi.prototype,"container",void 0),bi([r("slot")],yi.prototype,"target",void 0),bi([r(".ft-tooltip")],yi.prototype,"tooltip",void 0),bi([r(".ft-tooltip--content")],yi.prototype,"tooltipContent",void 0),bi([s()],yi.prototype,"visible",void 0),c("ft-tooltip")(yi);const gi={color:ut.extend("--ft-loader-color",xt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},mi=b`
|
|
388
388
|
:host {
|
|
389
389
|
line-height: 0;
|
|
390
390
|
}
|
|
@@ -393,8 +393,8 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
393
393
|
display: inline-block;
|
|
394
394
|
position: relative;
|
|
395
395
|
|
|
396
|
-
width: ${
|
|
397
|
-
height: ${
|
|
396
|
+
width: ${gi.size};
|
|
397
|
+
height: ${gi.size};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.ft-loader div {
|
|
@@ -403,7 +403,7 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
403
403
|
width: 25%;
|
|
404
404
|
height: 25%;
|
|
405
405
|
border-radius: 50%;
|
|
406
|
-
background: ${
|
|
406
|
+
background: ${gi.color};
|
|
407
407
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
408
408
|
}
|
|
409
409
|
|
|
@@ -450,23 +450,23 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
450
450
|
transform: translate(0, 0);
|
|
451
451
|
}
|
|
452
452
|
100% {
|
|
453
|
-
transform: translate(calc(0.35 * ${
|
|
453
|
+
transform: translate(calc(0.35 * ${gi.size}), 0);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
`;class
|
|
456
|
+
`;class wi extends yt{render(){return V`
|
|
457
457
|
<div class="ft-loader">
|
|
458
458
|
<div></div>
|
|
459
459
|
<div></div>
|
|
460
460
|
<div></div>
|
|
461
461
|
<div></div>
|
|
462
462
|
</div>
|
|
463
|
-
`}}
|
|
463
|
+
`}}wi.styles=mi,c("ft-loader")(wi);
|
|
464
464
|
/**
|
|
465
465
|
* @license
|
|
466
466
|
* Copyright 2017 Google LLC
|
|
467
467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
468
468
|
*/
|
|
469
|
-
class $
|
|
469
|
+
class $i extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)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 Si,ki;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(Si||(Si={})),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=""}(ki||(ki={})),new Map([...["abw"].map((t=>[t,ki.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,ki.AUDIO])),...["avi"].map((t=>[t,ki.AVI])),...["chm","xhs"].map((t=>[t,ki.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,ki.CODE])),...["csv"].map((t=>[t,ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ki.DITA])),...["epub"].map((t=>[t,ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ki.EXCEL])),...["flac"].map((t=>[t,ki.FLAC])),...["gif"].map((t=>[t,ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,ki.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,ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ki.JPEG])),...["json"].map((t=>[t,ki.JSON])),...["m4a","m4p"].map((t=>[t,ki.M4A])),...["mov","qt"].map((t=>[t,ki.MOV])),...["mp3"].map((t=>[t,ki.MP3])),...["mp4","m4v"].map((t=>[t,ki.MP4])),...["ogg","oga"].map((t=>[t,ki.OGG])),...["pdf","ps"].map((t=>[t,ki.PDF])),...["png"].map((t=>[t,ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ki.POWERPOINT])),...["rar"].map((t=>[t,ki.RAR])),...["stp"].map((t=>[t,ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ki.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,ki.VIDEO])),...["wav"].map((t=>[t,ki.WAV])),...["wma"].map((t=>[t,ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ki.YAML])),...["zip"].map((t=>[t,ki.ZIP]))]);const Ei={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=b`
|
|
470
470
|
:host, i.ft-icon {
|
|
471
471
|
display: inline-flex;
|
|
472
472
|
align-items: center;
|
|
@@ -475,14 +475,14 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
:host {
|
|
478
|
-
width: ${
|
|
479
|
-
height: ${
|
|
478
|
+
width: ${Ei.size};
|
|
479
|
+
height: ${Ei.size};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
i.ft-icon {
|
|
483
483
|
width: 100%;
|
|
484
484
|
height: 100%;
|
|
485
|
-
font-size: ${
|
|
485
|
+
font-size: ${Ei.size};
|
|
486
486
|
line-height: 1;
|
|
487
487
|
font-weight: normal;
|
|
488
488
|
text-transform: none;
|
|
@@ -493,32 +493,32 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
493
493
|
text-rendering: auto;
|
|
494
494
|
-webkit-font-smoothing: antialiased;
|
|
495
495
|
-moz-osx-font-smoothing: grayscale;
|
|
496
|
-
vertical-align: ${
|
|
496
|
+
vertical-align: ${Ei.verticalAlign};
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
i.ft-icon.ft-icon--fluid-topics {
|
|
500
|
-
font-family: ${
|
|
500
|
+
font-family: ${Ei.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
501
501
|
|
|
502
502
|
/* Ugly fix because font is broken */
|
|
503
|
-
font-size: calc(0.9 * ${
|
|
503
|
+
font-size: calc(0.9 * ${Ei.size});
|
|
504
504
|
position: relative;
|
|
505
505
|
top: -5%;
|
|
506
506
|
justify-content: center;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-icon--file-format {
|
|
510
|
-
font-family: ${
|
|
510
|
+
font-family: ${Ei.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
.ft-icon--material {
|
|
514
|
-
font-family: ${
|
|
514
|
+
font-family: ${Ei.materialFontFamily}, "Material Icons", sans-serif;
|
|
515
515
|
}
|
|
516
|
-
`;var
|
|
517
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
518
|
-
${
|
|
519
|
-
<slot ?hidden=${
|
|
516
|
+
`;var Ci;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ci||(Ci={}));var Ri=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends yt{constructor(){super(...arguments),this.resolvedIcon=q}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:Ci.fluid_topics,i="material"!==e||this.value;return V`
|
|
517
|
+
<i class="ft-icon ${"ft-icon--"+e}">
|
|
518
|
+
${Oi(this.resolvedIcon)}
|
|
519
|
+
<slot ?hidden=${i}></slot>
|
|
520
520
|
</i>
|
|
521
|
-
`}get textContent(){var t,
|
|
521
|
+
`}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 Ci.file_format:this.resolvedIcon=null!==(t=ki[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ci.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Si[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zi.elementDefinitions={},zi.styles=Ni,Ri([o()],zi.prototype,"variant",void 0),Ri([o()],zi.prototype,"value",void 0),Ri([s()],zi.prototype,"resolvedIcon",void 0),Ri([r("slot")],zi.prototype,"slottedContent",void 0),c("ft-icon")(zi);const Mi=ut.extend("--ft-button-color",xt.colorPrimary),Fi={backgroundColor:ut.extend("--ft-button-background-color",xt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",xt.borderRadiusL),color:Mi,fontSize:ut.extend("--ft-button-font-size",Xe.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Mi),verticalPadding:ut.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:ut.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:ut.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:ut.external(xt.colorOpacityDisabled,"Design system")},Ui=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",xt.colorOnPrimary)),ji={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",xt.colorPrimary)),color:Ui,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ui)},Bi=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",xt.borderRadiusM)),Ti=ut.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ai=ut.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Li=ut.create("--ft-button-dense-icon-padding","SIZE","4px"),_i=[gt,b`
|
|
522
522
|
:host {
|
|
523
523
|
display: inline-block;
|
|
524
524
|
max-width: 100%;
|
|
@@ -529,7 +529,7 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
529
529
|
box-shadow: 0px 0px 0px transparent;
|
|
530
530
|
border: 0px solid transparent;
|
|
531
531
|
text-shadow: 0px 0px 0px transparent;
|
|
532
|
-
font-size: ${
|
|
532
|
+
font-size: ${Fi.fontSize};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
button:hover {
|
|
@@ -557,34 +557,33 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
557
557
|
box-sizing: border-box;
|
|
558
558
|
border: none;
|
|
559
559
|
pointer-events: auto;
|
|
560
|
-
gap: ${Fe.iconPadding};
|
|
561
560
|
|
|
562
|
-
--ft-button-internal-line-height: calc(${
|
|
563
|
-
--ft-button-internal-color: ${
|
|
564
|
-
${vt(
|
|
565
|
-
${vt(Mt.color,
|
|
566
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
561
|
+
--ft-button-internal-line-height: calc(${Fi.fontSize} + 2px);
|
|
562
|
+
--ft-button-internal-color: ${Fi.color};
|
|
563
|
+
${vt(Ei.size,Fi.iconSize)};
|
|
564
|
+
${vt(Mt.color,Fi.rippleColor)};
|
|
565
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
|
|
567
566
|
|
|
568
|
-
border-radius: ${
|
|
569
|
-
padding: ${
|
|
570
|
-
background-color: ${
|
|
567
|
+
border-radius: ${Fi.borderRadius};
|
|
568
|
+
padding: ${Fi.verticalPadding} ${Fi.horizontalPadding};
|
|
569
|
+
background-color: ${Fi.backgroundColor};
|
|
571
570
|
color: var(--ft-button-internal-color);
|
|
572
571
|
-webkit-mask-image: radial-gradient(white, black);
|
|
573
572
|
}
|
|
574
573
|
|
|
575
574
|
.ft-button.ft-button--outlined {
|
|
576
575
|
border: 1px solid var(--ft-button-internal-color);
|
|
577
|
-
padding: calc(${
|
|
576
|
+
padding: calc(${Fi.verticalPadding} - 1px) calc(${Fi.horizontalPadding} - 1px);
|
|
578
577
|
}
|
|
579
578
|
|
|
580
579
|
.ft-button.ft-button--dense {
|
|
581
|
-
padding: ${
|
|
582
|
-
border-radius: ${
|
|
583
|
-
gap: ${
|
|
580
|
+
padding: ${Ti} ${Ai};
|
|
581
|
+
border-radius: ${Bi};
|
|
582
|
+
gap: ${Li};
|
|
584
583
|
}
|
|
585
584
|
|
|
586
585
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
587
|
-
padding: calc(${
|
|
586
|
+
padding: calc(${Ti} - 1px) calc(${Ai} - 1px);
|
|
588
587
|
}
|
|
589
588
|
|
|
590
589
|
.ft-button:not([disabled]):hover {
|
|
@@ -592,22 +591,22 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
592
591
|
}
|
|
593
592
|
|
|
594
593
|
.ft-button--round {
|
|
595
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
594
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Fi.verticalPadding});
|
|
596
595
|
}
|
|
597
596
|
|
|
598
597
|
.ft-button--round.ft-button--dense {
|
|
599
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
598
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Ti});
|
|
600
599
|
}
|
|
601
600
|
|
|
602
601
|
.ft-button[disabled] {
|
|
603
602
|
filter: grayscale(1);
|
|
604
|
-
opacity: ${
|
|
603
|
+
opacity: ${Fi.opacityDisabled};
|
|
605
604
|
}
|
|
606
605
|
|
|
607
606
|
.ft-button.ft-button--primary {
|
|
608
|
-
background-color: ${
|
|
609
|
-
--ft-button-internal-color: ${
|
|
610
|
-
${vt(Mt.color,
|
|
607
|
+
background-color: ${ji.backgroundColor};
|
|
608
|
+
--ft-button-internal-color: ${ji.color};
|
|
609
|
+
${vt(Mt.color,ji.rippleColor)};
|
|
611
610
|
}
|
|
612
611
|
|
|
613
612
|
.ft-button:focus {
|
|
@@ -620,8 +619,13 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
620
619
|
white-space: nowrap;
|
|
621
620
|
text-overflow: ellipsis;
|
|
622
621
|
display: block;
|
|
623
|
-
${
|
|
624
|
-
${vt(
|
|
622
|
+
margin: 0 ${Fi.iconPadding};
|
|
623
|
+
${vt(Xe.fontSize,"1em")};
|
|
624
|
+
${vt(Xe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.ft-button--dense .ft-button--label {
|
|
628
|
+
margin: 0 ${Li};
|
|
625
629
|
}
|
|
626
630
|
|
|
627
631
|
.ft-button--label[hidden] {
|
|
@@ -634,13 +638,13 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
634
638
|
}
|
|
635
639
|
|
|
636
640
|
.ft-button--label[hidden] + ft-icon {
|
|
637
|
-
margin: 0 calc(${
|
|
638
|
-
padding: 0 ${
|
|
641
|
+
margin: 0 calc(${Fi.horizontalPadding} * -1);
|
|
642
|
+
padding: 0 ${Fi.verticalPadding};
|
|
639
643
|
}
|
|
640
644
|
|
|
641
645
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
642
|
-
margin: 0 calc(${
|
|
643
|
-
padding: 0 ${
|
|
646
|
+
margin: 0 calc(${Ai} * -1);
|
|
647
|
+
padding: 0 ${Ti};
|
|
644
648
|
}
|
|
645
649
|
|
|
646
650
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -649,10 +653,10 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
649
653
|
}
|
|
650
654
|
|
|
651
655
|
ft-loader {
|
|
652
|
-
${vt(
|
|
653
|
-
${vt(
|
|
656
|
+
${vt(gi.size,Fi.iconSize)};
|
|
657
|
+
${vt(gi.color,"var(--ft-button-internal-color)")};
|
|
654
658
|
}
|
|
655
|
-
`];var
|
|
659
|
+
`];var Pi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ii extends yt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ci.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-no-text-select":!0};return this.addTooltipIfNeeded(V`
|
|
656
660
|
<button part="button"
|
|
657
661
|
class="${Rt(t)}"
|
|
658
662
|
aria-label="${this.getLabel()}"
|
|
@@ -675,7 +679,7 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
675
679
|
</ft-tooltip>
|
|
676
680
|
`:t}resolveIcon(){return this.loading?V`
|
|
677
681
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?V`
|
|
678
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}
|
|
682
|
+
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}Ii.elementDefinitions={"ft-ripple":Pt,"ft-tooltip":yi,"ft-typography":hi,"ft-icon":zi,"ft-loader":wi},Ii.styles=[mt,_i],Pi([o({type:String,reflect:!0})],Ii.prototype,"role",void 0),Pi([o({type:Boolean})],Ii.prototype,"primary",void 0),Pi([o({type:Boolean})],Ii.prototype,"outlined",void 0),Pi([o({type:Boolean})],Ii.prototype,"disabled",void 0),Pi([o({type:Boolean})],Ii.prototype,"dense",void 0),Pi([o({type:Boolean})],Ii.prototype,"round",void 0),Pi([o({type:String})],Ii.prototype,"label",void 0),Pi([o({type:String})],Ii.prototype,"icon",void 0),Pi([o({type:String})],Ii.prototype,"iconVariant",void 0),Pi([o({type:Boolean})],Ii.prototype,"trailingIcon",void 0),Pi([o({type:Boolean})],Ii.prototype,"loading",void 0),Pi([o({type:String})],Ii.prototype,"tooltipPosition",void 0),Pi([o({type:Boolean})],Ii.prototype,"hideTooltip",void 0),Pi([o({type:Boolean})],Ii.prototype,"forceTooltip",void 0),Pi([r(".ft-button")],Ii.prototype,"button",void 0),Pi([r(".ft-button--label slot")],Ii.prototype,"slottedContent",void 0),c("ft-button")(Ii);const Di={buttonsColor:ut.extend("--ft-snap-scroll-buttons-color",xt.colorPrimary),buttonsZIndex:ut.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ut.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ut.external(xt.colorSurface,"Design system")},Wi=b`
|
|
679
683
|
.ft-snap-scroll {
|
|
680
684
|
box-sizing: border-box;
|
|
681
685
|
position: relative;
|
|
@@ -710,7 +714,7 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
710
714
|
flex-wrap: nowrap;
|
|
711
715
|
align-items: flex-start;
|
|
712
716
|
justify-content: flex-start;
|
|
713
|
-
gap: ${
|
|
717
|
+
gap: ${Di.gap};
|
|
714
718
|
}
|
|
715
719
|
|
|
716
720
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -753,11 +757,11 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
753
757
|
.ft-snap-scroll--next {
|
|
754
758
|
position: absolute;
|
|
755
759
|
display: flex;
|
|
756
|
-
z-index: ${
|
|
760
|
+
z-index: ${Di.buttonsZIndex};
|
|
757
761
|
opacity: 1;
|
|
758
762
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
759
|
-
${vt(
|
|
760
|
-
${vt(
|
|
763
|
+
${vt(Fi.backgroundColor,"transparent")};
|
|
764
|
+
${vt(Fi.color,Di.buttonsColor)};
|
|
761
765
|
}
|
|
762
766
|
|
|
763
767
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -770,45 +774,45 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
770
774
|
top: 0;
|
|
771
775
|
left: -1px;
|
|
772
776
|
bottom: 0;
|
|
773
|
-
background: linear-gradient(to right, ${
|
|
777
|
+
background: linear-gradient(to right, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
774
778
|
}
|
|
775
779
|
|
|
776
780
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
777
781
|
top: -1px;
|
|
778
782
|
left: 0;
|
|
779
783
|
right: 0;
|
|
780
|
-
background: linear-gradient(to bottom, ${
|
|
784
|
+
background: linear-gradient(to bottom, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
781
785
|
}
|
|
782
786
|
|
|
783
787
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
784
788
|
top: 0;
|
|
785
789
|
right: -1px;
|
|
786
790
|
bottom: 0;
|
|
787
|
-
background: linear-gradient(to left, ${
|
|
791
|
+
background: linear-gradient(to left, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
788
792
|
}
|
|
789
793
|
|
|
790
794
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
791
795
|
left: 0;
|
|
792
796
|
right: 0;
|
|
793
797
|
bottom: -1px;
|
|
794
|
-
background: linear-gradient(to top, ${
|
|
798
|
+
background: linear-gradient(to top, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
795
799
|
}
|
|
796
800
|
|
|
797
801
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
798
802
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
799
803
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
800
804
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
801
|
-
background-color: ${
|
|
805
|
+
background-color: ${Di.colorSurface};
|
|
802
806
|
}
|
|
803
|
-
`;var
|
|
807
|
+
`;var Hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Zi extends yt{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 e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}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=Rt({"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":St}),e=this.controls&&this.withScroll;return V`
|
|
804
808
|
<div part="container" class="${t}">
|
|
805
809
|
<ft-button
|
|
806
810
|
class="ft-snap-scroll--previous"
|
|
807
811
|
part="controls"
|
|
808
812
|
primary
|
|
809
813
|
icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
|
|
810
|
-
?hidden=${!
|
|
811
|
-
?disabled=${!
|
|
814
|
+
?hidden=${!e||this.startReached}
|
|
815
|
+
?disabled=${!e||this.startReached}
|
|
812
816
|
@click=${this.previous}
|
|
813
817
|
></ft-button>
|
|
814
818
|
<slot class="ft-snap-scroll--content"
|
|
@@ -819,9 +823,9 @@ class $e extends Ct{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
819
823
|
part="controls"
|
|
820
824
|
primary
|
|
821
825
|
icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
|
|
822
|
-
?hidden=${!
|
|
823
|
-
?disabled=${!
|
|
826
|
+
?hidden=${!e||this.endReached}
|
|
827
|
+
?disabled=${!e||this.endReached}
|
|
824
828
|
@click=${this.next}
|
|
825
829
|
></ft-button>
|
|
826
830
|
</div>
|
|
827
|
-
`}updated(t){var
|
|
831
|
+
`}updated(t){var e;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===(e=this.listenedContainer)||void 0===e||e.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 Ki(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);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 e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Zi.elementDefinitions={"ft-button":Ii},Zi.styles=Wi,Hi([o({type:Boolean})],Zi.prototype,"horizontal",void 0),Hi([o({type:Boolean})],Zi.prototype,"hideScrollbar",void 0),Hi([o({type:Boolean})],Zi.prototype,"controls",void 0),Hi([o({type:Boolean})],Zi.prototype,"limitSize",void 0),Hi([s()],Zi.prototype,"elements",void 0),Hi([s()],Zi.prototype,"currentElement",void 0),Hi([s()],Zi.prototype,"withScroll",void 0),Hi([s()],Zi.prototype,"startReached",void 0),Hi([s()],Zi.prototype,"endReached",void 0),Hi([r(".ft-snap-scroll--content")],Zi.prototype,"contentSlot",void 0),c("ft-snap-scroll")(Zi),t.CurrentElementChange=Ki,t.FtSnapScroll=Zi,t.FtSnapScrollCssVariables=Di,t.styles=Wi,Object.defineProperty(t,"i",{value:!0})}({});
|