@fluid-topics/ft-reader-navigation-button 0.3.22 → 0.3.24

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.
@@ -546,7 +546,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
546
546
  </ft-tooltip>
547
547
  `:t}resolveIcon(){return this.loading?e.html`
548
548
  <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}}Xi.elementDefinitions={"ft-ripple":m,"ft-tooltip":Bi,"ft-typography":ki,"ft-icon":Di,"ft-loader":Fi},Xi.styles=Vi,qi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),qi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),qi([o.property({type:Boolean})],Xi.prototype,"round",void 0),qi([o.property({type:String})],Xi.prototype,"label",void 0),qi([o.property({type:String})],Xi.prototype,"icon",void 0),qi([o.property({type:String})],Xi.prototype,"iconVariant",void 0),qi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),qi([o.property({type:String})],Xi.prototype,"tooltipPosition",void 0),qi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([o.query(".ft-button")],Xi.prototype,"button",void 0),qi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ji extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Qi=function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ji)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return Yi([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux);var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends Qi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let i=n.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return 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}}Xi.elementDefinitions={"ft-ripple":m,"ft-tooltip":Bi,"ft-typography":ki,"ft-icon":Di,"ft-loader":Fi},Xi.styles=Vi,qi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),qi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),qi([o.property({type:Boolean})],Xi.prototype,"round",void 0),qi([o.property({type:String})],Xi.prototype,"label",void 0),qi([o.property({type:String})],Xi.prototype,"icon",void 0),qi([o.property({type:String})],Xi.prototype,"iconVariant",void 0),qi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),qi([o.property({type:String})],Xi.prototype,"tooltipPosition",void 0),qi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([o.query(".ft-button")],Xi.prototype,"button",void 0),qi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ji extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Qi extends(function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ji)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return Yi([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends Qi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let i=n.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
550
550
  <a class=${i}
551
551
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
552
552
  @click=${t=>this.onClick(t)}>
@@ -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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(ki){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Si){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -92,30 +92,30 @@ var pt,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
92
92
  -webkit-hyphens: auto;
93
93
  hyphens: auto
94
94
  }
95
- `;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:""),kt={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},St=b`
95
+ `;class mt extends xt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var wt,$t,Ot;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),St={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Nt=b`
96
96
  a:focus {
97
- outline-color: ${kt.outlineColor};
97
+ outline-color: ${St.outlineColor};
98
98
  }
99
99
 
100
100
  .ft-reader-link--remove-style {
101
101
  text-decoration: none;
102
102
  color: inherit;
103
103
  }
104
- `,Nt=b`
104
+ `,Ct=b`
105
105
  ft-reader-internal-link {
106
- ${vt(kt.outlineColor,"transparent")}
106
+ ${vt(St.outlineColor,"transparent")}
107
107
  }
108
108
  `
109
109
  /**
110
110
  * @license
111
111
  * Copyright 2017 Google LLC
112
112
  * SPDX-License-Identifier: BSD-3-Clause
113
- */,Ct=1,Et=2,Rt=t=>(...e)=>({_$litDirective$:t,values:e});class Mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
113
+ */,Et=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
114
114
  /**
115
115
  * @license
116
116
  * Copyright 2018 Google LLC
117
117
  * SPDX-License-Identifier: BSD-3-Clause
118
- */const jt=Rt(class extends Mt{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),zt=ut.extend("--ft-ripple-color",yt.colorContent),Ft={color:zt,backgroundColor:ut.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Ut=ut.extend("--ft-ripple-color",yt.colorPrimary),Bt=Ut,Tt=ut.extend("--ft-ripple-background-color",Ut),At=ut.extend("--ft-ripple-color",yt.colorSecondary),Lt=At,Pt=ut.extend("--ft-ripple-background-color",At),_t=b`
118
+ */const zt=Mt(class extends jt{constructor(t){var e;if(super(t),t.type!==Et||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Ft=ut.extend("--ft-ripple-color",yt.colorContent),Ut={color:Ft,backgroundColor:ut.extend("--ft-ripple-background-color",Ft),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Bt=ut.extend("--ft-ripple-color",yt.colorPrimary),Tt=Bt,At=ut.extend("--ft-ripple-background-color",Bt),Lt=ut.extend("--ft-ripple-color",yt.colorSecondary),Pt=Lt,_t=ut.extend("--ft-ripple-background-color",Lt),Dt=b`
119
119
  :host {
120
120
  display: contents;
121
121
  }
@@ -137,27 +137,27 @@ var pt,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
137
137
  }
138
138
 
139
139
  .ft-ripple .ft-ripple--background {
140
- background-color: ${Ft.backgroundColor};
140
+ background-color: ${Ut.backgroundColor};
141
141
  }
142
142
 
143
143
  .ft-ripple .ft-ripple--effect {
144
- background-color: ${Ft.color};
144
+ background-color: ${Ut.color};
145
145
  }
146
146
 
147
147
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
148
- background-color: ${Pt};
148
+ background-color: ${_t};
149
149
  }
150
150
 
151
151
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
152
- background-color: ${Lt};
152
+ background-color: ${Pt};
153
153
  }
154
154
 
155
155
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
156
- background-color: ${Tt};
156
+ background-color: ${At};
157
157
  }
158
158
 
159
159
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
160
- background-color: ${Bt};
160
+ background-color: ${Tt};
161
161
  }
162
162
 
163
163
  .ft-ripple .ft-ripple--background {
@@ -189,22 +189,22 @@ var pt,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
189
189
  }
190
190
 
191
191
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
192
- opacity: ${Ft.opacityContentOnSurfaceHover};
192
+ opacity: ${Ut.opacityContentOnSurfaceHover};
193
193
  }
194
194
 
195
195
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
196
- opacity: ${Ft.opacityContentOnSurfaceSelected};
196
+ opacity: ${Ut.opacityContentOnSurfaceSelected};
197
197
  }
198
198
 
199
199
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
200
- opacity: ${Ft.opacityContentOnSurfaceFocused};
200
+ opacity: ${Ut.opacityContentOnSurfaceFocused};
201
201
  }
202
202
 
203
203
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
204
- opacity: ${Ft.opacityContentOnSurfacePressed};
204
+ opacity: ${Ut.opacityContentOnSurfacePressed};
205
205
  transform: translate(-50%, -50%) scale(1);
206
206
  }
207
- `;var Dt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class It extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
207
+ `;var It=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wt extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
208
208
  <style>
209
209
  .ft-ripple .ft-ripple--effect,
210
210
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -217,119 +217,119 @@ var pt,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
217
217
  top: ${this.originY}px;
218
218
  }
219
219
  </style>
220
- <div class="${jt(t)}">
220
+ <div class="${zt(t)}">
221
221
  <div class="ft-ripple--background"></div>
222
222
  <div class="ft-ripple--effect"></div>
223
223
  </div>
224
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}It.elementDefinitions={},It.styles=_t,Dt([o({type:Boolean})],It.prototype,"primary",void 0),Dt([o({type:Boolean})],It.prototype,"secondary",void 0),Dt([o({type:Boolean})],It.prototype,"unbounded",void 0),Dt([o({type:Boolean})],It.prototype,"activated",void 0),Dt([o({type:Boolean})],It.prototype,"selected",void 0),Dt([o({type:Boolean})],It.prototype,"disabled",void 0),Dt([n()],It.prototype,"hovered",void 0),Dt([n()],It.prototype,"focused",void 0),Dt([n()],It.prototype,"pressed",void 0),Dt([n()],It.prototype,"rippling",void 0),Dt([n()],It.prototype,"rippleSize",void 0),Dt([n()],It.prototype,"originX",void 0),Dt([n()],It.prototype,"originY",void 0),Dt([s(".ft-ripple")],It.prototype,"ripple",void 0),Dt([s(".ft-ripple--effect")],It.prototype,"rippleEffect",void 0),h("ft-ripple")(It);
224
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Wt.elementDefinitions={},Wt.styles=Dt,It([o({type:Boolean})],Wt.prototype,"primary",void 0),It([o({type:Boolean})],Wt.prototype,"secondary",void 0),It([o({type:Boolean})],Wt.prototype,"unbounded",void 0),It([o({type:Boolean})],Wt.prototype,"activated",void 0),It([o({type:Boolean})],Wt.prototype,"selected",void 0),It([o({type:Boolean})],Wt.prototype,"disabled",void 0),It([n()],Wt.prototype,"hovered",void 0),It([n()],Wt.prototype,"focused",void 0),It([n()],Wt.prototype,"pressed",void 0),It([n()],Wt.prototype,"rippling",void 0),It([n()],Wt.prototype,"rippleSize",void 0),It([n()],Wt.prototype,"originX",void 0),It([n()],Wt.prototype,"originY",void 0),It([s(".ft-ripple")],Wt.prototype,"ripple",void 0),It([s(".ft-ripple--effect")],Wt.prototype,"rippleEffect",void 0),h("ft-ripple")(Wt);
225
225
  /**
226
226
  * @license
227
227
  * Copyright 2020 Google LLC
228
228
  * SPDX-License-Identifier: BSD-3-Clause
229
229
  */
230
- const Wt=Symbol.for(""),Ht=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void 0:t._$litStatic$},Kt=t=>({_$litStatic$:t,r:Wt}),Zt=new Map,Vt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Ht(r));)l+=n+e[++h],p=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),p){const t=s.join("$$lit$$");void 0===(e=Zt.get(t))&&(s.raw=s,Zt.set(t,e=s)),i=a}return t(e,...i)})(V);var Jt;!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"}(Jt||(Jt={}));const qt=ut.extend("--ft-typography-font-family",yt.titleFont),Xt=ut.extend("--ft-typography-font-family",yt.contentFont),Yt={fontFamily:Xt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gt=ut.extend("--ft-typography-title-font-family",qt),Qt=ut.extend("--ft-typography-title-font-size",Yt.fontSize,"20px"),te=ut.extend("--ft-typography-title-font-weight",Yt.fontWeight,"normal"),ee=ut.extend("--ft-typography-title-letter-spacing",Yt.letterSpacing,"0.15px"),ie=ut.extend("--ft-typography-title-line-height",Yt.lineHeight,"1.2"),oe=ut.extend("--ft-typography-title-text-transform",Yt.textTransform,"inherit"),ne=ut.extend("--ft-typography-title-dense-font-family",qt),re=ut.extend("--ft-typography-title-dense-font-size",Yt.fontSize,"14px"),se=ut.extend("--ft-typography-title-dense-font-weight",Yt.fontWeight,"normal"),ae=ut.extend("--ft-typography-title-dense-letter-spacing",Yt.letterSpacing,"0.105px"),le=ut.extend("--ft-typography-title-dense-line-height",Yt.lineHeight,"1.7"),he=ut.extend("--ft-typography-title-dense-text-transform",Yt.textTransform,"inherit"),pe=ut.extend("--ft-typography-subtitle1-font-family",Xt),ce=ut.extend("--ft-typography-subtitle1-font-size",Yt.fontSize,"16px"),fe=ut.extend("--ft-typography-subtitle1-font-weight",Yt.fontWeight,"600"),de=ut.extend("--ft-typography-subtitle1-letter-spacing",Yt.letterSpacing,"0.144px"),ue=ut.extend("--ft-typography-subtitle1-line-height",Yt.lineHeight,"1.5"),ve=ut.extend("--ft-typography-subtitle1-text-transform",Yt.textTransform,"inherit"),ye=ut.extend("--ft-typography-subtitle2-font-family",Xt),be=ut.extend("--ft-typography-subtitle2-font-size",Yt.fontSize,"14px"),xe=ut.extend("--ft-typography-subtitle2-font-weight",Yt.fontWeight,"normal"),ge=ut.extend("--ft-typography-subtitle2-letter-spacing",Yt.letterSpacing,"0.098px"),me=ut.extend("--ft-typography-subtitle2-line-height",Yt.lineHeight,"1.7"),we=ut.extend("--ft-typography-subtitle2-text-transform",Yt.textTransform,"inherit"),$e=ut.extend("--ft-typography-body1-font-family",Xt),Oe=ut.extend("--ft-typography-body1-font-size",Yt.fontSize,"16px"),ke=ut.extend("--ft-typography-body1-font-weight",Yt.fontWeight,"normal"),Se=ut.extend("--ft-typography-body1-letter-spacing",Yt.letterSpacing,"0.496px"),Ne=ut.extend("--ft-typography-body1-line-height",Yt.lineHeight,"1.5"),Ce=ut.extend("--ft-typography-body1-text-transform",Yt.textTransform,"inherit"),Ee=ut.extend("--ft-typography-body2-font-family",Xt),Re=ut.extend("--ft-typography-body2-font-size",Yt.fontSize,"14px"),Me=ut.extend("--ft-typography-body2-font-weight",Yt.fontWeight,"normal"),je=ut.extend("--ft-typography-body2-letter-spacing",Yt.letterSpacing,"0.252px"),ze=ut.extend("--ft-typography-body2-line-height",Yt.lineHeight,"1.4"),Fe=ut.extend("--ft-typography-body2-text-transform",Yt.textTransform,"inherit"),Ue=ut.extend("--ft-typography-caption-font-family",Xt),Be=ut.extend("--ft-typography-caption-font-size",Yt.fontSize,"12px"),Te=ut.extend("--ft-typography-caption-font-weight",Yt.fontWeight,"normal"),Ae=ut.extend("--ft-typography-caption-letter-spacing",Yt.letterSpacing,"0.396px"),Le=ut.extend("--ft-typography-caption-line-height",Yt.lineHeight,"1.33"),Pe=ut.extend("--ft-typography-caption-text-transform",Yt.textTransform,"inherit"),_e=ut.extend("--ft-typography-breadcrumb-font-family",Xt),De=ut.extend("--ft-typography-breadcrumb-font-size",Yt.fontSize,"10px"),Ie=ut.extend("--ft-typography-breadcrumb-font-weight",Yt.fontWeight,"normal"),We=ut.extend("--ft-typography-breadcrumb-letter-spacing",Yt.letterSpacing,"0.33px"),He=ut.extend("--ft-typography-breadcrumb-line-height",Yt.lineHeight,"1.6"),Ke=ut.extend("--ft-typography-breadcrumb-text-transform",Yt.textTransform,"inherit"),Ze=ut.extend("--ft-typography-overline-font-family",Xt),Ve=ut.extend("--ft-typography-overline-font-size",Yt.fontSize,"10px"),Je=ut.extend("--ft-typography-overline-font-weight",Yt.fontWeight,"normal"),qe=ut.extend("--ft-typography-overline-letter-spacing",Yt.letterSpacing,"1.5px"),Xe=ut.extend("--ft-typography-overline-line-height",Yt.lineHeight,"1.6"),Ye=ut.extend("--ft-typography-overline-text-transform",Yt.textTransform,"uppercase"),Ge={fontFamily:ut.extend("--ft-typography-button-font-family",Xt),fontSize:ut.extend("--ft-typography-button-font-size",Yt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Yt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Yt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Yt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Yt.textTransform,"uppercase")},Qe=b`
230
+ const Ht=Symbol.for(""),Kt=t=>{if((null==t?void 0:t.r)===Ht)return null==t?void 0:t._$litStatic$},Zt=t=>({_$litStatic$:t,r:Ht}),Vt=new Map,Jt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Kt(r));)l+=n+e[++h],p=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),p){const t=s.join("$$lit$$");void 0===(e=Vt.get(t))&&(s.raw=s,Vt.set(t,e=s)),i=a}return t(e,...i)})(V);var qt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(qt||(qt={}));const Xt=ut.extend("--ft-typography-font-family",yt.titleFont),Yt=ut.extend("--ft-typography-font-family",yt.contentFont),Gt={fontFamily:Yt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=ut.extend("--ft-typography-title-font-family",Xt),te=ut.extend("--ft-typography-title-font-size",Gt.fontSize,"20px"),ee=ut.extend("--ft-typography-title-font-weight",Gt.fontWeight,"normal"),ie=ut.extend("--ft-typography-title-letter-spacing",Gt.letterSpacing,"0.15px"),oe=ut.extend("--ft-typography-title-line-height",Gt.lineHeight,"1.2"),ne=ut.extend("--ft-typography-title-text-transform",Gt.textTransform,"inherit"),re=ut.extend("--ft-typography-title-dense-font-family",Xt),se=ut.extend("--ft-typography-title-dense-font-size",Gt.fontSize,"14px"),ae=ut.extend("--ft-typography-title-dense-font-weight",Gt.fontWeight,"normal"),le=ut.extend("--ft-typography-title-dense-letter-spacing",Gt.letterSpacing,"0.105px"),he=ut.extend("--ft-typography-title-dense-line-height",Gt.lineHeight,"1.7"),pe=ut.extend("--ft-typography-title-dense-text-transform",Gt.textTransform,"inherit"),ce=ut.extend("--ft-typography-subtitle1-font-family",Yt),fe=ut.extend("--ft-typography-subtitle1-font-size",Gt.fontSize,"16px"),de=ut.extend("--ft-typography-subtitle1-font-weight",Gt.fontWeight,"600"),ue=ut.extend("--ft-typography-subtitle1-letter-spacing",Gt.letterSpacing,"0.144px"),ve=ut.extend("--ft-typography-subtitle1-line-height",Gt.lineHeight,"1.5"),ye=ut.extend("--ft-typography-subtitle1-text-transform",Gt.textTransform,"inherit"),be=ut.extend("--ft-typography-subtitle2-font-family",Yt),xe=ut.extend("--ft-typography-subtitle2-font-size",Gt.fontSize,"14px"),ge=ut.extend("--ft-typography-subtitle2-font-weight",Gt.fontWeight,"normal"),me=ut.extend("--ft-typography-subtitle2-letter-spacing",Gt.letterSpacing,"0.098px"),we=ut.extend("--ft-typography-subtitle2-line-height",Gt.lineHeight,"1.7"),$e=ut.extend("--ft-typography-subtitle2-text-transform",Gt.textTransform,"inherit"),Oe=ut.extend("--ft-typography-body1-font-family",Yt),ke=ut.extend("--ft-typography-body1-font-size",Gt.fontSize,"16px"),Se=ut.extend("--ft-typography-body1-font-weight",Gt.fontWeight,"normal"),Ne=ut.extend("--ft-typography-body1-letter-spacing",Gt.letterSpacing,"0.496px"),Ce=ut.extend("--ft-typography-body1-line-height",Gt.lineHeight,"1.5"),Ee=ut.extend("--ft-typography-body1-text-transform",Gt.textTransform,"inherit"),Re=ut.extend("--ft-typography-body2-font-family",Yt),Me=ut.extend("--ft-typography-body2-font-size",Gt.fontSize,"14px"),je=ut.extend("--ft-typography-body2-font-weight",Gt.fontWeight,"normal"),ze=ut.extend("--ft-typography-body2-letter-spacing",Gt.letterSpacing,"0.252px"),Fe=ut.extend("--ft-typography-body2-line-height",Gt.lineHeight,"1.4"),Ue=ut.extend("--ft-typography-body2-text-transform",Gt.textTransform,"inherit"),Be=ut.extend("--ft-typography-caption-font-family",Yt),Te=ut.extend("--ft-typography-caption-font-size",Gt.fontSize,"12px"),Ae=ut.extend("--ft-typography-caption-font-weight",Gt.fontWeight,"normal"),Le=ut.extend("--ft-typography-caption-letter-spacing",Gt.letterSpacing,"0.396px"),Pe=ut.extend("--ft-typography-caption-line-height",Gt.lineHeight,"1.33"),_e=ut.extend("--ft-typography-caption-text-transform",Gt.textTransform,"inherit"),De=ut.extend("--ft-typography-breadcrumb-font-family",Yt),Ie=ut.extend("--ft-typography-breadcrumb-font-size",Gt.fontSize,"10px"),We=ut.extend("--ft-typography-breadcrumb-font-weight",Gt.fontWeight,"normal"),He=ut.extend("--ft-typography-breadcrumb-letter-spacing",Gt.letterSpacing,"0.33px"),Ke=ut.extend("--ft-typography-breadcrumb-line-height",Gt.lineHeight,"1.6"),Ze=ut.extend("--ft-typography-breadcrumb-text-transform",Gt.textTransform,"inherit"),Ve=ut.extend("--ft-typography-overline-font-family",Yt),Je=ut.extend("--ft-typography-overline-font-size",Gt.fontSize,"10px"),qe=ut.extend("--ft-typography-overline-font-weight",Gt.fontWeight,"normal"),Xe=ut.extend("--ft-typography-overline-letter-spacing",Gt.letterSpacing,"1.5px"),Ye=ut.extend("--ft-typography-overline-line-height",Gt.lineHeight,"1.6"),Ge=ut.extend("--ft-typography-overline-text-transform",Gt.textTransform,"uppercase"),Qe={fontFamily:ut.extend("--ft-typography-button-font-family",Yt),fontSize:ut.extend("--ft-typography-button-font-size",Gt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Gt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Gt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Gt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Gt.textTransform,"uppercase")},ti=b`
231
231
  .ft-typography--title {
232
- font-family: ${Gt};
233
- font-size: ${Qt};
234
- font-weight: ${te};
235
- letter-spacing: ${ee};
236
- line-height: ${ie};
237
- text-transform: ${oe};
238
- }
239
- `,ti=b`
240
- .ft-typography--title-dense {
241
- font-family: ${ne};
242
- font-size: ${re};
243
- font-weight: ${se};
244
- letter-spacing: ${ae};
245
- line-height: ${le};
246
- text-transform: ${he};
232
+ font-family: ${Qt};
233
+ font-size: ${te};
234
+ font-weight: ${ee};
235
+ letter-spacing: ${ie};
236
+ line-height: ${oe};
237
+ text-transform: ${ne};
247
238
  }
248
239
  `,ei=b`
249
- .ft-typography--subtitle1 {
250
- font-family: ${pe};
251
- font-size: ${ce};
252
- font-weight: ${fe};
253
- letter-spacing: ${de};
254
- line-height: ${ue};
255
- text-transform: ${ve};
240
+ .ft-typography--title-dense {
241
+ font-family: ${re};
242
+ font-size: ${se};
243
+ font-weight: ${ae};
244
+ letter-spacing: ${le};
245
+ line-height: ${he};
246
+ text-transform: ${pe};
256
247
  }
257
248
  `,ii=b`
258
- .ft-typography--subtitle2 {
259
- font-family: ${ye};
260
- font-size: ${be};
261
- font-weight: ${xe};
262
- letter-spacing: ${ge};
263
- line-height: ${me};
264
- text-transform: ${we};
249
+ .ft-typography--subtitle1 {
250
+ font-family: ${ce};
251
+ font-size: ${fe};
252
+ font-weight: ${de};
253
+ letter-spacing: ${ue};
254
+ line-height: ${ve};
255
+ text-transform: ${ye};
265
256
  }
266
-
267
257
  `,oi=b`
268
- .ft-typography--body1 {
269
- font-family: ${$e};
270
- font-size: ${Oe};
271
- font-weight: ${ke};
272
- letter-spacing: ${Se};
273
- line-height: ${Ne};
274
- text-transform: ${Ce};
258
+ .ft-typography--subtitle2 {
259
+ font-family: ${be};
260
+ font-size: ${xe};
261
+ font-weight: ${ge};
262
+ letter-spacing: ${me};
263
+ line-height: ${we};
264
+ text-transform: ${$e};
275
265
  }
266
+
276
267
  `,ni=b`
277
- .ft-typography--body2 {
278
- font-family: ${Ee};
279
- font-size: ${Re};
280
- font-weight: ${Me};
281
- letter-spacing: ${je};
282
- line-height: ${ze};
283
- text-transform: ${Fe};
268
+ .ft-typography--body1 {
269
+ font-family: ${Oe};
270
+ font-size: ${ke};
271
+ font-weight: ${Se};
272
+ letter-spacing: ${Ne};
273
+ line-height: ${Ce};
274
+ text-transform: ${Ee};
284
275
  }
285
276
  `,ri=b`
286
- .ft-typography--caption {
287
- font-family: ${Ue};
288
- font-size: ${Be};
289
- font-weight: ${Te};
290
- letter-spacing: ${Ae};
291
- line-height: ${Le};
292
- text-transform: ${Pe};
277
+ .ft-typography--body2 {
278
+ font-family: ${Re};
279
+ font-size: ${Me};
280
+ font-weight: ${je};
281
+ letter-spacing: ${ze};
282
+ line-height: ${Fe};
283
+ text-transform: ${Ue};
293
284
  }
294
285
  `,si=b`
295
- .ft-typography--breadcrumb {
296
- font-family: ${_e};
297
- font-size: ${De};
298
- font-weight: ${Ie};
299
- letter-spacing: ${We};
300
- line-height: ${He};
301
- text-transform: ${Ke};
286
+ .ft-typography--caption {
287
+ font-family: ${Be};
288
+ font-size: ${Te};
289
+ font-weight: ${Ae};
290
+ letter-spacing: ${Le};
291
+ line-height: ${Pe};
292
+ text-transform: ${_e};
302
293
  }
303
294
  `,ai=b`
304
- .ft-typography--overline {
305
- font-family: ${Ze};
306
- font-size: ${Ve};
307
- font-weight: ${Je};
308
- letter-spacing: ${qe};
309
- line-height: ${Xe};
310
- text-transform: ${Ye};
295
+ .ft-typography--breadcrumb {
296
+ font-family: ${De};
297
+ font-size: ${Ie};
298
+ font-weight: ${We};
299
+ letter-spacing: ${He};
300
+ line-height: ${Ke};
301
+ text-transform: ${Ze};
311
302
  }
312
303
  `,li=b`
313
- .ft-typography--button {
314
- font-family: ${Ge.fontFamily};
315
- font-size: ${Ge.fontSize};
316
- font-weight: ${Ge.fontWeight};
317
- letter-spacing: ${Ge.letterSpacing};
318
- line-height: ${Ge.lineHeight};
319
- text-transform: ${Ge.textTransform};
304
+ .ft-typography--overline {
305
+ font-family: ${Ve};
306
+ font-size: ${Je};
307
+ font-weight: ${qe};
308
+ letter-spacing: ${Xe};
309
+ line-height: ${Ye};
310
+ text-transform: ${Ge};
320
311
  }
321
312
  `,hi=b`
313
+ .ft-typography--button {
314
+ font-family: ${Qe.fontFamily};
315
+ font-size: ${Qe.fontSize};
316
+ font-weight: ${Qe.fontWeight};
317
+ letter-spacing: ${Qe.letterSpacing};
318
+ line-height: ${Qe.lineHeight};
319
+ text-transform: ${Qe.textTransform};
320
+ }
321
+ `,pi=b`
322
322
  .ft-typography {
323
323
  vertical-align: inherit;
324
324
  }
325
- `;var pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ci extends xt{constructor(){super(...arguments),this.variant=Jt.body1}render(){return this.element?Vt`
326
- <${Kt(this.element)}
325
+ `;var ci=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fi extends xt{constructor(){super(...arguments),this.variant=qt.body1}render(){return this.element?Jt`
326
+ <${Zt(this.element)}
327
327
  class="ft-typography ft-typography--${this.variant}">
328
328
  <slot></slot>
329
- </${Kt(this.element)}>
330
- `:Vt`
329
+ </${Zt(this.element)}>
330
+ `:Jt`
331
331
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
332
- `}}ci.styles=[Qe,ti,ei,ii,oi,ni,ri,si,ai,li,hi],pi([o()],ci.prototype,"element",void 0),pi([o()],ci.prototype,"variant",void 0),h("ft-typography")(ci);const fi=ut.create("--ft-tooltip-distance","SIZE","4px"),di=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),ui=ut.create("--ft-tooltip-background-color","COLOR","#666666"),vi=ut.create("--ft-tooltip-z-index","NUMBER","1"),yi=ut.external(yt.borderRadiusS,"Design system"),bi=ut.create("--ft-tooltip-max-width","SIZE","150px"),xi=b`
332
+ `}}fi.styles=[ti,ei,ii,oi,ni,ri,si,ai,li,hi,pi],ci([o()],fi.prototype,"element",void 0),ci([o()],fi.prototype,"variant",void 0),h("ft-typography")(fi);const di=ut.create("--ft-tooltip-distance","SIZE","4px"),ui=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),vi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),yi=ut.create("--ft-tooltip-z-index","NUMBER","1"),bi=ut.external(yt.borderRadiusS,"Design system"),xi=ut.create("--ft-tooltip-max-width","SIZE","150px"),gi=b`
333
333
  .ft-tooltip--container {
334
334
  display: block;
335
335
  position: relative;
@@ -345,23 +345,23 @@ const Wt=Symbol.for(""),Ht=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void
345
345
  box-sizing: border-box;
346
346
  overflow: hidden;
347
347
  width: max-content;
348
- max-width: ${bi};
348
+ max-width: ${xi};
349
349
  text-align: center;
350
- padding: ${fi};
351
- z-index: ${vi};
350
+ padding: ${di};
351
+ z-index: ${yi};
352
352
  }
353
353
 
354
354
  .ft-tooltip--content {
355
355
  padding: 4px 8px;
356
- border-radius: ${yi};
357
- background-color: ${ui};
358
- color: ${di};
356
+ border-radius: ${bi};
357
+ background-color: ${vi};
358
+ color: ${ui};
359
359
  top: -500px;
360
360
  left: -500px;
361
361
  position: relative;
362
362
  word-break: break-word;
363
363
  }
364
- `;var gi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mi extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return V`
364
+ `;var mi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wi extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return V`
365
365
  <div part="container"
366
366
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
367
367
  @mouseenter=${this.onHover}
@@ -377,13 +377,13 @@ const Wt=Symbol.for(""),Ht=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void
377
377
  </div>
378
378
  <slot></slot>
379
379
  </div>
380
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${bi})`}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())}}mi.elementDefinitions={"ft-typography":ci},mi.styles=xi,gi([o()],mi.prototype,"text",void 0),gi([o({type:Boolean})],mi.prototype,"manual",void 0),gi([o({type:Boolean})],mi.prototype,"inline",void 0),gi([o({type:Number})],mi.prototype,"delay",void 0),gi([o()],mi.prototype,"position",void 0),gi([
380
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${xi})`}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())}}wi.elementDefinitions={"ft-typography":fi},wi.styles=gi,mi([o()],wi.prototype,"text",void 0),mi([o({type:Boolean})],wi.prototype,"manual",void 0),mi([o({type:Boolean})],wi.prototype,"inline",void 0),mi([o({type:Number})],wi.prototype,"delay",void 0),mi([o()],wi.prototype,"position",void 0),mi([
381
381
  /**
382
382
  * @license
383
383
  * Copyright 2017 Google LLC
384
384
  * SPDX-License-Identifier: BSD-3-Clause
385
385
  */
386
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],mi.prototype,"slotNodes",void 0),gi([s(".ft-tooltip--container")],mi.prototype,"container",void 0),gi([s("slot")],mi.prototype,"target",void 0),gi([s(".ft-tooltip")],mi.prototype,"tooltip",void 0),gi([s(".ft-tooltip--content")],mi.prototype,"tooltipContent",void 0),gi([n()],mi.prototype,"visible",void 0),h("ft-tooltip")(mi);const wi={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},$i=b`
386
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],wi.prototype,"slotNodes",void 0),mi([s(".ft-tooltip--container")],wi.prototype,"container",void 0),mi([s("slot")],wi.prototype,"target",void 0),mi([s(".ft-tooltip")],wi.prototype,"tooltip",void 0),mi([s(".ft-tooltip--content")],wi.prototype,"tooltipContent",void 0),mi([n()],wi.prototype,"visible",void 0),h("ft-tooltip")(wi);const $i={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},Oi=b`
387
387
  :host {
388
388
  line-height: 0;
389
389
  }
@@ -392,8 +392,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
392
392
  display: inline-block;
393
393
  position: relative;
394
394
 
395
- width: ${wi.size};
396
- height: ${wi.size};
395
+ width: ${$i.size};
396
+ height: ${$i.size};
397
397
  }
398
398
 
399
399
  .ft-loader div {
@@ -402,7 +402,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
402
402
  width: 25%;
403
403
  height: 25%;
404
404
  border-radius: 50%;
405
- background: ${wi.color};
405
+ background: ${$i.color};
406
406
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
407
407
  }
408
408
 
@@ -449,35 +449,35 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
449
449
  transform: translate(0, 0);
450
450
  }
451
451
  100% {
452
- transform: translate(calc(0.35 * ${wi.size}), 0);
452
+ transform: translate(calc(0.35 * ${$i.size}), 0);
453
453
  }
454
454
  }
455
- `;class Oi extends xt{render(){return V`
455
+ `;class ki extends xt{render(){return V`
456
456
  <div class="ft-loader">
457
457
  <div></div>
458
458
  <div></div>
459
459
  <div></div>
460
460
  <div></div>
461
461
  </div>
462
- `}}Oi.styles=$i,h("ft-loader")(Oi);
462
+ `}}ki.styles=Oi,h("ft-loader")(ki);
463
463
  /**
464
464
  * @license
465
465
  * Copyright 2017 Google LLC
466
466
  * SPDX-License-Identifier: BSD-3-Clause
467
467
  */
468
- class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ki.directiveName="unsafeHTML",ki.resultType=1;const Si=Rt(ki);var Ni,Ci;!function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ni||(Ni={})),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;"}(Ci||(Ci={})),new Map([...["abw"].map((t=>[t,Ci.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,Ci.AUDIO])),...["avi"].map((t=>[t,Ci.AVI])),...["chm","xhs"].map((t=>[t,Ci.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,Ci.CODE])),...["csv"].map((t=>[t,Ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ci.DITA])),...["epub"].map((t=>[t,Ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ci.EXCEL])),...["flac"].map((t=>[t,Ci.FLAC])),...["gif"].map((t=>[t,Ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ci.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,Ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ci.JPEG])),...["json"].map((t=>[t,Ci.JSON])),...["m4a","m4p"].map((t=>[t,Ci.M4A])),...["mov","qt"].map((t=>[t,Ci.MOV])),...["mp3"].map((t=>[t,Ci.MP3])),...["mp4","m4v"].map((t=>[t,Ci.MP4])),...["ogg","oga"].map((t=>[t,Ci.OGG])),...["pdf","ps"].map((t=>[t,Ci.PDF])),...["png"].map((t=>[t,Ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ci.POWERPOINT])),...["rar"].map((t=>[t,Ci.RAR])),...["stp"].map((t=>[t,Ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ci.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,Ci.VIDEO])),...["wav"].map((t=>[t,Ci.WAV])),...["wma"].map((t=>[t,Ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ci.YAML])),...["zip"].map((t=>[t,Ci.ZIP]))]);const Ei={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ri=b`
468
+ class Si extends jt{constructor(t){if(super(t),this.it=q,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const Ni=Mt(Si);var Ci,Ei;!function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ci||(Ci={})),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;"}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ri={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Mi=b`
469
469
  :host {
470
470
  display: inline-block;
471
471
  }
472
472
 
473
473
  :host, i.ft-icon {
474
- width: ${Ei.size};
475
- height: ${Ei.size};
474
+ width: ${Ri.size};
475
+ height: ${Ri.size};
476
476
  text-align: center;
477
477
  }
478
478
 
479
479
  i.ft-icon {
480
- font-size: ${Ei.size};
480
+ font-size: ${Ri.size};
481
481
  line-height: 1;
482
482
  font-weight: normal;
483
483
  text-transform: none;
@@ -488,26 +488,26 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
488
488
  text-rendering: auto;
489
489
  -webkit-font-smoothing: antialiased;
490
490
  -moz-osx-font-smoothing: grayscale;
491
- vertical-align: ${Ei.verticalAlign};
491
+ vertical-align: ${Ri.verticalAlign};
492
492
  }
493
493
 
494
494
  .ft-icon--fluid-topics {
495
- font-family: ${Ei.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
495
+ font-family: ${Ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
496
496
  }
497
497
 
498
498
  .ft-icon--file-format {
499
- font-family: ${Ei.fileFormatFontFamily}, ft-mime, sans-serif;
499
+ font-family: ${Ri.fileFormatFontFamily}, ft-mime, sans-serif;
500
500
  }
501
501
 
502
502
  .ft-icon--material {
503
- font-family: ${Ei.materialFontFamily}, "Material Icons", sans-serif;
503
+ font-family: ${Ri.materialFontFamily}, "Material Icons", sans-serif;
504
504
  }
505
- `;var Mi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Mi||(Mi={}));var ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends xt{constructor(){super(...arguments),this.variant=Mi.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
505
+ `;var ji;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ji||(ji={}));var zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Fi extends xt{constructor(){super(...arguments),this.variant=ji.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
506
506
  <i class="ft-icon ${"ft-icon--"+this.variant}">
507
- ${Si(this.resolvedIcon)}
507
+ ${Ni(this.resolvedIcon)}
508
508
  <slot ?hidden=${t}></slot>
509
509
  </i>
510
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Mi.file_format:this.resolvedIcon=null!==(t=Ci[i.toUpperCase()])&&void 0!==t?t:i;break;case Mi.fluid_topics:this.resolvedIcon=null!==(e=Ni[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}zi.elementDefinitions={},zi.styles=Ri,ji([o()],zi.prototype,"variant",void 0),ji([o()],zi.prototype,"value",void 0),ji([n()],zi.prototype,"resolvedIcon",void 0),ji([s("slot")],zi.prototype,"slottedContent",void 0),h("ft-icon")(zi);const Fi=ut.extend("--ft-button-color",yt.colorPrimary),Ui={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Fi,fontSize:ut.extend("--ft-button-font-size",Ge.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Fi),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Bi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Ti={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Bi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Bi)},Ai=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Li=[gt,b`
510
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case ji.file_format:this.resolvedIcon=null!==(t=Ei[i.toUpperCase()])&&void 0!==t?t:i;break;case ji.fluid_topics:this.resolvedIcon=null!==(e=Ci[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Fi.elementDefinitions={},Fi.styles=Mi,zi([o()],Fi.prototype,"variant",void 0),zi([o()],Fi.prototype,"value",void 0),zi([n()],Fi.prototype,"resolvedIcon",void 0),zi([s("slot")],Fi.prototype,"slottedContent",void 0),h("ft-icon")(Fi);const Ui=ut.extend("--ft-button-color",yt.colorPrimary),Bi={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ui,fontSize:ut.extend("--ft-button-font-size",Qe.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ui),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Ti=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Ai={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Ti,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ti)},Li=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Pi=[gt,b`
511
511
  :host {
512
512
  display: inline-block;
513
513
  max-width: 100%;
@@ -518,7 +518,7 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
518
518
  box-shadow: 0px 0px 0px transparent;
519
519
  border: 0px solid transparent;
520
520
  text-shadow: 0px 0px 0px transparent;
521
- font-size: ${Ui.fontSize};
521
+ font-size: ${Bi.fontSize};
522
522
  }
523
523
 
524
524
  button:hover {
@@ -547,17 +547,17 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
547
547
  border: none;
548
548
  pointer-events: auto;
549
549
 
550
- --ft-button-internal-line-height: calc(${Ui.fontSize} + 2px);
551
- --ft-button-internal-color: ${Ui.color};
552
- ${vt(Ei.size,Ui.iconSize)};
550
+ --ft-button-internal-line-height: calc(${Bi.fontSize} + 2px);
551
+ --ft-button-internal-color: ${Bi.color};
552
+ ${vt(Ri.size,Bi.iconSize)};
553
553
  --ft-button-internal-vertical-padding: 6px;
554
554
  --ft-button-internal-horizontal-padding: 8px;
555
- ${vt(Ft.color,Ui.rippleColor)};
556
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ui.iconSize});
555
+ ${vt(Ut.color,Bi.rippleColor)};
556
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Bi.iconSize});
557
557
 
558
- border-radius: ${Ui.borderRadius};
558
+ border-radius: ${Bi.borderRadius};
559
559
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
560
- background-color: ${Ui.backgroundColor};
560
+ background-color: ${Bi.backgroundColor};
561
561
  color: var(--ft-button-internal-color);
562
562
  -webkit-mask-image: radial-gradient(white, black);
563
563
  }
@@ -569,7 +569,7 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
569
569
  .ft-button--dense {
570
570
  --ft-button-internal-vertical-padding: 2px;
571
571
  --ft-button-internal-horizontal-padding: 4px;
572
- border-radius: ${Ai};
572
+ border-radius: ${Li};
573
573
  }
574
574
 
575
575
  .ft-button--round {
@@ -578,13 +578,13 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
578
578
 
579
579
  .ft-button[disabled] {
580
580
  filter: grayscale(1);
581
- opacity: ${Ui.opacityDisabled};
581
+ opacity: ${Bi.opacityDisabled};
582
582
  }
583
583
 
584
584
  .ft-button.ft-button--primary {
585
- background-color: ${Ti.backgroundColor};
586
- --ft-button-internal-color: ${Ti.color};
587
- ${vt(Ft.color,Ti.rippleColor)};
585
+ background-color: ${Ai.backgroundColor};
586
+ --ft-button-internal-color: ${Ai.color};
587
+ ${vt(Ut.color,Ai.rippleColor)};
588
588
  }
589
589
 
590
590
  .ft-button.ft-button--outlined {
@@ -603,8 +603,8 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
603
603
  text-overflow: ellipsis;
604
604
  display: block;
605
605
  margin: 0 var(--ft-button-internal-horizontal-padding);
606
- ${vt(Ge.fontSize,"1em")};
607
- ${vt(Ge.lineHeight,"var(--ft-button-internal-content-height)")};
606
+ ${vt(Qe.fontSize,"1em")};
607
+ ${vt(Qe.lineHeight,"var(--ft-button-internal-content-height)")};
608
608
  }
609
609
 
610
610
  .ft-button--safari-fix .ft-button--label {
@@ -637,12 +637,12 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
637
637
  }
638
638
 
639
639
  ft-loader {
640
- ${vt(wi.size,Ui.iconSize)};
641
- ${vt(wi.color,"var(--ft-button-internal-color)")};
640
+ ${vt($i.size,Bi.iconSize)};
641
+ ${vt($i.color,"var(--ft-button-internal-color)")};
642
642
  }
643
- `];var Pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _i extends xt{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":Ot,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
643
+ `];var _i=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Di extends xt{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=ji.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":kt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
644
644
  <button part="button"
645
- class="${jt(t)}"
645
+ class="${zt(t)}"
646
646
  aria-label="${this.getLabel()}"
647
647
  ?disabled=${this.isDisabled()}>
648
648
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -662,13 +662,13 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
662
662
  </ft-tooltip>
663
663
  `:t}resolveIcon(){return this.loading?V`
664
664
  <ft-loader></ft-loader> `:this.icon?V`
665
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}_i.elementDefinitions={"ft-ripple":It,"ft-tooltip":mi,"ft-typography":ci,"ft-icon":zi,"ft-loader":Oi},_i.styles=Li,Pi([o({type:Boolean})],_i.prototype,"primary",void 0),Pi([o({type:Boolean})],_i.prototype,"outlined",void 0),Pi([o({type:Boolean})],_i.prototype,"disabled",void 0),Pi([o({type:Boolean})],_i.prototype,"dense",void 0),Pi([o({type:Boolean})],_i.prototype,"round",void 0),Pi([o({type:String})],_i.prototype,"label",void 0),Pi([o({type:String})],_i.prototype,"icon",void 0),Pi([o({type:String})],_i.prototype,"iconVariant",void 0),Pi([o({type:Boolean})],_i.prototype,"trailingIcon",void 0),Pi([o({type:Boolean})],_i.prototype,"loading",void 0),Pi([o({type:String})],_i.prototype,"tooltipPosition",void 0),Pi([o({type:Boolean})],_i.prototype,"hideTooltip",void 0),Pi([o({type:Boolean})],_i.prototype,"forceTooltip",void 0),Pi([s(".ft-button")],_i.prototype,"button",void 0),Pi([s(".ft-button--label slot")],_i.prototype,"slottedContent",void 0),h("ft-button")(_i);var Di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ii extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Wi=function(t){class e extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ii)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return Di([n()],e.prototype,"stateManager",void 0),e}(class extends xt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}});var Hi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ki extends Wi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=jt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
665
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Di.elementDefinitions={"ft-ripple":Wt,"ft-tooltip":wi,"ft-typography":fi,"ft-icon":Fi,"ft-loader":ki},Di.styles=Pi,_i([o({type:Boolean})],Di.prototype,"primary",void 0),_i([o({type:Boolean})],Di.prototype,"outlined",void 0),_i([o({type:Boolean})],Di.prototype,"disabled",void 0),_i([o({type:Boolean})],Di.prototype,"dense",void 0),_i([o({type:Boolean})],Di.prototype,"round",void 0),_i([o({type:String})],Di.prototype,"label",void 0),_i([o({type:String})],Di.prototype,"icon",void 0),_i([o({type:String})],Di.prototype,"iconVariant",void 0),_i([o({type:Boolean})],Di.prototype,"trailingIcon",void 0),_i([o({type:Boolean})],Di.prototype,"loading",void 0),_i([o({type:String})],Di.prototype,"tooltipPosition",void 0),_i([o({type:Boolean})],Di.prototype,"hideTooltip",void 0),_i([o({type:Boolean})],Di.prototype,"forceTooltip",void 0),_i([s(".ft-button")],Di.prototype,"button",void 0),_i([s(".ft-button--label slot")],Di.prototype,"slottedContent",void 0),h("ft-button")(Di);var Ii=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Hi extends(function(t){class e extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Wi)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return Ii([n()],e.prototype,"stateManager",void 0),e}(mt)){}var Ki=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zi extends Hi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=zt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
666
666
  <a class=${e}
667
667
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
668
668
  @click=${t=>this.onClick(t)}>
669
669
  <slot></slot>
670
670
  </a>
671
- `}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)))}}Ki.styles=St,Hi([o()],Ki.prototype,"tocId",void 0),Hi([o()],Ki.prototype,"section",void 0),Hi([o({type:Number})],Ki.prototype,"pageNumber",void 0),Hi([o({type:Boolean})],Ki.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Ki);var Zi,Vi,Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qi extends Wi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Mi.fluid_topics,this.trailingIcon=!1,this.editorMode=!1}get isReady(){return null!=this.currentPage}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Ni.THIN_ARROW_RIGHT:Ni.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
671
+ `}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)))}}Zi.styles=Nt,Ki([o()],Zi.prototype,"tocId",void 0),Ki([o()],Zi.prototype,"section",void 0),Ki([o({type:Number})],Zi.prototype,"pageNumber",void 0),Ki([o({type:Boolean})],Zi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Zi);var Vi,Ji,qi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xi extends Hi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=ji.fluid_topics,this.trailingIcon=!1,this.editorMode=!1}get isReady(){return null!=this.currentPage}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Ci.THIN_ARROW_RIGHT:Ci.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
672
672
  <ft-button ?forceTooltip=${!this.hideTooltip}
673
673
  ?hideTooltip=${this.hideTooltip}
674
674
  ?trailingIcon=${this.trailingIcon}
@@ -682,4 +682,4 @@ class ki extends Mt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
682
682
  <ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
683
683
  ${r}
684
684
  </ft-reader-internal-link>
685
- `}update(t){super.update(t),t.has("currentPage")&&this.updateTarget()}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0}}qi.elementDefinitions={"ft-button":_i,"ft-reader-internal-link":Ki},qi.styles=Nt,Ji([o()],qi.prototype,"target",void 0),Ji([o()],qi.prototype,"content",void 0),Ji([o()],qi.prototype,"tooltipPosition",void 0),Ji([o({type:Boolean})],qi.prototype,"hideTooltip",void 0),Ji([o()],qi.prototype,"iconVariant",void 0),Ji([o()],qi.prototype,"icon",void 0),Ji([o({type:Boolean})],qi.prototype,"trailingIcon",void 0),Ji([o({type:Boolean,attribute:!1})],qi.prototype,"editorMode",void 0),Ji([(t,e)=>{t.constructor.createProperty(e,{attribute:!1,hasChanged:null!=Vi?Vi:(t,e)=>!p(t,e)});const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,null!=Zi?Zi:t=>t[e])}],qi.prototype,"currentPage",void 0),Ji([n()],qi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(qi),t.FtReaderNavigationButton=qi,t.FtReaderNavigationButtonCssVariables={},t.styles=Nt,Object.defineProperty(t,"i",{value:!0})}({});
685
+ `}update(t){super.update(t),t.has("currentPage")&&this.updateTarget()}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0}}Xi.elementDefinitions={"ft-button":Di,"ft-reader-internal-link":Zi},Xi.styles=Ct,qi([o()],Xi.prototype,"target",void 0),qi([o()],Xi.prototype,"content",void 0),qi([o()],Xi.prototype,"tooltipPosition",void 0),qi([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o()],Xi.prototype,"iconVariant",void 0),qi([o()],Xi.prototype,"icon",void 0),qi([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o({type:Boolean,attribute:!1})],Xi.prototype,"editorMode",void 0),qi([(t,e)=>{t.constructor.createProperty(e,{attribute:!1,hasChanged:null!=Ji?Ji:(t,e)=>!p(t,e)});const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,null!=Vi?Vi:t=>t[e])}],Xi.prototype,"currentPage",void 0),qi([n()],Xi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Xi),t.FtReaderNavigationButton=Xi,t.FtReaderNavigationButtonCssVariables={},t.styles=Ct,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
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.22",
23
- "@fluid-topics/ft-reader-context": "0.3.22",
24
- "@fluid-topics/ft-reader-internal-link": "0.3.22",
25
- "@fluid-topics/ft-tooltip": "0.3.22",
26
- "@fluid-topics/ft-wc-utils": "0.3.22",
22
+ "@fluid-topics/ft-button": "0.3.24",
23
+ "@fluid-topics/ft-reader-context": "0.3.24",
24
+ "@fluid-topics/ft-reader-internal-link": "0.3.24",
25
+ "@fluid-topics/ft-tooltip": "0.3.24",
26
+ "@fluid-topics/ft-wc-utils": "0.3.24",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "5ca6dd4bc6ec9dca0bf645892ec3f07e4b62683d"
29
+ "gitHead": "3f70221d4cdc1d629200913a3f0d083e703388dd"
30
30
  }