@fluid-topics/ft-snap-scroll 1.0.50 → 1.0.52
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 +10 -13
- package/build/ft-snap-scroll.min.js +171 -174
- 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){const e=this._definitionsByTag.get(t);return e?.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(){const t=s.get(this);t?.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=void 0)=>{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(Ri){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)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,40 +29,40 @@ 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;let v=class{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;let v=class{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}},N=(t,e)=>e!==t&&(e==e||t==t),E={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:N};let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e: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=E){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||E}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),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=E){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||N)(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.6.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,T="?"+j,B=`<${T}>`,A=document,L=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(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.6.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,T="?"+j,B=`<${T}>`,A=document,L=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=A.createTreeWalker(A,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=W;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===W?"!--"===a[1]?r=D:void 0!==a[1]?r=H:void 0!==a[2]?(J.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=K):void 0!==a[3]&&(r=K):r===K?">"===a[0]?(r=null!=s?s:W,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?K:'"'===a[3]?V:Z):r===V||r===Z?r=K:r===D||r===H?r=W:(r=K,s=void 0);const p=r===K&&t[e+1].startsWith("/>")?" ":"";n+=r===W?i+B:h>=0?(o.push(l),i.slice(0,h)+U+i.slice(h)+j+p):i+j+(-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 et{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]=tt(t,e);if(this.el=et.createElement(a,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(j)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(j),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?ht:nt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),Q.nextNode(),l.push({type:2,index:++s});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===T)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)l.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var s,n,r,l;if(e===X)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=I(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=it(t,a._$AS(t,e.values),a,o)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);Q.currentNode=s;let n=Q.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new st(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new ct(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Q.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new ot(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new et(t)),e}T(t){P(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 st(this.k(L()),this.k(L()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,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=G}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=it(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==X,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=it(this,o[i+r],e,r),l===X&&(l=this._$AH[r]),n||(n=!I(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=M?M.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ht extends nt{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=it(this,t,e,0))&&void 0!==i?i:G)===X)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||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 ct{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){it(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(et,st),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new st(i.insertBefore(L(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return X}};ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");class xt{static create(t,i,e){let o=t=>x(null!=t?t:e),s=b`var(${x(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>b`var(${x(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=b`var(${x(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>b`var(${x(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):x(null!=i?i:t.defaultValue),o=b`var(${x(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>b`var(${x(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function bt(t,i){return x(`${t.name}: ${i}`)}const yt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return y(e,t.elementStyles),e}}var mt,wt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new i(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[St].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 i,e,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!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=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(...i,...e).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((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!h(t,i),...null!=i?i:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0);const Nt=b`
|
|
65
|
+
var ft,dt;let ut=class 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 st(e.insertBefore(L(),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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");class xt{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 bt(t,e){return x(`${t.name}: ${e}`)}const yt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return y(i,t.elementStyles),i}}var mt,wt=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};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new e(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}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[St].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(", "))}}mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([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:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0);const Nt=b`
|
|
66
66
|
.ft-no-text-select {
|
|
67
67
|
-webkit-touch-callout: none;
|
|
68
68
|
-webkit-user-select: none;
|
|
@@ -94,17 +94,17 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`;var Ct,Rt,zt;window.ftReduxStores||(window.ftReduxStores={});const Mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zt=null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt?void 0:Rt.toString())&&void 0!==zt?zt:""),Ft=1,Ut=2,jt=t=>(...
|
|
97
|
+
`;var Ct,Rt,zt;window.ftReduxStores||(window.ftReduxStores={});const Mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zt=null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt?void 0:Rt.toString())&&void 0!==zt?zt:""),Ft=1,Ut=2,jt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
98
98
|
/**
|
|
99
99
|
* @license
|
|
100
100
|
* Copyright 2017 Google LLC
|
|
101
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
-
*/class Tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i
|
|
102
|
+
*/class Tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright 2018 Google LLC
|
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
-
*/const Bt=jt(class extends Tt{constructor(t){var
|
|
107
|
+
*/const Bt=jt(class extends Tt{constructor(t){var e;if(super(t),t.type!==Ft||"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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return X}}),At=xt.extend("--ft-ripple-color",yt.colorContent),Lt={color:At,backgroundColor:xt.extend("--ft-ripple-background-color",At),opacityContentOnSurfacePressed:xt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xt.create("--ft-ripple-border-radius","SIZE","0px")},It=xt.extend("--ft-ripple-color",yt.colorPrimary),Pt=It,_t=xt.extend("--ft-ripple-background-color",It),Wt=xt.extend("--ft-ripple-color",yt.colorSecondary),Dt=Wt,Ht=xt.extend("--ft-ripple-background-color",Wt),Kt=b`
|
|
108
108
|
:host {
|
|
109
109
|
display: contents;
|
|
110
110
|
}
|
|
@@ -194,7 +194,7 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
|
|
|
194
194
|
opacity: ${Lt.opacityContentOnSurfacePressed};
|
|
195
195
|
transform: translate(-50%, -50%) scale(1);
|
|
196
196
|
}
|
|
197
|
-
`;var Zt=function(t,i,
|
|
197
|
+
`;var Zt=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 Vt extends kt{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.isFocusVisible(null==t?void 0:t.target)&&!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 q`
|
|
198
198
|
<style>
|
|
199
199
|
.ft-ripple .ft-ripple--effect,
|
|
200
200
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -211,118 +211,117 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
|
|
|
211
211
|
<div class="ft-ripple--background"></div>
|
|
212
212
|
<div class="ft-ripple--effect"></div>
|
|
213
213
|
</div>
|
|
214
|
-
`}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
|
|
214
|
+
`}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((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}Vt.elementDefinitions={},Vt.styles=Kt,Zt([o({type:Boolean})],Vt.prototype,"primary",void 0),Zt([o({type:Boolean})],Vt.prototype,"secondary",void 0),Zt([o({type:Boolean})],Vt.prototype,"unbounded",void 0),Zt([o({type:Boolean})],Vt.prototype,"activated",void 0),Zt([o({type:Boolean})],Vt.prototype,"selected",void 0),Zt([o({type:Boolean})],Vt.prototype,"disabled",void 0),Zt([s()],Vt.prototype,"hovered",void 0),Zt([s()],Vt.prototype,"focused",void 0),Zt([s()],Vt.prototype,"pressed",void 0),Zt([s()],Vt.prototype,"rippling",void 0),Zt([s()],Vt.prototype,"rippleSize",void 0),Zt([s()],Vt.prototype,"originX",void 0),Zt([s()],Vt.prototype,"originY",void 0),Zt([r(".ft-ripple")],Vt.prototype,"ripple",void 0),Zt([r(".ft-ripple--effect")],Vt.prototype,"rippleEffect",void 0),c("ft-ripple")(Vt);
|
|
215
215
|
/**
|
|
216
216
|
* @license
|
|
217
217
|
* Copyright 2020 Google LLC
|
|
218
218
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
219
|
*/
|
|
220
|
-
const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Gt=new Map,Yt=(t=>(i
|
|
220
|
+
const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Gt=new Map,Yt=(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=qt(n));)a+=s+e[++h],c=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Gt.get(t))&&(r.raw=r,Gt.set(t,e=r)),i=l}return t(e,...i)})(q);var Qt;!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"}(Qt||(Qt={}));const te=xt.extend("--ft-typography-font-family",yt.titleFont),ee=xt.extend("--ft-typography-font-family",yt.contentFont),ie={fontFamily:ee,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oe=xt.extend("--ft-typography-title-font-family",te),se=xt.extend("--ft-typography-title-font-size",ie.fontSize,"20px"),ne=xt.extend("--ft-typography-title-font-weight",ie.fontWeight,"normal"),re=xt.extend("--ft-typography-title-letter-spacing",ie.letterSpacing,"0.15px"),le=xt.extend("--ft-typography-title-line-height",ie.lineHeight,"1.2"),ae=xt.extend("--ft-typography-title-text-transform",ie.textTransform,"inherit"),he=xt.extend("--ft-typography-title-dense-font-family",te),ce=xt.extend("--ft-typography-title-dense-font-size",ie.fontSize,"14px"),pe=xt.extend("--ft-typography-title-dense-font-weight",ie.fontWeight,"normal"),fe=xt.extend("--ft-typography-title-dense-letter-spacing",ie.letterSpacing,"0.105px"),de=xt.extend("--ft-typography-title-dense-line-height",ie.lineHeight,"1.7"),ue=xt.extend("--ft-typography-title-dense-text-transform",ie.textTransform,"inherit"),ve=xt.extend("--ft-typography-subtitle1-font-family",ee),xe=xt.extend("--ft-typography-subtitle1-font-size",ie.fontSize,"16px"),be=xt.extend("--ft-typography-subtitle1-font-weight",ie.fontWeight,"600"),ye=xt.extend("--ft-typography-subtitle1-letter-spacing",ie.letterSpacing,"0.144px"),ge=xt.extend("--ft-typography-subtitle1-line-height",ie.lineHeight,"1.5"),me=xt.extend("--ft-typography-subtitle1-text-transform",ie.textTransform,"inherit"),we=xt.extend("--ft-typography-subtitle2-font-family",ee),$e=xt.extend("--ft-typography-subtitle2-font-size",ie.fontSize,"14px"),Oe=xt.extend("--ft-typography-subtitle2-font-weight",ie.fontWeight,"normal"),Se=xt.extend("--ft-typography-subtitle2-letter-spacing",ie.letterSpacing,"0.098px"),ke=xt.extend("--ft-typography-subtitle2-line-height",ie.lineHeight,"1.7"),Ne=xt.extend("--ft-typography-subtitle2-text-transform",ie.textTransform,"inherit"),Ee=xt.extend("--ft-typography-body1-font-family",ee),Ce=xt.extend("--ft-typography-body1-font-size",ie.fontSize,"16px"),Re=xt.extend("--ft-typography-body1-font-weight",ie.fontWeight,"normal"),ze=xt.extend("--ft-typography-body1-letter-spacing",ie.letterSpacing,"0.496px"),Me=xt.extend("--ft-typography-body1-line-height",ie.lineHeight,"1.5"),Fe=xt.extend("--ft-typography-body1-text-transform",ie.textTransform,"inherit"),Ue=xt.extend("--ft-typography-body2-font-family",ee),je=xt.extend("--ft-typography-body2-font-size",ie.fontSize,"14px"),Te=xt.extend("--ft-typography-body2-font-weight",ie.fontWeight,"normal"),Be=xt.extend("--ft-typography-body2-letter-spacing",ie.letterSpacing,"0.252px"),Ae=xt.extend("--ft-typography-body2-line-height",ie.lineHeight,"1.4"),Le=xt.extend("--ft-typography-body2-text-transform",ie.textTransform,"inherit"),Ie=xt.extend("--ft-typography-caption-font-family",ee),Pe=xt.extend("--ft-typography-caption-font-size",ie.fontSize,"12px"),_e=xt.extend("--ft-typography-caption-font-weight",ie.fontWeight,"normal"),We=xt.extend("--ft-typography-caption-letter-spacing",ie.letterSpacing,"0.396px"),De=xt.extend("--ft-typography-caption-line-height",ie.lineHeight,"1.33"),He=xt.extend("--ft-typography-caption-text-transform",ie.textTransform,"inherit"),Ke=xt.extend("--ft-typography-breadcrumb-font-family",ee),Ze=xt.extend("--ft-typography-breadcrumb-font-size",ie.fontSize,"10px"),Ve=xt.extend("--ft-typography-breadcrumb-font-weight",ie.fontWeight,"normal"),Je=xt.extend("--ft-typography-breadcrumb-letter-spacing",ie.letterSpacing,"0.33px"),qe=xt.extend("--ft-typography-breadcrumb-line-height",ie.lineHeight,"1.6"),Xe=xt.extend("--ft-typography-breadcrumb-text-transform",ie.textTransform,"inherit"),Ge=xt.extend("--ft-typography-overline-font-family",ee),Ye=xt.extend("--ft-typography-overline-font-size",ie.fontSize,"10px"),Qe=xt.extend("--ft-typography-overline-font-weight",ie.fontWeight,"normal"),ti=xt.extend("--ft-typography-overline-letter-spacing",ie.letterSpacing,"1.5px"),ei=xt.extend("--ft-typography-overline-line-height",ie.lineHeight,"1.6"),ii=xt.extend("--ft-typography-overline-text-transform",ie.textTransform,"uppercase"),oi={fontFamily:xt.extend("--ft-typography-button-font-family",ee),fontSize:xt.extend("--ft-typography-button-font-size",ie.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",ie.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",ie.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",ie.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",ie.textTransform,"uppercase")},si=b`
|
|
221
221
|
.ft-typography--title {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
228
|
-
}
|
|
229
|
-
`,
|
|
222
|
+
font-family: ${oe};
|
|
223
|
+
font-size: ${se};
|
|
224
|
+
font-weight: ${ne};
|
|
225
|
+
letter-spacing: ${re};
|
|
226
|
+
line-height: ${le};
|
|
227
|
+
text-transform: ${ae};
|
|
228
|
+
}
|
|
229
|
+
`,ni=b`
|
|
230
230
|
.ft-typography--title-dense {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
237
|
-
}
|
|
238
|
-
`,
|
|
231
|
+
font-family: ${he};
|
|
232
|
+
font-size: ${ce};
|
|
233
|
+
font-weight: ${pe};
|
|
234
|
+
letter-spacing: ${fe};
|
|
235
|
+
line-height: ${de};
|
|
236
|
+
text-transform: ${ue};
|
|
237
|
+
}
|
|
238
|
+
`,ri=b`
|
|
239
239
|
.ft-typography--subtitle1 {
|
|
240
|
-
font-family: ${
|
|
241
|
-
font-size: ${
|
|
242
|
-
font-weight: ${
|
|
243
|
-
letter-spacing: ${
|
|
244
|
-
line-height: ${
|
|
245
|
-
text-transform: ${
|
|
246
|
-
}
|
|
247
|
-
`,
|
|
240
|
+
font-family: ${ve};
|
|
241
|
+
font-size: ${xe};
|
|
242
|
+
font-weight: ${be};
|
|
243
|
+
letter-spacing: ${ye};
|
|
244
|
+
line-height: ${ge};
|
|
245
|
+
text-transform: ${me};
|
|
246
|
+
}
|
|
247
|
+
`,li=b`
|
|
248
248
|
.ft-typography--subtitle2 {
|
|
249
|
-
font-family: ${
|
|
250
|
-
font-size: ${$
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
249
|
+
font-family: ${we};
|
|
250
|
+
font-size: ${$e};
|
|
251
|
+
font-weight: ${Oe};
|
|
252
|
+
letter-spacing: ${Se};
|
|
253
|
+
line-height: ${ke};
|
|
254
|
+
text-transform: ${Ne};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
`,
|
|
257
|
+
`,ai=b`
|
|
258
258
|
.ft-typography--body1 {
|
|
259
|
-
font-family: ${
|
|
260
|
-
font-size: ${
|
|
261
|
-
font-weight: ${
|
|
262
|
-
letter-spacing: ${
|
|
263
|
-
line-height: ${
|
|
264
|
-
text-transform: ${
|
|
265
|
-
}
|
|
266
|
-
`,
|
|
259
|
+
font-family: ${Ee};
|
|
260
|
+
font-size: ${Ce};
|
|
261
|
+
font-weight: ${Re};
|
|
262
|
+
letter-spacing: ${ze};
|
|
263
|
+
line-height: ${Me};
|
|
264
|
+
text-transform: ${Fe};
|
|
265
|
+
}
|
|
266
|
+
`,hi=b`
|
|
267
267
|
.ft-typography--body2 {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
274
|
-
}
|
|
275
|
-
`,
|
|
268
|
+
font-family: ${Ue};
|
|
269
|
+
font-size: ${je};
|
|
270
|
+
font-weight: ${Te};
|
|
271
|
+
letter-spacing: ${Be};
|
|
272
|
+
line-height: ${Ae};
|
|
273
|
+
text-transform: ${Le};
|
|
274
|
+
}
|
|
275
|
+
`,ci=b`
|
|
276
276
|
.ft-typography--caption {
|
|
277
|
-
font-family: ${
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
281
|
-
line-height: ${
|
|
282
|
-
text-transform: ${
|
|
283
|
-
}
|
|
284
|
-
`,
|
|
277
|
+
font-family: ${Ie};
|
|
278
|
+
font-size: ${Pe};
|
|
279
|
+
font-weight: ${_e};
|
|
280
|
+
letter-spacing: ${We};
|
|
281
|
+
line-height: ${De};
|
|
282
|
+
text-transform: ${He};
|
|
283
|
+
}
|
|
284
|
+
`,pi=b`
|
|
285
285
|
.ft-typography--breadcrumb {
|
|
286
|
-
font-family: ${
|
|
287
|
-
font-size: ${
|
|
288
|
-
font-weight: ${
|
|
289
|
-
letter-spacing: ${
|
|
290
|
-
line-height: ${
|
|
291
|
-
text-transform: ${
|
|
292
|
-
}
|
|
293
|
-
`,
|
|
286
|
+
font-family: ${Ke};
|
|
287
|
+
font-size: ${Ze};
|
|
288
|
+
font-weight: ${Ve};
|
|
289
|
+
letter-spacing: ${Je};
|
|
290
|
+
line-height: ${qe};
|
|
291
|
+
text-transform: ${Xe};
|
|
292
|
+
}
|
|
293
|
+
`,fi=b`
|
|
294
294
|
.ft-typography--overline {
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
297
|
-
font-weight: ${
|
|
298
|
-
letter-spacing: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
text-transform: ${
|
|
301
|
-
}
|
|
302
|
-
`,
|
|
295
|
+
font-family: ${Ge};
|
|
296
|
+
font-size: ${Ye};
|
|
297
|
+
font-weight: ${Qe};
|
|
298
|
+
letter-spacing: ${ti};
|
|
299
|
+
line-height: ${ei};
|
|
300
|
+
text-transform: ${ii};
|
|
301
|
+
}
|
|
302
|
+
`,di=b`
|
|
303
303
|
.ft-typography--button {
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
307
|
-
letter-spacing: ${
|
|
308
|
-
line-height: ${
|
|
309
|
-
text-transform: ${
|
|
310
|
-
}
|
|
311
|
-
`,
|
|
304
|
+
font-family: ${oi.fontFamily};
|
|
305
|
+
font-size: ${oi.fontSize};
|
|
306
|
+
font-weight: ${oi.fontWeight};
|
|
307
|
+
letter-spacing: ${oi.letterSpacing};
|
|
308
|
+
line-height: ${oi.lineHeight};
|
|
309
|
+
text-transform: ${oi.textTransform};
|
|
310
|
+
}
|
|
311
|
+
`,ui=b`
|
|
312
312
|
.ft-typography {
|
|
313
313
|
vertical-align: inherit;
|
|
314
314
|
}
|
|
315
|
-
`;var
|
|
315
|
+
`;var vi=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 xi extends kt{constructor(){super(...arguments),this.variant=Qt.body1}render(){return this.element?Yt`
|
|
316
316
|
<${Xt(this.element)}
|
|
317
317
|
class="ft-typography ft-typography--${this.variant}">
|
|
318
318
|
<slot></slot>
|
|
319
319
|
</${Xt(this.element)}>
|
|
320
320
|
`:Yt`
|
|
321
321
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
322
|
-
`}}
|
|
322
|
+
`}}xi.styles=[si,ni,ri,li,ai,hi,ci,pi,fi,di,ui],vi([o()],xi.prototype,"element",void 0),vi([o()],xi.prototype,"variant",void 0),c("ft-typography")(xi);const bi=xt.create("--ft-tooltip-distance","SIZE","4px"),yi=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),gi=xt.create("--ft-tooltip-background-color","COLOR","#666666"),mi=xt.create("--ft-tooltip-z-index","NUMBER","1"),wi=xt.external(yt.borderRadiusS,"Design system"),$i=xt.create("--ft-tooltip-max-width","SIZE","150px"),Oi=b`
|
|
323
323
|
.ft-tooltip--container {
|
|
324
324
|
display: block;
|
|
325
|
-
position: relative;
|
|
326
325
|
}
|
|
327
326
|
|
|
328
327
|
.ft-tooltip--inline {
|
|
@@ -335,23 +334,21 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
|
|
|
335
334
|
box-sizing: border-box;
|
|
336
335
|
overflow: hidden;
|
|
337
336
|
width: max-content;
|
|
338
|
-
max-width: ${$
|
|
337
|
+
max-width: ${$i};
|
|
339
338
|
text-align: center;
|
|
340
|
-
padding: ${
|
|
341
|
-
z-index: ${
|
|
339
|
+
padding: ${bi};
|
|
340
|
+
z-index: ${mi};
|
|
342
341
|
}
|
|
343
342
|
|
|
344
343
|
.ft-tooltip--content {
|
|
345
344
|
padding: 4px 8px;
|
|
346
|
-
border-radius: ${
|
|
347
|
-
background-color: ${
|
|
348
|
-
color: ${
|
|
349
|
-
top: -500px;
|
|
350
|
-
left: -500px;
|
|
345
|
+
border-radius: ${wi};
|
|
346
|
+
background-color: ${gi};
|
|
347
|
+
color: ${yi};
|
|
351
348
|
position: relative;
|
|
352
349
|
word-break: break-word;
|
|
353
350
|
}
|
|
354
|
-
`;var
|
|
351
|
+
`;var Si=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 kt{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 q`
|
|
355
352
|
<div part="container"
|
|
356
353
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
357
354
|
@mouseenter=${this.onHover}
|
|
@@ -369,13 +366,13 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
|
|
|
369
366
|
</div>
|
|
370
367
|
</div>
|
|
371
368
|
</div>
|
|
372
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((
|
|
369
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-i,n=t.offsetLeft+s;break;case"bottom":r=t.offsetTop+t.offsetHeight,n=t.offsetLeft+s;break;case"left":r=t.offsetTop+o,n=t.offsetLeft-e;break;case"right":r=t.offsetTop+o,n=t.offsetLeft+t.offsetWidth}const l=this.tooltip.style;l.left=this.limitValueBetween(n,0,window.innerWidth-e)+"px",l.top=this.limitValueBetween(r,0,window.innerHeight-i)+"px",l.maxWidth=`max(${t.offsetWidth}px, ${$i})`}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())}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}ki.elementDefinitions={"ft-typography":xi},ki.styles=Oi,Si([o()],ki.prototype,"text",void 0),Si([o({type:Boolean})],ki.prototype,"manual",void 0),Si([o({type:Boolean})],ki.prototype,"inline",void 0),Si([o({type:Number})],ki.prototype,"delay",void 0),Si([o()],ki.prototype,"position",void 0),Si([
|
|
373
370
|
/**
|
|
374
371
|
* @license
|
|
375
372
|
* Copyright 2017 Google LLC
|
|
376
373
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
377
374
|
*/
|
|
378
|
-
function(t,i
|
|
375
|
+
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)],ki.prototype,"slotNodes",void 0),Si([r(".ft-tooltip--container")],ki.prototype,"container",void 0),Si([r(".ft-tooltip")],ki.prototype,"tooltip",void 0),Si([r(".ft-tooltip--content")],ki.prototype,"tooltipContent",void 0),Si([s()],ki.prototype,"visible",void 0),c("ft-tooltip")(ki);const Ni={color:xt.extend("--ft-loader-color",yt.colorPrimary),size:xt.create("--ft-loader-size","SIZE","80px")},Ei=b`
|
|
379
376
|
:host {
|
|
380
377
|
line-height: 0;
|
|
381
378
|
}
|
|
@@ -384,8 +381,8 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
384
381
|
display: inline-block;
|
|
385
382
|
position: relative;
|
|
386
383
|
|
|
387
|
-
width: ${
|
|
388
|
-
height: ${
|
|
384
|
+
width: ${Ni.size};
|
|
385
|
+
height: ${Ni.size};
|
|
389
386
|
}
|
|
390
387
|
|
|
391
388
|
.ft-loader div {
|
|
@@ -394,7 +391,7 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
394
391
|
width: 25%;
|
|
395
392
|
height: 25%;
|
|
396
393
|
border-radius: 50%;
|
|
397
|
-
background: ${
|
|
394
|
+
background: ${Ni.color};
|
|
398
395
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
399
396
|
}
|
|
400
397
|
|
|
@@ -441,23 +438,23 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
441
438
|
transform: translate(0, 0);
|
|
442
439
|
}
|
|
443
440
|
100% {
|
|
444
|
-
transform: translate(calc(0.35 * ${
|
|
441
|
+
transform: translate(calc(0.35 * ${Ni.size}), 0);
|
|
445
442
|
}
|
|
446
443
|
}
|
|
447
|
-
`;class
|
|
444
|
+
`;class Ci extends kt{render(){return q`
|
|
448
445
|
<div class="ft-loader">
|
|
449
446
|
<div></div>
|
|
450
447
|
<div></div>
|
|
451
448
|
<div></div>
|
|
452
449
|
<div></div>
|
|
453
450
|
</div>
|
|
454
|
-
`}}
|
|
451
|
+
`}}Ci.styles=Ei,c("ft-loader")(Ci);
|
|
455
452
|
/**
|
|
456
453
|
* @license
|
|
457
454
|
* Copyright 2017 Google LLC
|
|
458
455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
459
456
|
*/
|
|
460
|
-
class
|
|
457
|
+
class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ri.directiveName="unsafeHTML",Ri.resultType=1;const zi=jt(Ri);var Mi,Fi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",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.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Mi||(Mi={})),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=""}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.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,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.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,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.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,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.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,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);const Ui={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ji=b`
|
|
461
458
|
:host, i.ft-icon {
|
|
462
459
|
display: inline-flex;
|
|
463
460
|
align-items: center;
|
|
@@ -466,14 +463,14 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
466
463
|
}
|
|
467
464
|
|
|
468
465
|
:host {
|
|
469
|
-
width: ${
|
|
470
|
-
height: ${
|
|
466
|
+
width: ${Ui.size};
|
|
467
|
+
height: ${Ui.size};
|
|
471
468
|
}
|
|
472
469
|
|
|
473
470
|
i.ft-icon {
|
|
474
471
|
width: 100%;
|
|
475
472
|
height: 100%;
|
|
476
|
-
font-size: ${
|
|
473
|
+
font-size: ${Ui.size};
|
|
477
474
|
line-height: 1;
|
|
478
475
|
font-weight: normal;
|
|
479
476
|
text-transform: none;
|
|
@@ -484,33 +481,33 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
484
481
|
text-rendering: auto;
|
|
485
482
|
-webkit-font-smoothing: antialiased;
|
|
486
483
|
-moz-osx-font-smoothing: grayscale;
|
|
487
|
-
vertical-align: ${
|
|
484
|
+
vertical-align: ${Ui.verticalAlign};
|
|
488
485
|
}
|
|
489
486
|
|
|
490
487
|
i.ft-icon.ft-icon--fluid-topics {
|
|
491
|
-
font-family: ${
|
|
488
|
+
font-family: ${Ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
492
489
|
|
|
493
490
|
/* Ugly fix because font is broken */
|
|
494
|
-
font-size: calc(0.75 * ${
|
|
495
|
-
line-height: ${
|
|
491
|
+
font-size: calc(0.75 * ${Ui.size});
|
|
492
|
+
line-height: ${Ui.size};
|
|
496
493
|
position: relative;
|
|
497
494
|
top: -4%;
|
|
498
495
|
justify-content: center;
|
|
499
496
|
}
|
|
500
497
|
|
|
501
498
|
.ft-icon--file-format {
|
|
502
|
-
font-family: ${
|
|
499
|
+
font-family: ${Ui.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
503
500
|
}
|
|
504
501
|
|
|
505
502
|
.ft-icon--material {
|
|
506
|
-
font-family: ${
|
|
503
|
+
font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
|
|
507
504
|
}
|
|
508
|
-
`;var
|
|
505
|
+
`;var Ti;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ti||(Ti={}));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 Ai extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Ti).includes(this.variant)?this.variant:Ti.fluid_topics,e=t!==Ti.material||!!this.value;return q`
|
|
509
506
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
510
|
-
${
|
|
511
|
-
<slot ?hidden=${
|
|
507
|
+
${zi(this.resolvedIcon)}
|
|
508
|
+
<slot ?hidden=${e}></slot>
|
|
512
509
|
</i>
|
|
513
|
-
`}get textContent(){var t,
|
|
510
|
+
`}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 Ti.file_format:this.resolvedIcon=null!==(t=Fi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ti.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=Mi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ai.elementDefinitions={},Ai.styles=ji,Bi([o()],Ai.prototype,"variant",void 0),Bi([o()],Ai.prototype,"value",void 0),Bi([s()],Ai.prototype,"resolvedIcon",void 0),Bi([r("slot")],Ai.prototype,"slottedContent",void 0),c("ft-icon")(Ai);const Li=xt.extend("--ft-button-color",yt.colorPrimary),Ii={backgroundColor:xt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Li,fontSize:xt.extend("--ft-button-font-size",oi.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",Li),verticalPadding:xt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:xt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:xt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:xt.external(yt.colorOpacityDisabled,"Design system")},Pi=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",yt.colorOnPrimary)),_i={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",yt.colorPrimary)),color:Pi,rippleColor:xt.extend("--ft-button-primary-ripple-color",Pi)},Wi=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",yt.borderRadiusM)),Di=xt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Hi=xt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ki=xt.create("--ft-button-dense-icon-padding","SIZE","4px"),Zi=[b`
|
|
514
511
|
:host {
|
|
515
512
|
display: inline-block;
|
|
516
513
|
max-width: 100%;
|
|
@@ -521,7 +518,7 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
521
518
|
box-shadow: 0px 0px 0px transparent;
|
|
522
519
|
border: 0px solid transparent;
|
|
523
520
|
text-shadow: 0px 0px 0px transparent;
|
|
524
|
-
font-size: ${
|
|
521
|
+
font-size: ${Ii.fontSize};
|
|
525
522
|
}
|
|
526
523
|
|
|
527
524
|
button:hover {
|
|
@@ -550,31 +547,31 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
550
547
|
border: none;
|
|
551
548
|
pointer-events: auto;
|
|
552
549
|
|
|
553
|
-
--ft-button-internal-line-height: max(calc(${
|
|
554
|
-
--ft-button-internal-color: ${
|
|
555
|
-
${bt(
|
|
556
|
-
${bt(Lt.color,
|
|
550
|
+
--ft-button-internal-line-height: max(calc(${Ii.fontSize} + 2px), ${Ii.iconSize});
|
|
551
|
+
--ft-button-internal-color: ${Ii.color};
|
|
552
|
+
${bt(Ui.size,Ii.iconSize)};
|
|
553
|
+
${bt(Lt.color,Ii.rippleColor)};
|
|
557
554
|
|
|
558
|
-
border-radius: ${
|
|
559
|
-
padding: ${
|
|
560
|
-
background-color: ${
|
|
555
|
+
border-radius: ${Ii.borderRadius};
|
|
556
|
+
padding: ${Ii.verticalPadding} ${Ii.horizontalPadding};
|
|
557
|
+
background-color: ${Ii.backgroundColor};
|
|
561
558
|
color: var(--ft-button-internal-color);
|
|
562
559
|
-webkit-mask-image: radial-gradient(white, black);
|
|
563
560
|
}
|
|
564
561
|
|
|
565
562
|
.ft-button.ft-button--outlined {
|
|
566
563
|
border: 1px solid var(--ft-button-internal-color);
|
|
567
|
-
padding: calc(${
|
|
564
|
+
padding: calc(${Ii.verticalPadding} - 1px) calc(${Ii.horizontalPadding} - 1px);
|
|
568
565
|
}
|
|
569
566
|
|
|
570
567
|
.ft-button.ft-button--dense {
|
|
571
|
-
padding: ${
|
|
572
|
-
border-radius: ${
|
|
573
|
-
gap: ${
|
|
568
|
+
padding: ${Di} ${Hi};
|
|
569
|
+
border-radius: ${Wi};
|
|
570
|
+
gap: ${Ki};
|
|
574
571
|
}
|
|
575
572
|
|
|
576
573
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
577
|
-
padding: calc(${
|
|
574
|
+
padding: calc(${Di} - 1px) calc(${Hi} - 1px);
|
|
578
575
|
}
|
|
579
576
|
|
|
580
577
|
.ft-button:not([disabled]):hover {
|
|
@@ -582,22 +579,22 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
582
579
|
}
|
|
583
580
|
|
|
584
581
|
.ft-button--round {
|
|
585
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
582
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ii.verticalPadding});
|
|
586
583
|
}
|
|
587
584
|
|
|
588
585
|
.ft-button--round.ft-button--dense {
|
|
589
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
586
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Di});
|
|
590
587
|
}
|
|
591
588
|
|
|
592
589
|
.ft-button[disabled] {
|
|
593
590
|
filter: grayscale(1);
|
|
594
|
-
opacity: ${
|
|
591
|
+
opacity: ${Ii.opacityDisabled};
|
|
595
592
|
}
|
|
596
593
|
|
|
597
594
|
.ft-button.ft-button--primary {
|
|
598
|
-
background-color: ${
|
|
599
|
-
--ft-button-internal-color: ${
|
|
600
|
-
${bt(Lt.color,
|
|
595
|
+
background-color: ${_i.backgroundColor};
|
|
596
|
+
--ft-button-internal-color: ${_i.color};
|
|
597
|
+
${bt(Lt.color,_i.rippleColor)};
|
|
601
598
|
}
|
|
602
599
|
|
|
603
600
|
.ft-button:focus {
|
|
@@ -610,13 +607,13 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
610
607
|
white-space: nowrap;
|
|
611
608
|
text-overflow: ellipsis;
|
|
612
609
|
display: block;
|
|
613
|
-
margin: 0 ${
|
|
614
|
-
${bt(
|
|
615
|
-
${bt(
|
|
610
|
+
margin: 0 ${Ii.iconPadding};
|
|
611
|
+
${bt(oi.fontSize,"1em")};
|
|
612
|
+
${bt(oi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
616
613
|
}
|
|
617
614
|
|
|
618
615
|
.ft-button--dense .ft-button--label {
|
|
619
|
-
margin: 0 ${
|
|
616
|
+
margin: 0 ${Ki};
|
|
620
617
|
}
|
|
621
618
|
|
|
622
619
|
.ft-button--label[hidden] {
|
|
@@ -629,13 +626,13 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
629
626
|
}
|
|
630
627
|
|
|
631
628
|
.ft-button--label[hidden] + ft-icon {
|
|
632
|
-
margin: 0 calc(${
|
|
633
|
-
padding: 0 ${
|
|
629
|
+
margin: 0 calc(${Ii.horizontalPadding} * -1);
|
|
630
|
+
padding: 0 ${Ii.verticalPadding};
|
|
634
631
|
}
|
|
635
632
|
|
|
636
633
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
637
|
-
margin: 0 calc(${
|
|
638
|
-
padding: 0 ${
|
|
634
|
+
margin: 0 calc(${Hi} * -1);
|
|
635
|
+
padding: 0 ${Di};
|
|
639
636
|
}
|
|
640
637
|
|
|
641
638
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -644,10 +641,10 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
644
641
|
}
|
|
645
642
|
|
|
646
643
|
ft-loader {
|
|
647
|
-
${bt(
|
|
648
|
-
${bt(
|
|
644
|
+
${bt(Ni.size,Ii.iconSize)};
|
|
645
|
+
${bt(Ni.color,"var(--ft-button-internal-color)")};
|
|
649
646
|
}
|
|
650
|
-
`,Nt];var
|
|
647
|
+
`,Nt];var Vi=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 Ji extends kt{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.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(q`
|
|
651
648
|
<button part="button"
|
|
652
649
|
class="${Bt(t)}"
|
|
653
650
|
aria-label="${this.getLabel()}"
|
|
@@ -670,7 +667,7 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
670
667
|
</ft-tooltip>
|
|
671
668
|
`:t}resolveIcon(){return this.loading?q`
|
|
672
669
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?q`
|
|
673
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}
|
|
670
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}Ji.elementDefinitions={"ft-ripple":Vt,"ft-tooltip":ki,"ft-typography":xi,"ft-icon":Ai,"ft-loader":Ci},Ji.styles=[Et,Zi],Vi([o({type:String,reflect:!0})],Ji.prototype,"role",void 0),Vi([o({type:Boolean})],Ji.prototype,"primary",void 0),Vi([o({type:Boolean})],Ji.prototype,"outlined",void 0),Vi([o({type:Boolean})],Ji.prototype,"disabled",void 0),Vi([o({type:Boolean})],Ji.prototype,"dense",void 0),Vi([o({type:Boolean})],Ji.prototype,"round",void 0),Vi([o()],Ji.prototype,"label",void 0),Vi([o()],Ji.prototype,"icon",void 0),Vi([o()],Ji.prototype,"iconVariant",void 0),Vi([o({type:Boolean})],Ji.prototype,"trailingIcon",void 0),Vi([o({type:Boolean})],Ji.prototype,"loading",void 0),Vi([o()],Ji.prototype,"tooltipPosition",void 0),Vi([o({type:Boolean})],Ji.prototype,"hideTooltip",void 0),Vi([o({type:Boolean})],Ji.prototype,"forceTooltip",void 0),Vi([r(".ft-button")],Ji.prototype,"button",void 0),Vi([r(".ft-button--label slot")],Ji.prototype,"slottedContent",void 0),c("ft-button")(Ji);const qi={buttonsColor:xt.extend("--ft-snap-scroll-buttons-color",yt.colorPrimary),buttonsZIndex:xt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:xt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:xt.external(yt.colorSurface,"Design system")},Xi=b`
|
|
674
671
|
.ft-snap-scroll {
|
|
675
672
|
box-sizing: border-box;
|
|
676
673
|
position: relative;
|
|
@@ -705,7 +702,7 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
705
702
|
flex-wrap: nowrap;
|
|
706
703
|
align-items: flex-start;
|
|
707
704
|
justify-content: flex-start;
|
|
708
|
-
gap: ${
|
|
705
|
+
gap: ${qi.gap};
|
|
709
706
|
}
|
|
710
707
|
|
|
711
708
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -748,11 +745,11 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
748
745
|
.ft-snap-scroll--next {
|
|
749
746
|
position: absolute;
|
|
750
747
|
display: flex;
|
|
751
|
-
z-index: ${
|
|
748
|
+
z-index: ${qi.buttonsZIndex};
|
|
752
749
|
opacity: 1;
|
|
753
750
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
754
|
-
${bt(
|
|
755
|
-
${bt(
|
|
751
|
+
${bt(Ii.backgroundColor,"transparent")};
|
|
752
|
+
${bt(Ii.color,qi.buttonsColor)};
|
|
756
753
|
}
|
|
757
754
|
|
|
758
755
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -765,45 +762,45 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
765
762
|
top: 0;
|
|
766
763
|
left: -1px;
|
|
767
764
|
bottom: 0;
|
|
768
|
-
background: linear-gradient(to right, ${
|
|
765
|
+
background: linear-gradient(to right, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
769
766
|
}
|
|
770
767
|
|
|
771
768
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
772
769
|
top: -1px;
|
|
773
770
|
left: 0;
|
|
774
771
|
right: 0;
|
|
775
|
-
background: linear-gradient(to bottom, ${
|
|
772
|
+
background: linear-gradient(to bottom, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
776
773
|
}
|
|
777
774
|
|
|
778
775
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
779
776
|
top: 0;
|
|
780
777
|
right: -1px;
|
|
781
778
|
bottom: 0;
|
|
782
|
-
background: linear-gradient(to left, ${
|
|
779
|
+
background: linear-gradient(to left, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
783
780
|
}
|
|
784
781
|
|
|
785
782
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
786
783
|
left: 0;
|
|
787
784
|
right: 0;
|
|
788
785
|
bottom: -1px;
|
|
789
|
-
background: linear-gradient(to top, ${
|
|
786
|
+
background: linear-gradient(to top, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
790
787
|
}
|
|
791
788
|
|
|
792
789
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
793
790
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
794
791
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
795
792
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
796
|
-
background-color: ${
|
|
793
|
+
background-color: ${qi.colorSurface};
|
|
797
794
|
}
|
|
798
|
-
`;var
|
|
795
|
+
`;var Gi=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 CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Qi extends kt{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=Bt({"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":Mt}),e=this.controls&&this.withScroll;return q`
|
|
799
796
|
<div part="container" class="${t}">
|
|
800
797
|
<ft-button
|
|
801
798
|
class="ft-snap-scroll--previous"
|
|
802
799
|
part="controls"
|
|
803
800
|
primary
|
|
804
801
|
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
805
|
-
?hidden=${!
|
|
806
|
-
?disabled=${!
|
|
802
|
+
?hidden=${!e||this.startReached}
|
|
803
|
+
?disabled=${!e||this.startReached}
|
|
807
804
|
@click=${this.previous}
|
|
808
805
|
></ft-button>
|
|
809
806
|
<slot class="ft-snap-scroll--content"
|
|
@@ -814,9 +811,9 @@ class Re extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
|
|
|
814
811
|
part="controls"
|
|
815
812
|
primary
|
|
816
813
|
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
817
|
-
?hidden=${!
|
|
818
|
-
?disabled=${!
|
|
814
|
+
?hidden=${!e||this.endReached}
|
|
815
|
+
?disabled=${!e||this.endReached}
|
|
819
816
|
@click=${this.next}
|
|
820
817
|
></ft-button>
|
|
821
818
|
</div>
|
|
822
|
-
`}updated(t){var
|
|
819
|
+
`}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 Yi(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)}}Qi.elementDefinitions={"ft-button":Ji},Qi.styles=Xi,Gi([o({type:Boolean})],Qi.prototype,"horizontal",void 0),Gi([o({type:Boolean})],Qi.prototype,"hideScrollbar",void 0),Gi([o({type:Boolean})],Qi.prototype,"controls",void 0),Gi([o({type:Boolean})],Qi.prototype,"limitSize",void 0),Gi([s()],Qi.prototype,"elements",void 0),Gi([s()],Qi.prototype,"currentElement",void 0),Gi([s()],Qi.prototype,"withScroll",void 0),Gi([s()],Qi.prototype,"startReached",void 0),Gi([s()],Qi.prototype,"endReached",void 0),Gi([r(".ft-snap-scroll--content")],Qi.prototype,"contentSlot",void 0),c("ft-snap-scroll")(Qi),t.CurrentElementChange=Yi,t.FtSnapScroll=Qi,t.FtSnapScrollCssVariables=qi,t.styles=Xi}({});
|