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