@fluid-topics/ft-reader-metadata 0.3.15
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/README.md +19 -0
- package/build/ft-reader-metadata.css.d.ts +3 -0
- package/build/ft-reader-metadata.css.js +9 -0
- package/build/ft-reader-metadata.d.ts +18 -0
- package/build/ft-reader-metadata.js +86 -0
- package/build/ft-reader-metadata.light.js +471 -0
- package/build/ft-reader-metadata.min.js +576 -0
- package/build/ft-reader-metadata.properties.d.ts +6 -0
- package/build/ft-reader-metadata.properties.js +2 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +7 -0
- package/package.json +28 -0
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
!function(t){
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
|
+
*/
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=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 c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);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 i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!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,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.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(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const g=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.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,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(me){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}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
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/}function n(t){return o({...t,state:!0})}
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*/const r=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,r=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(r.finisher=function(i){t(i,o)}),r}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,o)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function s(t,i){return r({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
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,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};function c(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,n;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!c(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(n=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,n[o]))return!1;for(o=e;0!=o--;){var r=n[o];if(!c(t[r],i[r]))return!1}return!0}return t!=t&&i!=i}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/const p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,i,e){if(this._$cssResult$=!0,e!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(p&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=d.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&d.set(i,t))}return t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",void 0,f),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new u(e,t,f)},g=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},x=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return v(i)})(t):t
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2017 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*/;var b;const m=window.trustedTypes,w=m?m.emptyScript:"",$=window.reactiveElementPolyfillSupport,O={toAttribute(t,i){switch(i){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},S=(t,i)=>i!==t&&(i==i||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=k){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(x(t))}else void 0!==t&&i.push(x(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=k){var o,n;const r=this.constructor._$Ep(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:O.toAttribute)(i,e.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,i){var e,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(e=null==s?void 0:s.fromAttribute)&&void 0!==e?e:"function"==typeof s?s:null)&&void 0!==o?o:O.fromAttribute;this._$El=r,this[r]=a(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
53
|
+
/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright 2017 Google LLC
|
|
56
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
+
*/
|
|
58
|
+
var N;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:C}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,F=`<${z}>`,U=document,j=(t="")=>U.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,P=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,D=/"/g,W=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),K=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=U.createTreeWalker(U,129,null,!1),q=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=B;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===B?"!--"===l[1]?s=L:void 0!==l[1]?s=P:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=I):void 0!==l[3]&&(s=I):s===I?">"===l[0]?(s=null!=n?n:B,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?I:'"'===l[3]?D:_):s===D||s===_?s=I:s===L||s===P?s=B:(s=I,n=void 0);const p=s===I&&t[i+1].startsWith("/>")?" ":"";r+=s===B?e+F:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+M+p):e+M+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=q(t,i);if(this.el=X.createElement(l,e),J.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=J.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(M)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(M),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?it:"?"===i[1]?ot:"@"===i[1]?nt:tt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(M),i=t.length-1;if(i>0){o.textContent=E?E.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],j()),J.nextNode(),a.push({type:2,index:++n});o.append(t[i],j())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,i){const e=U.createElement("template");return e.innerHTML=t,e}}function Y(t,i,e=t,o){var n,r,s,a;if(i===K)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=T(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=Y(t,l._$AS(t,i.values),l,o)),i}class G{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:U).importNode(e,!0);J.currentNode=n;let r=J.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new Q(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new rt(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=J.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Q{constructor(t,i,e,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Y(this,t,i),T(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==K&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==Z&&T(this._$AH)?this._$AA.nextSibling.data=t:this.k(U.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new G(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new X(t)),i}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new Q(this.j(j()),this.j(j()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class tt{constructor(t,i,e,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=Y(this,t,i,0),r=!T(t)||t!==this._$AH&&t!==K,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Y(this,o[e+s],i,s),a===K&&(a=this._$AH[s]),r||(r=!T(a)||a!==this._$AH[s]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends tt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Z?void 0:t}}const et=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Z?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Y(this,t,i,0))&&void 0!==e?e:Z)===K)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const st=window.litHtmlPolyfillSupport;
|
|
59
|
+
/**
|
|
60
|
+
* @license
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
62
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
+
*/
|
|
64
|
+
var at,lt;null==st||st(X,Q),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.7");class ht extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Q(i.insertBefore(j(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return K}}ht.finalized=!0,ht._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ht});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class pt{static create(t,i,e){let o=t=>v(null!=t?t:e),n=y`var(${v(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${v(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=y`var(${v(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${v(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):v(null!=i?i:t.defaultValue),o=y`var(${v(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${v(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function ft(t,i){return v(`${t.name}: ${i}`)}const dt={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:pt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:pt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:pt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:pt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:pt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:pt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:pt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:pt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:pt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
65
|
+
/**
|
|
66
|
+
* @license
|
|
67
|
+
* Copyright 2021 Google LLC
|
|
68
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
+
*/var ut=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
|
|
70
|
+
${t.map((t=>H`
|
|
71
|
+
<style>${t}</style>
|
|
72
|
+
`))}
|
|
73
|
+
${this.getTemplate()}
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}ut([o()],vt.prototype,"exportpartsPrefix",void 0),ut([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],vt.prototype,"exportpartsPrefixes",void 0);const yt=y`
|
|
75
|
+
.ft-no-text-select {
|
|
76
|
+
-webkit-touch-callout: none;
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
-khtml-user-select: none;
|
|
79
|
+
-moz-user-select: none;
|
|
80
|
+
-ms-user-select: none;
|
|
81
|
+
user-select: none;
|
|
82
|
+
}
|
|
83
|
+
`;class gt 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(((i,e)=>{this[e]=i(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,bt,mt;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(bt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===bt?void 0:bt.toString())&&void 0!==mt?mt:""),$t=y`
|
|
84
|
+
:host {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
}
|
|
87
|
+
`;var Ot=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class St extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class kt extends gt{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 St)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Ot([n()],kt.prototype,"stateManager",void 0);
|
|
88
|
+
/**
|
|
89
|
+
* @license
|
|
90
|
+
* Copyright 2020 Google LLC
|
|
91
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
|
+
*/
|
|
93
|
+
const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void 0:t._$litStatic$},Et=t=>({_$litStatic$:t,r:Ct}),Rt=new Map,Mt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Nt(r));)l+=n+i[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Rt.get(t))&&(s.raw=s,Rt.set(t,i=s)),e=a}return t(i,...e)})(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 Ft=pt.extend("--ft-typography-font-family",dt.titleFont),Ut=pt.extend("--ft-typography-font-family",dt.contentFont),jt={fontFamily:Ut,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=pt.extend("--ft-typography-title-font-family",Ft),At=pt.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Bt=pt.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),Lt=pt.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Pt=pt.extend("--ft-typography-title-line-height",jt.lineHeight,"1.2"),It=pt.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),_t=pt.extend("--ft-typography-title-dense-font-family",Ft),Dt=pt.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Wt=pt.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Ht=pt.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Kt=pt.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"1.7"),Zt=pt.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Vt=pt.extend("--ft-typography-subtitle1-font-family",Ut),Jt=pt.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),qt=pt.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),Xt=pt.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),Yt=pt.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"1.5"),Gt=pt.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),Qt=pt.extend("--ft-typography-subtitle2-font-family",Ut),ti=pt.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),ii=pt.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),ei=pt.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),oi=pt.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"1.7"),ni=pt.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ri=pt.extend("--ft-typography-body1-font-family",Ut),si=pt.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),ai=pt.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),li=pt.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),hi=pt.extend("--ft-typography-body1-line-height",jt.lineHeight,"1.5"),ci=pt.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit"),pi={fontFamily:pt.extend("--ft-typography-body2-font-family",Ut),fontSize:pt.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),fontWeight:pt.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),letterSpacing:pt.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),lineHeight:pt.extend("--ft-typography-body2-line-height",jt.lineHeight,"1.4"),textTransform:pt.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit")},fi=pt.extend("--ft-typography-caption-font-family",Ut),di=pt.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),ui=pt.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),vi=pt.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),yi=pt.extend("--ft-typography-caption-line-height",jt.lineHeight,"1.33"),gi=pt.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit"),xi=pt.extend("--ft-typography-breadcrumb-font-family",Ut),bi=pt.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),mi=pt.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),wi=pt.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),$i=pt.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"1.6"),Oi=pt.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),Si=pt.extend("--ft-typography-overline-font-family",Ut),ki=pt.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),Ci=pt.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),Ni=pt.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),Ei=pt.extend("--ft-typography-overline-line-height",jt.lineHeight,"1.6"),Ri=pt.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),Mi=pt.extend("--ft-typography-button-font-family",Ut),zi=pt.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),Fi=pt.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),Ui=pt.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),ji=pt.extend("--ft-typography-button-line-height",jt.lineHeight,"1.15"),Ti=pt.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),Ai=y`
|
|
94
|
+
.ft-typography--title {
|
|
95
|
+
font-family: ${Tt};
|
|
96
|
+
font-size: ${At};
|
|
97
|
+
font-weight: ${Bt};
|
|
98
|
+
letter-spacing: ${Lt};
|
|
99
|
+
line-height: ${Pt};
|
|
100
|
+
text-transform: ${It};
|
|
101
|
+
}
|
|
102
|
+
`,Bi=y`
|
|
103
|
+
.ft-typography--title-dense {
|
|
104
|
+
font-family: ${_t};
|
|
105
|
+
font-size: ${Dt};
|
|
106
|
+
font-weight: ${Wt};
|
|
107
|
+
letter-spacing: ${Ht};
|
|
108
|
+
line-height: ${Kt};
|
|
109
|
+
text-transform: ${Zt};
|
|
110
|
+
}
|
|
111
|
+
`,Li=y`
|
|
112
|
+
.ft-typography--subtitle1 {
|
|
113
|
+
font-family: ${Vt};
|
|
114
|
+
font-size: ${Jt};
|
|
115
|
+
font-weight: ${qt};
|
|
116
|
+
letter-spacing: ${Xt};
|
|
117
|
+
line-height: ${Yt};
|
|
118
|
+
text-transform: ${Gt};
|
|
119
|
+
}
|
|
120
|
+
`,Pi=y`
|
|
121
|
+
.ft-typography--subtitle2 {
|
|
122
|
+
font-family: ${Qt};
|
|
123
|
+
font-size: ${ti};
|
|
124
|
+
font-weight: ${ii};
|
|
125
|
+
letter-spacing: ${ei};
|
|
126
|
+
line-height: ${oi};
|
|
127
|
+
text-transform: ${ni};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
`,Ii=y`
|
|
131
|
+
.ft-typography--body1 {
|
|
132
|
+
font-family: ${ri};
|
|
133
|
+
font-size: ${si};
|
|
134
|
+
font-weight: ${ai};
|
|
135
|
+
letter-spacing: ${li};
|
|
136
|
+
line-height: ${hi};
|
|
137
|
+
text-transform: ${ci};
|
|
138
|
+
}
|
|
139
|
+
`,_i=y`
|
|
140
|
+
.ft-typography--body2 {
|
|
141
|
+
font-family: ${pi.fontFamily};
|
|
142
|
+
font-size: ${pi.fontSize};
|
|
143
|
+
font-weight: ${pi.fontWeight};
|
|
144
|
+
letter-spacing: ${pi.letterSpacing};
|
|
145
|
+
line-height: ${pi.lineHeight};
|
|
146
|
+
text-transform: ${pi.textTransform};
|
|
147
|
+
}
|
|
148
|
+
`,Di=y`
|
|
149
|
+
.ft-typography--caption {
|
|
150
|
+
font-family: ${fi};
|
|
151
|
+
font-size: ${di};
|
|
152
|
+
font-weight: ${ui};
|
|
153
|
+
letter-spacing: ${vi};
|
|
154
|
+
line-height: ${yi};
|
|
155
|
+
text-transform: ${gi};
|
|
156
|
+
}
|
|
157
|
+
`,Wi=y`
|
|
158
|
+
.ft-typography--breadcrumb {
|
|
159
|
+
font-family: ${xi};
|
|
160
|
+
font-size: ${bi};
|
|
161
|
+
font-weight: ${mi};
|
|
162
|
+
letter-spacing: ${wi};
|
|
163
|
+
line-height: ${$i};
|
|
164
|
+
text-transform: ${Oi};
|
|
165
|
+
}
|
|
166
|
+
`,Hi=y`
|
|
167
|
+
.ft-typography--overline {
|
|
168
|
+
font-family: ${Si};
|
|
169
|
+
font-size: ${ki};
|
|
170
|
+
font-weight: ${Ci};
|
|
171
|
+
letter-spacing: ${Ni};
|
|
172
|
+
line-height: ${Ei};
|
|
173
|
+
text-transform: ${Ri};
|
|
174
|
+
}
|
|
175
|
+
`,Ki=y`
|
|
176
|
+
.ft-typography--button {
|
|
177
|
+
font-family: ${Mi};
|
|
178
|
+
font-size: ${zi};
|
|
179
|
+
font-weight: ${Fi};
|
|
180
|
+
letter-spacing: ${Ui};
|
|
181
|
+
line-height: ${ji};
|
|
182
|
+
text-transform: ${Ti};
|
|
183
|
+
}
|
|
184
|
+
`,Zi=y`
|
|
185
|
+
.ft-typography {
|
|
186
|
+
vertical-align: inherit;
|
|
187
|
+
}
|
|
188
|
+
`;var Vi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ji extends vt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Mt`
|
|
189
|
+
<${Et(this.element)}
|
|
190
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
191
|
+
<slot></slot>
|
|
192
|
+
</${Et(this.element)}>
|
|
193
|
+
`:Mt`
|
|
194
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
195
|
+
`}}Ji.styles=[Ai,Bi,Li,Pi,Ii,_i,Di,Wi,Hi,Ki,Zi],Vi([o()],Ji.prototype,"element",void 0),Vi([o()],Ji.prototype,"variant",void 0),h("ft-typography")(Ji);const qi=pt.create("--ft-tooltip-distance","SIZE","4px"),Xi=pt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Yi=pt.create("--ft-tooltip-background-color","COLOR","#666666"),Gi=pt.create("--ft-tooltip-z-index","NUMBER","1"),Qi=pt.external(dt.borderRadiusS,"Design system"),te=pt.create("--ft-tooltip-max-width","SIZE","150px"),ie=y`
|
|
196
|
+
.ft-tooltip--container {
|
|
197
|
+
display: block;
|
|
198
|
+
position: relative;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ft-tooltip--inline {
|
|
202
|
+
display: inline-block;
|
|
203
|
+
max-width: 100%;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ft-tooltip {
|
|
207
|
+
position: absolute;
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
width: max-content;
|
|
211
|
+
max-width: ${te};
|
|
212
|
+
text-align: center;
|
|
213
|
+
padding: ${qi};
|
|
214
|
+
z-index: ${Gi};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ft-tooltip--content {
|
|
218
|
+
padding: 4px 8px;
|
|
219
|
+
border-radius: ${Qi};
|
|
220
|
+
background-color: ${Yi};
|
|
221
|
+
color: ${Xi};
|
|
222
|
+
top: -500px;
|
|
223
|
+
left: -500px;
|
|
224
|
+
position: relative;
|
|
225
|
+
word-break: break-word;
|
|
226
|
+
}
|
|
227
|
+
`;var ee=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oe 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 i,this.revealDebouncer=new i}render(){return H`
|
|
228
|
+
<div part="container"
|
|
229
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
230
|
+
@mouseenter=${this.onHover}
|
|
231
|
+
@mouseleave=${this.onOut}
|
|
232
|
+
@focusin=${this.onHover}
|
|
233
|
+
@focusout=${this.onOut}
|
|
234
|
+
@touchstart=${this.onTouch}>
|
|
235
|
+
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
236
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
237
|
+
<slot name="text"></slot>
|
|
238
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
<slot></slot>
|
|
242
|
+
</div>
|
|
243
|
+
`}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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.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=i.height,n=o;break;case"left":r=e,n=-this.tooltip.clientWidth;break;case"right":r=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${i.width}px, ${te})`}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())}}oe.elementDefinitions={"ft-typography":Ji},oe.styles=ie,ee([o()],oe.prototype,"text",void 0),ee([o({type:Boolean})],oe.prototype,"manual",void 0),ee([o({type:Boolean})],oe.prototype,"inline",void 0),ee([o({type:Number})],oe.prototype,"delay",void 0),ee([o()],oe.prototype,"position",void 0),ee([
|
|
244
|
+
/**
|
|
245
|
+
* @license
|
|
246
|
+
* Copyright 2017 Google LLC
|
|
247
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
248
|
+
*/
|
|
249
|
+
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):r({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],oe.prototype,"slotNodes",void 0),ee([s(".ft-tooltip--container")],oe.prototype,"container",void 0),ee([s("slot")],oe.prototype,"target",void 0),ee([s(".ft-tooltip")],oe.prototype,"tooltip",void 0),ee([s(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0),ee([n()],oe.prototype,"visible",void 0),h("ft-tooltip")(oe);
|
|
250
|
+
/**
|
|
251
|
+
* @license
|
|
252
|
+
* Copyright 2017 Google LLC
|
|
253
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
254
|
+
*/
|
|
255
|
+
const ne=1,re=2,se=t=>(...i)=>({_$litDirective$:t,values:i});class ae{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
256
|
+
/**
|
|
257
|
+
* @license
|
|
258
|
+
* Copyright 2018 Google LLC
|
|
259
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
260
|
+
*/const le=se(class extends ae{constructor(t){var i;if(super(t),t.type!==ne||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return K}}),he=pt.extend("--ft-ripple-color",dt.colorContent),ce={color:he,backgroundColor:pt.extend("--ft-ripple-background-color",he),opacityContentOnSurfacePressed:pt.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(dt.opacityContentOnSurfaceSelected,"Design system")},pe=pt.extend("--ft-ripple-color",dt.colorPrimary),fe=pe,de=pt.extend("--ft-ripple-background-color",pe),ue=pt.extend("--ft-ripple-color",dt.colorSecondary),ve=ue,ye=pt.extend("--ft-ripple-background-color",ue),ge=y`
|
|
261
|
+
:host {
|
|
262
|
+
display: contents;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.ft-ripple {
|
|
266
|
+
position: absolute;
|
|
267
|
+
inset: 0;
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.ft-ripple .ft-ripple--background,
|
|
276
|
+
.ft-ripple .ft-ripple--effect {
|
|
277
|
+
position: absolute;
|
|
278
|
+
opacity: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ft-ripple .ft-ripple--background {
|
|
282
|
+
background-color: ${ce.backgroundColor};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ft-ripple .ft-ripple--effect {
|
|
286
|
+
background-color: ${ce.color};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
290
|
+
background-color: ${ye};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
294
|
+
background-color: ${ve};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
298
|
+
background-color: ${de};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
302
|
+
background-color: ${fe};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.ft-ripple .ft-ripple--background {
|
|
306
|
+
top: 0;
|
|
307
|
+
left: 0;
|
|
308
|
+
height: 100%;
|
|
309
|
+
width: 100%;
|
|
310
|
+
transition: opacity 75ms linear;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.ft-ripple .ft-ripple--effect,
|
|
314
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
315
|
+
border-radius: 50%;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ft-ripple .ft-ripple--effect {
|
|
319
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
320
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
324
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
325
|
+
left: 50%;
|
|
326
|
+
top: 50%;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
330
|
+
transform: translate(-50%, -50%);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
334
|
+
opacity: ${ce.opacityContentOnSurfaceHover};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
338
|
+
opacity: ${ce.opacityContentOnSurfaceSelected};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
342
|
+
opacity: ${ce.opacityContentOnSurfaceFocused};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
346
|
+
opacity: ${ce.opacityContentOnSurfacePressed};
|
|
347
|
+
transform: translate(-50%, -50%) scale(1);
|
|
348
|
+
}
|
|
349
|
+
`;var xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class be 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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-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`
|
|
350
|
+
<style>
|
|
351
|
+
.ft-ripple .ft-ripple--effect,
|
|
352
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
353
|
+
width: ${this.rippleSize}px;
|
|
354
|
+
height: ${this.rippleSize}px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ft-ripple .ft-ripple--effect {
|
|
358
|
+
left: ${this.originX}px;
|
|
359
|
+
top: ${this.originY}px;
|
|
360
|
+
}
|
|
361
|
+
</style>
|
|
362
|
+
<div class="${le(t)}">
|
|
363
|
+
<div class="ft-ripple--background"></div>
|
|
364
|
+
<div class="ft-ripple--effect"></div>
|
|
365
|
+
</div>
|
|
366
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",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",e),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}be.elementDefinitions={},be.styles=ge,xe([o({type:Boolean})],be.prototype,"primary",void 0),xe([o({type:Boolean})],be.prototype,"secondary",void 0),xe([o({type:Boolean})],be.prototype,"unbounded",void 0),xe([o({type:Boolean})],be.prototype,"activated",void 0),xe([o({type:Boolean})],be.prototype,"selected",void 0),xe([o({type:Boolean})],be.prototype,"disabled",void 0),xe([n()],be.prototype,"hovered",void 0),xe([n()],be.prototype,"focused",void 0),xe([n()],be.prototype,"pressed",void 0),xe([n()],be.prototype,"rippling",void 0),xe([n()],be.prototype,"rippleSize",void 0),xe([n()],be.prototype,"originX",void 0),xe([n()],be.prototype,"originY",void 0),xe([s(".ft-ripple")],be.prototype,"ripple",void 0),xe([s(".ft-ripple--effect")],be.prototype,"rippleEffect",void 0),h("ft-ripple")(be);
|
|
367
|
+
/**
|
|
368
|
+
* @license
|
|
369
|
+
* Copyright 2017 Google LLC
|
|
370
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
371
|
+
*/
|
|
372
|
+
class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}me.directiveName="unsafeHTML",me.resultType=1;const we=se(me);var $e,Oe;!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=""}($e||($e={})),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=""}(Oe||(Oe={})),new Map([...["abw"].map((t=>[t,Oe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Oe.AUDIO])),...["avi"].map((t=>[t,Oe.AVI])),...["chm","xhs"].map((t=>[t,Oe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Oe.CODE])),...["csv"].map((t=>[t,Oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oe.DITA])),...["epub"].map((t=>[t,Oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oe.EXCEL])),...["flac"].map((t=>[t,Oe.FLAC])),...["gif"].map((t=>[t,Oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oe.JPEG])),...["json"].map((t=>[t,Oe.JSON])),...["m4a","m4p"].map((t=>[t,Oe.M4A])),...["mov","qt"].map((t=>[t,Oe.MOV])),...["mp3"].map((t=>[t,Oe.MP3])),...["mp4","m4v"].map((t=>[t,Oe.MP4])),...["ogg","oga"].map((t=>[t,Oe.OGG])),...["pdf","ps"].map((t=>[t,Oe.PDF])),...["png"].map((t=>[t,Oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oe.POWERPOINT])),...["rar"].map((t=>[t,Oe.RAR])),...["stp"].map((t=>[t,Oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Oe.VIDEO])),...["wav"].map((t=>[t,Oe.WAV])),...["wma"].map((t=>[t,Oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oe.YAML])),...["zip"].map((t=>[t,Oe.ZIP]))]);const Se={size:pt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:pt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ke=y`
|
|
373
|
+
:host {
|
|
374
|
+
display: inline-block;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
:host, i.ft-icon {
|
|
378
|
+
width: ${Se.size};
|
|
379
|
+
height: ${Se.size};
|
|
380
|
+
text-align: center;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
i.ft-icon {
|
|
384
|
+
font-size: ${Se.size};
|
|
385
|
+
line-height: 1;
|
|
386
|
+
font-weight: normal;
|
|
387
|
+
text-transform: none;
|
|
388
|
+
font-style: normal;
|
|
389
|
+
font-variant: normal;
|
|
390
|
+
speak: none;
|
|
391
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
392
|
+
text-rendering: auto;
|
|
393
|
+
-webkit-font-smoothing: antialiased;
|
|
394
|
+
-moz-osx-font-smoothing: grayscale;
|
|
395
|
+
vertical-align: ${Se.verticalAlign};
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.ft-icon--fluid-topics {
|
|
399
|
+
font-family: ${Se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ft-icon--file-format {
|
|
403
|
+
font-family: ${Se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ft-icon--material {
|
|
407
|
+
font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
|
|
408
|
+
}
|
|
409
|
+
`;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ne=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ee extends vt{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return H`
|
|
410
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
411
|
+
${we(this.resolvedIcon)}
|
|
412
|
+
<slot ?hidden=${t}></slot>
|
|
413
|
+
</i>
|
|
414
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ce.file_format:this.resolvedIcon=null!==(t=Oe[e.toUpperCase()])&&void 0!==t?t:e;break;case Ce.fluid_topics:this.resolvedIcon=null!==(i=$e[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ee.elementDefinitions={},Ee.styles=ke,Ne([o()],Ee.prototype,"variant",void 0),Ne([o()],Ee.prototype,"value",void 0),Ne([n()],Ee.prototype,"resolvedIcon",void 0),Ne([s("slot")],Ee.prototype,"slottedContent",void 0),h("ft-icon")(Ee);const Re=pt.extend("--ft-chip-color",dt.colorOnSurface),Me={backgroundColor:pt.extend("--ft-chip-background-color",dt.colorSurface),color:Re,fontSize:pt.extend("--ft-chip-font-size",pi.fontSize),iconSize:pt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:pt.extend("--ft-chip-ripple-color",Re),horizontalPadding:pt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:pt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:pt.external(dt.colorOutline,"Design system"),opacityDisabled:pt.external(dt.colorOpacityDisabled,"Design system")},ze=pt.extend("--ft-chip-highlighted-color",pt.extend("--ft-chip-color",dt.colorOnPrimary)),Fe={backgroundColor:pt.extend("--ft-chip-highlighted-background-color",pt.extend("--ft-chip-background-color",dt.colorPrimary)),color:ze,rippleColor:pt.extend("--ft-chip-highlighted-ripple-color",ze)},Ue=pt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=pt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Te=[yt,y`
|
|
415
|
+
:host {
|
|
416
|
+
display: inline-block;
|
|
417
|
+
max-width: 100%;
|
|
418
|
+
pointer-events: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.ft-chip {
|
|
422
|
+
position: relative;
|
|
423
|
+
display: flex;
|
|
424
|
+
justify-content: center;
|
|
425
|
+
align-items: center;
|
|
426
|
+
width: 100%;
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
box-sizing: border-box;
|
|
429
|
+
pointer-events: auto;
|
|
430
|
+
|
|
431
|
+
--ft-chip-internal-font-size: ${Me.fontSize};
|
|
432
|
+
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
433
|
+
${ft(Se.size,Me.iconSize)};
|
|
434
|
+
--ft-chip-internal-vertical-padding: ${Me.verticalPadding};
|
|
435
|
+
--ft-chip-internal-horizontal-padding: ${Me.horizontalPadding};
|
|
436
|
+
--ft-chip-internal-icon-padding: 3px;
|
|
437
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Me.iconSize});
|
|
438
|
+
|
|
439
|
+
border: 1px solid ${Me.colorOutline};
|
|
440
|
+
color: ${Me.color};
|
|
441
|
+
${ft(ce.color,Me.rippleColor)};
|
|
442
|
+
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
443
|
+
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
444
|
+
background-color: ${Me.backgroundColor};
|
|
445
|
+
line-height: var(--ft-chip-internal-content-height);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.ft-chip > *:not(ft-ripple) {
|
|
449
|
+
position: relative;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.ft-chip--dense {
|
|
453
|
+
--ft-chip-internal-icon-padding: 3px;
|
|
454
|
+
--ft-chip-internal-vertical-padding: ${je};
|
|
455
|
+
--ft-chip-internal-horizontal-padding: ${Ue};
|
|
456
|
+
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-chip--no-content {
|
|
460
|
+
--ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.ft-chip--disabled {
|
|
464
|
+
cursor: default;
|
|
465
|
+
pointer-events: none;
|
|
466
|
+
filter: grayscale(1);
|
|
467
|
+
opacity: ${Me.opacityDisabled};
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.ft-chip--highlighted {
|
|
471
|
+
border: none;
|
|
472
|
+
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
473
|
+
background-color: ${Fe.backgroundColor};
|
|
474
|
+
${ft(ce.color,Fe.rippleColor)};
|
|
475
|
+
color: ${Fe.color};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.ft-chip--clickable {
|
|
479
|
+
cursor: pointer;
|
|
480
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.ft-chip:focus {
|
|
484
|
+
outline: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ft-chip--icon-container {
|
|
488
|
+
display: inline-flex;
|
|
489
|
+
position: relative;
|
|
490
|
+
overflow: hidden;
|
|
491
|
+
border-radius: 100%;
|
|
492
|
+
justify-content: center;
|
|
493
|
+
align-items: center;
|
|
494
|
+
flex-shrink: 0;
|
|
495
|
+
|
|
496
|
+
padding: var(--ft-chip-internal-icon-padding);
|
|
497
|
+
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.ft-chip--icon-container > *:not(ft-ripple) {
|
|
501
|
+
position: relative;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.ft-chip--label {
|
|
505
|
+
vertical-align: bottom;
|
|
506
|
+
display: block;
|
|
507
|
+
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
508
|
+
${ft(pi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
509
|
+
${ft(pi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.ft-chip--safari-fix .ft-chip--label {
|
|
513
|
+
margin-right: 0;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
|
|
517
|
+
overflow: hidden;
|
|
518
|
+
white-space: nowrap;
|
|
519
|
+
text-overflow: ellipsis;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
|
|
523
|
+
content: "\\0000a0";
|
|
524
|
+
display: inline-block;
|
|
525
|
+
width: 0;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.ft-chip--no-content .ft-chip--label {
|
|
529
|
+
display: none;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
|
|
533
|
+
width: var(--ft-chip-internal-content-height);
|
|
534
|
+
height: var(--ft-chip-internal-content-height);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.ft-chip--icon-container:focus {
|
|
538
|
+
outline: none;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
542
|
+
order: -1;
|
|
543
|
+
}
|
|
544
|
+
`];var Ae=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Be extends CustomEvent{constructor(){super("icon-click")}}class Le extends vt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":wt};return H`
|
|
545
|
+
<div class="${le(t)}"
|
|
546
|
+
aria-label="${this.getLabel()}"
|
|
547
|
+
tabindex="${this.interactionsOnChip?0:-1}"
|
|
548
|
+
@keyup=${this.onKeyUp}>
|
|
549
|
+
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
550
|
+
<ft-typography variant="body2" element="span" class="ft-chip--label">
|
|
551
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
552
|
+
</ft-typography>
|
|
553
|
+
${this.internalIcon?this.renderIcon():null}
|
|
554
|
+
</div>
|
|
555
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return H`
|
|
556
|
+
<div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
|
|
557
|
+
tabindex="${this.interactionsOnIcon?0:-1}"
|
|
558
|
+
@click=${this.onIconClick}
|
|
559
|
+
@keyup=${this.onIconKeyUp}>
|
|
560
|
+
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
561
|
+
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
562
|
+
</div>
|
|
563
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Be))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Be))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Le.elementDefinitions={"ft-ripple":be,"ft-typography":Ji,"ft-icon":Ee},Le.styles=Te,Ae([o({type:Boolean})],Le.prototype,"highlighted",void 0),Ae([o({type:Boolean})],Le.prototype,"removable",void 0),Ae([o({type:Boolean})],Le.prototype,"disabled",void 0),Ae([o({type:Boolean})],Le.prototype,"clickable",void 0),Ae([o({type:Boolean})],Le.prototype,"iconClickable",void 0),Ae([o({type:Boolean})],Le.prototype,"dense",void 0),Ae([o({type:Boolean})],Le.prototype,"multiLine",void 0),Ae([o({type:String})],Le.prototype,"label",void 0),Ae([o({type:String})],Le.prototype,"icon",void 0),Ae([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Ae([s("ft-typography slot")],Le.prototype,"slottedContent",void 0),h("ft-chip")(Le);var Pe,Ie,_e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class De extends kt{constructor(){super(...arguments),this.keepVisible=!1}render(){return H`
|
|
564
|
+
<ft-tooltip text="${this.tooltipText}">
|
|
565
|
+
<ft-chip>
|
|
566
|
+
${this.renderContent()}
|
|
567
|
+
</ft-chip>
|
|
568
|
+
</ft-tooltip>
|
|
569
|
+
${this.hideIfEmpty()}
|
|
570
|
+
`}renderContent(){return this.metadata?H`${this.valueText}`:this.keepVisible?this.key?H`no value for ${this.key}`:H`no metadata selected`:Z}hideIfEmpty(){return console.log("HIDEIFEMPTY",this.key,this.metadata,this.map),this.keepVisible||this.metadata?Z:H`
|
|
571
|
+
<style>
|
|
572
|
+
:host {
|
|
573
|
+
display: none !important;
|
|
574
|
+
}
|
|
575
|
+
</style>
|
|
576
|
+
`}get metadata(){var t,i;return null===(i=null===(t=this.map)||void 0===t?void 0:t.metadata)||void 0===i?void 0:i.find((t=>t.key==this.key))}get valueText(){var t;let i=(null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))||"";return this.maxLength?(null==i?void 0:i.substring(0,this.maxLength))+"...":i}get tooltipText(){return this.metadata?`${this.key}: ${this.valueText}`:""}}De.elementDefinitions={"ft-tooltip":oe,"ft-chip":Le},De.styles=$t,_e([o()],De.prototype,"key",void 0),_e([o({attribute:"max-length",type:Number})],De.prototype,"maxLength",void 0),_e([o({attribute:!1})],De.prototype,"keepVisible",void 0),_e([(t,i)=>{t.constructor.createProperty(i,{attribute:!1,hasChanged:null!=Ie?Ie:(t,i)=>!c(t,i)});const e=t;e.reduxProperties=e.reduxProperties||new Map,e.reduxProperties.set(i,null!=Pe?Pe:t=>t[i])}],De.prototype,"map",void 0),h("ft-reader-metadata")(De),t.FtReaderMetadata=De,t.FtReaderMetadataCssVariables={},t.styles=$t,Object.defineProperty(t,"i",{value:!0})}({});
|