@fluid-topics/ft-snap-scroll 0.3.56 → 0.3.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-snap-scroll.light.js +4 -4
- package/build/ft-snap-scroll.min.js +172 -172
- package/package.json +4 -4
|
@@ -385,12 +385,12 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
385
385
|
.ft-icon--material {
|
|
386
386
|
font-family: ${Fi.materialFontFamily}, "Material Icons", sans-serif;
|
|
387
387
|
}
|
|
388
|
-
`;var Mi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Mi||(Mi={}));var Ri=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 Ui extends i.FtLitElement{constructor(){super(...arguments),this.
|
|
389
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
388
|
+
`;var Mi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Mi||(Mi={}));var Ri=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 Ui extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Mi.fluid_topics,o="material"!==i||this.value;return e.html`
|
|
389
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
390
390
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
391
|
-
<slot ?hidden=${
|
|
391
|
+
<slot ?hidden=${o}></slot>
|
|
392
392
|
</i>
|
|
393
|
-
`}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 o=this.value||this.textContent;switch(this.variant){case Mi.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Mi.
|
|
393
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case Mi.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Mi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Ai,Ri([o.property()],Ui.prototype,"variant",void 0),Ri([o.property()],Ui.prototype,"value",void 0),Ri([o.state()],Ui.prototype,"resolvedIcon",void 0),Ri([o.query("slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ui);const Wi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Zi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Wi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Wi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Li=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Ki=[i.noTextSelect,e.css`
|
|
394
394
|
:host {
|
|
395
395
|
display: inline-block;
|
|
396
396
|
max-width: 100%;
|
|
@@ -14,7 +14,7 @@
|
|
|
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,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){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,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(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},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 y=(t,i,e)=>{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}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const b=(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(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
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){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,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(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},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 y=(t,i,e)=>{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}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const b=(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(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch($e){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
|
|
@@ -39,40 +39,40 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
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,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));
|
|
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
|
|
48
|
+
const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,i,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),y=(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)},b=(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
|
|
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),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:N};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),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=C){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)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,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 b(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=C){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 E
|
|
59
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,I=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=P;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===P?"!--"===a[1]?r=D:void 0!==a[1]?r=I:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=s?s:P,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:H):r===K||r===H?r=W:r===D||r===I?r=P:(r=W,s=void 0);const p=r===W&&t[i+1].startsWith("/>")?" ":"";n+=r===P?e+B:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+U+p):e+U+(-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 Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=G(t,i);if(this.el=Q.createElement(a,e),Y.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(U)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(U),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?rt:"@"===i[1]?lt:ot})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(U),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var s,n,r,l;if(i===J)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=L(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=tt(t,a._$AS(t,i.values),a,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);Y.currentNode=s;let n=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new et(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new at(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Y.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=tt(this,t,i),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new it(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new et(this.O(A()),this.O(A()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,s){this.type=1,this._$AH=q,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=q}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=tt(this,t,i,0),n=!L(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=tt(this,o[e+r],i,r),l===J&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const nt=M?M.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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 at{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){tt(this,t)}}const ht=z.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var
|
|
65
|
+
var ct,pt;class ft extends E{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 et(i.insertBefore(A(),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 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,i,e){let o=t=>x(null!=t?t:e),s=y`var(${x(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>y`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=y`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=>y`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=y`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=>y`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 vt(t,i){return x(`${t.name}: ${i}`)}const xt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/var
|
|
71
|
-
${t.map((t=>
|
|
70
|
+
*/var yt=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 bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(s,this.constructor.elementStyles),s}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new i(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
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,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.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 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(", "))}}
|
|
75
|
+
`}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.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 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(", "))}}yt([o()],bt.prototype,"exportpartsPrefix",void 0),yt([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:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),yt([o()],bt.prototype,"customStylesheet",void 0);const gt=y`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;
|
|
84
|
+
`;y`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -93,7 +93,7 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const
|
|
96
|
+
`;const mt=y`
|
|
97
97
|
.ft-safari-ellipsis-fix {
|
|
98
98
|
margin-right: 0;
|
|
99
99
|
|
|
@@ -104,17 +104,17 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
104
104
|
display: inline-block;
|
|
105
105
|
width: 0;
|
|
106
106
|
}
|
|
107
|
-
`;var
|
|
107
|
+
`;var wt,$t,Ot;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),kt=1,Nt=2,Ct=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2017 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/class
|
|
112
|
+
*/class Et{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
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2018 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/const
|
|
117
|
+
*/const Rt=Ct(class extends Et{constructor(t){var i;if(super(t),t.type!==kt||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return J}}),zt=ut.extend("--ft-ripple-color",xt.colorContent),Mt={color:zt,backgroundColor:ut.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:ut.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(xt.opacityContentOnSurfaceSelected,"Design system")},Ft=ut.extend("--ft-ripple-color",xt.colorPrimary),Ut=Ft,jt=ut.extend("--ft-ripple-background-color",Ft),Bt=ut.extend("--ft-ripple-color",xt.colorSecondary),Tt=Bt,At=ut.extend("--ft-ripple-background-color",Bt),Lt=y`
|
|
118
118
|
:host {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
@@ -136,27 +136,27 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.ft-ripple .ft-ripple--background {
|
|
139
|
-
background-color: ${
|
|
139
|
+
background-color: ${Mt.backgroundColor};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-ripple .ft-ripple--effect {
|
|
143
|
-
background-color: ${
|
|
143
|
+
background-color: ${Mt.color};
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
147
|
-
background-color: ${
|
|
147
|
+
background-color: ${At};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
151
|
-
background-color: ${
|
|
151
|
+
background-color: ${Tt};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
155
|
-
background-color: ${
|
|
155
|
+
background-color: ${jt};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
159
|
-
background-color: ${
|
|
159
|
+
background-color: ${Ut};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.ft-ripple .ft-ripple--background {
|
|
@@ -188,22 +188,22 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
191
|
-
opacity: ${
|
|
191
|
+
opacity: ${Mt.opacityContentOnSurfaceHover};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
195
|
-
opacity: ${
|
|
195
|
+
opacity: ${Mt.opacityContentOnSurfaceSelected};
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
199
|
-
opacity: ${
|
|
199
|
+
opacity: ${Mt.opacityContentOnSurfaceFocused};
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
203
|
-
opacity: ${
|
|
203
|
+
opacity: ${Mt.opacityContentOnSurfacePressed};
|
|
204
204
|
transform: translate(-50%, -50%) scale(1);
|
|
205
205
|
}
|
|
206
|
-
`;var
|
|
206
|
+
`;var _t=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 Pt extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new 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 V`
|
|
207
207
|
<style>
|
|
208
208
|
.ft-ripple .ft-ripple--effect,
|
|
209
209
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -216,119 +216,119 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
216
216
|
top: ${this.originY}px;
|
|
217
217
|
}
|
|
218
218
|
</style>
|
|
219
|
-
<div class="${
|
|
219
|
+
<div class="${Rt(t)}">
|
|
220
220
|
<div class="ft-ripple--background"></div>
|
|
221
221
|
<div class="ft-ripple--effect"></div>
|
|
222
222
|
</div>
|
|
223
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,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()}}
|
|
223
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,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()}}Pt.elementDefinitions={},Pt.styles=Lt,_t([o({type:Boolean})],Pt.prototype,"primary",void 0),_t([o({type:Boolean})],Pt.prototype,"secondary",void 0),_t([o({type:Boolean})],Pt.prototype,"unbounded",void 0),_t([o({type:Boolean})],Pt.prototype,"activated",void 0),_t([o({type:Boolean})],Pt.prototype,"selected",void 0),_t([o({type:Boolean})],Pt.prototype,"disabled",void 0),_t([s()],Pt.prototype,"hovered",void 0),_t([s()],Pt.prototype,"focused",void 0),_t([s()],Pt.prototype,"pressed",void 0),_t([s()],Pt.prototype,"rippling",void 0),_t([s()],Pt.prototype,"rippleSize",void 0),_t([s()],Pt.prototype,"originX",void 0),_t([s()],Pt.prototype,"originY",void 0),_t([r(".ft-ripple")],Pt.prototype,"ripple",void 0),_t([r(".ft-ripple--effect")],Pt.prototype,"rippleEffect",void 0),c("ft-ripple")(Pt);
|
|
224
224
|
/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2020 Google LLC
|
|
227
227
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228
228
|
*/
|
|
229
|
-
const
|
|
229
|
+
const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:Dt}),Ht=new Map,Kt=(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=It(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Ht.get(t))&&(r.raw=r,Ht.set(t,i=r)),e=l}return t(i,...e)})(V);var Zt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Zt||(Zt={}));const Vt=ut.extend("--ft-typography-font-family",xt.titleFont),Jt=ut.extend("--ft-typography-font-family",xt.contentFont),qt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ut.extend("--ft-typography-title-font-family",Vt),Yt=ut.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ut.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),ti=ut.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ii=ut.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ei=ut.extend("--ft-typography-title-dense-font-family",Vt),oi=ut.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),si=ut.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),ni=ut.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),ri=ut.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),li=ut.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ai=ut.extend("--ft-typography-subtitle1-font-family",Jt),hi=ut.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ci=ut.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),pi=ut.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fi=ut.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),di=ut.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ui=ut.extend("--ft-typography-subtitle2-font-family",Jt),vi=ut.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xi=ut.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),yi=ut.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),bi=ut.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),gi=ut.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),mi=ut.extend("--ft-typography-body1-font-family",Jt),wi=ut.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$i=ut.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oi=ut.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Si=ut.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ki=ut.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ni=ut.extend("--ft-typography-body2-font-family",Jt),Ci=ut.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ei=ut.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Ri=ut.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),zi=ut.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Mi=ut.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Fi=ut.extend("--ft-typography-caption-font-family",Jt),Ui=ut.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),ji=ut.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Bi=ut.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Ti=ut.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Ai=ut.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Li=ut.extend("--ft-typography-breadcrumb-font-family",Jt),_i=ut.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Pi=ut.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Di=ut.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Ii=ut.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Wi=ut.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),Hi=ut.extend("--ft-typography-overline-font-family",Jt),Ki=ut.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Zi=ut.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Vi=ut.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Ji=ut.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qi=ut.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xi={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Yi=y`
|
|
230
230
|
.ft-typography--title {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
237
|
-
}
|
|
238
|
-
`,
|
|
231
|
+
font-family: ${Xt};
|
|
232
|
+
font-size: ${Yt};
|
|
233
|
+
font-weight: ${Gt};
|
|
234
|
+
letter-spacing: ${Qt};
|
|
235
|
+
line-height: ${ti};
|
|
236
|
+
text-transform: ${ii};
|
|
237
|
+
}
|
|
238
|
+
`,Gi=y`
|
|
239
239
|
.ft-typography--title-dense {
|
|
240
|
-
font-family: ${
|
|
241
|
-
font-size: ${
|
|
242
|
-
font-weight: ${
|
|
243
|
-
letter-spacing: ${
|
|
244
|
-
line-height: ${
|
|
245
|
-
text-transform: ${
|
|
246
|
-
}
|
|
247
|
-
`,
|
|
240
|
+
font-family: ${ei};
|
|
241
|
+
font-size: ${oi};
|
|
242
|
+
font-weight: ${si};
|
|
243
|
+
letter-spacing: ${ni};
|
|
244
|
+
line-height: ${ri};
|
|
245
|
+
text-transform: ${li};
|
|
246
|
+
}
|
|
247
|
+
`,Qi=y`
|
|
248
248
|
.ft-typography--subtitle1 {
|
|
249
|
-
font-family: ${
|
|
250
|
-
font-size: ${
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
255
|
-
}
|
|
256
|
-
`,
|
|
249
|
+
font-family: ${ai};
|
|
250
|
+
font-size: ${hi};
|
|
251
|
+
font-weight: ${ci};
|
|
252
|
+
letter-spacing: ${pi};
|
|
253
|
+
line-height: ${fi};
|
|
254
|
+
text-transform: ${di};
|
|
255
|
+
}
|
|
256
|
+
`,te=y`
|
|
257
257
|
.ft-typography--subtitle2 {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
258
|
+
font-family: ${ui};
|
|
259
|
+
font-size: ${vi};
|
|
260
|
+
font-weight: ${xi};
|
|
261
|
+
letter-spacing: ${yi};
|
|
262
|
+
line-height: ${bi};
|
|
263
|
+
text-transform: ${gi};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
`,
|
|
266
|
+
`,ie=y`
|
|
267
267
|
.ft-typography--body1 {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
274
|
-
}
|
|
275
|
-
`,
|
|
268
|
+
font-family: ${mi};
|
|
269
|
+
font-size: ${wi};
|
|
270
|
+
font-weight: ${$i};
|
|
271
|
+
letter-spacing: ${Oi};
|
|
272
|
+
line-height: ${Si};
|
|
273
|
+
text-transform: ${ki};
|
|
274
|
+
}
|
|
275
|
+
`,ee=y`
|
|
276
276
|
.ft-typography--body2 {
|
|
277
|
-
font-family: ${
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
277
|
+
font-family: ${Ni};
|
|
278
|
+
font-size: ${Ci};
|
|
279
|
+
font-weight: ${Ei};
|
|
280
|
+
letter-spacing: ${Ri};
|
|
281
281
|
line-height: ${zi};
|
|
282
|
-
text-transform: ${
|
|
282
|
+
text-transform: ${Mi};
|
|
283
283
|
}
|
|
284
|
-
`,
|
|
284
|
+
`,oe=y`
|
|
285
285
|
.ft-typography--caption {
|
|
286
|
-
font-family: ${
|
|
287
|
-
font-size: ${
|
|
288
|
-
font-weight: ${
|
|
289
|
-
letter-spacing: ${
|
|
290
|
-
line-height: ${
|
|
291
|
-
text-transform: ${
|
|
292
|
-
}
|
|
293
|
-
`,
|
|
286
|
+
font-family: ${Fi};
|
|
287
|
+
font-size: ${Ui};
|
|
288
|
+
font-weight: ${ji};
|
|
289
|
+
letter-spacing: ${Bi};
|
|
290
|
+
line-height: ${Ti};
|
|
291
|
+
text-transform: ${Ai};
|
|
292
|
+
}
|
|
293
|
+
`,se=y`
|
|
294
294
|
.ft-typography--breadcrumb {
|
|
295
295
|
font-family: ${Li};
|
|
296
|
-
font-size: ${
|
|
297
|
-
font-weight: ${
|
|
298
|
-
letter-spacing: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
text-transform: ${
|
|
296
|
+
font-size: ${_i};
|
|
297
|
+
font-weight: ${Pi};
|
|
298
|
+
letter-spacing: ${Di};
|
|
299
|
+
line-height: ${Ii};
|
|
300
|
+
text-transform: ${Wi};
|
|
301
301
|
}
|
|
302
|
-
`,
|
|
302
|
+
`,ne=y`
|
|
303
303
|
.ft-typography--overline {
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
307
|
-
letter-spacing: ${
|
|
308
|
-
line-height: ${
|
|
309
|
-
text-transform: ${
|
|
310
|
-
}
|
|
311
|
-
`,
|
|
304
|
+
font-family: ${Hi};
|
|
305
|
+
font-size: ${Ki};
|
|
306
|
+
font-weight: ${Zi};
|
|
307
|
+
letter-spacing: ${Vi};
|
|
308
|
+
line-height: ${Ji};
|
|
309
|
+
text-transform: ${qi};
|
|
310
|
+
}
|
|
311
|
+
`,re=y`
|
|
312
312
|
.ft-typography--button {
|
|
313
|
-
font-family: ${
|
|
314
|
-
font-size: ${
|
|
315
|
-
font-weight: ${
|
|
316
|
-
letter-spacing: ${
|
|
317
|
-
line-height: ${
|
|
318
|
-
text-transform: ${
|
|
319
|
-
}
|
|
320
|
-
`,
|
|
313
|
+
font-family: ${Xi.fontFamily};
|
|
314
|
+
font-size: ${Xi.fontSize};
|
|
315
|
+
font-weight: ${Xi.fontWeight};
|
|
316
|
+
letter-spacing: ${Xi.letterSpacing};
|
|
317
|
+
line-height: ${Xi.lineHeight};
|
|
318
|
+
text-transform: ${Xi.textTransform};
|
|
319
|
+
}
|
|
320
|
+
`,le=y`
|
|
321
321
|
.ft-typography {
|
|
322
322
|
vertical-align: inherit;
|
|
323
323
|
}
|
|
324
|
-
`;var
|
|
325
|
-
<${
|
|
324
|
+
`;var ae=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 he extends bt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
|
|
325
|
+
<${Wt(this.element)}
|
|
326
326
|
class="ft-typography ft-typography--${this.variant}">
|
|
327
327
|
<slot></slot>
|
|
328
|
-
</${
|
|
329
|
-
`:
|
|
328
|
+
</${Wt(this.element)}>
|
|
329
|
+
`:Kt`
|
|
330
330
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
331
|
-
`}}
|
|
331
|
+
`}}he.styles=[Yi,Gi,Qi,te,ie,ee,oe,se,ne,re,le],ae([o()],he.prototype,"element",void 0),ae([o()],he.prototype,"variant",void 0),c("ft-typography")(he);const ce=ut.create("--ft-tooltip-distance","SIZE","4px"),pe=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),fe=ut.create("--ft-tooltip-background-color","COLOR","#666666"),de=ut.create("--ft-tooltip-z-index","NUMBER","1"),ue=ut.external(xt.borderRadiusS,"Design system"),ve=ut.create("--ft-tooltip-max-width","SIZE","150px"),xe=y`
|
|
332
332
|
.ft-tooltip--container {
|
|
333
333
|
display: block;
|
|
334
334
|
position: relative;
|
|
@@ -344,23 +344,23 @@ const Pt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
344
344
|
box-sizing: border-box;
|
|
345
345
|
overflow: hidden;
|
|
346
346
|
width: max-content;
|
|
347
|
-
max-width: ${
|
|
347
|
+
max-width: ${ve};
|
|
348
348
|
text-align: center;
|
|
349
|
-
padding: ${
|
|
350
|
-
z-index: ${
|
|
349
|
+
padding: ${ce};
|
|
350
|
+
z-index: ${de};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-tooltip--content {
|
|
354
354
|
padding: 4px 8px;
|
|
355
|
-
border-radius: ${
|
|
356
|
-
background-color: ${
|
|
357
|
-
color: ${
|
|
355
|
+
border-radius: ${ue};
|
|
356
|
+
background-color: ${fe};
|
|
357
|
+
color: ${pe};
|
|
358
358
|
top: -500px;
|
|
359
359
|
left: -500px;
|
|
360
360
|
position: relative;
|
|
361
361
|
word-break: break-word;
|
|
362
362
|
}
|
|
363
|
-
`;var
|
|
363
|
+
`;var ye=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class be extends bt{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 V`
|
|
364
364
|
<div part="container"
|
|
365
365
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
366
366
|
@mouseenter=${this.onHover}
|
|
@@ -378,13 +378,13 @@ const Pt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
378
378
|
</div>
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((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, ${
|
|
381
|
+
`}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, ${ve})`}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())}}be.elementDefinitions={"ft-typography":he},be.styles=xe,ye([o()],be.prototype,"text",void 0),ye([o({type:Boolean})],be.prototype,"manual",void 0),ye([o({type:Boolean})],be.prototype,"inline",void 0),ye([o({type:Number})],be.prototype,"delay",void 0),ye([o()],be.prototype,"position",void 0),ye([
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
384
384
|
* Copyright 2017 Google LLC
|
|
385
385
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
386
386
|
*/
|
|
387
|
-
function(t,i,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)],
|
|
387
|
+
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)],be.prototype,"slotNodes",void 0),ye([r(".ft-tooltip--container")],be.prototype,"container",void 0),ye([r("slot")],be.prototype,"target",void 0),ye([r(".ft-tooltip")],be.prototype,"tooltip",void 0),ye([r(".ft-tooltip--content")],be.prototype,"tooltipContent",void 0),ye([s()],be.prototype,"visible",void 0),c("ft-tooltip")(be);const ge={color:ut.extend("--ft-loader-color",xt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},me=y`
|
|
388
388
|
:host {
|
|
389
389
|
line-height: 0;
|
|
390
390
|
}
|
|
@@ -393,8 +393,8 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
393
393
|
display: inline-block;
|
|
394
394
|
position: relative;
|
|
395
395
|
|
|
396
|
-
width: ${
|
|
397
|
-
height: ${
|
|
396
|
+
width: ${ge.size};
|
|
397
|
+
height: ${ge.size};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.ft-loader div {
|
|
@@ -403,7 +403,7 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
403
403
|
width: 25%;
|
|
404
404
|
height: 25%;
|
|
405
405
|
border-radius: 50%;
|
|
406
|
-
background: ${
|
|
406
|
+
background: ${ge.color};
|
|
407
407
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
408
408
|
}
|
|
409
409
|
|
|
@@ -450,23 +450,23 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
|
|
|
450
450
|
transform: translate(0, 0);
|
|
451
451
|
}
|
|
452
452
|
100% {
|
|
453
|
-
transform: translate(calc(0.35 * ${
|
|
453
|
+
transform: translate(calc(0.35 * ${ge.size}), 0);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
`;class
|
|
456
|
+
`;class we extends bt{render(){return V`
|
|
457
457
|
<div class="ft-loader">
|
|
458
458
|
<div></div>
|
|
459
459
|
<div></div>
|
|
460
460
|
<div></div>
|
|
461
461
|
<div></div>
|
|
462
462
|
</div>
|
|
463
|
-
`}}
|
|
463
|
+
`}}we.styles=me,c("ft-loader")(we);
|
|
464
464
|
/**
|
|
465
465
|
* @license
|
|
466
466
|
* Copyright 2017 Google LLC
|
|
467
467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
468
468
|
*/
|
|
469
|
-
class
|
|
469
|
+
class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}$e.directiveName="unsafeHTML",$e.resultType=1;const Oe=Ct($e);var Se,ke;!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=""}(Se||(Se={})),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=""}(ke||(ke={})),new Map([...["abw"].map((t=>[t,ke.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,ke.AUDIO])),...["avi"].map((t=>[t,ke.AVI])),...["chm","xhs"].map((t=>[t,ke.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,ke.CODE])),...["csv"].map((t=>[t,ke.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ke.DITA])),...["epub"].map((t=>[t,ke.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ke.EXCEL])),...["flac"].map((t=>[t,ke.FLAC])),...["gif"].map((t=>[t,ke.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ke.GZIP])),...["html","htm","xhtml"].map((t=>[t,ke.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,ke.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ke.JPEG])),...["json"].map((t=>[t,ke.JSON])),...["m4a","m4p"].map((t=>[t,ke.M4A])),...["mov","qt"].map((t=>[t,ke.MOV])),...["mp3"].map((t=>[t,ke.MP3])),...["mp4","m4v"].map((t=>[t,ke.MP4])),...["ogg","oga"].map((t=>[t,ke.OGG])),...["pdf","ps"].map((t=>[t,ke.PDF])),...["png"].map((t=>[t,ke.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ke.POWERPOINT])),...["rar"].map((t=>[t,ke.RAR])),...["stp"].map((t=>[t,ke.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ke.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,ke.VIDEO])),...["wav"].map((t=>[t,ke.WAV])),...["wma"].map((t=>[t,ke.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ke.WORD])),...["xml","xsl","rdf"].map((t=>[t,ke.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ke.YAML])),...["zip"].map((t=>[t,ke.ZIP]))]);const Ne={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ce=y`
|
|
470
470
|
:host, i.ft-icon {
|
|
471
471
|
display: inline-flex;
|
|
472
472
|
align-items: center;
|
|
@@ -475,14 +475,14 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
:host {
|
|
478
|
-
width: ${
|
|
479
|
-
height: ${
|
|
478
|
+
width: ${Ne.size};
|
|
479
|
+
height: ${Ne.size};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
i.ft-icon {
|
|
483
483
|
width: 100%;
|
|
484
484
|
height: 100%;
|
|
485
|
-
font-size: ${
|
|
485
|
+
font-size: ${Ne.size};
|
|
486
486
|
line-height: 1;
|
|
487
487
|
font-weight: normal;
|
|
488
488
|
text-transform: none;
|
|
@@ -493,32 +493,32 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
493
493
|
text-rendering: auto;
|
|
494
494
|
-webkit-font-smoothing: antialiased;
|
|
495
495
|
-moz-osx-font-smoothing: grayscale;
|
|
496
|
-
vertical-align: ${
|
|
496
|
+
vertical-align: ${Ne.verticalAlign};
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
i.ft-icon.ft-icon--fluid-topics {
|
|
500
|
-
font-family: ${
|
|
500
|
+
font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
501
501
|
|
|
502
502
|
/* Ugly fix because font is broken */
|
|
503
|
-
font-size: calc(0.9 * ${
|
|
503
|
+
font-size: calc(0.9 * ${Ne.size});
|
|
504
504
|
position: relative;
|
|
505
505
|
top: -5%;
|
|
506
506
|
justify-content: center;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-icon--file-format {
|
|
510
|
-
font-family: ${
|
|
510
|
+
font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
.ft-icon--material {
|
|
514
|
-
font-family: ${
|
|
514
|
+
font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
|
|
515
515
|
}
|
|
516
|
-
`;var
|
|
517
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
518
|
-
${
|
|
519
|
-
<slot ?hidden=${
|
|
516
|
+
`;var Ee;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ee||(Ee={}));var Re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends bt{constructor(){super(...arguments),this.resolvedIcon=q}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Ee.fluid_topics,e="material"!==i||this.value;return V`
|
|
517
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
518
|
+
${Oe(this.resolvedIcon)}
|
|
519
|
+
<slot ?hidden=${e}></slot>
|
|
520
520
|
</i>
|
|
521
|
-
`}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
|
|
521
|
+
`}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 Ee.file_format:this.resolvedIcon=null!==(t=ke[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ee.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(i=Se[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ze.elementDefinitions={},ze.styles=Ce,Re([o()],ze.prototype,"variant",void 0),Re([o()],ze.prototype,"value",void 0),Re([s()],ze.prototype,"resolvedIcon",void 0),Re([r("slot")],ze.prototype,"slottedContent",void 0),c("ft-icon")(ze);const Me=ut.extend("--ft-button-color",xt.colorPrimary),Fe={backgroundColor:ut.extend("--ft-button-background-color",xt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",xt.borderRadiusL),color:Me,fontSize:ut.extend("--ft-button-font-size",Xi.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Me),opacityDisabled:ut.external(xt.colorOpacityDisabled,"Design system")},Ue=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",xt.colorOnPrimary)),je={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",xt.colorPrimary)),color:Ue,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ue)},Be=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",xt.borderRadiusM)),Te=[gt,y`
|
|
522
522
|
:host {
|
|
523
523
|
display: inline-block;
|
|
524
524
|
max-width: 100%;
|
|
@@ -529,7 +529,7 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
529
529
|
box-shadow: 0px 0px 0px transparent;
|
|
530
530
|
border: 0px solid transparent;
|
|
531
531
|
text-shadow: 0px 0px 0px transparent;
|
|
532
|
-
font-size: ${
|
|
532
|
+
font-size: ${Fe.fontSize};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
button:hover {
|
|
@@ -558,17 +558,17 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
558
558
|
border: none;
|
|
559
559
|
pointer-events: auto;
|
|
560
560
|
|
|
561
|
-
--ft-button-internal-line-height: calc(${
|
|
562
|
-
--ft-button-internal-color: ${
|
|
563
|
-
${
|
|
561
|
+
--ft-button-internal-line-height: calc(${Fe.fontSize} + 2px);
|
|
562
|
+
--ft-button-internal-color: ${Fe.color};
|
|
563
|
+
${vt(Ne.size,Fe.iconSize)};
|
|
564
564
|
--ft-button-internal-vertical-padding: 6px;
|
|
565
565
|
--ft-button-internal-horizontal-padding: 8px;
|
|
566
|
-
${
|
|
567
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
566
|
+
${vt(Mt.color,Fe.rippleColor)};
|
|
567
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fe.iconSize});
|
|
568
568
|
|
|
569
|
-
border-radius: ${
|
|
569
|
+
border-radius: ${Fe.borderRadius};
|
|
570
570
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
571
|
-
background-color: ${
|
|
571
|
+
background-color: ${Fe.backgroundColor};
|
|
572
572
|
color: var(--ft-button-internal-color);
|
|
573
573
|
-webkit-mask-image: radial-gradient(white, black);
|
|
574
574
|
}
|
|
@@ -580,7 +580,7 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
580
580
|
.ft-button--dense {
|
|
581
581
|
--ft-button-internal-vertical-padding: 2px;
|
|
582
582
|
--ft-button-internal-horizontal-padding: 4px;
|
|
583
|
-
border-radius: ${
|
|
583
|
+
border-radius: ${Be};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-button--round {
|
|
@@ -589,13 +589,13 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
589
589
|
|
|
590
590
|
.ft-button[disabled] {
|
|
591
591
|
filter: grayscale(1);
|
|
592
|
-
opacity: ${
|
|
592
|
+
opacity: ${Fe.opacityDisabled};
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
.ft-button.ft-button--primary {
|
|
596
|
-
background-color: ${
|
|
597
|
-
--ft-button-internal-color: ${
|
|
598
|
-
${
|
|
596
|
+
background-color: ${je.backgroundColor};
|
|
597
|
+
--ft-button-internal-color: ${je.color};
|
|
598
|
+
${vt(Mt.color,je.rippleColor)};
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
.ft-button.ft-button--outlined {
|
|
@@ -614,8 +614,8 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
614
614
|
text-overflow: ellipsis;
|
|
615
615
|
display: block;
|
|
616
616
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
617
|
-
${
|
|
618
|
-
${
|
|
617
|
+
${vt(Xi.fontSize,"1em")};
|
|
618
|
+
${vt(Xi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
.ft-button--label[hidden] {
|
|
@@ -638,33 +638,33 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
ft-loader {
|
|
641
|
-
${
|
|
642
|
-
${
|
|
641
|
+
${vt(ge.size,Fe.iconSize)};
|
|
642
|
+
${vt(ge.color,"var(--ft-button-internal-color)")};
|
|
643
643
|
}
|
|
644
|
-
`];var
|
|
644
|
+
`];var Ae=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 Le extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ee.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
|
|
645
645
|
<button part="button"
|
|
646
|
-
class="${
|
|
646
|
+
class="${Rt(t)}"
|
|
647
647
|
aria-label="${this.getLabel()}"
|
|
648
648
|
?disabled=${this.isDisabled()}>
|
|
649
649
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
650
650
|
<ft-typography part="label"
|
|
651
651
|
variant="button"
|
|
652
652
|
element="span"
|
|
653
|
-
class="ft-button--label ${
|
|
653
|
+
class="ft-button--label ${St?"ft-safari-ellipsis-fix":""}"
|
|
654
654
|
?hidden=${!this.hasTextContent()}>
|
|
655
655
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
656
656
|
</ft-typography>
|
|
657
657
|
${this.resolveIcon()}
|
|
658
658
|
</button>
|
|
659
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
659
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?V`
|
|
660
660
|
<ft-tooltip part="tooltip"
|
|
661
661
|
text="${this.getLabel()}"
|
|
662
662
|
position="${this.tooltipPosition}">
|
|
663
663
|
${t}
|
|
664
664
|
</ft-tooltip>
|
|
665
|
-
`:t}resolveIcon(){return this.loading?
|
|
666
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
667
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
665
|
+
`:t}resolveIcon(){return this.loading?V`
|
|
666
|
+
<ft-loader></ft-loader> `:this.icon?V`
|
|
667
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Le.elementDefinitions={"ft-ripple":Pt,"ft-tooltip":be,"ft-typography":he,"ft-icon":ze,"ft-loader":we},Le.styles=[mt,Te],Ae([o({type:Boolean})],Le.prototype,"primary",void 0),Ae([o({type:Boolean})],Le.prototype,"outlined",void 0),Ae([o({type:Boolean})],Le.prototype,"disabled",void 0),Ae([o({type:Boolean})],Le.prototype,"dense",void 0),Ae([o({type:Boolean})],Le.prototype,"round",void 0),Ae([o({type:String})],Le.prototype,"label",void 0),Ae([o({type:String})],Le.prototype,"icon",void 0),Ae([o({type:String})],Le.prototype,"iconVariant",void 0),Ae([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Ae([o({type:Boolean})],Le.prototype,"loading",void 0),Ae([o({type:String})],Le.prototype,"tooltipPosition",void 0),Ae([o({type:Boolean})],Le.prototype,"hideTooltip",void 0),Ae([o({type:Boolean})],Le.prototype,"forceTooltip",void 0),Ae([r(".ft-button")],Le.prototype,"button",void 0),Ae([r(".ft-button--label slot")],Le.prototype,"slottedContent",void 0),c("ft-button")(Le);const _e={buttonsColor:ut.extend("--ft-snap-scroll-buttons-color",xt.colorPrimary),buttonsZIndex:ut.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ut.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ut.external(xt.colorSurface,"Design system")},Pe=y`
|
|
668
668
|
.ft-snap-scroll {
|
|
669
669
|
box-sizing: border-box;
|
|
670
670
|
position: relative;
|
|
@@ -699,7 +699,7 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
699
699
|
flex-wrap: nowrap;
|
|
700
700
|
align-items: flex-start;
|
|
701
701
|
justify-content: flex-start;
|
|
702
|
-
gap: ${
|
|
702
|
+
gap: ${_e.gap};
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -742,11 +742,11 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
742
742
|
.ft-snap-scroll--next {
|
|
743
743
|
position: absolute;
|
|
744
744
|
display: flex;
|
|
745
|
-
z-index: ${
|
|
745
|
+
z-index: ${_e.buttonsZIndex};
|
|
746
746
|
opacity: 1;
|
|
747
747
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
748
|
-
${
|
|
749
|
-
${
|
|
748
|
+
${vt(Fe.backgroundColor,"transparent")};
|
|
749
|
+
${vt(Fe.color,_e.buttonsColor)};
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -759,37 +759,37 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
759
759
|
top: 0;
|
|
760
760
|
left: -1px;
|
|
761
761
|
bottom: 0;
|
|
762
|
-
background: linear-gradient(to right, ${
|
|
762
|
+
background: linear-gradient(to right, ${_e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
766
766
|
top: -1px;
|
|
767
767
|
left: 0;
|
|
768
768
|
right: 0;
|
|
769
|
-
background: linear-gradient(to bottom, ${
|
|
769
|
+
background: linear-gradient(to bottom, ${_e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
770
770
|
}
|
|
771
771
|
|
|
772
772
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
773
773
|
top: 0;
|
|
774
774
|
right: -1px;
|
|
775
775
|
bottom: 0;
|
|
776
|
-
background: linear-gradient(to left, ${
|
|
776
|
+
background: linear-gradient(to left, ${_e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
780
780
|
left: 0;
|
|
781
781
|
right: 0;
|
|
782
782
|
bottom: -1px;
|
|
783
|
-
background: linear-gradient(to top, ${
|
|
783
|
+
background: linear-gradient(to top, ${_e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
787
787
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
788
788
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
789
789
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
790
|
-
background-color: ${
|
|
790
|
+
background-color: ${_e.colorSurface};
|
|
791
791
|
}
|
|
792
|
-
`;var
|
|
792
|
+
`;var De=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 Ie extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class We extends bt{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=Rt({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":St}),i=this.controls&&this.withScroll;return V`
|
|
793
793
|
<div part="container" class="${t}">
|
|
794
794
|
<ft-button
|
|
795
795
|
class="ft-snap-scroll--previous"
|
|
@@ -813,4 +813,4 @@ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error
|
|
|
813
813
|
@click=${this.next}
|
|
814
814
|
></ft-button>
|
|
815
815
|
</div>
|
|
816
|
-
`}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
|
|
816
|
+
`}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 Ie(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)}}We.elementDefinitions={"ft-button":Le},We.styles=Pe,De([o({type:Boolean})],We.prototype,"horizontal",void 0),De([o({type:Boolean})],We.prototype,"hideScrollbar",void 0),De([o({type:Boolean})],We.prototype,"controls",void 0),De([o({type:Boolean})],We.prototype,"limitSize",void 0),De([s()],We.prototype,"elements",void 0),De([s()],We.prototype,"currentElement",void 0),De([s()],We.prototype,"withScroll",void 0),De([s()],We.prototype,"startReached",void 0),De([s()],We.prototype,"endReached",void 0),De([r(".ft-snap-scroll--content")],We.prototype,"contentSlot",void 0),c("ft-snap-scroll")(We),t.CurrentElementChange=Ie,t.FtSnapScroll=We,t.FtSnapScrollCssVariables=_e,t.styles=Pe,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-snap-scroll",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.58",
|
|
4
4
|
"description": "Vertical or horizontal container with snap scrolling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "0.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.58",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "0.3.58",
|
|
24
24
|
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
|
|
27
27
|
}
|