@fluid-topics/ft-reader-navigation-button 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-navigation-button.css.js +5 -0
- package/build/ft-reader-navigation-button.d.ts +1 -1
- package/build/ft-reader-navigation-button.js +17 -14
- package/build/ft-reader-navigation-button.light.js +162 -157
- package/build/ft-reader-navigation-button.min.js +170 -165
- package/build/ft-reader-navigation-button.properties.d.ts +1 -1
- package/package.json +7 -7
|
@@ -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(
|
|
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($i){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(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
|
|
@@ -39,7 +39,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
@@ -92,18 +92,30 @@ var at,lt;null==st||st(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
92
92
|
-webkit-hyphens: auto;
|
|
93
93
|
hyphens: auto
|
|
94
94
|
}
|
|
95
|
-
`;class bt extends vt{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 xt,gt,mt;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),$t=y`
|
|
95
|
+
`;class bt extends vt{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 xt,gt,mt;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),$t={outlineColor:ct.extend("--ft-reader-internal-link-outline-color",dt.colorPrimary)},Ot=y`
|
|
96
|
+
a:focus {
|
|
97
|
+
outline-color: ${$t.outlineColor};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ft-reader-link--remove-style {
|
|
101
|
+
text-decoration: none;
|
|
102
|
+
color: inherit;
|
|
103
|
+
}
|
|
104
|
+
`,kt=y`
|
|
105
|
+
ft-reader-internal-link {
|
|
106
|
+
${ft($t.outlineColor,"transparent")}
|
|
107
|
+
}
|
|
96
108
|
`
|
|
97
109
|
/**
|
|
98
110
|
* @license
|
|
99
111
|
* Copyright 2017 Google LLC
|
|
100
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/,
|
|
113
|
+
*/,St=1,Nt=2,Ct=t=>(...e)=>({_$litDirective$:t,values:e});class Et{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)}}
|
|
102
114
|
/**
|
|
103
115
|
* @license
|
|
104
116
|
* Copyright 2018 Google LLC
|
|
105
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const Ct
|
|
118
|
+
*/const Rt=Ct(class extends Et{constructor(t){var e;if(super(t),t.type!==St||"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 K}}),Mt=ct.extend("--ft-ripple-color",dt.colorContent),zt={color:Mt,backgroundColor:ct.extend("--ft-ripple-background-color",Mt),opacityContentOnSurfacePressed:ct.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.external(dt.opacityContentOnSurfaceSelected,"Design system")},Ft=ct.extend("--ft-ripple-color",dt.colorPrimary),jt=Ft,Ut=ct.extend("--ft-ripple-background-color",Ft),Tt=ct.extend("--ft-ripple-color",dt.colorSecondary),Bt=Tt,At=ct.extend("--ft-ripple-background-color",Tt),Lt=y`
|
|
107
119
|
:host {
|
|
108
120
|
display: contents;
|
|
109
121
|
}
|
|
@@ -125,27 +137,27 @@ var at,lt;null==st||st(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
125
137
|
}
|
|
126
138
|
|
|
127
139
|
.ft-ripple .ft-ripple--background {
|
|
128
|
-
background-color: ${
|
|
140
|
+
background-color: ${zt.backgroundColor};
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
.ft-ripple .ft-ripple--effect {
|
|
132
|
-
background-color: ${
|
|
144
|
+
background-color: ${zt.color};
|
|
133
145
|
}
|
|
134
146
|
|
|
135
147
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
136
|
-
background-color: ${
|
|
148
|
+
background-color: ${At};
|
|
137
149
|
}
|
|
138
150
|
|
|
139
151
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
140
|
-
background-color: ${
|
|
152
|
+
background-color: ${Bt};
|
|
141
153
|
}
|
|
142
154
|
|
|
143
155
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
144
|
-
background-color: ${
|
|
156
|
+
background-color: ${Ut};
|
|
145
157
|
}
|
|
146
158
|
|
|
147
159
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
148
|
-
background-color: ${
|
|
160
|
+
background-color: ${jt};
|
|
149
161
|
}
|
|
150
162
|
|
|
151
163
|
.ft-ripple .ft-ripple--background {
|
|
@@ -177,22 +189,22 @@ var at,lt;null==st||st(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
177
189
|
}
|
|
178
190
|
|
|
179
191
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
192
|
+
opacity: ${zt.opacityContentOnSurfaceHover};
|
|
181
193
|
}
|
|
182
194
|
|
|
183
195
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
184
|
-
opacity: ${
|
|
196
|
+
opacity: ${zt.opacityContentOnSurfaceSelected};
|
|
185
197
|
}
|
|
186
198
|
|
|
187
199
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
188
|
-
opacity: ${
|
|
200
|
+
opacity: ${zt.opacityContentOnSurfaceFocused};
|
|
189
201
|
}
|
|
190
202
|
|
|
191
203
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
192
|
-
opacity: ${
|
|
204
|
+
opacity: ${zt.opacityContentOnSurfacePressed};
|
|
193
205
|
transform: translate(-50%, -50%) scale(1);
|
|
194
206
|
}
|
|
195
|
-
`;var
|
|
207
|
+
`;var Pt=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 _t extends vt{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 H`
|
|
196
208
|
<style>
|
|
197
209
|
.ft-ripple .ft-ripple--effect,
|
|
198
210
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -205,119 +217,119 @@ var at,lt;null==st||st(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
205
217
|
top: ${this.originY}px;
|
|
206
218
|
}
|
|
207
219
|
</style>
|
|
208
|
-
<div class="${
|
|
220
|
+
<div class="${Rt(t)}">
|
|
209
221
|
<div class="ft-ripple--background"></div>
|
|
210
222
|
<div class="ft-ripple--effect"></div>
|
|
211
223
|
</div>
|
|
212
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var 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()}}
|
|
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()}}_t.elementDefinitions={},_t.styles=Lt,Pt([o({type:Boolean})],_t.prototype,"primary",void 0),Pt([o({type:Boolean})],_t.prototype,"secondary",void 0),Pt([o({type:Boolean})],_t.prototype,"unbounded",void 0),Pt([o({type:Boolean})],_t.prototype,"activated",void 0),Pt([o({type:Boolean})],_t.prototype,"selected",void 0),Pt([o({type:Boolean})],_t.prototype,"disabled",void 0),Pt([n()],_t.prototype,"hovered",void 0),Pt([n()],_t.prototype,"focused",void 0),Pt([n()],_t.prototype,"pressed",void 0),Pt([n()],_t.prototype,"rippling",void 0),Pt([n()],_t.prototype,"rippleSize",void 0),Pt([n()],_t.prototype,"originX",void 0),Pt([n()],_t.prototype,"originY",void 0),Pt([s(".ft-ripple")],_t.prototype,"ripple",void 0),Pt([s(".ft-ripple--effect")],_t.prototype,"rippleEffect",void 0),h("ft-ripple")(_t);
|
|
213
225
|
/**
|
|
214
226
|
* @license
|
|
215
227
|
* Copyright 2020 Google LLC
|
|
216
228
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
217
229
|
*/
|
|
218
|
-
const
|
|
230
|
+
const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:Dt}),Ht=new Map,Kt=(t=>(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=It(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=Ht.get(t))&&(s.raw=s,Ht.set(t,e=s)),i=a}return t(e,...i)})(H);var Zt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Zt||(Zt={}));const Vt=ct.extend("--ft-typography-font-family",dt.titleFont),Jt=ct.extend("--ft-typography-font-family",dt.contentFont),qt={fontFamily:Jt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ct.extend("--ft-typography-title-font-family",Vt),Yt=ct.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ct.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ct.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=ct.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=ct.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=ct.extend("--ft-typography-title-dense-font-family",Vt),oe=ct.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),ne=ct.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),re=ct.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),se=ct.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),ae=ct.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),le=ct.extend("--ft-typography-subtitle1-font-family",Jt),he=ct.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),pe=ct.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),ce=ct.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=ct.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=ct.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=ct.extend("--ft-typography-subtitle2-font-family",Jt),ve=ct.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),ye=ct.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),be=ct.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),xe=ct.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=ct.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me=ct.extend("--ft-typography-body1-font-family",Jt),we=ct.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=ct.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=ct.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),ke=ct.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),Se=ct.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ne=ct.extend("--ft-typography-body2-font-family",Jt),Ce=ct.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ee=ct.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Re=ct.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Me=ct.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),ze=ct.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Fe=ct.extend("--ft-typography-caption-font-family",Jt),je=ct.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),Ue=ct.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Te=ct.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Be=ct.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Ae=ct.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Le=ct.extend("--ft-typography-breadcrumb-font-family",Jt),Pe=ct.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),_e=ct.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),De=ct.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Ie=ct.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),We=ct.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),He=ct.extend("--ft-typography-overline-font-family",Jt),Ke=ct.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Ze=ct.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ve=ct.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Je=ct.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qe=ct.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xe={fontFamily:ct.extend("--ft-typography-button-font-family",Jt),fontSize:ct.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ct.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ct.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ct.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ct.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Ye=y`
|
|
219
231
|
.ft-typography--title {
|
|
220
|
-
font-family: ${
|
|
221
|
-
font-size: ${
|
|
222
|
-
font-weight: ${
|
|
223
|
-
letter-spacing: ${
|
|
224
|
-
line-height: ${
|
|
225
|
-
text-transform: ${
|
|
226
|
-
}
|
|
227
|
-
`,Xe=y`
|
|
228
|
-
.ft-typography--title-dense {
|
|
229
|
-
font-family: ${te};
|
|
230
|
-
font-size: ${ee};
|
|
231
|
-
font-weight: ${ie};
|
|
232
|
-
letter-spacing: ${oe};
|
|
233
|
-
line-height: ${ne};
|
|
234
|
-
text-transform: ${re};
|
|
235
|
-
}
|
|
236
|
-
`,Ye=y`
|
|
237
|
-
.ft-typography--subtitle1 {
|
|
238
|
-
font-family: ${se};
|
|
239
|
-
font-size: ${ae};
|
|
240
|
-
font-weight: ${le};
|
|
241
|
-
letter-spacing: ${he};
|
|
242
|
-
line-height: ${pe};
|
|
243
|
-
text-transform: ${ce};
|
|
232
|
+
font-family: ${Xt};
|
|
233
|
+
font-size: ${Yt};
|
|
234
|
+
font-weight: ${Gt};
|
|
235
|
+
letter-spacing: ${Qt};
|
|
236
|
+
line-height: ${te};
|
|
237
|
+
text-transform: ${ee};
|
|
244
238
|
}
|
|
245
239
|
`,Ge=y`
|
|
246
|
-
.ft-typography--
|
|
247
|
-
font-family: ${
|
|
248
|
-
font-size: ${
|
|
249
|
-
font-weight: ${
|
|
250
|
-
letter-spacing: ${
|
|
251
|
-
line-height: ${
|
|
252
|
-
text-transform: ${
|
|
240
|
+
.ft-typography--title-dense {
|
|
241
|
+
font-family: ${ie};
|
|
242
|
+
font-size: ${oe};
|
|
243
|
+
font-weight: ${ne};
|
|
244
|
+
letter-spacing: ${re};
|
|
245
|
+
line-height: ${se};
|
|
246
|
+
text-transform: ${ae};
|
|
253
247
|
}
|
|
254
|
-
|
|
255
248
|
`,Qe=y`
|
|
256
|
-
.ft-typography--
|
|
257
|
-
font-family: ${
|
|
258
|
-
font-size: ${
|
|
259
|
-
font-weight: ${
|
|
260
|
-
letter-spacing: ${
|
|
261
|
-
line-height: ${
|
|
262
|
-
text-transform: ${
|
|
249
|
+
.ft-typography--subtitle1 {
|
|
250
|
+
font-family: ${le};
|
|
251
|
+
font-size: ${he};
|
|
252
|
+
font-weight: ${pe};
|
|
253
|
+
letter-spacing: ${ce};
|
|
254
|
+
line-height: ${fe};
|
|
255
|
+
text-transform: ${de};
|
|
263
256
|
}
|
|
264
257
|
`,ti=y`
|
|
265
|
-
.ft-typography--
|
|
266
|
-
font-family: ${
|
|
267
|
-
font-size: ${
|
|
268
|
-
font-weight: ${
|
|
269
|
-
letter-spacing: ${
|
|
270
|
-
line-height: ${
|
|
271
|
-
text-transform: ${
|
|
258
|
+
.ft-typography--subtitle2 {
|
|
259
|
+
font-family: ${ue};
|
|
260
|
+
font-size: ${ve};
|
|
261
|
+
font-weight: ${ye};
|
|
262
|
+
letter-spacing: ${be};
|
|
263
|
+
line-height: ${xe};
|
|
264
|
+
text-transform: ${ge};
|
|
272
265
|
}
|
|
266
|
+
|
|
273
267
|
`,ei=y`
|
|
274
|
-
.ft-typography--
|
|
275
|
-
font-family: ${
|
|
276
|
-
font-size: ${
|
|
277
|
-
font-weight: ${
|
|
278
|
-
letter-spacing: ${
|
|
279
|
-
line-height: ${
|
|
280
|
-
text-transform: ${
|
|
268
|
+
.ft-typography--body1 {
|
|
269
|
+
font-family: ${me};
|
|
270
|
+
font-size: ${we};
|
|
271
|
+
font-weight: ${$e};
|
|
272
|
+
letter-spacing: ${Oe};
|
|
273
|
+
line-height: ${ke};
|
|
274
|
+
text-transform: ${Se};
|
|
281
275
|
}
|
|
282
276
|
`,ii=y`
|
|
283
|
-
.ft-typography--
|
|
284
|
-
font-family: ${
|
|
285
|
-
font-size: ${
|
|
286
|
-
font-weight: ${
|
|
287
|
-
letter-spacing: ${
|
|
288
|
-
line-height: ${
|
|
289
|
-
text-transform: ${
|
|
277
|
+
.ft-typography--body2 {
|
|
278
|
+
font-family: ${Ne};
|
|
279
|
+
font-size: ${Ce};
|
|
280
|
+
font-weight: ${Ee};
|
|
281
|
+
letter-spacing: ${Re};
|
|
282
|
+
line-height: ${Me};
|
|
283
|
+
text-transform: ${ze};
|
|
290
284
|
}
|
|
291
285
|
`,oi=y`
|
|
292
|
-
.ft-typography--
|
|
293
|
-
font-family: ${
|
|
294
|
-
font-size: ${
|
|
295
|
-
font-weight: ${
|
|
296
|
-
letter-spacing: ${
|
|
297
|
-
line-height: ${
|
|
298
|
-
text-transform: ${
|
|
286
|
+
.ft-typography--caption {
|
|
287
|
+
font-family: ${Fe};
|
|
288
|
+
font-size: ${je};
|
|
289
|
+
font-weight: ${Ue};
|
|
290
|
+
letter-spacing: ${Te};
|
|
291
|
+
line-height: ${Be};
|
|
292
|
+
text-transform: ${Ae};
|
|
299
293
|
}
|
|
300
294
|
`,ni=y`
|
|
301
|
-
.ft-typography--
|
|
302
|
-
font-family: ${
|
|
303
|
-
font-size: ${
|
|
304
|
-
font-weight: ${
|
|
305
|
-
letter-spacing: ${
|
|
306
|
-
line-height: ${
|
|
307
|
-
text-transform: ${
|
|
295
|
+
.ft-typography--breadcrumb {
|
|
296
|
+
font-family: ${Le};
|
|
297
|
+
font-size: ${Pe};
|
|
298
|
+
font-weight: ${_e};
|
|
299
|
+
letter-spacing: ${De};
|
|
300
|
+
line-height: ${Ie};
|
|
301
|
+
text-transform: ${We};
|
|
308
302
|
}
|
|
309
303
|
`,ri=y`
|
|
304
|
+
.ft-typography--overline {
|
|
305
|
+
font-family: ${He};
|
|
306
|
+
font-size: ${Ke};
|
|
307
|
+
font-weight: ${Ze};
|
|
308
|
+
letter-spacing: ${Ve};
|
|
309
|
+
line-height: ${Je};
|
|
310
|
+
text-transform: ${qe};
|
|
311
|
+
}
|
|
312
|
+
`,si=y`
|
|
313
|
+
.ft-typography--button {
|
|
314
|
+
font-family: ${Xe.fontFamily};
|
|
315
|
+
font-size: ${Xe.fontSize};
|
|
316
|
+
font-weight: ${Xe.fontWeight};
|
|
317
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
318
|
+
line-height: ${Xe.lineHeight};
|
|
319
|
+
text-transform: ${Xe.textTransform};
|
|
320
|
+
}
|
|
321
|
+
`,ai=y`
|
|
310
322
|
.ft-typography {
|
|
311
323
|
vertical-align: inherit;
|
|
312
324
|
}
|
|
313
|
-
`;var
|
|
314
|
-
<${
|
|
325
|
+
`;var li=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 hi extends vt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
|
|
326
|
+
<${Wt(this.element)}
|
|
315
327
|
class="ft-typography ft-typography--${this.variant}">
|
|
316
328
|
<slot></slot>
|
|
317
|
-
</${
|
|
318
|
-
`:
|
|
329
|
+
</${Wt(this.element)}>
|
|
330
|
+
`:Kt`
|
|
319
331
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
320
|
-
`}}
|
|
332
|
+
`}}hi.styles=[Ye,Ge,Qe,ti,ei,ii,oi,ni,ri,si,ai],li([o()],hi.prototype,"element",void 0),li([o()],hi.prototype,"variant",void 0),h("ft-typography")(hi);const pi=ct.create("--ft-tooltip-distance","SIZE","4px"),ci=ct.create("--ft-tooltip-color","COLOR","#FFFFFF"),fi=ct.create("--ft-tooltip-background-color","COLOR","#666666"),di=ct.create("--ft-tooltip-z-index","NUMBER","1"),ui=ct.external(dt.borderRadiusS,"Design system"),vi=ct.create("--ft-tooltip-max-width","SIZE","150px"),yi=y`
|
|
321
333
|
.ft-tooltip--container {
|
|
322
334
|
display: block;
|
|
323
335
|
position: relative;
|
|
@@ -333,23 +345,23 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
333
345
|
box-sizing: border-box;
|
|
334
346
|
overflow: hidden;
|
|
335
347
|
width: max-content;
|
|
336
|
-
max-width: ${
|
|
348
|
+
max-width: ${vi};
|
|
337
349
|
text-align: center;
|
|
338
|
-
padding: ${
|
|
339
|
-
z-index: ${
|
|
350
|
+
padding: ${pi};
|
|
351
|
+
z-index: ${di};
|
|
340
352
|
}
|
|
341
353
|
|
|
342
354
|
.ft-tooltip--content {
|
|
343
355
|
padding: 4px 8px;
|
|
344
|
-
border-radius: ${
|
|
345
|
-
background-color: ${
|
|
346
|
-
color: ${
|
|
356
|
+
border-radius: ${ui};
|
|
357
|
+
background-color: ${fi};
|
|
358
|
+
color: ${ci};
|
|
347
359
|
top: -500px;
|
|
348
360
|
left: -500px;
|
|
349
361
|
position: relative;
|
|
350
362
|
word-break: break-word;
|
|
351
363
|
}
|
|
352
|
-
`;var
|
|
364
|
+
`;var bi=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 vt{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 H`
|
|
353
365
|
<div part="container"
|
|
354
366
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
355
367
|
@mouseenter=${this.onHover}
|
|
@@ -365,13 +377,13 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
365
377
|
</div>
|
|
366
378
|
<slot></slot>
|
|
367
379
|
</div>
|
|
368
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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, ${
|
|
380
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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, ${vi})`}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())}}xi.elementDefinitions={"ft-typography":hi},xi.styles=yi,bi([o()],xi.prototype,"text",void 0),bi([o({type:Boolean})],xi.prototype,"manual",void 0),bi([o({type:Boolean})],xi.prototype,"inline",void 0),bi([o({type:Number})],xi.prototype,"delay",void 0),bi([o()],xi.prototype,"position",void 0),bi([
|
|
369
381
|
/**
|
|
370
382
|
* @license
|
|
371
383
|
* Copyright 2017 Google LLC
|
|
372
384
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
373
385
|
*/
|
|
374
|
-
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)],
|
|
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)],xi.prototype,"slotNodes",void 0),bi([s(".ft-tooltip--container")],xi.prototype,"container",void 0),bi([s("slot")],xi.prototype,"target",void 0),bi([s(".ft-tooltip")],xi.prototype,"tooltip",void 0),bi([s(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),bi([n()],xi.prototype,"visible",void 0),h("ft-tooltip")(xi);const gi={color:ct.extend("--ft-loader-color",dt.colorPrimary),size:ct.create("--ft-loader-size","SIZE","80px")},mi=y`
|
|
375
387
|
:host {
|
|
376
388
|
line-height: 0;
|
|
377
389
|
}
|
|
@@ -380,8 +392,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
380
392
|
display: inline-block;
|
|
381
393
|
position: relative;
|
|
382
394
|
|
|
383
|
-
width: ${
|
|
384
|
-
height: ${
|
|
395
|
+
width: ${gi.size};
|
|
396
|
+
height: ${gi.size};
|
|
385
397
|
}
|
|
386
398
|
|
|
387
399
|
.ft-loader div {
|
|
@@ -390,7 +402,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
390
402
|
width: 25%;
|
|
391
403
|
height: 25%;
|
|
392
404
|
border-radius: 50%;
|
|
393
|
-
background: ${
|
|
405
|
+
background: ${gi.color};
|
|
394
406
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
395
407
|
}
|
|
396
408
|
|
|
@@ -437,35 +449,35 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
437
449
|
transform: translate(0, 0);
|
|
438
450
|
}
|
|
439
451
|
100% {
|
|
440
|
-
transform: translate(calc(0.35 * ${
|
|
452
|
+
transform: translate(calc(0.35 * ${gi.size}), 0);
|
|
441
453
|
}
|
|
442
454
|
}
|
|
443
|
-
`;class
|
|
455
|
+
`;class wi extends vt{render(){return H`
|
|
444
456
|
<div class="ft-loader">
|
|
445
457
|
<div></div>
|
|
446
458
|
<div></div>
|
|
447
459
|
<div></div>
|
|
448
460
|
<div></div>
|
|
449
461
|
</div>
|
|
450
|
-
`}}
|
|
462
|
+
`}}wi.styles=mi,h("ft-loader")(wi);
|
|
451
463
|
/**
|
|
452
464
|
* @license
|
|
453
465
|
* Copyright 2017 Google LLC
|
|
454
466
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
455
467
|
*/
|
|
456
|
-
class
|
|
468
|
+
class $i extends Et{constructor(t){if(super(t),this.it=Z,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===K)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:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=Ct($i);var ki,Si;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ki||(ki={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.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,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.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,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.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,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.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,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);const Ni={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ci=y`
|
|
457
469
|
:host {
|
|
458
470
|
display: inline-block;
|
|
459
471
|
}
|
|
460
472
|
|
|
461
473
|
:host, i.ft-icon {
|
|
462
|
-
width: ${
|
|
463
|
-
height: ${
|
|
474
|
+
width: ${Ni.size};
|
|
475
|
+
height: ${Ni.size};
|
|
464
476
|
text-align: center;
|
|
465
477
|
}
|
|
466
478
|
|
|
467
479
|
i.ft-icon {
|
|
468
|
-
font-size: ${
|
|
480
|
+
font-size: ${Ni.size};
|
|
469
481
|
line-height: 1;
|
|
470
482
|
font-weight: normal;
|
|
471
483
|
text-transform: none;
|
|
@@ -476,26 +488,26 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
476
488
|
text-rendering: auto;
|
|
477
489
|
-webkit-font-smoothing: antialiased;
|
|
478
490
|
-moz-osx-font-smoothing: grayscale;
|
|
479
|
-
vertical-align: ${
|
|
491
|
+
vertical-align: ${Ni.verticalAlign};
|
|
480
492
|
}
|
|
481
493
|
|
|
482
494
|
.ft-icon--fluid-topics {
|
|
483
|
-
font-family: ${
|
|
495
|
+
font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
484
496
|
}
|
|
485
497
|
|
|
486
498
|
.ft-icon--file-format {
|
|
487
|
-
font-family: ${
|
|
499
|
+
font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
488
500
|
}
|
|
489
501
|
|
|
490
502
|
.ft-icon--material {
|
|
491
|
-
font-family: ${
|
|
503
|
+
font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
|
|
492
504
|
}
|
|
493
|
-
`;var
|
|
505
|
+
`;var Ei;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ei||(Ei={}));var Ri=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 vt{constructor(){super(...arguments),this.variant=Ei.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return H`
|
|
494
506
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
495
|
-
${
|
|
507
|
+
${Oi(this.resolvedIcon)}
|
|
496
508
|
<slot ?hidden=${t}></slot>
|
|
497
509
|
</i>
|
|
498
|
-
`}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
|
|
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 Ei.file_format:this.resolvedIcon=null!==(t=Si[i.toUpperCase()])&&void 0!==t?t:i;break;case Ei.fluid_topics:this.resolvedIcon=null!==(e=ki[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Mi.elementDefinitions={},Mi.styles=Ci,Ri([o()],Mi.prototype,"variant",void 0),Ri([o()],Mi.prototype,"value",void 0),Ri([n()],Mi.prototype,"resolvedIcon",void 0),Ri([s("slot")],Mi.prototype,"slottedContent",void 0),h("ft-icon")(Mi);const zi=ct.extend("--ft-button-color",dt.colorPrimary),Fi={backgroundColor:ct.extend("--ft-button-background-color",dt.colorSurface),borderRadius:ct.extend("--ft-button-border-radius",dt.borderRadiusL),color:zi,fontSize:ct.extend("--ft-button-font-size",Xe.fontSize),iconSize:ct.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ct.extend("--ft-button-ripple-color",zi),opacityDisabled:ct.external(dt.colorOpacityDisabled,"Design system")},ji=ct.extend("--ft-button-primary-color",ct.extend("--ft-button-color",dt.colorOnPrimary)),Ui={backgroundColor:ct.extend("--ft-button-primary-background-color",ct.extend("--ft-button-background-color",dt.colorPrimary)),color:ji,rippleColor:ct.extend("--ft-button-primary-ripple-color",ji)},Ti=ct.extend("--ft-button-dense-border-radius",ct.extend("--ft-button-border-radius",dt.borderRadiusM)),Bi=[yt,y`
|
|
499
511
|
:host {
|
|
500
512
|
display: inline-block;
|
|
501
513
|
max-width: 100%;
|
|
@@ -506,7 +518,7 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
506
518
|
box-shadow: 0px 0px 0px transparent;
|
|
507
519
|
border: 0px solid transparent;
|
|
508
520
|
text-shadow: 0px 0px 0px transparent;
|
|
509
|
-
font-size: ${
|
|
521
|
+
font-size: ${Fi.fontSize};
|
|
510
522
|
}
|
|
511
523
|
|
|
512
524
|
button:hover {
|
|
@@ -535,17 +547,17 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
535
547
|
border: none;
|
|
536
548
|
pointer-events: auto;
|
|
537
549
|
|
|
538
|
-
--ft-button-internal-line-height: calc(${
|
|
539
|
-
--ft-button-internal-color: ${
|
|
540
|
-
${ft(
|
|
550
|
+
--ft-button-internal-line-height: calc(${Fi.fontSize} + 2px);
|
|
551
|
+
--ft-button-internal-color: ${Fi.color};
|
|
552
|
+
${ft(Ni.size,Fi.iconSize)};
|
|
541
553
|
--ft-button-internal-vertical-padding: 6px;
|
|
542
554
|
--ft-button-internal-horizontal-padding: 8px;
|
|
543
|
-
${ft(
|
|
544
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
555
|
+
${ft(zt.color,Fi.rippleColor)};
|
|
556
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
|
|
545
557
|
|
|
546
|
-
border-radius: ${
|
|
558
|
+
border-radius: ${Fi.borderRadius};
|
|
547
559
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
548
|
-
background-color: ${
|
|
560
|
+
background-color: ${Fi.backgroundColor};
|
|
549
561
|
color: var(--ft-button-internal-color);
|
|
550
562
|
-webkit-mask-image: radial-gradient(white, black);
|
|
551
563
|
}
|
|
@@ -557,7 +569,7 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
557
569
|
.ft-button--dense {
|
|
558
570
|
--ft-button-internal-vertical-padding: 2px;
|
|
559
571
|
--ft-button-internal-horizontal-padding: 4px;
|
|
560
|
-
border-radius: ${
|
|
572
|
+
border-radius: ${Ti};
|
|
561
573
|
}
|
|
562
574
|
|
|
563
575
|
.ft-button--round {
|
|
@@ -566,13 +578,13 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
566
578
|
|
|
567
579
|
.ft-button[disabled] {
|
|
568
580
|
filter: grayscale(1);
|
|
569
|
-
opacity: ${
|
|
581
|
+
opacity: ${Fi.opacityDisabled};
|
|
570
582
|
}
|
|
571
583
|
|
|
572
584
|
.ft-button.ft-button--primary {
|
|
573
|
-
background-color: ${
|
|
574
|
-
--ft-button-internal-color: ${
|
|
575
|
-
${ft(
|
|
585
|
+
background-color: ${Ui.backgroundColor};
|
|
586
|
+
--ft-button-internal-color: ${Ui.color};
|
|
587
|
+
${ft(zt.color,Ui.rippleColor)};
|
|
576
588
|
}
|
|
577
589
|
|
|
578
590
|
.ft-button.ft-button--outlined {
|
|
@@ -591,8 +603,8 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
591
603
|
text-overflow: ellipsis;
|
|
592
604
|
display: block;
|
|
593
605
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
594
|
-
${ft(
|
|
595
|
-
${ft(
|
|
606
|
+
${ft(Xe.fontSize,"1em")};
|
|
607
|
+
${ft(Xe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
596
608
|
}
|
|
597
609
|
|
|
598
610
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -625,12 +637,12 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
625
637
|
}
|
|
626
638
|
|
|
627
639
|
ft-loader {
|
|
628
|
-
${ft(
|
|
629
|
-
${ft(
|
|
640
|
+
${ft(gi.size,Fi.iconSize)};
|
|
641
|
+
${ft(gi.color,"var(--ft-button-internal-color)")};
|
|
630
642
|
}
|
|
631
|
-
`];var
|
|
643
|
+
`];var Ai=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 Li extends vt{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=Ei.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":wt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(H`
|
|
632
644
|
<button part="button"
|
|
633
|
-
class="${
|
|
645
|
+
class="${Rt(t)}"
|
|
634
646
|
aria-label="${this.getLabel()}"
|
|
635
647
|
?disabled=${this.isDisabled()}>
|
|
636
648
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -650,31 +662,24 @@ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error
|
|
|
650
662
|
</ft-tooltip>
|
|
651
663
|
`:t}resolveIcon(){return this.loading?H`
|
|
652
664
|
<ft-loader></ft-loader> `:this.icon?H`
|
|
653
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Z}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}}
|
|
654
|
-
a:focus {
|
|
655
|
-
outline-color: ${_i};
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
.ft-reader-link--remove-style {
|
|
659
|
-
text-decoration: none;
|
|
660
|
-
color: inherit;
|
|
661
|
-
}
|
|
662
|
-
`;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 Pi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ct({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return H`
|
|
665
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Z}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}}Li.elementDefinitions={"ft-ripple":_t,"ft-tooltip":xi,"ft-typography":hi,"ft-icon":Mi,"ft-loader":wi},Li.styles=Bi,Ai([o({type:Boolean})],Li.prototype,"primary",void 0),Ai([o({type:Boolean})],Li.prototype,"outlined",void 0),Ai([o({type:Boolean})],Li.prototype,"disabled",void 0),Ai([o({type:Boolean})],Li.prototype,"dense",void 0),Ai([o({type:Boolean})],Li.prototype,"round",void 0),Ai([o({type:String})],Li.prototype,"label",void 0),Ai([o({type:String})],Li.prototype,"icon",void 0),Ai([o({type:String})],Li.prototype,"iconVariant",void 0),Ai([o({type:Boolean})],Li.prototype,"trailingIcon",void 0),Ai([o({type:Boolean})],Li.prototype,"loading",void 0),Ai([o({type:String})],Li.prototype,"tooltipPosition",void 0),Ai([o({type:Boolean})],Li.prototype,"hideTooltip",void 0),Ai([o({type:Boolean})],Li.prototype,"forceTooltip",void 0),Ai([s(".ft-button")],Li.prototype,"button",void 0),Ai([s(".ft-button--label slot")],Li.prototype,"slottedContent",void 0),h("ft-button")(Li);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 Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Di extends bt{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 _i)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Pi([n()],Di.prototype,"stateManager",void 0);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 Di{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Rt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return H`
|
|
663
666
|
<a class=${e}
|
|
664
667
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
665
668
|
@click=${t=>this.onClick(t)}>
|
|
666
669
|
<slot></slot>
|
|
667
670
|
</a>
|
|
668
|
-
`}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)))}}Wi.styles=
|
|
669
|
-
<ft-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
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)))}}Wi.styles=Ot,Ii([o()],Wi.prototype,"tocId",void 0),Ii([o()],Wi.prototype,"section",void 0),Ii([o({type:Number})],Wi.prototype,"pageNumber",void 0),Ii([o({type:Boolean})],Wi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Wi);var Hi,Ki,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 Vi extends Di{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Ei.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?ki.THIN_ARROW_RIGHT:ki.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return Z;const r=H`
|
|
672
|
+
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
673
|
+
?hideTooltip=${this.hideTooltip}
|
|
674
|
+
?trailingIcon=${this.trailingIcon}
|
|
675
|
+
.label=${null!==(e=null===(t=this.targetPage)||void 0===t?void 0:t.title)&&void 0!==e?e:""}
|
|
676
|
+
.tooltipPosition=${this.tooltipPosition}
|
|
677
|
+
.iconVariant=${this.iconVariant}
|
|
678
|
+
.icon=${null!==(i=this.icon)&&void 0!==i?i:this.defaultIcon}>
|
|
679
|
+
${null!==(o=this.content)&&void 0!==o?o:this.defaultContent}
|
|
680
|
+
</ft-button>
|
|
681
|
+
`;return this.editorMode?r:H`
|
|
682
|
+
<ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
|
|
683
|
+
${r}
|
|
679
684
|
</ft-reader-internal-link>
|
|
680
|
-
|
|
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}}Vi.elementDefinitions={"ft-button":Li,"ft-reader-internal-link":Wi},Vi.styles=kt,Zi([o()],Vi.prototype,"target",void 0),Zi([o()],Vi.prototype,"content",void 0),Zi([o()],Vi.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Vi.prototype,"hideTooltip",void 0),Zi([o()],Vi.prototype,"iconVariant",void 0),Zi([o()],Vi.prototype,"icon",void 0),Zi([o({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Zi([o({type:Boolean,attribute:!1})],Vi.prototype,"editorMode",void 0),Zi([(t,e)=>{t.constructor.createProperty(e,{attribute:!1,hasChanged:null!=Ki?Ki:(t,e)=>!p(t,e)});const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,null!=Hi?Hi:t=>t[e])}],Vi.prototype,"currentPage",void 0),Zi([n()],Vi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Vi),t.FtReaderNavigationButton=Vi,t.FtReaderNavigationButtonCssVariables={},t.styles=kt,Object.defineProperty(t,"i",{value:!0})}({});
|