@fluid-topics/ft-reader-topic-metadata 1.0.42 → 1.0.43
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-topic-metadata.min.js +189 -189
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,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||[]);d(n,l,a);const
|
|
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||[]);d(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 f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)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(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.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=b[b.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(){const t=n.get(this);t?.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)}},d=(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)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(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 b=[document];const x=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){b.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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(Ae){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -39,7 +39,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var 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));function
|
|
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));function h(t,i){try{return function(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,n;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!h(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(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(!h(t[r],i[r]))return!1}return!0}return t!=t&&i!=i}(t,i)}catch(t){return!1}}const c=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
@@ -56,13 +56,13 @@ const p=window,d=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const M=window,z=M.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,
|
|
59
|
+
var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const M=window,z=M.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;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===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+T:h>=0?(o.push(a),e.slice(0,h)+U+e.slice(h)+F+p):e+F+(-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!==j?j.createHTML(a):a,o]};class it{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]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(U)||i.startsWith(F)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+U).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ht:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(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)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ct(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),L(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(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 nt(this.k(A()),this.k(A()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,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=Y}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=et(this,t,i,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=z?z.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{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=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||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 ct{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){et(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.7.3");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var dt,ft;let ut=class extends N{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 nt(i.insertBefore(A(),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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,i,e){let o=t=>b(null!=t?t:e),n=x`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>x`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=x`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>x`var(${b(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):b(null!=i?i:t.defaultValue),o=x`var(${b(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=>x`var(${b(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 xt(t,i){return b(`${t.name}: ${i}`)}const yt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return y(e,t.elementStyles),e}}var mt,$t=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};const wt=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new i(5),this[Ot]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,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 c=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=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}mt=St,$t([o()],kt.prototype,"exportpartsPrefix",void 0),$t([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!c(t,i),...null!=i?i:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),$t([o()],kt.prototype,"customStylesheet",void 0);const Ct=x`
|
|
65
|
+
var dt,ft;let ut=class extends N{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 nt(i.insertBefore(A(),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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,i,e){let o=t=>b(null!=t?t:e),n=x`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>x`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=x`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>x`var(${b(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):b(null!=i?i:t.defaultValue),o=x`var(${b(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=>x`var(${b(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 xt(t,i){return b(`${t.name}: ${i}`)}const yt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return y(e,t.elementStyles),e}}var mt,$t=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};const wt=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new i(5),this[Ot]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,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(", "))}}mt=St,$t([o()],kt.prototype,"exportpartsPrefix",void 0),$t([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!h(t,i),...null!=i?i:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),$t([o()],kt.prototype,"customStylesheet",void 0);const Ct=x`
|
|
66
66
|
.ft-no-text-select {
|
|
67
67
|
-webkit-touch-callout: none;
|
|
68
68
|
-webkit-user-select: none;
|
|
@@ -94,118 +94,118 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`;var Nt,Rt;const
|
|
97
|
+
`;var Nt,Rt,Mt;const zt=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores");class Ft extends kt{constructor(){super(...arguments),this[Nt]=new Map,this[Rt]=new Map,this[Mt]=[]}updated(t){var i;super.updated(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ut].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Bt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ut].delete(i)}setupStore(t,i){this[Ut].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ut].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[jt].set(t,i.subscribe((()=>this.updateFromStores()))),Bt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[zt].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[jt]).forEach((t=>this.unsubscribeFromStore(t))),this[zt].forEach((t=>t())),this[zt]=[]}unsubscribeFromStore(t){this[jt].has(t)&&this[jt].get(t)(),this[jt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Bt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Tt,It,At;Nt=jt,Rt=Ut,Mt=zt;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(At=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==At?At:""),Pt=x`
|
|
98
98
|
:host {
|
|
99
99
|
display: inline-block;
|
|
100
100
|
}
|
|
101
|
-
`;var
|
|
101
|
+
`;var Dt=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 _t extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Wt=Symbol("registerInterval");class Ht extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Wt]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Wt]):this.dispatchEvent(new _t)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Wt,Dt([n()],e.prototype,"stateManager",void 0),e}(Ft)){}var Zt=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 Kt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Vt=Symbol("registerInterval");class Jt extends(function(t){var i;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[i]=0}connectedCallback(){super.connectedCallback(),this[Vt]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Vt]):this.dispatchEvent(new Kt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return i=Vt,Zt([n()],e.prototype,"tocNode",void 0),Zt([n()],e.prototype,"disableContextInteractions",void 0),e}(Ht)){}
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2020 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const
|
|
106
|
+
*/const qt=Symbol.for(""),Xt=t=>{if((null==t?void 0:t.r)===qt)return null==t?void 0:t._$litStatic$},Yt=t=>({_$litStatic$:t,r:qt}),Gt=new Map,Qt=(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=Xt(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Gt.get(t))&&(s.raw=s,Gt.set(t,i=s)),e=a}return t(i,...e)})(q);var ti;!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"}(ti||(ti={}));const ii=bt.extend("--ft-typography-font-family",yt.titleFont),ei=bt.extend("--ft-typography-font-family",yt.contentFont),oi={fontFamily:ei,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ni=bt.extend("--ft-typography-title-font-family",ii),ri=bt.extend("--ft-typography-title-font-size",oi.fontSize,"20px"),si=bt.extend("--ft-typography-title-font-weight",oi.fontWeight,"normal"),ai=bt.extend("--ft-typography-title-letter-spacing",oi.letterSpacing,"0.15px"),li=bt.extend("--ft-typography-title-line-height",oi.lineHeight,"1.2"),hi=bt.extend("--ft-typography-title-text-transform",oi.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ii),pi=bt.extend("--ft-typography-title-dense-font-size",oi.fontSize,"14px"),di=bt.extend("--ft-typography-title-dense-font-weight",oi.fontWeight,"normal"),fi=bt.extend("--ft-typography-title-dense-letter-spacing",oi.letterSpacing,"0.105px"),ui=bt.extend("--ft-typography-title-dense-line-height",oi.lineHeight,"1.7"),vi=bt.extend("--ft-typography-title-dense-text-transform",oi.textTransform,"inherit"),bi=bt.extend("--ft-typography-subtitle1-font-family",ei),xi=bt.extend("--ft-typography-subtitle1-font-size",oi.fontSize,"16px"),yi=bt.extend("--ft-typography-subtitle1-font-weight",oi.fontWeight,"600"),gi=bt.extend("--ft-typography-subtitle1-letter-spacing",oi.letterSpacing,"0.144px"),mi=bt.extend("--ft-typography-subtitle1-line-height",oi.lineHeight,"1.5"),$i=bt.extend("--ft-typography-subtitle1-text-transform",oi.textTransform,"inherit"),wi=bt.extend("--ft-typography-subtitle2-font-family",ei),Oi=bt.extend("--ft-typography-subtitle2-font-size",oi.fontSize,"14px"),Si=bt.extend("--ft-typography-subtitle2-font-weight",oi.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",oi.letterSpacing,"0.098px"),Ci=bt.extend("--ft-typography-subtitle2-line-height",oi.lineHeight,"1.7"),Ei=bt.extend("--ft-typography-subtitle2-text-transform",oi.textTransform,"inherit"),Ni=bt.extend("--ft-typography-body1-font-family",ei),Ri=bt.extend("--ft-typography-body1-font-size",oi.fontSize,"16px"),Mi=bt.extend("--ft-typography-body1-font-weight",oi.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",oi.letterSpacing,"0.496px"),ji=bt.extend("--ft-typography-body1-line-height",oi.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",oi.textTransform,"inherit"),Fi={fontFamily:bt.extend("--ft-typography-body2-font-family",ei),fontSize:bt.extend("--ft-typography-body2-font-size",oi.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",oi.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",oi.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",oi.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",oi.textTransform,"inherit")},Bi=bt.extend("--ft-typography-caption-font-family",ei),Ti=bt.extend("--ft-typography-caption-font-size",oi.fontSize,"12px"),Ii=bt.extend("--ft-typography-caption-font-weight",oi.fontWeight,"normal"),Ai=bt.extend("--ft-typography-caption-letter-spacing",oi.letterSpacing,"0.396px"),Li=bt.extend("--ft-typography-caption-line-height",oi.lineHeight,"1.33"),Pi=bt.extend("--ft-typography-caption-text-transform",oi.textTransform,"inherit"),Di=bt.extend("--ft-typography-breadcrumb-font-family",ei),_i=bt.extend("--ft-typography-breadcrumb-font-size",oi.fontSize,"10px"),Wi=bt.extend("--ft-typography-breadcrumb-font-weight",oi.fontWeight,"normal"),Hi=bt.extend("--ft-typography-breadcrumb-letter-spacing",oi.letterSpacing,"0.33px"),Zi=bt.extend("--ft-typography-breadcrumb-line-height",oi.lineHeight,"1.6"),Ki=bt.extend("--ft-typography-breadcrumb-text-transform",oi.textTransform,"inherit"),Vi=bt.extend("--ft-typography-overline-font-family",ei),Ji=bt.extend("--ft-typography-overline-font-size",oi.fontSize,"10px"),qi=bt.extend("--ft-typography-overline-font-weight",oi.fontWeight,"normal"),Xi=bt.extend("--ft-typography-overline-letter-spacing",oi.letterSpacing,"1.5px"),Yi=bt.extend("--ft-typography-overline-line-height",oi.lineHeight,"1.6"),Gi=bt.extend("--ft-typography-overline-text-transform",oi.textTransform,"uppercase"),Qi={fontFamily:bt.extend("--ft-typography-button-font-family",ei),fontSize:bt.extend("--ft-typography-button-font-size",oi.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",oi.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",oi.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",oi.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",oi.textTransform,"uppercase")},te=x`
|
|
107
107
|
.ft-typography--title {
|
|
108
|
-
font-family: ${
|
|
109
|
-
font-size: ${
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
-
line-height: ${
|
|
113
|
-
text-transform: ${
|
|
114
|
-
}
|
|
115
|
-
`,Gi=x`
|
|
116
|
-
.ft-typography--title-dense {
|
|
117
|
-
font-family: ${ai};
|
|
118
|
-
font-size: ${li};
|
|
119
|
-
font-weight: ${ci};
|
|
120
|
-
letter-spacing: ${hi};
|
|
121
|
-
line-height: ${pi};
|
|
122
|
-
text-transform: ${di};
|
|
123
|
-
}
|
|
124
|
-
`,Qi=x`
|
|
125
|
-
.ft-typography--subtitle1 {
|
|
126
|
-
font-family: ${fi};
|
|
127
|
-
font-size: ${ui};
|
|
128
|
-
font-weight: ${vi};
|
|
129
|
-
letter-spacing: ${bi};
|
|
130
|
-
line-height: ${xi};
|
|
131
|
-
text-transform: ${yi};
|
|
132
|
-
}
|
|
133
|
-
`,te=x`
|
|
134
|
-
.ft-typography--subtitle2 {
|
|
135
|
-
font-family: ${gi};
|
|
136
|
-
font-size: ${mi};
|
|
137
|
-
font-weight: ${$i};
|
|
138
|
-
letter-spacing: ${wi};
|
|
139
|
-
line-height: ${Oi};
|
|
140
|
-
text-transform: ${Si};
|
|
108
|
+
font-family: ${ni};
|
|
109
|
+
font-size: ${ri};
|
|
110
|
+
font-weight: ${si};
|
|
111
|
+
letter-spacing: ${ai};
|
|
112
|
+
line-height: ${li};
|
|
113
|
+
text-transform: ${hi};
|
|
141
114
|
}
|
|
142
|
-
|
|
143
115
|
`,ie=x`
|
|
144
|
-
.ft-typography--
|
|
145
|
-
font-family: ${
|
|
146
|
-
font-size: ${
|
|
147
|
-
font-weight: ${
|
|
148
|
-
letter-spacing: ${
|
|
149
|
-
line-height: ${
|
|
150
|
-
text-transform: ${
|
|
116
|
+
.ft-typography--title-dense {
|
|
117
|
+
font-family: ${ci};
|
|
118
|
+
font-size: ${pi};
|
|
119
|
+
font-weight: ${di};
|
|
120
|
+
letter-spacing: ${fi};
|
|
121
|
+
line-height: ${ui};
|
|
122
|
+
text-transform: ${vi};
|
|
151
123
|
}
|
|
152
124
|
`,ee=x`
|
|
153
|
-
.ft-typography--
|
|
154
|
-
font-family: ${
|
|
155
|
-
font-size: ${
|
|
156
|
-
font-weight: ${
|
|
157
|
-
letter-spacing: ${
|
|
158
|
-
line-height: ${
|
|
159
|
-
text-transform: ${
|
|
125
|
+
.ft-typography--subtitle1 {
|
|
126
|
+
font-family: ${bi};
|
|
127
|
+
font-size: ${xi};
|
|
128
|
+
font-weight: ${yi};
|
|
129
|
+
letter-spacing: ${gi};
|
|
130
|
+
line-height: ${mi};
|
|
131
|
+
text-transform: ${$i};
|
|
160
132
|
}
|
|
161
133
|
`,oe=x`
|
|
162
|
-
.ft-typography--
|
|
163
|
-
font-family: ${
|
|
164
|
-
font-size: ${
|
|
165
|
-
font-weight: ${
|
|
166
|
-
letter-spacing: ${
|
|
167
|
-
line-height: ${
|
|
168
|
-
text-transform: ${
|
|
134
|
+
.ft-typography--subtitle2 {
|
|
135
|
+
font-family: ${wi};
|
|
136
|
+
font-size: ${Oi};
|
|
137
|
+
font-weight: ${Si};
|
|
138
|
+
letter-spacing: ${ki};
|
|
139
|
+
line-height: ${Ci};
|
|
140
|
+
text-transform: ${Ei};
|
|
169
141
|
}
|
|
142
|
+
|
|
170
143
|
`,ne=x`
|
|
171
|
-
.ft-typography--
|
|
172
|
-
font-family: ${
|
|
173
|
-
font-size: ${
|
|
174
|
-
font-weight: ${
|
|
175
|
-
letter-spacing: ${
|
|
176
|
-
line-height: ${
|
|
177
|
-
text-transform: ${
|
|
144
|
+
.ft-typography--body1 {
|
|
145
|
+
font-family: ${Ni};
|
|
146
|
+
font-size: ${Ri};
|
|
147
|
+
font-weight: ${Mi};
|
|
148
|
+
letter-spacing: ${zi};
|
|
149
|
+
line-height: ${ji};
|
|
150
|
+
text-transform: ${Ui};
|
|
178
151
|
}
|
|
179
152
|
`,re=x`
|
|
180
|
-
.ft-typography--
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
153
|
+
.ft-typography--body2 {
|
|
154
|
+
font-family: ${Fi.fontFamily};
|
|
155
|
+
font-size: ${Fi.fontSize};
|
|
156
|
+
font-weight: ${Fi.fontWeight};
|
|
157
|
+
letter-spacing: ${Fi.letterSpacing};
|
|
158
|
+
line-height: ${Fi.lineHeight};
|
|
159
|
+
text-transform: ${Fi.textTransform};
|
|
187
160
|
}
|
|
188
161
|
`,se=x`
|
|
189
|
-
.ft-typography--
|
|
190
|
-
font-family: ${
|
|
191
|
-
font-size: ${
|
|
192
|
-
font-weight: ${
|
|
193
|
-
letter-spacing: ${
|
|
194
|
-
line-height: ${
|
|
195
|
-
text-transform: ${
|
|
162
|
+
.ft-typography--caption {
|
|
163
|
+
font-family: ${Bi};
|
|
164
|
+
font-size: ${Ti};
|
|
165
|
+
font-weight: ${Ii};
|
|
166
|
+
letter-spacing: ${Ai};
|
|
167
|
+
line-height: ${Li};
|
|
168
|
+
text-transform: ${Pi};
|
|
196
169
|
}
|
|
197
170
|
`,ae=x`
|
|
171
|
+
.ft-typography--breadcrumb {
|
|
172
|
+
font-family: ${Di};
|
|
173
|
+
font-size: ${_i};
|
|
174
|
+
font-weight: ${Wi};
|
|
175
|
+
letter-spacing: ${Hi};
|
|
176
|
+
line-height: ${Zi};
|
|
177
|
+
text-transform: ${Ki};
|
|
178
|
+
}
|
|
179
|
+
`,le=x`
|
|
180
|
+
.ft-typography--overline {
|
|
181
|
+
font-family: ${Vi};
|
|
182
|
+
font-size: ${Ji};
|
|
183
|
+
font-weight: ${qi};
|
|
184
|
+
letter-spacing: ${Xi};
|
|
185
|
+
line-height: ${Yi};
|
|
186
|
+
text-transform: ${Gi};
|
|
187
|
+
}
|
|
188
|
+
`,he=x`
|
|
189
|
+
.ft-typography--button {
|
|
190
|
+
font-family: ${Qi.fontFamily};
|
|
191
|
+
font-size: ${Qi.fontSize};
|
|
192
|
+
font-weight: ${Qi.fontWeight};
|
|
193
|
+
letter-spacing: ${Qi.letterSpacing};
|
|
194
|
+
line-height: ${Qi.lineHeight};
|
|
195
|
+
text-transform: ${Qi.textTransform};
|
|
196
|
+
}
|
|
197
|
+
`,ce=x`
|
|
198
198
|
.ft-typography {
|
|
199
199
|
vertical-align: inherit;
|
|
200
200
|
}
|
|
201
|
-
`;var
|
|
202
|
-
<${
|
|
201
|
+
`;var pe=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.variant=ti.body1}render(){return this.element?Qt`
|
|
202
|
+
<${Yt(this.element)}
|
|
203
203
|
class="ft-typography ft-typography--${this.variant}">
|
|
204
204
|
<slot></slot>
|
|
205
|
-
</${
|
|
206
|
-
`:
|
|
205
|
+
</${Yt(this.element)}>
|
|
206
|
+
`:Qt`
|
|
207
207
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
208
|
-
`}}
|
|
208
|
+
`}}de.styles=[te,ie,ee,oe,ne,re,se,ae,le,he,ce],pe([o()],de.prototype,"element",void 0),pe([o()],de.prototype,"variant",void 0),c("ft-typography")(de);const fe=bt.create("--ft-tooltip-distance","SIZE","4px"),ue=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ve=bt.create("--ft-tooltip-background-color","COLOR","#666666"),be=bt.create("--ft-tooltip-z-index","NUMBER","1"),xe=bt.external(yt.borderRadiusS,"Design system"),ye=bt.create("--ft-tooltip-max-width","SIZE","150px"),ge=x`
|
|
209
209
|
.ft-tooltip--container {
|
|
210
210
|
display: block;
|
|
211
211
|
position: relative;
|
|
@@ -221,23 +221,23 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
221
221
|
box-sizing: border-box;
|
|
222
222
|
overflow: hidden;
|
|
223
223
|
width: max-content;
|
|
224
|
-
max-width: ${
|
|
224
|
+
max-width: ${ye};
|
|
225
225
|
text-align: center;
|
|
226
|
-
padding: ${
|
|
227
|
-
z-index: ${
|
|
226
|
+
padding: ${fe};
|
|
227
|
+
z-index: ${be};
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
.ft-tooltip--content {
|
|
231
231
|
padding: 4px 8px;
|
|
232
|
-
border-radius: ${
|
|
233
|
-
background-color: ${
|
|
234
|
-
color: ${
|
|
232
|
+
border-radius: ${xe};
|
|
233
|
+
background-color: ${ve};
|
|
234
|
+
color: ${ue};
|
|
235
235
|
top: -500px;
|
|
236
236
|
left: -500px;
|
|
237
237
|
position: relative;
|
|
238
238
|
word-break: break-word;
|
|
239
239
|
}
|
|
240
|
-
`;var
|
|
240
|
+
`;var me=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 $e extends kt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
|
|
241
241
|
<div part="container"
|
|
242
242
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
243
243
|
@mouseenter=${this.onHover}
|
|
@@ -255,24 +255,24 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
255
255
|
</div>
|
|
256
256
|
</div>
|
|
257
257
|
</div>
|
|
258
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){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=4-i.left);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${i.width}px, ${
|
|
258
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){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=4-i.left);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${i.width}px, ${ye})`}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())}}$e.elementDefinitions={"ft-typography":de},$e.styles=ge,me([o()],$e.prototype,"text",void 0),me([o({type:Boolean})],$e.prototype,"manual",void 0),me([o({type:Boolean})],$e.prototype,"inline",void 0),me([o({type:Number})],$e.prototype,"delay",void 0),me([o()],$e.prototype,"position",void 0),me([
|
|
259
259
|
/**
|
|
260
260
|
* @license
|
|
261
261
|
* Copyright 2017 Google LLC
|
|
262
262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
263
|
*/
|
|
264
|
-
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)]
|
|
264
|
+
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)],$e.prototype,"slotNodes",void 0),me([s(".ft-tooltip--container")],$e.prototype,"container",void 0),me([s("slot")],$e.prototype,"target",void 0),me([s(".ft-tooltip")],$e.prototype,"tooltip",void 0),me([s(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0),me([n()],$e.prototype,"visible",void 0),c("ft-tooltip")($e);
|
|
265
265
|
/**
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright 2017 Google LLC
|
|
268
268
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
269
269
|
*/
|
|
270
|
-
const
|
|
270
|
+
const we=1,Oe=2,Se=t=>(...i)=>({_$litDirective$:t,values:i});class ke{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)}}
|
|
271
271
|
/**
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright 2018 Google LLC
|
|
274
274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
275
|
-
*/const
|
|
275
|
+
*/const Ce=Se(class extends ke{constructor(t){var i;if(super(t),t.type!==we||"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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Ee=bt.extend("--ft-ripple-color",yt.colorContent),Ne={color:Ee,backgroundColor:bt.extend("--ft-ripple-background-color",Ee),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Re=bt.extend("--ft-ripple-color",yt.colorPrimary),Me=Re,ze=bt.extend("--ft-ripple-background-color",Re),je=bt.extend("--ft-ripple-color",yt.colorSecondary),Ue=je,Fe=bt.extend("--ft-ripple-background-color",je),Be=x`
|
|
276
276
|
:host {
|
|
277
277
|
display: contents;
|
|
278
278
|
}
|
|
@@ -285,7 +285,7 @@ const ge=1,me=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class we{constructo
|
|
|
285
285
|
|
|
286
286
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
287
287
|
overflow: hidden;
|
|
288
|
-
border-radius: ${
|
|
288
|
+
border-radius: ${Ne.borderRadius};
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.ft-ripple .ft-ripple--background,
|
|
@@ -295,27 +295,27 @@ const ge=1,me=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class we{constructo
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.ft-ripple .ft-ripple--background {
|
|
298
|
-
background-color: ${
|
|
298
|
+
background-color: ${Ne.backgroundColor};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.ft-ripple .ft-ripple--effect {
|
|
302
|
-
background-color: ${
|
|
302
|
+
background-color: ${Ne.color};
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
306
|
-
background-color: ${
|
|
306
|
+
background-color: ${Fe};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
310
|
-
background-color: ${
|
|
310
|
+
background-color: ${Ue};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
314
|
-
background-color: ${
|
|
314
|
+
background-color: ${ze};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
318
|
-
background-color: ${
|
|
318
|
+
background-color: ${Me};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-ripple .ft-ripple--background {
|
|
@@ -347,22 +347,22 @@ const ge=1,me=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class we{constructo
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
350
|
-
opacity: ${
|
|
350
|
+
opacity: ${Ne.opacityContentOnSurfaceHover};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
354
|
-
opacity: ${
|
|
354
|
+
opacity: ${Ne.opacityContentOnSurfaceSelected};
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
358
|
-
opacity: ${
|
|
358
|
+
opacity: ${Ne.opacityContentOnSurfaceFocused};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
362
|
-
opacity: ${
|
|
362
|
+
opacity: ${Ne.opacityContentOnSurfacePressed};
|
|
363
363
|
transform: translate(-50%, -50%) scale(1);
|
|
364
364
|
}
|
|
365
|
-
`;var
|
|
365
|
+
`;var Te=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 Ie extends kt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y: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.isFocusVisible(null==t?void 0:t.target)&&!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 q`
|
|
366
366
|
<style>
|
|
367
367
|
.ft-ripple .ft-ripple--effect,
|
|
368
368
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -375,17 +375,17 @@ const ge=1,me=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class we{constructo
|
|
|
375
375
|
top: ${this.originY}px;
|
|
376
376
|
}
|
|
377
377
|
</style>
|
|
378
|
-
<div class="${
|
|
378
|
+
<div class="${Ce(t)}">
|
|
379
379
|
<div class="ft-ripple--background"></div>
|
|
380
380
|
<div class="ft-ripple--effect"></div>
|
|
381
381
|
</div>
|
|
382
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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,this.target=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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}
|
|
382
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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,this.target=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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}Ie.elementDefinitions={},Ie.styles=Be,Te([o({type:Boolean})],Ie.prototype,"primary",void 0),Te([o({type:Boolean})],Ie.prototype,"secondary",void 0),Te([o({type:Boolean})],Ie.prototype,"unbounded",void 0),Te([o({type:Boolean})],Ie.prototype,"activated",void 0),Te([o({type:Boolean})],Ie.prototype,"selected",void 0),Te([o({type:Boolean})],Ie.prototype,"disabled",void 0),Te([n()],Ie.prototype,"hovered",void 0),Te([n()],Ie.prototype,"focused",void 0),Te([n()],Ie.prototype,"pressed",void 0),Te([n()],Ie.prototype,"rippling",void 0),Te([n()],Ie.prototype,"rippleSize",void 0),Te([n()],Ie.prototype,"originX",void 0),Te([n()],Ie.prototype,"originY",void 0),Te([s(".ft-ripple")],Ie.prototype,"ripple",void 0),Te([s(".ft-ripple--effect")],Ie.prototype,"rippleEffect",void 0),c("ft-ripple")(Ie);
|
|
383
383
|
/**
|
|
384
384
|
* @license
|
|
385
385
|
* Copyright 2017 Google LLC
|
|
386
386
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
387
387
|
*/
|
|
388
|
-
class
|
|
388
|
+
class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ae.directiveName="unsafeHTML",Ae.resultType=1;const Le=Se(Ae);var Pe,De;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Pe||(Pe={})),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=""}(De||(De={})),new Map([...["abw"].map((t=>[t,De.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,De.AUDIO])),...["avi"].map((t=>[t,De.AVI])),...["chm","xhs"].map((t=>[t,De.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,De.CODE])),...["csv"].map((t=>[t,De.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,De.DITA])),...["epub"].map((t=>[t,De.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,De.EXCEL])),...["flac"].map((t=>[t,De.FLAC])),...["gif"].map((t=>[t,De.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,De.GZIP])),...["html","htm","xhtml"].map((t=>[t,De.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,De.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,De.JPEG])),...["json"].map((t=>[t,De.JSON])),...["m4a","m4p"].map((t=>[t,De.M4A])),...["mov","qt"].map((t=>[t,De.MOV])),...["mp3"].map((t=>[t,De.MP3])),...["mp4","m4v"].map((t=>[t,De.MP4])),...["ogg","oga"].map((t=>[t,De.OGG])),...["pdf","ps"].map((t=>[t,De.PDF])),...["png"].map((t=>[t,De.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,De.POWERPOINT])),...["rar"].map((t=>[t,De.RAR])),...["stp"].map((t=>[t,De.STP])),...["txt","rtf","md","mdown"].map((t=>[t,De.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,De.VIDEO])),...["wav"].map((t=>[t,De.WAV])),...["wma"].map((t=>[t,De.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,De.WORD])),...["xml","xsl","rdf"].map((t=>[t,De.XML])),...["yaml","yml","x-yaml"].map((t=>[t,De.YAML])),...["zip"].map((t=>[t,De.ZIP]))]);const _e={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},We=x`
|
|
389
389
|
:host, i.ft-icon {
|
|
390
390
|
display: inline-flex;
|
|
391
391
|
align-items: center;
|
|
@@ -394,14 +394,14 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
:host {
|
|
397
|
-
width: ${
|
|
398
|
-
height: ${
|
|
397
|
+
width: ${_e.size};
|
|
398
|
+
height: ${_e.size};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
i.ft-icon {
|
|
402
402
|
width: 100%;
|
|
403
403
|
height: 100%;
|
|
404
|
-
font-size: ${
|
|
404
|
+
font-size: ${_e.size};
|
|
405
405
|
line-height: 1;
|
|
406
406
|
font-weight: normal;
|
|
407
407
|
text-transform: none;
|
|
@@ -412,33 +412,33 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
412
412
|
text-rendering: auto;
|
|
413
413
|
-webkit-font-smoothing: antialiased;
|
|
414
414
|
-moz-osx-font-smoothing: grayscale;
|
|
415
|
-
vertical-align: ${
|
|
415
|
+
vertical-align: ${_e.verticalAlign};
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
i.ft-icon.ft-icon--fluid-topics {
|
|
419
|
-
font-family: ${
|
|
419
|
+
font-family: ${_e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
420
420
|
|
|
421
421
|
/* Ugly fix because font is broken */
|
|
422
|
-
font-size: calc(0.75 * ${
|
|
423
|
-
line-height: ${
|
|
422
|
+
font-size: calc(0.75 * ${_e.size});
|
|
423
|
+
line-height: ${_e.size};
|
|
424
424
|
position: relative;
|
|
425
425
|
top: -4%;
|
|
426
426
|
justify-content: center;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
.ft-icon--file-format {
|
|
430
|
-
font-family: ${
|
|
430
|
+
font-family: ${_e.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
.ft-icon--material {
|
|
434
|
-
font-family: ${
|
|
434
|
+
font-family: ${_e.materialFontFamily}, "Material Icons", sans-serif;
|
|
435
435
|
}
|
|
436
|
-
`;var
|
|
436
|
+
`;var He;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(He||(He={}));var Ze=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 Ke extends kt{constructor(){super(...arguments),this.resolvedIcon=Y}render(){const t=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,i=t!==He.material||!!this.value;return q`
|
|
437
437
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
438
|
-
${
|
|
438
|
+
${Le(this.resolvedIcon)}
|
|
439
439
|
<slot ?hidden=${i}></slot>
|
|
440
440
|
</i>
|
|
441
|
-
`}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
|
|
441
|
+
`}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 He.file_format:this.resolvedIcon=null!==(t=De[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case He.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(i=Pe[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ke.elementDefinitions={},Ke.styles=We,Ze([o()],Ke.prototype,"variant",void 0),Ze([o()],Ke.prototype,"value",void 0),Ze([n()],Ke.prototype,"resolvedIcon",void 0),Ze([s("slot")],Ke.prototype,"slottedContent",void 0),c("ft-icon")(Ke);const Ve={color:bt.extend("--ft-loader-color",yt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Je=x`
|
|
442
442
|
:host {
|
|
443
443
|
line-height: 0;
|
|
444
444
|
}
|
|
@@ -447,8 +447,8 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
447
447
|
display: inline-block;
|
|
448
448
|
position: relative;
|
|
449
449
|
|
|
450
|
-
width: ${
|
|
451
|
-
height: ${
|
|
450
|
+
width: ${Ve.size};
|
|
451
|
+
height: ${Ve.size};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-loader div {
|
|
@@ -457,7 +457,7 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
457
457
|
width: 25%;
|
|
458
458
|
height: 25%;
|
|
459
459
|
border-radius: 50%;
|
|
460
|
-
background: ${
|
|
460
|
+
background: ${Ve.color};
|
|
461
461
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
462
462
|
}
|
|
463
463
|
|
|
@@ -504,17 +504,17 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
504
504
|
transform: translate(0, 0);
|
|
505
505
|
}
|
|
506
506
|
100% {
|
|
507
|
-
transform: translate(calc(0.35 * ${
|
|
507
|
+
transform: translate(calc(0.35 * ${Ve.size}), 0);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`;class
|
|
510
|
+
`;class qe extends kt{render(){return q`
|
|
511
511
|
<div class="ft-loader">
|
|
512
512
|
<div></div>
|
|
513
513
|
<div></div>
|
|
514
514
|
<div></div>
|
|
515
515
|
<div></div>
|
|
516
516
|
</div>
|
|
517
|
-
`}}
|
|
517
|
+
`}}qe.styles=Je,c("ft-loader")(qe);const Xe=bt.extend("--ft-button-color",yt.colorPrimary),Ye={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Xe,fontSize:bt.extend("--ft-button-font-size",Qi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Xe),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Ge=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Qe={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Ge,rippleColor:bt.extend("--ft-button-primary-ripple-color",Ge)},to=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),io=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),eo=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),oo=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),no=[x`
|
|
518
518
|
:host {
|
|
519
519
|
display: inline-block;
|
|
520
520
|
max-width: 100%;
|
|
@@ -525,7 +525,7 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
525
525
|
box-shadow: 0px 0px 0px transparent;
|
|
526
526
|
border: 0px solid transparent;
|
|
527
527
|
text-shadow: 0px 0px 0px transparent;
|
|
528
|
-
font-size: ${
|
|
528
|
+
font-size: ${Ye.fontSize};
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
button:hover {
|
|
@@ -554,31 +554,31 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
554
554
|
border: none;
|
|
555
555
|
pointer-events: auto;
|
|
556
556
|
|
|
557
|
-
--ft-button-internal-line-height: max(calc(${
|
|
558
|
-
--ft-button-internal-color: ${
|
|
559
|
-
${xt(
|
|
560
|
-
${xt(
|
|
557
|
+
--ft-button-internal-line-height: max(calc(${Ye.fontSize} + 2px), ${Ye.iconSize});
|
|
558
|
+
--ft-button-internal-color: ${Ye.color};
|
|
559
|
+
${xt(_e.size,Ye.iconSize)};
|
|
560
|
+
${xt(Ne.color,Ye.rippleColor)};
|
|
561
561
|
|
|
562
|
-
border-radius: ${
|
|
563
|
-
padding: ${
|
|
564
|
-
background-color: ${
|
|
562
|
+
border-radius: ${Ye.borderRadius};
|
|
563
|
+
padding: ${Ye.verticalPadding} ${Ye.horizontalPadding};
|
|
564
|
+
background-color: ${Ye.backgroundColor};
|
|
565
565
|
color: var(--ft-button-internal-color);
|
|
566
566
|
-webkit-mask-image: radial-gradient(white, black);
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
.ft-button.ft-button--outlined {
|
|
570
570
|
border: 1px solid var(--ft-button-internal-color);
|
|
571
|
-
padding: calc(${
|
|
571
|
+
padding: calc(${Ye.verticalPadding} - 1px) calc(${Ye.horizontalPadding} - 1px);
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
.ft-button.ft-button--dense {
|
|
575
|
-
padding: ${
|
|
576
|
-
border-radius: ${
|
|
577
|
-
gap: ${
|
|
575
|
+
padding: ${io} ${eo};
|
|
576
|
+
border-radius: ${to};
|
|
577
|
+
gap: ${oo};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
581
|
-
padding: calc(${
|
|
581
|
+
padding: calc(${io} - 1px) calc(${eo} - 1px);
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
.ft-button:not([disabled]):hover {
|
|
@@ -586,22 +586,22 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
.ft-button--round {
|
|
589
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
589
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ye.verticalPadding});
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
.ft-button--round.ft-button--dense {
|
|
593
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
593
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${io});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
.ft-button[disabled] {
|
|
597
597
|
filter: grayscale(1);
|
|
598
|
-
opacity: ${
|
|
598
|
+
opacity: ${Ye.opacityDisabled};
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
.ft-button.ft-button--primary {
|
|
602
|
-
background-color: ${
|
|
603
|
-
--ft-button-internal-color: ${
|
|
604
|
-
${xt(
|
|
602
|
+
background-color: ${Qe.backgroundColor};
|
|
603
|
+
--ft-button-internal-color: ${Qe.color};
|
|
604
|
+
${xt(Ne.color,Qe.rippleColor)};
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
.ft-button:focus {
|
|
@@ -614,13 +614,13 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
614
614
|
white-space: nowrap;
|
|
615
615
|
text-overflow: ellipsis;
|
|
616
616
|
display: block;
|
|
617
|
-
margin: 0 ${
|
|
618
|
-
${xt(
|
|
619
|
-
${xt(
|
|
617
|
+
margin: 0 ${Ye.iconPadding};
|
|
618
|
+
${xt(Qi.fontSize,"1em")};
|
|
619
|
+
${xt(Qi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
.ft-button--dense .ft-button--label {
|
|
623
|
-
margin: 0 ${
|
|
623
|
+
margin: 0 ${oo};
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
.ft-button--label[hidden] {
|
|
@@ -633,13 +633,13 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.ft-button--label[hidden] + ft-icon {
|
|
636
|
-
margin: 0 calc(${
|
|
637
|
-
padding: 0 ${
|
|
636
|
+
margin: 0 calc(${Ye.horizontalPadding} * -1);
|
|
637
|
+
padding: 0 ${Ye.verticalPadding};
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
641
|
-
margin: 0 calc(${
|
|
642
|
-
padding: 0 ${
|
|
641
|
+
margin: 0 calc(${eo} * -1);
|
|
642
|
+
padding: 0 ${io};
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -648,19 +648,19 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
ft-loader {
|
|
651
|
-
${xt(
|
|
652
|
-
${xt(
|
|
651
|
+
${xt(Ve.size,Ye.iconSize)};
|
|
652
|
+
${xt(Ve.color,"var(--ft-button-internal-color)")};
|
|
653
653
|
}
|
|
654
|
-
`,Ct];var
|
|
654
|
+
`,Ct];var ro=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 so extends kt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
|
|
655
655
|
<button part="button"
|
|
656
|
-
class="${
|
|
656
|
+
class="${Ce(t)}"
|
|
657
657
|
aria-label="${this.getLabel()}"
|
|
658
658
|
?disabled=${this.isDisabled()}>
|
|
659
659
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
660
660
|
<ft-typography part="label"
|
|
661
661
|
variant="button"
|
|
662
662
|
element="span"
|
|
663
|
-
class="ft-button--label ${
|
|
663
|
+
class="ft-button--label ${Lt?"ft-safari-ellipsis-fix":""}"
|
|
664
664
|
?hidden=${!this.hasTextContent()}>
|
|
665
665
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
666
666
|
</ft-typography>
|
|
@@ -674,7 +674,7 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
674
674
|
</ft-tooltip>
|
|
675
675
|
`:t}resolveIcon(){return this.loading?q`
|
|
676
676
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?q`
|
|
677
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Y}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}}
|
|
677
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Y}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}}so.elementDefinitions={"ft-ripple":Ie,"ft-tooltip":$e,"ft-typography":de,"ft-icon":Ke,"ft-loader":qe},so.styles=[Et,no],ro([o({type:String,reflect:!0})],so.prototype,"role",void 0),ro([o({type:Boolean})],so.prototype,"primary",void 0),ro([o({type:Boolean})],so.prototype,"outlined",void 0),ro([o({type:Boolean})],so.prototype,"disabled",void 0),ro([o({type:Boolean})],so.prototype,"dense",void 0),ro([o({type:Boolean})],so.prototype,"round",void 0),ro([o()],so.prototype,"label",void 0),ro([o()],so.prototype,"icon",void 0),ro([o()],so.prototype,"iconVariant",void 0),ro([o({type:Boolean})],so.prototype,"trailingIcon",void 0),ro([o({type:Boolean})],so.prototype,"loading",void 0),ro([o()],so.prototype,"tooltipPosition",void 0),ro([o({type:Boolean})],so.prototype,"hideTooltip",void 0),ro([o({type:Boolean})],so.prototype,"forceTooltip",void 0),ro([s(".ft-button")],so.prototype,"button",void 0),ro([s(".ft-button--label slot")],so.prototype,"slottedContent",void 0),c("ft-button")(so);const ao=bt.extend("--ft-chip-color",yt.colorOnSurface),lo={backgroundColor:bt.extend("--ft-chip-background-color",yt.colorSurface),color:ao,fontSize:bt.extend("--ft-chip-font-size",Fi.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",ao),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(yt.colorOutline,"Design system"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},ho=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",yt.colorOnPrimary)),co={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",yt.colorPrimary)),color:ho,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",ho)},po=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),fo=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),uo=[Ct,x`
|
|
678
678
|
:host {
|
|
679
679
|
display: inline-block;
|
|
680
680
|
max-width: 100%;
|
|
@@ -690,20 +690,20 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
690
690
|
box-sizing: border-box;
|
|
691
691
|
pointer-events: auto;
|
|
692
692
|
|
|
693
|
-
--ft-chip-internal-font-size: ${
|
|
693
|
+
--ft-chip-internal-font-size: ${lo.fontSize};
|
|
694
694
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
695
|
-
${xt(
|
|
696
|
-
--ft-chip-internal-vertical-padding: ${
|
|
697
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
695
|
+
${xt(_e.size,lo.iconSize)};
|
|
696
|
+
--ft-chip-internal-vertical-padding: ${lo.verticalPadding};
|
|
697
|
+
--ft-chip-internal-horizontal-padding: ${lo.horizontalPadding};
|
|
698
698
|
--ft-chip-internal-icon-padding: 3px;
|
|
699
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
699
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${lo.iconSize});
|
|
700
700
|
|
|
701
|
-
border: 1px solid ${
|
|
702
|
-
color: ${
|
|
703
|
-
${xt(
|
|
701
|
+
border: 1px solid ${lo.colorOutline};
|
|
702
|
+
color: ${lo.color};
|
|
703
|
+
${xt(Ne.color,lo.rippleColor)};
|
|
704
704
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
705
705
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
706
|
-
background-color: ${
|
|
706
|
+
background-color: ${lo.backgroundColor};
|
|
707
707
|
line-height: var(--ft-chip-internal-content-height);
|
|
708
708
|
}
|
|
709
709
|
|
|
@@ -713,8 +713,8 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
713
713
|
|
|
714
714
|
.ft-chip--dense {
|
|
715
715
|
--ft-chip-internal-icon-padding: 3px;
|
|
716
|
-
--ft-chip-internal-vertical-padding: ${
|
|
717
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
716
|
+
--ft-chip-internal-vertical-padding: ${fo};
|
|
717
|
+
--ft-chip-internal-horizontal-padding: ${po};
|
|
718
718
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
719
719
|
}
|
|
720
720
|
|
|
@@ -726,15 +726,15 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
726
726
|
cursor: default;
|
|
727
727
|
pointer-events: none;
|
|
728
728
|
filter: grayscale(1);
|
|
729
|
-
opacity: ${
|
|
729
|
+
opacity: ${lo.opacityDisabled};
|
|
730
730
|
}
|
|
731
731
|
|
|
732
732
|
.ft-chip--highlighted {
|
|
733
733
|
border: none;
|
|
734
734
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
735
|
-
background-color: ${
|
|
736
|
-
${xt(
|
|
737
|
-
color: ${
|
|
735
|
+
background-color: ${co.backgroundColor};
|
|
736
|
+
${xt(Ne.color,co.rippleColor)};
|
|
737
|
+
color: ${co.color};
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
.ft-chip--clickable {
|
|
@@ -764,9 +764,9 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
.ft-chip--icon-button {
|
|
767
|
-
${xt(
|
|
768
|
-
${xt(
|
|
769
|
-
${xt(
|
|
767
|
+
${xt(Ye.iconSize,lo.iconSize)};
|
|
768
|
+
${xt(Ye.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
769
|
+
${xt(Ye.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
770
770
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
771
771
|
}
|
|
772
772
|
|
|
@@ -774,8 +774,8 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
774
774
|
vertical-align: bottom;
|
|
775
775
|
display: block;
|
|
776
776
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
777
|
-
${xt(
|
|
778
|
-
${xt(
|
|
777
|
+
${xt(Fi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
778
|
+
${xt(Fi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -811,8 +811,8 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
811
811
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
812
812
|
order: -1;
|
|
813
813
|
}
|
|
814
|
-
`];var
|
|
815
|
-
<div class="${
|
|
814
|
+
`];var vo=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 bo extends CustomEvent{constructor(){super("icon-click")}}class xo extends kt{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.iconLabel="",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":Lt};return q`
|
|
815
|
+
<div class="${Ce(t)}"
|
|
816
816
|
aria-label="${this.getLabel()}"
|
|
817
817
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
818
818
|
@keyup=${this.onKeyUp}>
|
|
@@ -834,7 +834,7 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
834
834
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
835
835
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
836
836
|
</div>
|
|
837
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
837
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new bo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new bo))}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?"close":void 0)}}xo.elementDefinitions={"ft-ripple":Ie,"ft-typography":de,"ft-icon":Ke,"ft-button":so},xo.styles=uo,vo([o({type:Boolean})],xo.prototype,"highlighted",void 0),vo([o({type:Boolean})],xo.prototype,"removable",void 0),vo([o({type:Boolean})],xo.prototype,"disabled",void 0),vo([o({type:Boolean})],xo.prototype,"clickable",void 0),vo([o({type:Boolean})],xo.prototype,"iconClickable",void 0),vo([o({type:Boolean})],xo.prototype,"dense",void 0),vo([o({type:Boolean})],xo.prototype,"multiLine",void 0),vo([o()],xo.prototype,"label",void 0),vo([o()],xo.prototype,"iconLabel",void 0),vo([o()],xo.prototype,"icon",void 0),vo([o()],xo.prototype,"iconVariant",void 0),vo([o({type:Boolean})],xo.prototype,"trailingIcon",void 0),vo([s("ft-typography slot")],xo.prototype,"slottedContent",void 0),c("ft-chip")(xo);var yo=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 go extends Jt{constructor(){super(...arguments),this.editorMode=!1}render(){return q`
|
|
838
838
|
<ft-tooltip text="${this.tooltipText}">
|
|
839
839
|
<ft-chip>
|
|
840
840
|
${this.renderContent()}
|
|
@@ -847,4 +847,4 @@ class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error
|
|
|
847
847
|
display: none !important;
|
|
848
848
|
}
|
|
849
849
|
</style>
|
|
850
|
-
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode.contentId).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}
|
|
850
|
+
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode.contentId).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}go.elementDefinitions={"ft-tooltip":$e,"ft-chip":xo},go.styles=Pt,yo([o()],go.prototype,"key",void 0),yo([n()],go.prototype,"editorMode",void 0),yo([n()],go.prototype,"metadata",void 0),c("ft-reader-topic-metadata")(go),t.FtReaderTopicMetadata=go,t.FtReaderTopicMetadataCssVariables={},t.styles=Pt}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-metadata",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Metadata of a topic in integrated reader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.0.43",
|
|
23
23
|
"lit": "2.7.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "a67b8727b254b72302e36166d89f998545bacf8f"
|
|
26
26
|
}
|