@fluid-topics/ft-collapsible 0.1.18 → 0.2.2
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-collapsible.inline-styles.js +184 -173
- package/build/ft-collapsible.light.js +150 -139
- package/build/ft-collapsible.min.js +179 -168
- package/package.json +4 -4
|
@@ -14,69 +14,64 @@
|
|
|
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,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(r.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(ei){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function
|
|
27
|
+
*/}function o(t){return i({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/
|
|
32
|
+
*/const n=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @license
|
|
40
|
-
* Copyright 2017 Google LLC
|
|
41
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/;function r(t,i){return n({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
37
|
+
*/;function s(t,e){return n({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
43
38
|
/**
|
|
44
39
|
* @license
|
|
45
40
|
* Copyright 2021 Google LLC
|
|
46
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/var
|
|
42
|
+
*/var r;const a=null!=(null===(r=window.HTMLSlotElement)||void 0===r?void 0:r.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const l=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
48
43
|
/**
|
|
49
44
|
* @license
|
|
50
45
|
* Copyright 2019 Google LLC
|
|
51
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/,h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),c=new Map;class
|
|
47
|
+
*/,h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),c=new Map;class f{constructor(t,e){if(this._$cssResult$=!0,e!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=c.get(this.cssText);return h&&void 0===t&&(c.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",p),u=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new f(i,p)},y=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return d(e)})(t):t
|
|
53
48
|
/**
|
|
54
49
|
* @license
|
|
55
50
|
* Copyright 2017 Google LLC
|
|
56
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var
|
|
52
|
+
*/;var b;const v=window.trustedTypes,g=v?v.emptyScript:"",m=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},$=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:$};class S extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=O){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:w.fromAttribute;this._$Ei=r,this[r]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
58
53
|
/**
|
|
59
54
|
* @license
|
|
60
55
|
* Copyright 2017 Google LLC
|
|
61
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
57
|
*/
|
|
63
|
-
var k;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==
|
|
58
|
+
var k;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:S}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.2.2");const C=globalThis.trustedTypes,N=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,M=`<${R}>`,z=document,F=(t="")=>z.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,L=/>/g,A=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,_=/"/g,P=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,Z=z.createTreeWalker(z,129,null,!1),V=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(r.lastIndex=p,l=r.exec(i),null!==l);)p=r.lastIndex,r===j?"!--"===l[1]?r=T:void 0!==l[1]?r=L:void 0!==l[2]?(P.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=A):void 0!==l[3]&&(r=A):r===A?">"===l[0]?(r=null!=n?n:j,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?A:'"'===l[3]?_:D):r===_||r===D?r=A:r===T||r===L?r=j:(r=A,n=void 0);const c=r===A&&t[e+1].startsWith("/>")?" ":"";s+=r===j?i+M:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+E+c):i+E+(-2===h?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(a):a,o]};class q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=V(t,e);if(this.el=q.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Z.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?et:"@"===e[1]?it:G})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],F()),Z.nextNode(),a.push({type:2,index:++n});o.append(t[e],F())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,o){var n,s,r,a;if(e===W)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=X(t,l._$AS(t,e.values),l,o)),e}class J{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);Z.currentNode=n;let s=Z.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Y(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ot(s,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Z.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Y{constructor(t,e,i,o){var n;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),U(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return B(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==H&&U(this._$AH)?this._$AA.nextSibling.data=t:this.S(z.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new J(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new q(t)),e}A(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Y(this.M(F()),this.M(F()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,n){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=X(this,t,e,0),s=!U(t)||t!==this._$AH&&t!==W,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=X(this,o[i+r],e,r),a===W&&(a=this._$AH[r]),s||(s=!U(a)||a!==this._$AH[r]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.k(t)}k(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===H?void 0:t}}const tt=C?C.emptyScript:"";class et extends G{constructor(){super(...arguments),this.type=4}k(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=X(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,n=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==H&&(o===H||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=window.litHtmlPolyfillSupport;
|
|
64
59
|
/**
|
|
65
60
|
* @license
|
|
66
61
|
* Copyright 2017 Google LLC
|
|
67
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
63
|
*/
|
|
69
|
-
var rt
|
|
64
|
+
var st,rt;null==nt||nt(q,Y),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k:globalThis.litHtmlVersions=[]).push("2.1.3");class at extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Y(e.insertBefore(F(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return W}}at.finalized=!0,at._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:at});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:at}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.1.2");class ht{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ht(t,e,void 0,i)}static extend(t,e,i){return new ht(t,e.category,e,i)}static external(t,e){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return u`var(${d(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):d(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function pt(t,e){return d(`${t.name}: ${e}`)}const ct={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
70
65
|
/**
|
|
71
66
|
* @license
|
|
72
67
|
* Copyright 2021 Google LLC
|
|
73
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/class
|
|
69
|
+
*/class ft extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(n,this.constructor.elementStyles),n}}}(at)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),I`
|
|
75
70
|
${t.map((t=>I`
|
|
76
71
|
<style>${t}</style>
|
|
77
72
|
`))}
|
|
78
73
|
${this.getTemplate()}
|
|
79
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const dt=u`
|
|
80
75
|
.ft-no-text-select {
|
|
81
76
|
-webkit-touch-callout: none;
|
|
82
77
|
-webkit-user-select: none;
|
|
@@ -85,18 +80,17 @@ var rt,st;null==nt||nt(X,Y),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k
|
|
|
85
80
|
-ms-user-select: none;
|
|
86
81
|
user-select: none;
|
|
87
82
|
}
|
|
88
|
-
`;var ut,yt,
|
|
83
|
+
`;var ut,yt,xt;const bt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(xt=null===(yt=null===(ut=window.safari)||void 0===ut?void 0:ut.pushNotification)||void 0===yt?void 0:yt.toString())&&void 0!==xt?xt:""),vt=1,gt=2,mt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
89
84
|
/**
|
|
90
85
|
* @license
|
|
91
86
|
* Copyright 2017 Google LLC
|
|
92
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/
|
|
88
|
+
*/class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
94
89
|
/**
|
|
95
90
|
* @license
|
|
96
91
|
* Copyright 2018 Google LLC
|
|
97
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
-
*/
|
|
99
|
-
const mt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{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)}}{constructor(t){var i;if(super(t),t.type!==vt||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.et)||void 0===e?void 0:e.has(t))&&this.st.add(t);return this.render(i)}const n=t.element.classList;this.st.forEach((t=>{t in i||(n.remove(t),this.st.delete(t))}));for(const t in i){const e=!!i[t];e===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return W}});var xt=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={color:ht.extend("--ft-ripple-color",ct.colorContent),primaryColor:ht.extend("--ft-ripple-primary-color",ht.extend("--ft-ripple-color",ct.colorPrimary)),secondaryColor:ht.extend("--ft-ripple-secondary-color",ht.extend("--ft-ripple-color",ct.colorSecondary)),opacityContentOnSurfacePressed:ht.external(ct.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ct.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ct.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ct.opacityContentOnSurfaceSelected,"Design system")};class $t extends dt{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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return I`
|
|
93
|
+
*/const $t=mt(class extends wt{constructor(t){var e;if(super(t),t.type!==vt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const n=t.element.classList;this.st.forEach((t=>{t in e||(n.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return W}});var Ot=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const St={color:ht.extend("--ft-ripple-color",ct.colorContent),primaryColor:ht.extend("--ft-ripple-primary-color",ht.extend("--ft-ripple-color",ct.colorPrimary)),secondaryColor:ht.extend("--ft-ripple-secondary-color",ht.extend("--ft-ripple-color",ct.colorSecondary)),opacityContentOnSurfacePressed:ht.external(ct.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ct.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ct.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ct.opacityContentOnSurfaceSelected,"Design system")};class kt extends ft{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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return I`
|
|
100
94
|
<style>
|
|
101
95
|
.ft-ripple .ft-ripple--effect,
|
|
102
96
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -109,11 +103,11 @@ const mt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constru
|
|
|
109
103
|
top: ${this.originY}px;
|
|
110
104
|
}
|
|
111
105
|
</style>
|
|
112
|
-
<div class="${
|
|
106
|
+
<div class="${$t(t)}">
|
|
113
107
|
<div class="ft-ripple--background"></div>
|
|
114
108
|
<div class="ft-ripple--effect"></div>
|
|
115
109
|
</div>
|
|
116
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const
|
|
110
|
+
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}kt.elementDefinitions={},kt.styles=u`
|
|
117
111
|
:host {
|
|
118
112
|
display: contents;
|
|
119
113
|
}
|
|
@@ -132,17 +126,17 @@ const mt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constru
|
|
|
132
126
|
.ft-ripple .ft-ripple--effect {
|
|
133
127
|
position: absolute;
|
|
134
128
|
opacity: 0;
|
|
135
|
-
background-color: ${
|
|
129
|
+
background-color: ${St.color};
|
|
136
130
|
}
|
|
137
131
|
|
|
138
132
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
139
133
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
140
|
-
background-color: ${
|
|
134
|
+
background-color: ${St.secondaryColor};
|
|
141
135
|
}
|
|
142
136
|
|
|
143
137
|
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
144
138
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
145
|
-
background-color: ${
|
|
139
|
+
background-color: ${St.primaryColor};
|
|
146
140
|
}
|
|
147
141
|
|
|
148
142
|
.ft-ripple .ft-ripple--background {
|
|
@@ -173,156 +167,130 @@ const mt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constru
|
|
|
173
167
|
}
|
|
174
168
|
|
|
175
169
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
176
|
-
opacity: ${
|
|
170
|
+
opacity: ${St.opacityContentOnSurfaceHover};
|
|
177
171
|
}
|
|
178
172
|
|
|
179
173
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
174
|
+
opacity: ${St.opacityContentOnSurfaceSelected};
|
|
181
175
|
}
|
|
182
176
|
|
|
183
177
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
184
|
-
opacity: ${
|
|
178
|
+
opacity: ${St.opacityContentOnSurfaceFocused};
|
|
185
179
|
}
|
|
186
180
|
|
|
187
181
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
188
|
-
opacity: ${
|
|
182
|
+
opacity: ${St.opacityContentOnSurfacePressed};
|
|
189
183
|
transform: translate(-50%, -50%) scale(1);
|
|
190
184
|
}
|
|
191
|
-
`,
|
|
185
|
+
`,Ot([i({type:Boolean})],kt.prototype,"primary",void 0),Ot([i({type:Boolean})],kt.prototype,"secondary",void 0),Ot([i({type:Boolean})],kt.prototype,"unbounded",void 0),Ot([i({type:Boolean})],kt.prototype,"activated",void 0),Ot([i({type:Boolean})],kt.prototype,"selected",void 0),Ot([i({type:Boolean})],kt.prototype,"disabled",void 0),Ot([o()],kt.prototype,"hovered",void 0),Ot([o()],kt.prototype,"focused",void 0),Ot([o()],kt.prototype,"pressed",void 0),Ot([o()],kt.prototype,"rippling",void 0),Ot([o()],kt.prototype,"rippleSize",void 0),Ot([o()],kt.prototype,"originX",void 0),Ot([o()],kt.prototype,"originY",void 0),Ot([s(".ft-ripple")],kt.prototype,"ripple",void 0),Ot([s(".ft-ripple--effect")],kt.prototype,"rippleEffect",void 0),l("ft-ripple")(kt);
|
|
192
186
|
/**
|
|
193
187
|
* @license
|
|
194
188
|
* Copyright 2020 Google LLC
|
|
195
189
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
196
190
|
*/
|
|
197
|
-
const
|
|
191
|
+
const Ct=t=>({_$litStatic$:t}),Nt=new Map,Et=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let h,p=0,c=!1;for(;p<n;){for(h=e[p];p<n&&void 0!==(r=i[p],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)h+=s+e[++p],c=!0;l.push(r),a.push(h),p++}if(p===n&&a.push(e[n]),c){const t=a.join("$$lit$$");void 0===(e=Nt.get(t))&&(a.raw=a,Nt.set(t,e=a)),i=l}return t(e,...i)})(I);var Rt,Mt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Rt||(Rt={}));const zt=ht.extend("--ft-typography-font-family",ct.titleFont),Ft=ht.extend("--ft-typography-font-family",ct.contentFont),Ut={fontFamily:Ft,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","SIZE","24px"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Bt=ht.extend("--ft-typography-title-font-family",zt),jt=ht.extend("--ft-typography-title-font-size",Ut.fontSize,"20px"),Tt=ht.extend("--ft-typography-title-font-weight",Ut.fontWeight,"normal"),Lt=ht.extend("--ft-typography-title-letter-spacing",Ut.letterSpacing,"0.15px"),At=ht.extend("--ft-typography-title-line-height",Ut.lineHeight,"24px"),Dt=ht.extend("--ft-typography-title-text-transform",Ut.textTransform,"inherit"),_t=ht.extend("--ft-typography-title-dense-font-family",zt),Pt=ht.extend("--ft-typography-title-dense-font-size",Ut.fontSize,"14px"),It=ht.extend("--ft-typography-title-dense-font-weight",Ut.fontWeight,"normal"),Wt=ht.extend("--ft-typography-title-dense-letter-spacing",Ut.letterSpacing,"0.105px"),Ht=ht.extend("--ft-typography-title-dense-line-height",Ut.lineHeight,"24px"),Kt=ht.extend("--ft-typography-title-dense-text-transform",Ut.textTransform,"inherit"),Zt=ht.extend("--ft-typography-subtitle1-font-family",Ft),Vt=ht.extend("--ft-typography-subtitle1-font-size",Ut.fontSize,"16px"),qt=ht.extend("--ft-typography-subtitle1-font-weight",Ut.fontWeight,"600"),Xt=ht.extend("--ft-typography-subtitle1-letter-spacing",Ut.letterSpacing,"0.144px"),Jt=ht.extend("--ft-typography-subtitle1-line-height",Ut.lineHeight,"24px"),Yt=ht.extend("--ft-typography-subtitle1-text-transform",Ut.textTransform,"inherit"),Gt=ht.extend("--ft-typography-subtitle2-font-family",Ft),Qt=ht.extend("--ft-typography-subtitle2-font-size",Ut.fontSize,"14px"),te=ht.extend("--ft-typography-subtitle2-font-weight",Ut.fontWeight,"normal"),ee=ht.extend("--ft-typography-subtitle2-letter-spacing",Ut.letterSpacing,"0.098px"),ie=ht.extend("--ft-typography-subtitle2-line-height",Ut.lineHeight,"24px"),oe=ht.extend("--ft-typography-subtitle2-text-transform",Ut.textTransform,"inherit"),ne=ht.extend("--ft-typography-body1-font-family",Ft),se=ht.extend("--ft-typography-body1-font-size",Ut.fontSize,"16px"),re=ht.extend("--ft-typography-body1-font-weight",Ut.fontWeight,"normal"),ae=ht.extend("--ft-typography-body1-letter-spacing",Ut.letterSpacing,"0.496px"),le=ht.extend("--ft-typography-body1-line-height",Ut.lineHeight,"24px"),he=ht.extend("--ft-typography-body1-text-transform",Ut.textTransform,"inherit"),pe=ht.extend("--ft-typography-body2-font-family",Ft),ce=ht.extend("--ft-typography-body2-font-size",Ut.fontSize,"14px"),fe=ht.extend("--ft-typography-body2-font-weight",Ut.fontWeight,"normal"),de=ht.extend("--ft-typography-body2-letter-spacing",Ut.letterSpacing,"0.252px"),ue=ht.extend("--ft-typography-body2-line-height",Ut.lineHeight,"20px"),ye=ht.extend("--ft-typography-body2-text-transform",Ut.textTransform,"inherit"),xe=ht.extend("--ft-typography-caption-font-family",Ft),be=ht.extend("--ft-typography-caption-font-size",Ut.fontSize,"12px"),ve=ht.extend("--ft-typography-caption-font-weight",Ut.fontWeight,"normal"),ge=ht.extend("--ft-typography-caption-letter-spacing",Ut.letterSpacing,"0.396px"),me=ht.extend("--ft-typography-caption-line-height",Ut.lineHeight,"16px"),we=ht.extend("--ft-typography-caption-text-transform",Ut.textTransform,"inherit"),$e=ht.extend("--ft-typography-breadcrumb-font-family",Ft),Oe=ht.extend("--ft-typography-breadcrumb-font-size",Ut.fontSize,"10px"),Se=ht.extend("--ft-typography-breadcrumb-font-weight",Ut.fontWeight,"normal"),ke=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ut.letterSpacing,"0.33px"),Ce=ht.extend("--ft-typography-breadcrumb-line-height",Ut.lineHeight,"16px"),Ne=ht.extend("--ft-typography-breadcrumb-text-transform",Ut.textTransform,"inherit"),Ee=ht.extend("--ft-typography-overline-font-family",Ft),Re=ht.extend("--ft-typography-overline-font-size",Ut.fontSize,"10px"),Me=ht.extend("--ft-typography-overline-font-weight",Ut.fontWeight,"normal"),ze=ht.extend("--ft-typography-overline-letter-spacing",Ut.letterSpacing,"1.5px"),Fe=ht.extend("--ft-typography-overline-line-height",Ut.lineHeight,"16px"),Ue=ht.extend("--ft-typography-overline-text-transform",Ut.textTransform,"uppercase"),Be={fontFamily:ht.extend("--ft-typography-button-font-family",Ft),fontSize:ht.extend("--ft-typography-button-font-size",Ut.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Ut.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Ut.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Ut.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-button-text-transform",Ut.textTransform,"uppercase")},je=u`
|
|
198
192
|
.ft-typography--title {
|
|
199
|
-
font-family: ${
|
|
200
|
-
font-size: ${
|
|
201
|
-
font-weight: ${
|
|
202
|
-
letter-spacing: ${
|
|
203
|
-
line-height: ${
|
|
204
|
-
text-transform: ${
|
|
193
|
+
font-family: ${Bt};
|
|
194
|
+
font-size: ${jt};
|
|
195
|
+
font-weight: ${Tt};
|
|
196
|
+
letter-spacing: ${Lt};
|
|
197
|
+
line-height: ${At};
|
|
198
|
+
text-transform: ${Dt};
|
|
205
199
|
}
|
|
206
|
-
`,
|
|
200
|
+
`,Te=u`
|
|
207
201
|
.ft-typography--title-dense {
|
|
208
|
-
font-family: ${
|
|
209
|
-
font-size: ${
|
|
210
|
-
font-weight: ${
|
|
211
|
-
letter-spacing: ${
|
|
212
|
-
line-height: ${
|
|
213
|
-
text-transform: ${
|
|
202
|
+
font-family: ${_t};
|
|
203
|
+
font-size: ${Pt};
|
|
204
|
+
font-weight: ${It};
|
|
205
|
+
letter-spacing: ${Wt};
|
|
206
|
+
line-height: ${Ht};
|
|
207
|
+
text-transform: ${Kt};
|
|
214
208
|
}
|
|
215
|
-
`,
|
|
209
|
+
`,Le=u`
|
|
216
210
|
.ft-typography--subtitle1 {
|
|
217
|
-
font-family: ${
|
|
218
|
-
font-size: ${
|
|
219
|
-
font-weight: ${
|
|
220
|
-
letter-spacing: ${
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
211
|
+
font-family: ${Zt};
|
|
212
|
+
font-size: ${Vt};
|
|
213
|
+
font-weight: ${qt};
|
|
214
|
+
letter-spacing: ${Xt};
|
|
215
|
+
line-height: ${Jt};
|
|
216
|
+
text-transform: ${Yt};
|
|
223
217
|
}
|
|
224
|
-
`,
|
|
218
|
+
`,Ae=u`
|
|
225
219
|
.ft-typography--subtitle2 {
|
|
226
|
-
font-family: ${
|
|
227
|
-
font-size: ${
|
|
228
|
-
font-weight: ${
|
|
229
|
-
letter-spacing: ${
|
|
230
|
-
line-height: ${
|
|
231
|
-
text-transform: ${
|
|
220
|
+
font-family: ${Gt};
|
|
221
|
+
font-size: ${Qt};
|
|
222
|
+
font-weight: ${te};
|
|
223
|
+
letter-spacing: ${ee};
|
|
224
|
+
line-height: ${ie};
|
|
225
|
+
text-transform: ${oe};
|
|
232
226
|
}
|
|
233
227
|
|
|
234
|
-
`,
|
|
228
|
+
`,De=u`
|
|
235
229
|
.ft-typography--body1 {
|
|
236
|
-
font-family: ${
|
|
237
|
-
font-size: ${
|
|
238
|
-
font-weight: ${
|
|
239
|
-
letter-spacing: ${
|
|
240
|
-
line-height: ${
|
|
241
|
-
text-transform: ${
|
|
230
|
+
font-family: ${ne};
|
|
231
|
+
font-size: ${se};
|
|
232
|
+
font-weight: ${re};
|
|
233
|
+
letter-spacing: ${ae};
|
|
234
|
+
line-height: ${le};
|
|
235
|
+
text-transform: ${he};
|
|
242
236
|
}
|
|
243
|
-
`,
|
|
237
|
+
`,_e=u`
|
|
244
238
|
.ft-typography--body2 {
|
|
245
|
-
font-family: ${
|
|
246
|
-
font-size: ${
|
|
247
|
-
font-weight: ${
|
|
248
|
-
letter-spacing: ${
|
|
249
|
-
line-height: ${
|
|
250
|
-
text-transform: ${
|
|
239
|
+
font-family: ${pe};
|
|
240
|
+
font-size: ${ce};
|
|
241
|
+
font-weight: ${fe};
|
|
242
|
+
letter-spacing: ${de};
|
|
243
|
+
line-height: ${ue};
|
|
244
|
+
text-transform: ${ye};
|
|
251
245
|
}
|
|
252
|
-
`,
|
|
246
|
+
`,Pe=u`
|
|
253
247
|
.ft-typography--caption {
|
|
254
|
-
font-family: ${
|
|
255
|
-
font-size: ${
|
|
256
|
-
font-weight: ${
|
|
257
|
-
letter-spacing: ${
|
|
258
|
-
line-height: ${
|
|
259
|
-
text-transform: ${
|
|
248
|
+
font-family: ${xe};
|
|
249
|
+
font-size: ${be};
|
|
250
|
+
font-weight: ${ve};
|
|
251
|
+
letter-spacing: ${ge};
|
|
252
|
+
line-height: ${me};
|
|
253
|
+
text-transform: ${we};
|
|
260
254
|
}
|
|
261
|
-
`,
|
|
255
|
+
`,Ie=u`
|
|
262
256
|
.ft-typography--breadcrumb {
|
|
263
|
-
font-family: ${
|
|
264
|
-
font-size: ${
|
|
265
|
-
font-weight: ${
|
|
266
|
-
letter-spacing: ${
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
257
|
+
font-family: ${$e};
|
|
258
|
+
font-size: ${Oe};
|
|
259
|
+
font-weight: ${Se};
|
|
260
|
+
letter-spacing: ${ke};
|
|
261
|
+
line-height: ${Ce};
|
|
262
|
+
text-transform: ${Ne};
|
|
269
263
|
}
|
|
270
|
-
`,
|
|
264
|
+
`,We=u`
|
|
271
265
|
.ft-typography--overline {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
275
|
-
letter-spacing: ${
|
|
276
|
-
line-height: ${
|
|
277
|
-
text-transform: ${
|
|
266
|
+
font-family: ${Ee};
|
|
267
|
+
font-size: ${Re};
|
|
268
|
+
font-weight: ${Me};
|
|
269
|
+
letter-spacing: ${ze};
|
|
270
|
+
line-height: ${Fe};
|
|
271
|
+
text-transform: ${Ue};
|
|
278
272
|
}
|
|
279
|
-
`,
|
|
273
|
+
`,He=u`
|
|
280
274
|
.ft-typography--button {
|
|
281
|
-
font-family: ${
|
|
282
|
-
font-size: ${
|
|
283
|
-
font-weight: ${
|
|
284
|
-
letter-spacing: ${
|
|
285
|
-
line-height: ${
|
|
286
|
-
text-transform: ${
|
|
275
|
+
font-family: ${Be.fontFamily};
|
|
276
|
+
font-size: ${Be.fontSize};
|
|
277
|
+
font-weight: ${Be.fontWeight};
|
|
278
|
+
letter-spacing: ${Be.letterSpacing};
|
|
279
|
+
line-height: ${Be.lineHeight};
|
|
280
|
+
text-transform: ${Be.textTransform};
|
|
287
281
|
}
|
|
288
|
-
`;class
|
|
289
|
-
<${
|
|
282
|
+
`;class Ke extends ft{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Et`
|
|
283
|
+
<${Ct(this.element)}
|
|
290
284
|
class="ft-typography ft-typography--${this.variant}">
|
|
291
285
|
<slot></slot>
|
|
292
|
-
</${
|
|
293
|
-
`:
|
|
286
|
+
</${Ct(this.element)}>
|
|
287
|
+
`:Et`
|
|
294
288
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
295
|
-
`}}
|
|
289
|
+
`}}Ke.styles=[je,Te,Le,Ae,De,_e,Pe,Ie,We,He,u`
|
|
296
290
|
.ft-typography {
|
|
297
291
|
vertical-align: inherit;
|
|
298
292
|
}
|
|
299
|
-
`],
|
|
300
|
-
/**
|
|
301
|
-
* @license
|
|
302
|
-
* Copyright 2021 Google LLC
|
|
303
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
304
|
-
*/
|
|
305
|
-
const Wi=u`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
|
|
306
|
-
/**
|
|
307
|
-
* @license
|
|
308
|
-
* Copyright 2018 Google LLC
|
|
309
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
310
|
-
*/;let Hi=class extends at{render(){return I`<span><slot></slot></span>`}};Hi.styles=[Wi],Hi=
|
|
311
|
-
/*! *****************************************************************************
|
|
312
|
-
Copyright (c) Microsoft Corporation.
|
|
313
|
-
|
|
314
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
315
|
-
purpose with or without fee is hereby granted.
|
|
316
|
-
|
|
317
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
318
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
319
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
320
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
321
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
322
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
323
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
324
|
-
***************************************************************************** */
|
|
325
|
-
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}([(t=>i=>"function"==typeof i?((t,i)=>(window.customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:e,elements:o}=i;return{kind:e,elements:o,finisher(i){window.customElements.define(t,i)}}})(t,i))("mwc-icon")],Hi);var Ki=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 Zi=ht.create("--ft-tooltip-distance","SIZE","4px"),Vi=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),Xi=ht.create("--ft-tooltip-background-color","COLOR","#666666"),qi=ht.create("--ft-tooltip-z-index","NUMBER","1"),Ji=ht.external(ct.borderRadiusS,"Design system");class Yi extends dt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return I`
|
|
293
|
+
`],Mt([i()],Ke.prototype,"element",void 0),Mt([i()],Ke.prototype,"variant",void 0),l("ft-typography")(Ke);var Ze=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ve=ht.create("--ft-tooltip-distance","SIZE","4px"),qe=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),Xe=ht.create("--ft-tooltip-background-color","COLOR","#666666"),Je=ht.create("--ft-tooltip-z-index","NUMBER","1"),Ye=ht.external(ct.borderRadiusS,"Design system");class Ge extends ft{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return I`
|
|
326
294
|
<div part="container"
|
|
327
295
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
328
296
|
@mouseenter=${this.onHover}
|
|
@@ -337,7 +305,7 @@ function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnP
|
|
|
337
305
|
</div>
|
|
338
306
|
<slot></slot>
|
|
339
307
|
</div>
|
|
340
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const
|
|
308
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.maxWidth=Math.max(e.width,150)+"px"}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())}}Ge.elementDefinitions={"ft-typography":Ke},Ge.styles=u`
|
|
341
309
|
.ft-tooltip--container {
|
|
342
310
|
display: block;
|
|
343
311
|
position: relative;
|
|
@@ -355,27 +323,27 @@ function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnP
|
|
|
355
323
|
width: max-content;
|
|
356
324
|
max-width: 150px;
|
|
357
325
|
text-align: center;
|
|
358
|
-
padding: ${
|
|
359
|
-
z-index: ${
|
|
326
|
+
padding: ${Ve};
|
|
327
|
+
z-index: ${Je};
|
|
360
328
|
}
|
|
361
329
|
|
|
362
330
|
.ft-tooltip--content {
|
|
363
331
|
padding: 4px 8px;
|
|
364
|
-
border-radius: ${
|
|
365
|
-
background-color: ${
|
|
366
|
-
color: ${
|
|
332
|
+
border-radius: ${Ye};
|
|
333
|
+
background-color: ${Xe};
|
|
334
|
+
color: ${qe};
|
|
367
335
|
top: -500px;
|
|
368
336
|
left: -500px;
|
|
369
337
|
position: relative;
|
|
370
338
|
word-break: break-word;
|
|
371
339
|
}
|
|
372
|
-
`,
|
|
340
|
+
`,Ze([i()],Ge.prototype,"text",void 0),Ze([i({type:Boolean})],Ge.prototype,"manual",void 0),Ze([i({type:Boolean})],Ge.prototype,"inline",void 0),Ze([i({type:Number})],Ge.prototype,"delay",void 0),Ze([i()],Ge.prototype,"position",void 0),Ze([
|
|
373
341
|
/**
|
|
374
342
|
* @license
|
|
375
343
|
* Copyright 2017 Google LLC
|
|
376
344
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
377
345
|
*/
|
|
378
|
-
function(t,i
|
|
346
|
+
function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ge.prototype,"slotNodes",void 0),Ze([s(".ft-tooltip--container")],Ge.prototype,"container",void 0),Ze([s("slot")],Ge.prototype,"target",void 0),Ze([s(".ft-tooltip")],Ge.prototype,"tooltip",void 0),Ze([s(".ft-tooltip--content")],Ge.prototype,"tooltipContent",void 0),Ze([o()],Ge.prototype,"visible",void 0),l("ft-tooltip")(Ge);const Qe={color:ht.extend("--ft-loader-color",ct.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class ti extends ft{static get styles(){return u`
|
|
379
347
|
:host {
|
|
380
348
|
line-height: 0;
|
|
381
349
|
}
|
|
@@ -384,8 +352,8 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
384
352
|
display: inline-block;
|
|
385
353
|
position: relative;
|
|
386
354
|
|
|
387
|
-
width: ${
|
|
388
|
-
height: ${
|
|
355
|
+
width: ${Qe.size};
|
|
356
|
+
height: ${Qe.size};
|
|
389
357
|
}
|
|
390
358
|
|
|
391
359
|
.ft-loader div {
|
|
@@ -394,7 +362,7 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
394
362
|
width: 25%;
|
|
395
363
|
height: 25%;
|
|
396
364
|
border-radius: 50%;
|
|
397
|
-
background: ${
|
|
365
|
+
background: ${Qe.color};
|
|
398
366
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
399
367
|
}
|
|
400
368
|
|
|
@@ -441,7 +409,7 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
441
409
|
transform: translate(0, 0);
|
|
442
410
|
}
|
|
443
411
|
100% {
|
|
444
|
-
transform: translate(calc(0.35 * ${
|
|
412
|
+
transform: translate(calc(0.35 * ${Qe.size}), 0);
|
|
445
413
|
}
|
|
446
414
|
}
|
|
447
415
|
`}render(){return I`
|
|
@@ -451,7 +419,51 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
451
419
|
<div></div>
|
|
452
420
|
<div></div>
|
|
453
421
|
</div>
|
|
454
|
-
`}}l("ft-loader")(
|
|
422
|
+
`}}l("ft-loader")(ti);
|
|
423
|
+
/**
|
|
424
|
+
* @license
|
|
425
|
+
* Copyright 2017 Google LLC
|
|
426
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
|
+
*/
|
|
428
|
+
class ei extends wt{constructor(t){if(super(t),this.it=H,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this.vt=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ei.directiveName="unsafeHTML",ei.resultType=1;const ii=mt(ei);var oi,ni;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(oi||(oi={})),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=""}(ni||(ni={})),new Map([...["abw"].map((t=>[t,ni.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,ni.AUDIO])),...["avi"].map((t=>[t,ni.AVI])),...["chm","xhs"].map((t=>[t,ni.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,ni.CODE])),...["csv"].map((t=>[t,ni.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ni.DITA])),...["epub"].map((t=>[t,ni.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ni.EXCEL])),...["flac"].map((t=>[t,ni.FLAC])),...["gif"].map((t=>[t,ni.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ni.GZIP])),...["html","htm","xhtml"].map((t=>[t,ni.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,ni.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ni.JPEG])),...["json"].map((t=>[t,ni.JSON])),...["m4a","m4p"].map((t=>[t,ni.M4A])),...["mov","qt"].map((t=>[t,ni.MOV])),...["mp3"].map((t=>[t,ni.MP3])),...["mp4","m4v"].map((t=>[t,ni.MP4])),...["ogg","oga"].map((t=>[t,ni.OGG])),...["pdf","ps"].map((t=>[t,ni.PDF])),...["png"].map((t=>[t,ni.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ni.POWERPOINT])),...["rar"].map((t=>[t,ni.RAR])),...["stp"].map((t=>[t,ni.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ni.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,ni.VIDEO])),...["wav"].map((t=>[t,ni.WAV])),...["wma"].map((t=>[t,ni.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ni.WORD])),...["xml","xsl","rdf"].map((t=>[t,ni.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ni.YAML])),...["zip"].map((t=>[t,ni.ZIP]))]);var si,ri=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(si||(si={}));const ai={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class li extends ft{constructor(){super(...arguments),this.variant=si.fluid_topics}render(){return I`
|
|
429
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
430
|
+
${ii(this.getIcon())}
|
|
431
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
432
|
+
</i>
|
|
433
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===si.file_format?null!==(t=ni[i.toUpperCase()])&&void 0!==t?t:i:this.variant===si.fluid_topics?null!==(e=oi[i.toUpperCase()])&&void 0!==e?e:i:H}}li.elementDefinitions={},li.styles=u`
|
|
434
|
+
:host, i.ft-icon {
|
|
435
|
+
display: inline-block;
|
|
436
|
+
width: ${ai.size};
|
|
437
|
+
height: ${ai.size};
|
|
438
|
+
text-align: center;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
i.ft-icon {
|
|
442
|
+
font-size: ${ai.size};
|
|
443
|
+
line-height: 1;
|
|
444
|
+
font-weight: normal;
|
|
445
|
+
text-transform: none;
|
|
446
|
+
font-style: normal;
|
|
447
|
+
font-variant: normal;
|
|
448
|
+
speak: none;
|
|
449
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
450
|
+
text-rendering: auto;
|
|
451
|
+
-webkit-font-smoothing: antialiased;
|
|
452
|
+
-moz-osx-font-smoothing: grayscale;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.ft-icon--fluid-topics {
|
|
456
|
+
font-family: ${ai.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-icon--file-format {
|
|
460
|
+
font-family: ${ai.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.ft-icon--material {
|
|
464
|
+
font-family: ${ai.materialFontFamily}, "Material Icons", sans-serif;
|
|
465
|
+
}
|
|
466
|
+
`,ri([i()],li.prototype,"variant",void 0),ri([s("slot")],li.prototype,"slottedContent",void 0),l("ft-icon")(li);var hi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const pi=ht.extend("--ft-button-color",ct.colorPrimary),ci={backgroundColor:ht.extend("--ft-button-background-color",ct.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ct.borderRadiusL),color:pi,fontSize:ht.extend("--ft-button-font-size",Be.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",pi),opacityDisabled:ht.external(ct.colorOpacityDisabled,"Design system")},fi=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ct.colorOnPrimary)),di={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ct.colorPrimary)),color:fi,rippleColor:ht.extend("--ft-button-primary-ripple-color",fi)},ui=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ct.borderRadiusM));class yi extends ft{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[dt,u`
|
|
455
467
|
:host {
|
|
456
468
|
display: inline-block;
|
|
457
469
|
max-width: 100%;
|
|
@@ -490,18 +502,18 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
490
502
|
border: none;
|
|
491
503
|
pointer-events: auto;
|
|
492
504
|
|
|
493
|
-
--ft-button-internal-font-size: ${
|
|
505
|
+
--ft-button-internal-font-size: ${ci.fontSize};
|
|
494
506
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
495
|
-
--ft-button-internal-color: ${
|
|
496
|
-
|
|
507
|
+
--ft-button-internal-color: ${ci.color};
|
|
508
|
+
${pt(ai.size,ci.iconSize)};
|
|
497
509
|
--ft-button-internal-vertical-padding: 6px;
|
|
498
510
|
--ft-button-internal-horizontal-padding: 8px;
|
|
499
|
-
${pt(
|
|
500
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height),
|
|
511
|
+
${pt(St.color,ci.rippleColor)};
|
|
512
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${ci.iconSize});
|
|
501
513
|
|
|
502
|
-
border-radius: ${
|
|
514
|
+
border-radius: ${ci.borderRadius};
|
|
503
515
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
504
|
-
background-color: ${
|
|
516
|
+
background-color: ${ci.backgroundColor};
|
|
505
517
|
color: var(--ft-button-internal-color);
|
|
506
518
|
-webkit-mask-image: radial-gradient(white, black);
|
|
507
519
|
}
|
|
@@ -513,7 +525,7 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
513
525
|
.ft-button--dense {
|
|
514
526
|
--ft-button-internal-vertical-padding: 2px;
|
|
515
527
|
--ft-button-internal-horizontal-padding: 4px;
|
|
516
|
-
border-radius: ${
|
|
528
|
+
border-radius: ${ui};
|
|
517
529
|
}
|
|
518
530
|
|
|
519
531
|
.ft-button--round {
|
|
@@ -522,13 +534,13 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
522
534
|
|
|
523
535
|
.ft-button[disabled] {
|
|
524
536
|
filter: grayscale(1);
|
|
525
|
-
opacity: ${
|
|
537
|
+
opacity: ${ci.opacityDisabled};
|
|
526
538
|
}
|
|
527
539
|
|
|
528
540
|
.ft-button.ft-button--primary {
|
|
529
|
-
background-color: ${
|
|
530
|
-
--ft-button-internal-color: ${
|
|
531
|
-
${pt(
|
|
541
|
+
background-color: ${di.backgroundColor};
|
|
542
|
+
--ft-button-internal-color: ${di.color};
|
|
543
|
+
${pt(St.color,di.rippleColor)};
|
|
532
544
|
}
|
|
533
545
|
|
|
534
546
|
.ft-button.ft-button--outlined {
|
|
@@ -546,8 +558,8 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
546
558
|
text-overflow: ellipsis;
|
|
547
559
|
display: block;
|
|
548
560
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
549
|
-
${pt(
|
|
550
|
-
${pt(
|
|
561
|
+
${pt(Be.fontSize,"var(--ft-button-internal-font-size)")};
|
|
562
|
+
${pt(Be.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
551
563
|
}
|
|
552
564
|
|
|
553
565
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -564,28 +576,27 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
564
576
|
display: none;
|
|
565
577
|
}
|
|
566
578
|
|
|
567
|
-
|
|
579
|
+
ft-icon {
|
|
568
580
|
flex-shrink: 0;
|
|
569
|
-
width: var(--mdc-icon-size);
|
|
570
581
|
}
|
|
571
582
|
|
|
572
|
-
.ft-button--label[hidden] +
|
|
583
|
+
.ft-button--label[hidden] + ft-icon {
|
|
573
584
|
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
574
585
|
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
575
586
|
}
|
|
576
587
|
|
|
577
|
-
.ft-button:not(.ft-button--trailing-icon)
|
|
588
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
578
589
|
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
579
590
|
order: -1;
|
|
580
591
|
}
|
|
581
592
|
|
|
582
593
|
ft-loader {
|
|
583
|
-
${pt(
|
|
584
|
-
${pt(
|
|
594
|
+
${pt(Qe.size,ci.iconSize)};
|
|
595
|
+
${pt(Qe.color,"var(--ft-button-internal-color)")};
|
|
585
596
|
}
|
|
586
|
-
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":
|
|
597
|
+
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":bt,"ft-no-text-select":!0};return this.addTooltip(I`
|
|
587
598
|
<button part="button"
|
|
588
|
-
class="${
|
|
599
|
+
class="${$t(t)}"
|
|
589
600
|
aria-label="${this.getLabel()}"
|
|
590
601
|
?disabled=${this.isDisabled()}>
|
|
591
602
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -605,7 +616,7 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
605
616
|
</ft-tooltip>
|
|
606
617
|
`}resolveIcon(){return this.loading?I`
|
|
607
618
|
<ft-loader></ft-loader> `:this.icon?I`
|
|
608
|
-
<
|
|
619
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:H}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}}yi.elementDefinitions={"ft-ripple":kt,"ft-tooltip":Ge,"ft-typography":Ke,"ft-icon":li,"ft-loader":ti},hi([i({type:Boolean})],yi.prototype,"primary",void 0),hi([i({type:Boolean})],yi.prototype,"outlined",void 0),hi([i({type:Boolean})],yi.prototype,"disabled",void 0),hi([i({type:Boolean})],yi.prototype,"dense",void 0),hi([i({type:Boolean})],yi.prototype,"round",void 0),hi([i({type:String})],yi.prototype,"label",void 0),hi([i({type:String})],yi.prototype,"icon",void 0),hi([i({type:Boolean})],yi.prototype,"trailingIcon",void 0),hi([i({type:Boolean})],yi.prototype,"loading",void 0),hi([i({type:String})],yi.prototype,"tooltipPosition",void 0),hi([s(".ft-button")],yi.prototype,"button",void 0),hi([s(".ft-button--label slot")],yi.prototype,"slottedContent",void 0),l("ft-button")(yi);var xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bi extends ft{constructor(){super(...arguments),this.open=!1,this.label="Open here",this.primary=!1,this.secondary=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.openIcon="expand_less",this.closedIcon="expand_more",this.trailingIcon=!1}render(){return I`
|
|
609
620
|
<ft-button
|
|
610
621
|
part="toggle"
|
|
611
622
|
icon=${this.open?this.openIcon:this.closedIcon}
|
|
@@ -627,7 +638,7 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
627
638
|
class="${this.hasCustomToggle()?"":"hidden"}"
|
|
628
639
|
></slot>
|
|
629
640
|
<slot class="content ${this.open?"":"hidden"}"></slot>
|
|
630
|
-
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,
|
|
641
|
+
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,e;return 0!==(null!==(e=null===(t=this.toggleSlot)||void 0===t?void 0:t.assignedNodes().length)&&void 0!==e?e:0)}toggleOpen(){this.open=!this.open}update(t){super.update(t),t.has("open")&&this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}}bi.elementDefinitions={"ft-button":yi},bi.styles=u`
|
|
631
642
|
:host, :root {
|
|
632
643
|
display: block;
|
|
633
644
|
}
|
|
@@ -639,9 +650,9 @@ function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},
|
|
|
639
650
|
.hidden {
|
|
640
651
|
display: none;
|
|
641
652
|
}
|
|
642
|
-
`,
|
|
643
|
-
${
|
|
653
|
+
`,xi([s(".content")],bi.prototype,"content",void 0),xi([i({type:Boolean,reflect:!0})],bi.prototype,"open",void 0),xi([i()],bi.prototype,"label",void 0),xi([i({type:Boolean})],bi.prototype,"primary",void 0),xi([i({type:Boolean})],bi.prototype,"secondary",void 0),xi([i({type:Boolean})],bi.prototype,"disabled",void 0),xi([i({type:Boolean})],bi.prototype,"dense",void 0),xi([i({type:Boolean})],bi.prototype,"round",void 0),xi([i({type:String})],bi.prototype,"openIcon",void 0),xi([i({type:String})],bi.prototype,"closedIcon",void 0),xi([i({type:Boolean})],bi.prototype,"trailingIcon",void 0),xi([s('slot[name="toggle"]')],bi.prototype,"toggleSlot",void 0),l("ft-collapsible")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),I`
|
|
654
|
+
${i.map((t=>I`
|
|
644
655
|
<style>${t}</style>
|
|
645
656
|
`))}
|
|
646
657
|
${super.render()}
|
|
647
|
-
`}},
|
|
658
|
+
`}},i.styles=void 0,i.elementDefinitions=o,i}(bi))}();
|