@fluid-topics/ft-snap-scroll 0.3.53 → 0.3.55

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.
@@ -489,17 +489,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
489
489
  ${i.setVariable(li.fontSize,"1em")};
490
490
  ${i.setVariable(li.lineHeight,"var(--ft-button-internal-content-height)")};
491
491
  }
492
-
493
- .ft-button--safari-fix .ft-button--label {
494
- margin-right: 0;
495
- }
496
-
497
- .ft-button--safari-fix .ft-button--label:after {
498
- content: "\\0000a0";
499
- display: inline-block;
500
- width: 0;
501
- }
502
-
492
+
503
493
  .ft-button--label[hidden] {
504
494
  display: none;
505
495
  }
@@ -523,7 +513,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
523
513
  ${i.setVariable(Ei.size,Zi.iconSize)};
524
514
  ${i.setVariable(Ei.color,"var(--ft-button-internal-color)")};
525
515
  }
526
- `];var Gi=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 Pi extends i.FtLitElement{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=Mi.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-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
516
+ `];var Gi=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 Pi extends i.FtLitElement{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=Mi.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(e.html`
527
517
  <button part="button"
528
518
  class="${s.classMap(t)}"
529
519
  aria-label="${this.getLabel()}"
@@ -532,7 +522,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
532
522
  <ft-typography part="label"
533
523
  variant="button"
534
524
  element="span"
535
- class="ft-button--label"
525
+ class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
536
526
  ?hidden=${!this.hasTextContent()}>
537
527
  <slot @slotchange=${this.onSlotchange}></slot>
538
528
  </ft-typography>
@@ -546,7 +536,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
546
536
  </ft-tooltip>
547
537
  `:t}resolveIcon(){return this.loading?e.html`
548
538
  <ft-loader></ft-loader> `:this.icon?e.html`
549
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}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}}Pi.elementDefinitions={"ft-ripple":v,"ft-tooltip":Ni,"ft-typography":mi,"ft-icon":Ui,"ft-loader":Ti},Pi.styles=Ki,Gi([o.property({type:Boolean})],Pi.prototype,"primary",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"outlined",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"disabled",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"dense",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"round",void 0),Gi([o.property({type:String})],Pi.prototype,"label",void 0),Gi([o.property({type:String})],Pi.prototype,"icon",void 0),Gi([o.property({type:String})],Pi.prototype,"iconVariant",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"trailingIcon",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"loading",void 0),Gi([o.property({type:String})],Pi.prototype,"tooltipPosition",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"hideTooltip",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"forceTooltip",void 0),Gi([o.query(".ft-button")],Pi.prototype,"button",void 0),Gi([o.query(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Pi);const qi={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")},Vi=e.css`
539
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}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}}Pi.elementDefinitions={"ft-ripple":v,"ft-tooltip":Ni,"ft-typography":mi,"ft-icon":Ui,"ft-loader":Ti},Pi.styles=[i.safariEllipsisFix,Ki],Gi([o.property({type:Boolean})],Pi.prototype,"primary",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"outlined",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"disabled",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"dense",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"round",void 0),Gi([o.property({type:String})],Pi.prototype,"label",void 0),Gi([o.property({type:String})],Pi.prototype,"icon",void 0),Gi([o.property({type:String})],Pi.prototype,"iconVariant",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"trailingIcon",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"loading",void 0),Gi([o.property({type:String})],Pi.prototype,"tooltipPosition",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"hideTooltip",void 0),Gi([o.property({type:Boolean})],Pi.prototype,"forceTooltip",void 0),Gi([o.query(".ft-button")],Pi.prototype,"button",void 0),Gi([o.query(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Pi);const qi={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")},Vi=e.css`
550
540
  .ft-snap-scroll {
551
541
  box-sizing: border-box;
552
542
  position: relative;
@@ -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(me){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}}
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(we){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
@@ -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
- `;var gt,mt,wt;x`
84
+ `;x`
85
85
  .ft-word-wrap {
86
86
  white-space: normal;
87
87
  word-wrap: break-word;
@@ -93,17 +93,28 @@ 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 $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot=1,St=2,kt=t=>(...i)=>({_$litDirective$:t,values:i});
96
+ `;const gt=x`
97
+ .ft-safari-ellipsis-fix {
98
+ margin-right: 0;
99
+
100
+ }
101
+
102
+ .ft-safari-ellipsis-fix:after {
103
+ content: "\\0000a0";
104
+ display: inline-block;
105
+ width: 0;
106
+ }
107
+ `;var mt,wt,$t;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),St=1,kt=2,Nt=t=>(...i)=>({_$litDirective$:t,values:i});
97
108
  /**
98
109
  * @license
99
110
  * Copyright 2017 Google LLC
100
111
  * SPDX-License-Identifier: BSD-3-Clause
101
- */class Nt{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)}}
112
+ */class Ct{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)}}
102
113
  /**
103
114
  * @license
104
115
  * Copyright 2018 Google LLC
105
116
  * SPDX-License-Identifier: BSD-3-Clause
106
- */const Ct=kt(class extends Nt{constructor(t){var i;if(super(t),t.type!==Ot||"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 V}}),Et=dt.extend("--ft-ripple-color",vt.colorContent),zt={color:Et,backgroundColor:dt.extend("--ft-ripple-background-color",Et),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},Rt=dt.extend("--ft-ripple-color",vt.colorPrimary),Mt=Rt,Ft=dt.extend("--ft-ripple-background-color",Rt),Ut=dt.extend("--ft-ripple-color",vt.colorSecondary),jt=Ut,Bt=dt.extend("--ft-ripple-background-color",Ut),Tt=x`
117
+ */const Et=Nt(class extends Ct{constructor(t){var i;if(super(t),t.type!==St||"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 V}}),zt=dt.extend("--ft-ripple-color",vt.colorContent),Rt={color:zt,backgroundColor:dt.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},Mt=dt.extend("--ft-ripple-color",vt.colorPrimary),Ft=Mt,Ut=dt.extend("--ft-ripple-background-color",Mt),jt=dt.extend("--ft-ripple-color",vt.colorSecondary),Bt=jt,Tt=dt.extend("--ft-ripple-background-color",jt),Lt=x`
107
118
  :host {
108
119
  display: contents;
109
120
  }
@@ -125,27 +136,27 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
125
136
  }
126
137
 
127
138
  .ft-ripple .ft-ripple--background {
128
- background-color: ${zt.backgroundColor};
139
+ background-color: ${Rt.backgroundColor};
129
140
  }
130
141
 
131
142
  .ft-ripple .ft-ripple--effect {
132
- background-color: ${zt.color};
143
+ background-color: ${Rt.color};
133
144
  }
134
145
 
135
146
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
136
- background-color: ${Bt};
147
+ background-color: ${Tt};
137
148
  }
138
149
 
139
150
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
140
- background-color: ${jt};
151
+ background-color: ${Bt};
141
152
  }
142
153
 
143
154
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
144
- background-color: ${Ft};
155
+ background-color: ${Ut};
145
156
  }
146
157
 
147
158
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
148
- background-color: ${Mt};
159
+ background-color: ${Ft};
149
160
  }
150
161
 
151
162
  .ft-ripple .ft-ripple--background {
@@ -177,22 +188,22 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
177
188
  }
178
189
 
179
190
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
180
- opacity: ${zt.opacityContentOnSurfaceHover};
191
+ opacity: ${Rt.opacityContentOnSurfaceHover};
181
192
  }
182
193
 
183
194
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
184
- opacity: ${zt.opacityContentOnSurfaceSelected};
195
+ opacity: ${Rt.opacityContentOnSurfaceSelected};
185
196
  }
186
197
 
187
198
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
188
- opacity: ${zt.opacityContentOnSurfaceFocused};
199
+ opacity: ${Rt.opacityContentOnSurfaceFocused};
189
200
  }
190
201
 
191
202
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
192
- opacity: ${zt.opacityContentOnSurfacePressed};
203
+ opacity: ${Rt.opacityContentOnSurfacePressed};
193
204
  transform: translate(-50%, -50%) scale(1);
194
205
  }
195
- `;var Lt=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 At extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new 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.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 Z`
206
+ `;var At=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 _t extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new 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.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 Z`
196
207
  <style>
197
208
  .ft-ripple .ft-ripple--effect,
198
209
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -205,119 +216,119 @@ var ht,ct;class pt extends C{constructor(){super(...arguments),this.renderOption
205
216
  top: ${this.originY}px;
206
217
  }
207
218
  </style>
208
- <div class="${Ct(t)}">
219
+ <div class="${Et(t)}">
209
220
  <div class="ft-ripple--background"></div>
210
221
  <div class="ft-ripple--effect"></div>
211
222
  </div>
212
- `}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(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}At.elementDefinitions={},At.styles=Tt,Lt([o({type:Boolean})],At.prototype,"primary",void 0),Lt([o({type:Boolean})],At.prototype,"secondary",void 0),Lt([o({type:Boolean})],At.prototype,"unbounded",void 0),Lt([o({type:Boolean})],At.prototype,"activated",void 0),Lt([o({type:Boolean})],At.prototype,"selected",void 0),Lt([o({type:Boolean})],At.prototype,"disabled",void 0),Lt([s()],At.prototype,"hovered",void 0),Lt([s()],At.prototype,"focused",void 0),Lt([s()],At.prototype,"pressed",void 0),Lt([s()],At.prototype,"rippling",void 0),Lt([s()],At.prototype,"rippleSize",void 0),Lt([s()],At.prototype,"originX",void 0),Lt([s()],At.prototype,"originY",void 0),Lt([r(".ft-ripple")],At.prototype,"ripple",void 0),Lt([r(".ft-ripple--effect")],At.prototype,"rippleEffect",void 0),h("ft-ripple")(At);
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(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}_t.elementDefinitions={},_t.styles=Lt,At([o({type:Boolean})],_t.prototype,"primary",void 0),At([o({type:Boolean})],_t.prototype,"secondary",void 0),At([o({type:Boolean})],_t.prototype,"unbounded",void 0),At([o({type:Boolean})],_t.prototype,"activated",void 0),At([o({type:Boolean})],_t.prototype,"selected",void 0),At([o({type:Boolean})],_t.prototype,"disabled",void 0),At([s()],_t.prototype,"hovered",void 0),At([s()],_t.prototype,"focused",void 0),At([s()],_t.prototype,"pressed",void 0),At([s()],_t.prototype,"rippling",void 0),At([s()],_t.prototype,"rippleSize",void 0),At([s()],_t.prototype,"originX",void 0),At([s()],_t.prototype,"originY",void 0),At([r(".ft-ripple")],_t.prototype,"ripple",void 0),At([r(".ft-ripple--effect")],_t.prototype,"rippleEffect",void 0),h("ft-ripple")(_t);
213
224
  /**
214
225
  * @license
215
226
  * Copyright 2020 Google LLC
216
227
  * SPDX-License-Identifier: BSD-3-Clause
217
228
  */
218
- const _t=Symbol.for(""),Pt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:_t}),It=new Map,Wt=(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=Pt(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=It.get(t))&&(r.raw=r,It.set(t,i=r)),e=l}return t(i,...e)})(Z);var Ht;!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"}(Ht||(Ht={}));const Kt=dt.extend("--ft-typography-font-family",vt.titleFont),Zt=dt.extend("--ft-typography-font-family",vt.contentFont),Vt={fontFamily:Zt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Jt=dt.extend("--ft-typography-title-font-family",Kt),qt=dt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Xt=dt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=dt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=dt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=dt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),ti=dt.extend("--ft-typography-title-dense-font-family",Kt),ii=dt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ei=dt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oi=dt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),si=dt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),ni=dt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),ri=dt.extend("--ft-typography-subtitle1-font-family",Zt),li=dt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),ai=dt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),hi=dt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ci=dt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),pi=dt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),fi=dt.extend("--ft-typography-subtitle2-font-family",Zt),di=dt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ui=dt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),vi=dt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),xi=dt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),yi=dt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),bi=dt.extend("--ft-typography-body1-font-family",Zt),gi=dt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),mi=dt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),wi=dt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),$i=dt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),Oi=dt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),Si=dt.extend("--ft-typography-body2-font-family",Zt),ki=dt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),Ni=dt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),Ci=dt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),Ei=dt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),zi=dt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Ri=dt.extend("--ft-typography-caption-font-family",Zt),Mi=dt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Fi=dt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),Ui=dt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),ji=dt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Bi=dt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Ti=dt.extend("--ft-typography-breadcrumb-font-family",Zt),Li=dt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Ai=dt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),_i=dt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),Pi=dt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Di=dt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Ii=dt.extend("--ft-typography-overline-font-family",Zt),Wi=dt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Hi=dt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Ki=dt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Zi=dt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Vi=dt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Ji={fontFamily:dt.extend("--ft-typography-button-font-family",Zt),fontSize:dt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},qi=x`
229
+ const Pt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},It=t=>({_$litStatic$:t,r:Pt}),Wt=new Map,Ht=(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=Dt(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=Wt.get(t))&&(r.raw=r,Wt.set(t,i=r)),e=l}return t(i,...e)})(Z);var Kt;!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"}(Kt||(Kt={}));const Zt=dt.extend("--ft-typography-font-family",vt.titleFont),Vt=dt.extend("--ft-typography-font-family",vt.contentFont),Jt={fontFamily:Vt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},qt=dt.extend("--ft-typography-title-font-family",Zt),Xt=dt.extend("--ft-typography-title-font-size",Jt.fontSize,"20px"),Yt=dt.extend("--ft-typography-title-font-weight",Jt.fontWeight,"normal"),Gt=dt.extend("--ft-typography-title-letter-spacing",Jt.letterSpacing,"0.15px"),Qt=dt.extend("--ft-typography-title-line-height",Jt.lineHeight,"1.2"),ti=dt.extend("--ft-typography-title-text-transform",Jt.textTransform,"inherit"),ii=dt.extend("--ft-typography-title-dense-font-family",Zt),ei=dt.extend("--ft-typography-title-dense-font-size",Jt.fontSize,"14px"),oi=dt.extend("--ft-typography-title-dense-font-weight",Jt.fontWeight,"normal"),si=dt.extend("--ft-typography-title-dense-letter-spacing",Jt.letterSpacing,"0.105px"),ni=dt.extend("--ft-typography-title-dense-line-height",Jt.lineHeight,"1.7"),ri=dt.extend("--ft-typography-title-dense-text-transform",Jt.textTransform,"inherit"),li=dt.extend("--ft-typography-subtitle1-font-family",Vt),ai=dt.extend("--ft-typography-subtitle1-font-size",Jt.fontSize,"16px"),hi=dt.extend("--ft-typography-subtitle1-font-weight",Jt.fontWeight,"600"),ci=dt.extend("--ft-typography-subtitle1-letter-spacing",Jt.letterSpacing,"0.144px"),pi=dt.extend("--ft-typography-subtitle1-line-height",Jt.lineHeight,"1.5"),fi=dt.extend("--ft-typography-subtitle1-text-transform",Jt.textTransform,"inherit"),di=dt.extend("--ft-typography-subtitle2-font-family",Vt),ui=dt.extend("--ft-typography-subtitle2-font-size",Jt.fontSize,"14px"),vi=dt.extend("--ft-typography-subtitle2-font-weight",Jt.fontWeight,"normal"),xi=dt.extend("--ft-typography-subtitle2-letter-spacing",Jt.letterSpacing,"0.098px"),yi=dt.extend("--ft-typography-subtitle2-line-height",Jt.lineHeight,"1.7"),bi=dt.extend("--ft-typography-subtitle2-text-transform",Jt.textTransform,"inherit"),gi=dt.extend("--ft-typography-body1-font-family",Vt),mi=dt.extend("--ft-typography-body1-font-size",Jt.fontSize,"16px"),wi=dt.extend("--ft-typography-body1-font-weight",Jt.fontWeight,"normal"),$i=dt.extend("--ft-typography-body1-letter-spacing",Jt.letterSpacing,"0.496px"),Oi=dt.extend("--ft-typography-body1-line-height",Jt.lineHeight,"1.5"),Si=dt.extend("--ft-typography-body1-text-transform",Jt.textTransform,"inherit"),ki=dt.extend("--ft-typography-body2-font-family",Vt),Ni=dt.extend("--ft-typography-body2-font-size",Jt.fontSize,"14px"),Ci=dt.extend("--ft-typography-body2-font-weight",Jt.fontWeight,"normal"),Ei=dt.extend("--ft-typography-body2-letter-spacing",Jt.letterSpacing,"0.252px"),zi=dt.extend("--ft-typography-body2-line-height",Jt.lineHeight,"1.4"),Ri=dt.extend("--ft-typography-body2-text-transform",Jt.textTransform,"inherit"),Mi=dt.extend("--ft-typography-caption-font-family",Vt),Fi=dt.extend("--ft-typography-caption-font-size",Jt.fontSize,"12px"),Ui=dt.extend("--ft-typography-caption-font-weight",Jt.fontWeight,"normal"),ji=dt.extend("--ft-typography-caption-letter-spacing",Jt.letterSpacing,"0.396px"),Bi=dt.extend("--ft-typography-caption-line-height",Jt.lineHeight,"1.33"),Ti=dt.extend("--ft-typography-caption-text-transform",Jt.textTransform,"inherit"),Li=dt.extend("--ft-typography-breadcrumb-font-family",Vt),Ai=dt.extend("--ft-typography-breadcrumb-font-size",Jt.fontSize,"10px"),_i=dt.extend("--ft-typography-breadcrumb-font-weight",Jt.fontWeight,"normal"),Pi=dt.extend("--ft-typography-breadcrumb-letter-spacing",Jt.letterSpacing,"0.33px"),Di=dt.extend("--ft-typography-breadcrumb-line-height",Jt.lineHeight,"1.6"),Ii=dt.extend("--ft-typography-breadcrumb-text-transform",Jt.textTransform,"inherit"),Wi=dt.extend("--ft-typography-overline-font-family",Vt),Hi=dt.extend("--ft-typography-overline-font-size",Jt.fontSize,"10px"),Ki=dt.extend("--ft-typography-overline-font-weight",Jt.fontWeight,"normal"),Zi=dt.extend("--ft-typography-overline-letter-spacing",Jt.letterSpacing,"1.5px"),Vi=dt.extend("--ft-typography-overline-line-height",Jt.lineHeight,"1.6"),Ji=dt.extend("--ft-typography-overline-text-transform",Jt.textTransform,"uppercase"),qi={fontFamily:dt.extend("--ft-typography-button-font-family",Vt),fontSize:dt.extend("--ft-typography-button-font-size",Jt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Jt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Jt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Jt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Jt.textTransform,"uppercase")},Xi=x`
219
230
  .ft-typography--title {
220
- font-family: ${Jt};
221
- font-size: ${qt};
222
- font-weight: ${Xt};
223
- letter-spacing: ${Yt};
224
- line-height: ${Gt};
225
- text-transform: ${Qt};
226
- }
227
- `,Xi=x`
228
- .ft-typography--title-dense {
229
- font-family: ${ti};
230
- font-size: ${ii};
231
- font-weight: ${ei};
232
- letter-spacing: ${oi};
233
- line-height: ${si};
234
- text-transform: ${ni};
231
+ font-family: ${qt};
232
+ font-size: ${Xt};
233
+ font-weight: ${Yt};
234
+ letter-spacing: ${Gt};
235
+ line-height: ${Qt};
236
+ text-transform: ${ti};
235
237
  }
236
238
  `,Yi=x`
237
- .ft-typography--subtitle1 {
238
- font-family: ${ri};
239
- font-size: ${li};
240
- font-weight: ${ai};
241
- letter-spacing: ${hi};
242
- line-height: ${ci};
243
- text-transform: ${pi};
239
+ .ft-typography--title-dense {
240
+ font-family: ${ii};
241
+ font-size: ${ei};
242
+ font-weight: ${oi};
243
+ letter-spacing: ${si};
244
+ line-height: ${ni};
245
+ text-transform: ${ri};
244
246
  }
245
247
  `,Gi=x`
246
- .ft-typography--subtitle2 {
247
- font-family: ${fi};
248
- font-size: ${di};
249
- font-weight: ${ui};
250
- letter-spacing: ${vi};
251
- line-height: ${xi};
252
- text-transform: ${yi};
248
+ .ft-typography--subtitle1 {
249
+ font-family: ${li};
250
+ font-size: ${ai};
251
+ font-weight: ${hi};
252
+ letter-spacing: ${ci};
253
+ line-height: ${pi};
254
+ text-transform: ${fi};
253
255
  }
254
-
255
256
  `,Qi=x`
256
- .ft-typography--body1 {
257
- font-family: ${bi};
258
- font-size: ${gi};
259
- font-weight: ${mi};
260
- letter-spacing: ${wi};
261
- line-height: ${$i};
262
- text-transform: ${Oi};
257
+ .ft-typography--subtitle2 {
258
+ font-family: ${di};
259
+ font-size: ${ui};
260
+ font-weight: ${vi};
261
+ letter-spacing: ${xi};
262
+ line-height: ${yi};
263
+ text-transform: ${bi};
263
264
  }
265
+
264
266
  `,te=x`
265
- .ft-typography--body2 {
266
- font-family: ${Si};
267
- font-size: ${ki};
268
- font-weight: ${Ni};
269
- letter-spacing: ${Ci};
270
- line-height: ${Ei};
271
- text-transform: ${zi};
267
+ .ft-typography--body1 {
268
+ font-family: ${gi};
269
+ font-size: ${mi};
270
+ font-weight: ${wi};
271
+ letter-spacing: ${$i};
272
+ line-height: ${Oi};
273
+ text-transform: ${Si};
272
274
  }
273
275
  `,ie=x`
274
- .ft-typography--caption {
275
- font-family: ${Ri};
276
- font-size: ${Mi};
277
- font-weight: ${Fi};
278
- letter-spacing: ${Ui};
279
- line-height: ${ji};
280
- text-transform: ${Bi};
276
+ .ft-typography--body2 {
277
+ font-family: ${ki};
278
+ font-size: ${Ni};
279
+ font-weight: ${Ci};
280
+ letter-spacing: ${Ei};
281
+ line-height: ${zi};
282
+ text-transform: ${Ri};
281
283
  }
282
284
  `,ee=x`
283
- .ft-typography--breadcrumb {
284
- font-family: ${Ti};
285
- font-size: ${Li};
286
- font-weight: ${Ai};
287
- letter-spacing: ${_i};
288
- line-height: ${Pi};
289
- text-transform: ${Di};
285
+ .ft-typography--caption {
286
+ font-family: ${Mi};
287
+ font-size: ${Fi};
288
+ font-weight: ${Ui};
289
+ letter-spacing: ${ji};
290
+ line-height: ${Bi};
291
+ text-transform: ${Ti};
290
292
  }
291
293
  `,oe=x`
292
- .ft-typography--overline {
293
- font-family: ${Ii};
294
- font-size: ${Wi};
295
- font-weight: ${Hi};
296
- letter-spacing: ${Ki};
297
- line-height: ${Zi};
298
- text-transform: ${Vi};
294
+ .ft-typography--breadcrumb {
295
+ font-family: ${Li};
296
+ font-size: ${Ai};
297
+ font-weight: ${_i};
298
+ letter-spacing: ${Pi};
299
+ line-height: ${Di};
300
+ text-transform: ${Ii};
299
301
  }
300
302
  `,se=x`
301
- .ft-typography--button {
302
- font-family: ${Ji.fontFamily};
303
- font-size: ${Ji.fontSize};
304
- font-weight: ${Ji.fontWeight};
305
- letter-spacing: ${Ji.letterSpacing};
306
- line-height: ${Ji.lineHeight};
307
- text-transform: ${Ji.textTransform};
303
+ .ft-typography--overline {
304
+ font-family: ${Wi};
305
+ font-size: ${Hi};
306
+ font-weight: ${Ki};
307
+ letter-spacing: ${Zi};
308
+ line-height: ${Vi};
309
+ text-transform: ${Ji};
308
310
  }
309
311
  `,ne=x`
312
+ .ft-typography--button {
313
+ font-family: ${qi.fontFamily};
314
+ font-size: ${qi.fontSize};
315
+ font-weight: ${qi.fontWeight};
316
+ letter-spacing: ${qi.letterSpacing};
317
+ line-height: ${qi.lineHeight};
318
+ text-transform: ${qi.textTransform};
319
+ }
320
+ `,re=x`
310
321
  .ft-typography {
311
322
  vertical-align: inherit;
312
323
  }
313
- `;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 le extends yt{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?Wt`
314
- <${Dt(this.element)}
324
+ `;var le=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ae extends yt{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Ht`
325
+ <${It(this.element)}
315
326
  class="ft-typography ft-typography--${this.variant}">
316
327
  <slot></slot>
317
- </${Dt(this.element)}>
318
- `:Wt`
328
+ </${It(this.element)}>
329
+ `:Ht`
319
330
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
320
- `}}le.styles=[qi,Xi,Yi,Gi,Qi,te,ie,ee,oe,se,ne],re([o()],le.prototype,"element",void 0),re([o()],le.prototype,"variant",void 0),h("ft-typography")(le);const ae=dt.create("--ft-tooltip-distance","SIZE","4px"),he=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ce=dt.create("--ft-tooltip-background-color","COLOR","#666666"),pe=dt.create("--ft-tooltip-z-index","NUMBER","1"),fe=dt.external(vt.borderRadiusS,"Design system"),de=dt.create("--ft-tooltip-max-width","SIZE","150px"),ue=x`
331
+ `}}ae.styles=[Xi,Yi,Gi,Qi,te,ie,ee,oe,se,ne,re],le([o()],ae.prototype,"element",void 0),le([o()],ae.prototype,"variant",void 0),h("ft-typography")(ae);const he=dt.create("--ft-tooltip-distance","SIZE","4px"),ce=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),pe=dt.create("--ft-tooltip-background-color","COLOR","#666666"),fe=dt.create("--ft-tooltip-z-index","NUMBER","1"),de=dt.external(vt.borderRadiusS,"Design system"),ue=dt.create("--ft-tooltip-max-width","SIZE","150px"),ve=x`
321
332
  .ft-tooltip--container {
322
333
  display: block;
323
334
  position: relative;
@@ -333,23 +344,23 @@ const _t=Symbol.for(""),Pt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void
333
344
  box-sizing: border-box;
334
345
  overflow: hidden;
335
346
  width: max-content;
336
- max-width: ${de};
347
+ max-width: ${ue};
337
348
  text-align: center;
338
- padding: ${ae};
339
- z-index: ${pe};
349
+ padding: ${he};
350
+ z-index: ${fe};
340
351
  }
341
352
 
342
353
  .ft-tooltip--content {
343
354
  padding: 4px 8px;
344
- border-radius: ${fe};
345
- background-color: ${ce};
346
- color: ${he};
355
+ border-radius: ${de};
356
+ background-color: ${pe};
357
+ color: ${ce};
347
358
  top: -500px;
348
359
  left: -500px;
349
360
  position: relative;
350
361
  word-break: break-word;
351
362
  }
352
- `;var ve=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class xe extends yt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
363
+ `;var xe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ye extends yt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
353
364
  <div part="container"
354
365
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
355
366
  @mouseenter=${this.onHover}
@@ -367,13 +378,13 @@ const _t=Symbol.for(""),Pt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void
367
378
  </div>
368
379
  </div>
369
380
  </div>
370
- `}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, ${de})`}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())}}xe.elementDefinitions={"ft-typography":le},xe.styles=ue,ve([o()],xe.prototype,"text",void 0),ve([o({type:Boolean})],xe.prototype,"manual",void 0),ve([o({type:Boolean})],xe.prototype,"inline",void 0),ve([o({type:Number})],xe.prototype,"delay",void 0),ve([o()],xe.prototype,"position",void 0),ve([
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, ${ue})`}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())}}ye.elementDefinitions={"ft-typography":ae},ye.styles=ve,xe([o()],ye.prototype,"text",void 0),xe([o({type:Boolean})],ye.prototype,"manual",void 0),xe([o({type:Boolean})],ye.prototype,"inline",void 0),xe([o({type:Number})],ye.prototype,"delay",void 0),xe([o()],ye.prototype,"position",void 0),xe([
371
382
  /**
372
383
  * @license
373
384
  * Copyright 2017 Google LLC
374
385
  * SPDX-License-Identifier: BSD-3-Clause
375
386
  */
376
- 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)],xe.prototype,"slotNodes",void 0),ve([r(".ft-tooltip--container")],xe.prototype,"container",void 0),ve([r("slot")],xe.prototype,"target",void 0),ve([r(".ft-tooltip")],xe.prototype,"tooltip",void 0),ve([r(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0),ve([s()],xe.prototype,"visible",void 0),h("ft-tooltip")(xe);const ye={color:dt.extend("--ft-loader-color",vt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")},be=x`
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)],ye.prototype,"slotNodes",void 0),xe([r(".ft-tooltip--container")],ye.prototype,"container",void 0),xe([r("slot")],ye.prototype,"target",void 0),xe([r(".ft-tooltip")],ye.prototype,"tooltip",void 0),xe([r(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0),xe([s()],ye.prototype,"visible",void 0),h("ft-tooltip")(ye);const be={color:dt.extend("--ft-loader-color",vt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")},ge=x`
377
388
  :host {
378
389
  line-height: 0;
379
390
  }
@@ -382,8 +393,8 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
382
393
  display: inline-block;
383
394
  position: relative;
384
395
 
385
- width: ${ye.size};
386
- height: ${ye.size};
396
+ width: ${be.size};
397
+ height: ${be.size};
387
398
  }
388
399
 
389
400
  .ft-loader div {
@@ -392,7 +403,7 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
392
403
  width: 25%;
393
404
  height: 25%;
394
405
  border-radius: 50%;
395
- background: ${ye.color};
406
+ background: ${be.color};
396
407
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
397
408
  }
398
409
 
@@ -439,23 +450,23 @@ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},
439
450
  transform: translate(0, 0);
440
451
  }
441
452
  100% {
442
- transform: translate(calc(0.35 * ${ye.size}), 0);
453
+ transform: translate(calc(0.35 * ${be.size}), 0);
443
454
  }
444
455
  }
445
- `;class ge extends yt{render(){return Z`
456
+ `;class me extends yt{render(){return Z`
446
457
  <div class="ft-loader">
447
458
  <div></div>
448
459
  <div></div>
449
460
  <div></div>
450
461
  <div></div>
451
462
  </div>
452
- `}}ge.styles=be,h("ft-loader")(ge);
463
+ `}}me.styles=ge,h("ft-loader")(me);
453
464
  /**
454
465
  * @license
455
466
  * Copyright 2017 Google LLC
456
467
  * SPDX-License-Identifier: BSD-3-Clause
457
468
  */
458
- class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)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:[]}}}me.directiveName="unsafeHTML",me.resultType=1;const we=kt(me);var $e,Oe;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}($e||($e={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Oe||(Oe={})),new Map([...["abw"].map((t=>[t,Oe.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,Oe.AUDIO])),...["avi"].map((t=>[t,Oe.AVI])),...["chm","xhs"].map((t=>[t,Oe.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,Oe.CODE])),...["csv"].map((t=>[t,Oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oe.DITA])),...["epub"].map((t=>[t,Oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oe.EXCEL])),...["flac"].map((t=>[t,Oe.FLAC])),...["gif"].map((t=>[t,Oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oe.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,Oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oe.JPEG])),...["json"].map((t=>[t,Oe.JSON])),...["m4a","m4p"].map((t=>[t,Oe.M4A])),...["mov","qt"].map((t=>[t,Oe.MOV])),...["mp3"].map((t=>[t,Oe.MP3])),...["mp4","m4v"].map((t=>[t,Oe.MP4])),...["ogg","oga"].map((t=>[t,Oe.OGG])),...["pdf","ps"].map((t=>[t,Oe.PDF])),...["png"].map((t=>[t,Oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oe.POWERPOINT])),...["rar"].map((t=>[t,Oe.RAR])),...["stp"].map((t=>[t,Oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oe.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,Oe.VIDEO])),...["wav"].map((t=>[t,Oe.WAV])),...["wma"].map((t=>[t,Oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oe.YAML])),...["zip"].map((t=>[t,Oe.ZIP]))]);const Se={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ke=x`
469
+ class we extends Ct{constructor(t){if(super(t),this.it=J,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)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:[]}}}we.directiveName="unsafeHTML",we.resultType=1;const $e=Nt(we);var Oe,Se;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(Oe||(Oe={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Se||(Se={})),new Map([...["abw"].map((t=>[t,Se.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Se.AUDIO])),...["avi"].map((t=>[t,Se.AVI])),...["chm","xhs"].map((t=>[t,Se.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Se.CODE])),...["csv"].map((t=>[t,Se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Se.DITA])),...["epub"].map((t=>[t,Se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Se.EXCEL])),...["flac"].map((t=>[t,Se.FLAC])),...["gif"].map((t=>[t,Se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Se.GZIP])),...["html","htm","xhtml"].map((t=>[t,Se.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Se.JPEG])),...["json"].map((t=>[t,Se.JSON])),...["m4a","m4p"].map((t=>[t,Se.M4A])),...["mov","qt"].map((t=>[t,Se.MOV])),...["mp3"].map((t=>[t,Se.MP3])),...["mp4","m4v"].map((t=>[t,Se.MP4])),...["ogg","oga"].map((t=>[t,Se.OGG])),...["pdf","ps"].map((t=>[t,Se.PDF])),...["png"].map((t=>[t,Se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Se.POWERPOINT])),...["rar"].map((t=>[t,Se.RAR])),...["stp"].map((t=>[t,Se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Se.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Se.VIDEO])),...["wav"].map((t=>[t,Se.WAV])),...["wma"].map((t=>[t,Se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Se.WORD])),...["xml","xsl","rdf"].map((t=>[t,Se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Se.YAML])),...["zip"].map((t=>[t,Se.ZIP]))]);const ke={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ne=x`
459
470
  :host, i.ft-icon {
460
471
  display: inline-flex;
461
472
  align-items: center;
@@ -464,14 +475,14 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
464
475
  }
465
476
 
466
477
  :host {
467
- width: ${Se.size};
468
- height: ${Se.size};
478
+ width: ${ke.size};
479
+ height: ${ke.size};
469
480
  }
470
481
 
471
482
  i.ft-icon {
472
483
  width: 100%;
473
484
  height: 100%;
474
- font-size: ${Se.size};
485
+ font-size: ${ke.size};
475
486
  line-height: 1;
476
487
  font-weight: normal;
477
488
  text-transform: none;
@@ -482,32 +493,32 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
482
493
  text-rendering: auto;
483
494
  -webkit-font-smoothing: antialiased;
484
495
  -moz-osx-font-smoothing: grayscale;
485
- vertical-align: ${Se.verticalAlign};
496
+ vertical-align: ${ke.verticalAlign};
486
497
  }
487
498
 
488
499
  i.ft-icon.ft-icon--fluid-topics {
489
- font-family: ${Se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
500
+ font-family: ${ke.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
490
501
 
491
502
  /* Ugly fix because font is broken */
492
- font-size: calc(0.9 * ${Se.size});
503
+ font-size: calc(0.9 * ${ke.size});
493
504
  position: relative;
494
505
  top: -5%;
495
506
  justify-content: center;
496
507
  }
497
508
 
498
509
  .ft-icon--file-format {
499
- font-family: ${Se.fileFormatFontFamily}, ft-mime, sans-serif;
510
+ font-family: ${ke.fileFormatFontFamily}, ft-mime, sans-serif;
500
511
  }
501
512
 
502
513
  .ft-icon--material {
503
- font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
514
+ font-family: ${ke.materialFontFamily}, "Material Icons", sans-serif;
504
515
  }
505
- `;var Ne;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ne||(Ne={}));var Ce=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 Ee extends yt{constructor(){super(...arguments),this.variant=Ne.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
516
+ `;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ee=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 yt{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
506
517
  <i class="ft-icon ${"ft-icon--"+this.variant}">
507
- ${we(this.resolvedIcon)}
518
+ ${$e(this.resolvedIcon)}
508
519
  <slot ?hidden=${t}></slot>
509
520
  </i>
510
- `}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 Ne.file_format:this.resolvedIcon=null!==(t=Oe[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ne.fluid_topics:this.resolvedIcon=null!==(i=$e[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ee.elementDefinitions={},Ee.styles=ke,Ce([o()],Ee.prototype,"variant",void 0),Ce([o()],Ee.prototype,"value",void 0),Ce([s()],Ee.prototype,"resolvedIcon",void 0),Ce([r("slot")],Ee.prototype,"slottedContent",void 0),h("ft-icon")(Ee);const ze=dt.extend("--ft-button-color",vt.colorPrimary),Re={backgroundColor:dt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",vt.borderRadiusL),color:ze,fontSize:dt.extend("--ft-button-font-size",Ji.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",ze),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Me=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",vt.colorOnPrimary)),Fe={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",vt.colorPrimary)),color:Me,rippleColor:dt.extend("--ft-button-primary-ripple-color",Me)},Ue=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",vt.borderRadiusM)),je=[bt,x`
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 Ce.file_format:this.resolvedIcon=null!==(t=Se[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ce.fluid_topics:this.resolvedIcon=null!==(i=Oe[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ze.elementDefinitions={},ze.styles=Ne,Ee([o()],ze.prototype,"variant",void 0),Ee([o()],ze.prototype,"value",void 0),Ee([s()],ze.prototype,"resolvedIcon",void 0),Ee([r("slot")],ze.prototype,"slottedContent",void 0),h("ft-icon")(ze);const Re=dt.extend("--ft-button-color",vt.colorPrimary),Me={backgroundColor:dt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Re,fontSize:dt.extend("--ft-button-font-size",qi.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",Re),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Fe=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",vt.colorOnPrimary)),Ue={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",vt.colorPrimary)),color:Fe,rippleColor:dt.extend("--ft-button-primary-ripple-color",Fe)},je=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",vt.borderRadiusM)),Be=[bt,x`
511
522
  :host {
512
523
  display: inline-block;
513
524
  max-width: 100%;
@@ -518,7 +529,7 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
518
529
  box-shadow: 0px 0px 0px transparent;
519
530
  border: 0px solid transparent;
520
531
  text-shadow: 0px 0px 0px transparent;
521
- font-size: ${Re.fontSize};
532
+ font-size: ${Me.fontSize};
522
533
  }
523
534
 
524
535
  button:hover {
@@ -547,17 +558,17 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
547
558
  border: none;
548
559
  pointer-events: auto;
549
560
 
550
- --ft-button-internal-line-height: calc(${Re.fontSize} + 2px);
551
- --ft-button-internal-color: ${Re.color};
552
- ${ut(Se.size,Re.iconSize)};
561
+ --ft-button-internal-line-height: calc(${Me.fontSize} + 2px);
562
+ --ft-button-internal-color: ${Me.color};
563
+ ${ut(ke.size,Me.iconSize)};
553
564
  --ft-button-internal-vertical-padding: 6px;
554
565
  --ft-button-internal-horizontal-padding: 8px;
555
- ${ut(zt.color,Re.rippleColor)};
556
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Re.iconSize});
566
+ ${ut(Rt.color,Me.rippleColor)};
567
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Me.iconSize});
557
568
 
558
- border-radius: ${Re.borderRadius};
569
+ border-radius: ${Me.borderRadius};
559
570
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
560
- background-color: ${Re.backgroundColor};
571
+ background-color: ${Me.backgroundColor};
561
572
  color: var(--ft-button-internal-color);
562
573
  -webkit-mask-image: radial-gradient(white, black);
563
574
  }
@@ -569,7 +580,7 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
569
580
  .ft-button--dense {
570
581
  --ft-button-internal-vertical-padding: 2px;
571
582
  --ft-button-internal-horizontal-padding: 4px;
572
- border-radius: ${Ue};
583
+ border-radius: ${je};
573
584
  }
574
585
 
575
586
  .ft-button--round {
@@ -578,13 +589,13 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
578
589
 
579
590
  .ft-button[disabled] {
580
591
  filter: grayscale(1);
581
- opacity: ${Re.opacityDisabled};
592
+ opacity: ${Me.opacityDisabled};
582
593
  }
583
594
 
584
595
  .ft-button.ft-button--primary {
585
- background-color: ${Fe.backgroundColor};
586
- --ft-button-internal-color: ${Fe.color};
587
- ${ut(zt.color,Fe.rippleColor)};
596
+ background-color: ${Ue.backgroundColor};
597
+ --ft-button-internal-color: ${Ue.color};
598
+ ${ut(Rt.color,Ue.rippleColor)};
588
599
  }
589
600
 
590
601
  .ft-button.ft-button--outlined {
@@ -603,20 +614,10 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
603
614
  text-overflow: ellipsis;
604
615
  display: block;
605
616
  margin: 0 var(--ft-button-internal-horizontal-padding);
606
- ${ut(Ji.fontSize,"1em")};
607
- ${ut(Ji.lineHeight,"var(--ft-button-internal-content-height)")};
617
+ ${ut(qi.fontSize,"1em")};
618
+ ${ut(qi.lineHeight,"var(--ft-button-internal-content-height)")};
608
619
  }
609
-
610
- .ft-button--safari-fix .ft-button--label {
611
- margin-right: 0;
612
- }
613
-
614
- .ft-button--safari-fix .ft-button--label:after {
615
- content: "\\0000a0";
616
- display: inline-block;
617
- width: 0;
618
- }
619
-
620
+
620
621
  .ft-button--label[hidden] {
621
622
  display: none;
622
623
  }
@@ -637,19 +638,19 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
637
638
  }
638
639
 
639
640
  ft-loader {
640
- ${ut(ye.size,Re.iconSize)};
641
- ${ut(ye.color,"var(--ft-button-internal-color)")};
641
+ ${ut(be.size,Me.iconSize)};
642
+ ${ut(be.color,"var(--ft-button-internal-color)")};
642
643
  }
643
- `];var Be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Te extends yt{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=Ne.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-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Z`
644
+ `];var Te=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 yt{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=Ce.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(Z`
644
645
  <button part="button"
645
- class="${Ct(t)}"
646
+ class="${Et(t)}"
646
647
  aria-label="${this.getLabel()}"
647
648
  ?disabled=${this.isDisabled()}>
648
649
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
649
650
  <ft-typography part="label"
650
651
  variant="button"
651
652
  element="span"
652
- class="ft-button--label"
653
+ class="ft-button--label ${Ot?"ft-safari-ellipsis-fix":""}"
653
654
  ?hidden=${!this.hasTextContent()}>
654
655
  <slot @slotchange=${this.onSlotchange}></slot>
655
656
  </ft-typography>
@@ -663,7 +664,7 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
663
664
  </ft-tooltip>
664
665
  `:t}resolveIcon(){return this.loading?Z`
665
666
  <ft-loader></ft-loader> `:this.icon?Z`
666
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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}}Te.elementDefinitions={"ft-ripple":At,"ft-tooltip":xe,"ft-typography":le,"ft-icon":Ee,"ft-loader":ge},Te.styles=je,Be([o({type:Boolean})],Te.prototype,"primary",void 0),Be([o({type:Boolean})],Te.prototype,"outlined",void 0),Be([o({type:Boolean})],Te.prototype,"disabled",void 0),Be([o({type:Boolean})],Te.prototype,"dense",void 0),Be([o({type:Boolean})],Te.prototype,"round",void 0),Be([o({type:String})],Te.prototype,"label",void 0),Be([o({type:String})],Te.prototype,"icon",void 0),Be([o({type:String})],Te.prototype,"iconVariant",void 0),Be([o({type:Boolean})],Te.prototype,"trailingIcon",void 0),Be([o({type:Boolean})],Te.prototype,"loading",void 0),Be([o({type:String})],Te.prototype,"tooltipPosition",void 0),Be([o({type:Boolean})],Te.prototype,"hideTooltip",void 0),Be([o({type:Boolean})],Te.prototype,"forceTooltip",void 0),Be([r(".ft-button")],Te.prototype,"button",void 0),Be([r(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),h("ft-button")(Te);const Le={buttonsColor:dt.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:dt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:dt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:dt.external(vt.colorSurface,"Design system")},Ae=x`
667
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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":_t,"ft-tooltip":ye,"ft-typography":ae,"ft-icon":ze,"ft-loader":me},Le.styles=[gt,Be],Te([o({type:Boolean})],Le.prototype,"primary",void 0),Te([o({type:Boolean})],Le.prototype,"outlined",void 0),Te([o({type:Boolean})],Le.prototype,"disabled",void 0),Te([o({type:Boolean})],Le.prototype,"dense",void 0),Te([o({type:Boolean})],Le.prototype,"round",void 0),Te([o({type:String})],Le.prototype,"label",void 0),Te([o({type:String})],Le.prototype,"icon",void 0),Te([o({type:String})],Le.prototype,"iconVariant",void 0),Te([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Te([o({type:Boolean})],Le.prototype,"loading",void 0),Te([o({type:String})],Le.prototype,"tooltipPosition",void 0),Te([o({type:Boolean})],Le.prototype,"hideTooltip",void 0),Te([o({type:Boolean})],Le.prototype,"forceTooltip",void 0),Te([r(".ft-button")],Le.prototype,"button",void 0),Te([r(".ft-button--label slot")],Le.prototype,"slottedContent",void 0),h("ft-button")(Le);const Ae={buttonsColor:dt.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:dt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:dt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:dt.external(vt.colorSurface,"Design system")},_e=x`
667
668
  .ft-snap-scroll {
668
669
  box-sizing: border-box;
669
670
  position: relative;
@@ -698,7 +699,7 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
698
699
  flex-wrap: nowrap;
699
700
  align-items: flex-start;
700
701
  justify-content: flex-start;
701
- gap: ${Le.gap};
702
+ gap: ${Ae.gap};
702
703
  }
703
704
 
704
705
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -741,11 +742,11 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
741
742
  .ft-snap-scroll--next {
742
743
  position: absolute;
743
744
  display: flex;
744
- z-index: ${Le.buttonsZIndex};
745
+ z-index: ${Ae.buttonsZIndex};
745
746
  opacity: 1;
746
747
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
747
- ${ut(Re.backgroundColor,"transparent")};
748
- ${ut(Re.color,Le.buttonsColor)};
748
+ ${ut(Me.backgroundColor,"transparent")};
749
+ ${ut(Me.color,Ae.buttonsColor)};
749
750
  }
750
751
 
751
752
  .ft-snap-scroll--previous[hidden],
@@ -758,37 +759,37 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
758
759
  top: 0;
759
760
  left: -1px;
760
761
  bottom: 0;
761
- background: linear-gradient(to right, ${Le.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
762
+ background: linear-gradient(to right, ${Ae.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
762
763
  }
763
764
 
764
765
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
765
766
  top: -1px;
766
767
  left: 0;
767
768
  right: 0;
768
- background: linear-gradient(to bottom, ${Le.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
769
+ background: linear-gradient(to bottom, ${Ae.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
769
770
  }
770
771
 
771
772
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
772
773
  top: 0;
773
774
  right: -1px;
774
775
  bottom: 0;
775
- background: linear-gradient(to left, ${Le.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
776
+ background: linear-gradient(to left, ${Ae.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
776
777
  }
777
778
 
778
779
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
779
780
  left: 0;
780
781
  right: 0;
781
782
  bottom: -1px;
782
- background: linear-gradient(to top, ${Le.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
783
+ background: linear-gradient(to top, ${Ae.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
783
784
  }
784
785
 
785
786
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
786
787
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
787
788
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
788
789
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
789
- background-color: ${Le.colorSurface};
790
+ background-color: ${Ae.colorSurface};
790
791
  }
791
- `;var _e=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 Pe extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class De extends yt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new 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=Ct({"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":$t}),i=this.controls&&this.withScroll;return Z`
792
+ `;var Pe=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 De extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Ie extends yt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new 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=Et({"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":Ot}),i=this.controls&&this.withScroll;return Z`
792
793
  <div part="container" class="${t}">
793
794
  <ft-button
794
795
  class="ft-snap-scroll--previous"
@@ -812,4 +813,4 @@ class me extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
812
813
  @click=${this.next}
813
814
  ></ft-button>
814
815
  </div>
815
- `}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 Pe(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)}}De.elementDefinitions={"ft-button":Te},De.styles=Ae,_e([o({type:Boolean})],De.prototype,"horizontal",void 0),_e([o({type:Boolean})],De.prototype,"hideScrollbar",void 0),_e([o({type:Boolean})],De.prototype,"controls",void 0),_e([o({type:Boolean})],De.prototype,"limitSize",void 0),_e([s()],De.prototype,"elements",void 0),_e([s()],De.prototype,"currentElement",void 0),_e([s()],De.prototype,"withScroll",void 0),_e([s()],De.prototype,"startReached",void 0),_e([s()],De.prototype,"endReached",void 0),_e([r(".ft-snap-scroll--content")],De.prototype,"contentSlot",void 0),h("ft-snap-scroll")(De),t.CurrentElementChange=Pe,t.FtSnapScroll=De,t.FtSnapScrollCssVariables=Le,t.styles=Ae,Object.defineProperty(t,"i",{value:!0})}({});
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 De(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)}}Ie.elementDefinitions={"ft-button":Le},Ie.styles=_e,Pe([o({type:Boolean})],Ie.prototype,"horizontal",void 0),Pe([o({type:Boolean})],Ie.prototype,"hideScrollbar",void 0),Pe([o({type:Boolean})],Ie.prototype,"controls",void 0),Pe([o({type:Boolean})],Ie.prototype,"limitSize",void 0),Pe([s()],Ie.prototype,"elements",void 0),Pe([s()],Ie.prototype,"currentElement",void 0),Pe([s()],Ie.prototype,"withScroll",void 0),Pe([s()],Ie.prototype,"startReached",void 0),Pe([s()],Ie.prototype,"endReached",void 0),Pe([r(".ft-snap-scroll--content")],Ie.prototype,"contentSlot",void 0),h("ft-snap-scroll")(Ie),t.CurrentElementChange=De,t.FtSnapScroll=Ie,t.FtSnapScrollCssVariables=Ae,t.styles=_e,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.53",
3
+ "version": "0.3.55",
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.53",
23
- "@fluid-topics/ft-wc-utils": "0.3.53",
22
+ "@fluid-topics/ft-button": "0.3.55",
23
+ "@fluid-topics/ft-wc-utils": "0.3.55",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "cf1f6c836c7bcacfd0a9abbd39a185077341036e"
26
+ "gitHead": "4106f01e238edeb1c85fba22d6d50a18757e0b3e"
27
27
  }