@fluid-topics/ft-tabs 0.3.4 → 0.3.6
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-tabs.light.js +100 -99
- package/build/ft-tabs.min.js +110 -109
- package/package.json +6 -6
package/build/ft-tabs.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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=n.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),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.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 v=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(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!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(se){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -46,24 +46,24 @@ function r(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),
|
|
49
|
+
const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),c=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(l&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}const f=t=>new h("string"==typeof t?t:t+"",void 0,p),d=(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 h(i,t,p)},u=(t,e)=>{l?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)}))},y=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return f(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var v;const x=window.trustedTypes,b=x?x.emptyScript:"",g=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?b: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}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=$){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,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(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).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._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.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 u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||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)}_$EO(t,e,i=$){var o,s;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:m.toAttribute)(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i,o;const s=this.constructor,r=s._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=s.getPropertyOptions(r),n=t.converter,a=null!==(o=null!==(i=null==n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof n?n:null)&&void 0!==o?o:m.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||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._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||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)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:O}),(null!==(
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:O}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.3.4");const N=globalThis.trustedTypes,k=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,R=`<${E}>`,M=document,U=(t="")=>M.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,z=t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,L=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,D=/"/g,_=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,V=M.createTreeWalker(M,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=A;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===A?"!--"===l[1]?n=B:void 0!==l[1]?n=L:void 0!==l[2]?(_.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=T):void 0!==l[3]&&(n=T):n===T?">"===l[0]?(n=null!=s?s:A,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?T:'"'===l[3]?D:P):n===D||n===P?n=T:n===B||n===L?n=A:(n=T,s=void 0);const h=n===T&&t[e+1].startsWith("/>")?" ":"";r+=n===A?i+R:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+C+h):i+C+(-2===p?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(a):a,o]};class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,p]=Z(t,e);if(this.el=J.createElement(l,i),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=V.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?et:"@"===e[1]?it:G})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),V.nextNode(),a.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:s}),t+=C.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var s,r,n,a;if(e===I)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,o)),e}class X{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);V.currentNode=s;let r=V.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Y(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ot(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=V.nextNode(),n++)}return s}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 s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}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=q(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):z(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Y(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(s),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,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 s=this.strings;let r=!1;if(void 0===s)t=q(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=q(this,o[i+n],e,n),a===I&&(a=this._$AH[n]),r||(r=!j(a)||a!==this._$AH[n]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.P(t)}P(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}P(t){this.element[this.name]=t===H?void 0:t}}const tt=N?N.emptyScript:"";class et extends G{constructor(){super(...arguments),this.type=4}P(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:H)===I)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),r&&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){q(this,t)}}const st={A:"$lit$",C,M:E,L:1,R:Z,V:X,D:z,I:q,H:Y,N:G,U:et,B:it,F:Q,W:ot},rt=window.litHtmlPolyfillSupport;
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var nt,at;null==rt||rt(J,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.7");class lt extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new Y(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,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 I}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:lt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.2.2");class
|
|
66
|
+
var nt,at;null==rt||rt(J,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.7");class lt extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new Y(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,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 I}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:lt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let o=t=>f(null!=t?t:i),s=d`var(${f(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>d`var(${f(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=d`var(${f(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>d`var(${f(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):f(null!=e?e:t.defaultValue),o=d`var(${f(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>d`var(${f(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ht={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
@@ -73,7 +73,7 @@ var nt,at;null==rt||rt(J,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,r,n;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 p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,r,n;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 p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}ut([o()],yt.prototype,"exportpartsPrefix",void 0),ut([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0),d`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -88,12 +88,12 @@ var nt,at;null==rt||rt(J,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
90
|
*/
|
|
91
|
-
const
|
|
91
|
+
const vt=1,xt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{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)}}
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2017 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
-
*/class mt extends gt{constructor(t){if(super(t),this.it=H,t.type!==
|
|
96
|
+
*/class mt extends gt{constructor(t){if(super(t),this.it=H,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;const wt=bt(mt);var $t,Ot;!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=""}($t||($t={})),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=""}(Ot||(Ot={})),new Map([...["abw"].map((t=>[t,Ot.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,Ot.AUDIO])),...["avi"].map((t=>[t,Ot.AVI])),...["chm","xhs"].map((t=>[t,Ot.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,Ot.CODE])),...["csv"].map((t=>[t,Ot.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ot.DITA])),...["epub"].map((t=>[t,Ot.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ot.EXCEL])),...["flac"].map((t=>[t,Ot.FLAC])),...["gif"].map((t=>[t,Ot.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ot.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ot.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,Ot.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ot.JPEG])),...["json"].map((t=>[t,Ot.JSON])),...["m4a","m4p"].map((t=>[t,Ot.M4A])),...["mov","qt"].map((t=>[t,Ot.MOV])),...["mp3"].map((t=>[t,Ot.MP3])),...["mp4","m4v"].map((t=>[t,Ot.MP4])),...["ogg","oga"].map((t=>[t,Ot.OGG])),...["pdf","ps"].map((t=>[t,Ot.PDF])),...["png"].map((t=>[t,Ot.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ot.POWERPOINT])),...["rar"].map((t=>[t,Ot.RAR])),...["stp"].map((t=>[t,Ot.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ot.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,Ot.VIDEO])),...["wav"].map((t=>[t,Ot.WAV])),...["wma"].map((t=>[t,Ot.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ot.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ot.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ot.YAML])),...["zip"].map((t=>[t,Ot.ZIP]))]);var St,Nt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(St||(St={}));const kt=ct.create("--ft-icon-font-size","SIZE","24px"),Ct=ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Et=ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Rt=ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Mt=ct.create("--ft-icon-vertical-align","UNKNOWN","unset");class Ut extends yt{constructor(){super(...arguments),this.variant=St.fluid_topics}getStyles(){return d`
|
|
97
97
|
:host {
|
|
98
98
|
display: inline-block;
|
|
99
99
|
}
|
|
@@ -116,6 +116,7 @@ const xt=1,vt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
116
116
|
text-rendering: auto;
|
|
117
117
|
-webkit-font-smoothing: antialiased;
|
|
118
118
|
-moz-osx-font-smoothing: grayscale;
|
|
119
|
+
vertical-align: ${Mt};
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
.ft-icon--fluid-topics {
|
|
@@ -134,25 +135,25 @@ const xt=1,vt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
134
135
|
${wt(this.getIcon())}
|
|
135
136
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
136
137
|
</i>
|
|
137
|
-
`}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===St.file_format?null!==(t=Ot[i.toUpperCase()])&&void 0!==t?t:i:this.variant===St.fluid_topics?null!==(e=$t[i.toUpperCase()])&&void 0!==e?e:i:H}}
|
|
138
|
+
`}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===St.file_format?null!==(t=Ot[i.toUpperCase()])&&void 0!==t?t:i:this.variant===St.fluid_topics?null!==(e=$t[i.toUpperCase()])&&void 0!==e?e:i:H}}Ut.elementDefinitions={},Nt([o()],Ut.prototype,"variant",void 0),Nt([r("slot")],Ut.prototype,"slottedContent",void 0),a("ft-icon")(Ut);var jt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ft extends yt{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=St.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return W`
|
|
138
139
|
<style>
|
|
139
140
|
:host {
|
|
140
141
|
display: ${f(this.active?"block":"none")};
|
|
141
142
|
}
|
|
142
143
|
</style>
|
|
143
144
|
<slot></slot>
|
|
144
|
-
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}
|
|
145
|
+
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}Ft.elementDefinitions={},jt([o({type:String})],Ft.prototype,"label",void 0),jt([o({type:String})],Ft.prototype,"icon",void 0),jt([o()],Ft.prototype,"iconVariant",void 0),jt([o({type:Boolean})],Ft.prototype,"active",void 0),jt([o({type:Boolean})],Ft.prototype,"disabled",void 0),jt([o({type:String,reflect:!0})],Ft.prototype,"id",void 0),jt([o({type:String,reflect:!0,attribute:"aria-labelledby"})],Ft.prototype,"ariaLabelledBy",void 0);
|
|
145
146
|
/**
|
|
146
147
|
* @license
|
|
147
148
|
* Copyright 2020 Google LLC
|
|
148
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
149
150
|
*/
|
|
150
|
-
const{H:
|
|
151
|
+
const{H:zt}=st,At=()=>document.createComment(""),Bt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(At(),r),o=s.insertBefore(At(),r);i=new zt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},Lt=(t,e,i=t)=>(t._$AI(e,i),t),Tt={},Pt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Dt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},_t=bt(class extends gt{constructor(t){if(super(t),t.type!==xt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,n;const l=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=r.length-1,u=0,y=n.length-1;for(;f<=d&&u<=y;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[u])p[u]=Lt(r[f],n[u]),f++,u++;else if(l[d]===a[y])p[y]=Lt(r[d],n[y]),d--,y--;else if(l[f]===a[y])p[y]=Lt(r[f],n[y]),Bt(t,p[y+1],r[f]),f++,y--;else if(l[d]===a[u])p[u]=Lt(r[d],n[u]),Bt(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Dt(a,u,y),h=Dt(l,f,d)),c.has(l[f]))if(c.has(l[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Bt(t,r[f]);Lt(e,n[u]),p[u]=e}else p[u]=Lt(i,n[u]),Bt(t,r[f],i),r[e]=null;u++}else Pt(r[d]),d--;else Pt(r[f]),f++;for(;u<=y;){const e=Bt(t,p[y+1]);Lt(e,n[u]),p[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Pt(t)}return this.ut=a,((t,e=Tt)=>{t._$AH=e})(t,p),I}}),Wt=bt(class extends gt{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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return I}});
|
|
151
152
|
/**
|
|
152
153
|
* @license
|
|
153
154
|
* Copyright 2017 Google LLC
|
|
154
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
155
|
-
*/var
|
|
156
|
+
*/var It=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ht=ct.extend("--ft-ripple-color",ht.colorContent),Kt=Ht,Vt=ct.extend("--ft-ripple-background-color",Ht),Zt=ct.external(ht.opacityContentOnSurfacePressed,"Design system"),Jt=ct.external(ht.opacityContentOnSurfaceHover,"Design system"),qt=ct.external(ht.opacityContentOnSurfaceFocused,"Design system"),Xt=ct.external(ht.opacityContentOnSurfaceSelected,"Design system"),Yt=ct.extend("--ft-ripple-color",ht.colorPrimary),Gt=Yt,Qt=ct.extend("--ft-ripple-background-color",Yt),te=ct.extend("--ft-ripple-color",ht.colorSecondary),ee=te,ie=ct.extend("--ft-ripple-background-color",te);class oe extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-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 W`
|
|
156
157
|
<style>
|
|
157
158
|
.ft-ripple .ft-ripple--effect,
|
|
158
159
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -165,11 +166,11 @@ const{H:Ft}=st,zt=()=>document.createComment(""),At=(t,e,i)=>{var o;const s=t._$
|
|
|
165
166
|
top: ${this.originY}px;
|
|
166
167
|
}
|
|
167
168
|
</style>
|
|
168
|
-
<div class="${
|
|
169
|
+
<div class="${Wt(t)}">
|
|
169
170
|
<div class="ft-ripple--background"></div>
|
|
170
171
|
<div class="ft-ripple--effect"></div>
|
|
171
172
|
</div>
|
|
172
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}
|
|
173
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}oe.elementDefinitions={},oe.styles=d`
|
|
173
174
|
:host {
|
|
174
175
|
display: contents;
|
|
175
176
|
}
|
|
@@ -191,27 +192,27 @@ const{H:Ft}=st,zt=()=>document.createComment(""),At=(t,e,i)=>{var o;const s=t._$
|
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
.ft-ripple .ft-ripple--background {
|
|
194
|
-
background-color: ${
|
|
195
|
+
background-color: ${Vt};
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
.ft-ripple .ft-ripple--effect {
|
|
198
|
-
background-color: ${
|
|
199
|
+
background-color: ${Kt};
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
202
|
-
background-color: ${
|
|
203
|
+
background-color: ${ie};
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
206
|
-
background-color: ${
|
|
207
|
+
background-color: ${ee};
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
210
|
-
background-color: ${
|
|
211
|
+
background-color: ${Qt};
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
214
|
-
background-color: ${
|
|
215
|
+
background-color: ${Gt};
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
.ft-ripple .ft-ripple--background {
|
|
@@ -243,134 +244,134 @@ const{H:Ft}=st,zt=()=>document.createComment(""),At=(t,e,i)=>{var o;const s=t._$
|
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
246
|
-
opacity: ${
|
|
247
|
+
opacity: ${Jt};
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
250
|
-
opacity: ${
|
|
251
|
+
opacity: ${Xt};
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
254
|
-
opacity: ${
|
|
255
|
+
opacity: ${qt};
|
|
255
256
|
}
|
|
256
257
|
|
|
257
258
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
258
|
-
opacity: ${
|
|
259
|
+
opacity: ${Zt};
|
|
259
260
|
transform: translate(-50%, -50%) scale(1);
|
|
260
261
|
}
|
|
261
|
-
`,
|
|
262
|
+
`,It([o({type:Boolean})],oe.prototype,"primary",void 0),It([o({type:Boolean})],oe.prototype,"secondary",void 0),It([o({type:Boolean})],oe.prototype,"unbounded",void 0),It([o({type:Boolean})],oe.prototype,"activated",void 0),It([o({type:Boolean})],oe.prototype,"selected",void 0),It([o({type:Boolean})],oe.prototype,"disabled",void 0),It([s()],oe.prototype,"hovered",void 0),It([s()],oe.prototype,"focused",void 0),It([s()],oe.prototype,"pressed",void 0),It([s()],oe.prototype,"rippling",void 0),It([s()],oe.prototype,"rippleSize",void 0),It([s()],oe.prototype,"originX",void 0),It([s()],oe.prototype,"originY",void 0),It([r(".ft-ripple")],oe.prototype,"ripple",void 0),It([r(".ft-ripple--effect")],oe.prototype,"rippleEffect",void 0),a("ft-ripple")(oe);
|
|
262
263
|
/**
|
|
263
264
|
* @license
|
|
264
265
|
* Copyright 2020 Google LLC
|
|
265
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
266
267
|
*/
|
|
267
|
-
const
|
|
268
|
+
const se=Symbol.for(""),re=t=>{if((null==t?void 0:t.r)===se)return null==t?void 0:t._$litStatic$},ne=t=>({_$litStatic$:t,r:se}),ae=new Map,le=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,p=0,c=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],s=re(r));)l+=s+e[++p],c=!0;a.push(r),n.push(l),p++}if(p===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=ae.get(t))&&(n.raw=n,ae.set(t,e=n)),i=a}return t(e,...i)})(W);var pe,ce=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(pe||(pe={}));const he=ct.extend("--ft-typography-font-family",ht.titleFont),fe=ct.extend("--ft-typography-font-family",ht.contentFont),de={fontFamily:fe,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},ue=ct.extend("--ft-typography-title-font-family",he),ye=ct.extend("--ft-typography-title-font-size",de.fontSize,"20px"),ve=ct.extend("--ft-typography-title-font-weight",de.fontWeight,"normal"),xe=ct.extend("--ft-typography-title-letter-spacing",de.letterSpacing,"0.15px"),be=ct.extend("--ft-typography-title-line-height",de.lineHeight,"1.2"),ge=ct.extend("--ft-typography-title-text-transform",de.textTransform,"inherit"),me=ct.extend("--ft-typography-title-dense-font-family",he),we=ct.extend("--ft-typography-title-dense-font-size",de.fontSize,"14px"),$e=ct.extend("--ft-typography-title-dense-font-weight",de.fontWeight,"normal"),Oe=ct.extend("--ft-typography-title-dense-letter-spacing",de.letterSpacing,"0.105px"),Se=ct.extend("--ft-typography-title-dense-line-height",de.lineHeight,"1.7"),Ne=ct.extend("--ft-typography-title-dense-text-transform",de.textTransform,"inherit"),ke=ct.extend("--ft-typography-subtitle1-font-family",fe),Ce=ct.extend("--ft-typography-subtitle1-font-size",de.fontSize,"16px"),Ee=ct.extend("--ft-typography-subtitle1-font-weight",de.fontWeight,"600"),Re=ct.extend("--ft-typography-subtitle1-letter-spacing",de.letterSpacing,"0.144px"),Me=ct.extend("--ft-typography-subtitle1-line-height",de.lineHeight,"1.5"),Ue=ct.extend("--ft-typography-subtitle1-text-transform",de.textTransform,"inherit"),je=ct.extend("--ft-typography-subtitle2-font-family",fe),Fe=ct.extend("--ft-typography-subtitle2-font-size",de.fontSize,"14px"),ze=ct.extend("--ft-typography-subtitle2-font-weight",de.fontWeight,"normal"),Ae=ct.extend("--ft-typography-subtitle2-letter-spacing",de.letterSpacing,"0.098px"),Be=ct.extend("--ft-typography-subtitle2-line-height",de.lineHeight,"1.7"),Le=ct.extend("--ft-typography-subtitle2-text-transform",de.textTransform,"inherit"),Te=ct.extend("--ft-typography-body1-font-family",fe),Pe=ct.extend("--ft-typography-body1-font-size",de.fontSize,"16px"),De=ct.extend("--ft-typography-body1-font-weight",de.fontWeight,"normal"),_e=ct.extend("--ft-typography-body1-letter-spacing",de.letterSpacing,"0.496px"),We=ct.extend("--ft-typography-body1-line-height",de.lineHeight,"1.5"),Ie=ct.extend("--ft-typography-body1-text-transform",de.textTransform,"inherit"),He=ct.extend("--ft-typography-body2-font-family",fe),Ke=ct.extend("--ft-typography-body2-font-size",de.fontSize,"14px"),Ve=ct.extend("--ft-typography-body2-font-weight",de.fontWeight,"normal"),Ze=ct.extend("--ft-typography-body2-letter-spacing",de.letterSpacing,"0.252px"),Je=ct.extend("--ft-typography-body2-line-height",de.lineHeight,"1.4"),qe=ct.extend("--ft-typography-body2-text-transform",de.textTransform,"inherit"),Xe=ct.extend("--ft-typography-caption-font-family",fe),Ye=ct.extend("--ft-typography-caption-font-size",de.fontSize,"12px"),Ge=ct.extend("--ft-typography-caption-font-weight",de.fontWeight,"normal"),Qe=ct.extend("--ft-typography-caption-letter-spacing",de.letterSpacing,"0.396px"),ti=ct.extend("--ft-typography-caption-line-height",de.lineHeight,"1.33"),ei=ct.extend("--ft-typography-caption-text-transform",de.textTransform,"inherit"),ii=ct.extend("--ft-typography-breadcrumb-font-family",fe),oi=ct.extend("--ft-typography-breadcrumb-font-size",de.fontSize,"10px"),si=ct.extend("--ft-typography-breadcrumb-font-weight",de.fontWeight,"normal"),ri=ct.extend("--ft-typography-breadcrumb-letter-spacing",de.letterSpacing,"0.33px"),ni=ct.extend("--ft-typography-breadcrumb-line-height",de.lineHeight,"1.6"),ai=ct.extend("--ft-typography-breadcrumb-text-transform",de.textTransform,"inherit"),li=ct.extend("--ft-typography-overline-font-family",fe),pi=ct.extend("--ft-typography-overline-font-size",de.fontSize,"10px"),ci=ct.extend("--ft-typography-overline-font-weight",de.fontWeight,"normal"),hi=ct.extend("--ft-typography-overline-letter-spacing",de.letterSpacing,"1.5px"),fi=ct.extend("--ft-typography-overline-line-height",de.lineHeight,"1.6"),di=ct.extend("--ft-typography-overline-text-transform",de.textTransform,"uppercase"),ui=ct.extend("--ft-typography-button-font-family",fe),yi=ct.extend("--ft-typography-button-font-size",de.fontSize,"14px"),vi=ct.extend("--ft-typography-button-font-weight",de.fontWeight,"600"),xi=ct.extend("--ft-typography-button-letter-spacing",de.letterSpacing,"1.246px"),bi=ct.extend("--ft-typography-button-line-height",de.lineHeight,"1.15"),gi=ct.extend("--ft-typography-button-text-transform",de.textTransform,"uppercase"),mi=d`
|
|
268
269
|
.ft-typography--title {
|
|
269
|
-
font-family: ${
|
|
270
|
-
font-size: ${
|
|
271
|
-
font-weight: ${
|
|
270
|
+
font-family: ${ue};
|
|
271
|
+
font-size: ${ye};
|
|
272
|
+
font-weight: ${ve};
|
|
272
273
|
letter-spacing: ${xe};
|
|
273
|
-
line-height: ${
|
|
274
|
-
text-transform: ${
|
|
274
|
+
line-height: ${be};
|
|
275
|
+
text-transform: ${ge};
|
|
275
276
|
}
|
|
276
|
-
`,
|
|
277
|
+
`,wi=d`
|
|
277
278
|
.ft-typography--title-dense {
|
|
278
|
-
font-family: ${
|
|
279
|
-
font-size: ${
|
|
280
|
-
font-weight: ${
|
|
281
|
-
letter-spacing: ${
|
|
282
|
-
line-height: ${
|
|
283
|
-
text-transform: ${
|
|
279
|
+
font-family: ${me};
|
|
280
|
+
font-size: ${we};
|
|
281
|
+
font-weight: ${$e};
|
|
282
|
+
letter-spacing: ${Oe};
|
|
283
|
+
line-height: ${Se};
|
|
284
|
+
text-transform: ${Ne};
|
|
284
285
|
}
|
|
285
|
-
|
|
286
|
+
`,$i=d`
|
|
286
287
|
.ft-typography--subtitle1 {
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
font-weight: ${
|
|
290
|
-
letter-spacing: ${
|
|
291
|
-
line-height: ${
|
|
292
|
-
text-transform: ${
|
|
288
|
+
font-family: ${ke};
|
|
289
|
+
font-size: ${Ce};
|
|
290
|
+
font-weight: ${Ee};
|
|
291
|
+
letter-spacing: ${Re};
|
|
292
|
+
line-height: ${Me};
|
|
293
|
+
text-transform: ${Ue};
|
|
293
294
|
}
|
|
294
|
-
|
|
295
|
+
`,Oi=d`
|
|
295
296
|
.ft-typography--subtitle2 {
|
|
296
|
-
font-family: ${
|
|
297
|
-
font-size: ${
|
|
298
|
-
font-weight: ${
|
|
299
|
-
letter-spacing: ${
|
|
300
|
-
line-height: ${
|
|
301
|
-
text-transform: ${
|
|
297
|
+
font-family: ${je};
|
|
298
|
+
font-size: ${Fe};
|
|
299
|
+
font-weight: ${ze};
|
|
300
|
+
letter-spacing: ${Ae};
|
|
301
|
+
line-height: ${Be};
|
|
302
|
+
text-transform: ${Le};
|
|
302
303
|
}
|
|
303
304
|
|
|
304
|
-
`,
|
|
305
|
+
`,Si=d`
|
|
305
306
|
.ft-typography--body1 {
|
|
306
|
-
font-family: ${
|
|
307
|
-
font-size: ${
|
|
308
|
-
font-weight: ${
|
|
309
|
-
letter-spacing: ${
|
|
310
|
-
line-height: ${
|
|
311
|
-
text-transform: ${
|
|
307
|
+
font-family: ${Te};
|
|
308
|
+
font-size: ${Pe};
|
|
309
|
+
font-weight: ${De};
|
|
310
|
+
letter-spacing: ${_e};
|
|
311
|
+
line-height: ${We};
|
|
312
|
+
text-transform: ${Ie};
|
|
312
313
|
}
|
|
313
|
-
`,
|
|
314
|
+
`,Ni=d`
|
|
314
315
|
.ft-typography--body2 {
|
|
315
|
-
font-family: ${
|
|
316
|
-
font-size: ${
|
|
317
|
-
font-weight: ${
|
|
318
|
-
letter-spacing: ${
|
|
319
|
-
line-height: ${
|
|
320
|
-
text-transform: ${
|
|
316
|
+
font-family: ${He};
|
|
317
|
+
font-size: ${Ke};
|
|
318
|
+
font-weight: ${Ve};
|
|
319
|
+
letter-spacing: ${Ze};
|
|
320
|
+
line-height: ${Je};
|
|
321
|
+
text-transform: ${qe};
|
|
321
322
|
}
|
|
322
|
-
`,
|
|
323
|
+
`,ki=d`
|
|
323
324
|
.ft-typography--caption {
|
|
324
|
-
font-family: ${
|
|
325
|
-
font-size: ${
|
|
326
|
-
font-weight: ${
|
|
327
|
-
letter-spacing: ${
|
|
328
|
-
line-height: ${
|
|
329
|
-
text-transform: ${
|
|
325
|
+
font-family: ${Xe};
|
|
326
|
+
font-size: ${Ye};
|
|
327
|
+
font-weight: ${Ge};
|
|
328
|
+
letter-spacing: ${Qe};
|
|
329
|
+
line-height: ${ti};
|
|
330
|
+
text-transform: ${ei};
|
|
330
331
|
}
|
|
331
|
-
`,
|
|
332
|
+
`,Ci=d`
|
|
332
333
|
.ft-typography--breadcrumb {
|
|
333
|
-
font-family: ${
|
|
334
|
-
font-size: ${
|
|
335
|
-
font-weight: ${
|
|
336
|
-
letter-spacing: ${
|
|
337
|
-
line-height: ${
|
|
338
|
-
text-transform: ${
|
|
334
|
+
font-family: ${ii};
|
|
335
|
+
font-size: ${oi};
|
|
336
|
+
font-weight: ${si};
|
|
337
|
+
letter-spacing: ${ri};
|
|
338
|
+
line-height: ${ni};
|
|
339
|
+
text-transform: ${ai};
|
|
339
340
|
}
|
|
340
|
-
`,
|
|
341
|
+
`,Ei=d`
|
|
341
342
|
.ft-typography--overline {
|
|
342
|
-
font-family: ${
|
|
343
|
-
font-size: ${
|
|
344
|
-
font-weight: ${
|
|
343
|
+
font-family: ${li};
|
|
344
|
+
font-size: ${pi};
|
|
345
|
+
font-weight: ${ci};
|
|
345
346
|
letter-spacing: ${hi};
|
|
346
|
-
line-height: ${
|
|
347
|
-
text-transform: ${
|
|
347
|
+
line-height: ${fi};
|
|
348
|
+
text-transform: ${di};
|
|
348
349
|
}
|
|
349
|
-
`,
|
|
350
|
+
`,Ri=d`
|
|
350
351
|
.ft-typography--button {
|
|
351
|
-
font-family: ${
|
|
352
|
-
font-size: ${
|
|
353
|
-
font-weight: ${
|
|
352
|
+
font-family: ${ui};
|
|
353
|
+
font-size: ${yi};
|
|
354
|
+
font-weight: ${vi};
|
|
354
355
|
letter-spacing: ${xi};
|
|
355
|
-
line-height: ${
|
|
356
|
-
text-transform: ${
|
|
356
|
+
line-height: ${bi};
|
|
357
|
+
text-transform: ${gi};
|
|
357
358
|
}
|
|
358
|
-
`;class
|
|
359
|
-
<${
|
|
359
|
+
`;class Mi extends yt{constructor(){super(...arguments),this.variant=pe.body1}render(){return this.element?le`
|
|
360
|
+
<${ne(this.element)}
|
|
360
361
|
class="ft-typography ft-typography--${this.variant}">
|
|
361
362
|
<slot></slot>
|
|
362
|
-
</${
|
|
363
|
-
`:
|
|
363
|
+
</${ne(this.element)}>
|
|
364
|
+
`:le`
|
|
364
365
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
365
|
-
`}}
|
|
366
|
+
`}}Mi.styles=[mi,wi,$i,Oi,Si,Ni,ki,Ci,Ei,Ri,d`
|
|
366
367
|
.ft-typography {
|
|
367
368
|
vertical-align: inherit;
|
|
368
369
|
}
|
|
369
|
-
`],
|
|
370
|
-
<div class="${
|
|
370
|
+
`],ce([o()],Mi.prototype,"element",void 0),ce([o()],Mi.prototype,"variant",void 0),a("ft-typography")(Mi);var Ui,ji=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};t.FtTabsAlignment=void 0,(Ui=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ui.right="right",Ui.justify="justify";const Fi={colorSurface:ct.external(ht.colorSurface,"Design system"),colorPrimary:ct.external(ht.colorPrimary,"Design system"),colorOnSurfaceMedium:ct.external(ht.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ct.external(ht.colorOnSurfaceDisabled,"Design system")};class zi extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Ai extends yt{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>this.requestUpdate())),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense};return W`
|
|
371
|
+
<div class="${Wt(t)}" part="container">
|
|
371
372
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
372
|
-
${
|
|
373
|
-
<button class="${
|
|
373
|
+
${_t(this.ftTabs,((t,e)=>W`
|
|
374
|
+
<button class="${Wt({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
|
|
374
375
|
title="${t.label}"
|
|
375
376
|
?disabled=${t.disabled}
|
|
376
377
|
@click=${()=>this.activeIndex=e}
|
|
@@ -388,7 +389,7 @@ const oe=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===oe)return null==t?void
|
|
|
388
389
|
</ft-icon>
|
|
389
390
|
<ft-typography class="ft-tabs--tab-label"
|
|
390
391
|
part="tab-label"
|
|
391
|
-
variant="${
|
|
392
|
+
variant="${pe.body2}">
|
|
392
393
|
${t.label}
|
|
393
394
|
</ft-typography>
|
|
394
395
|
</button>
|
|
@@ -399,11 +400,11 @@ const oe=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===oe)return null==t?void
|
|
|
399
400
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
400
401
|
</div>
|
|
401
402
|
</div>
|
|
402
|
-
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new
|
|
403
|
+
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new zi(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,o,s,r,n,a,l,p;this.activeTabIndicator&&(this.activeTabIndicator.style.width=(null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null===(i=this.activeTab)||void 0===i?void 0:i.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null===(s=this.activeTab)||void 0===s?void 0:s.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null===(n=this.activeTab)||void 0===n?void 0:n.offsetTop)&&void 0!==a?a:0)+(null!==(p=null===(l=this.activeTab)||void 0===l?void 0:l.clientHeight)&&void 0!==p?p:0)-this.activeTabIndicator.clientHeight+"px")}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}}Ai.elementDefinitions={"ft-tab":Ft,"ft-ripple":oe,"ft-typography":Mi,"ft-icon":Ut},Ai.styles=d`
|
|
403
404
|
.ft-tabs {
|
|
404
405
|
display: flex;
|
|
405
406
|
flex-direction: column;
|
|
406
|
-
background-color: ${
|
|
407
|
+
background-color: ${Fi.colorSurface};
|
|
407
408
|
height: 100%;
|
|
408
409
|
}
|
|
409
410
|
|
|
@@ -443,15 +444,15 @@ const oe=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===oe)return null==t?void
|
|
|
443
444
|
outline: none;
|
|
444
445
|
font-size: 16px;
|
|
445
446
|
line-height: 1;
|
|
446
|
-
color: ${
|
|
447
|
+
color: ${Fi.colorOnSurfaceMedium};
|
|
447
448
|
}
|
|
448
449
|
|
|
449
450
|
[role='tab'][aria-selected='true'] {
|
|
450
|
-
color: ${
|
|
451
|
+
color: ${Fi.colorPrimary};
|
|
451
452
|
}
|
|
452
453
|
|
|
453
454
|
[role='tab'][disabled] {
|
|
454
|
-
color: ${
|
|
455
|
+
color: ${Fi.colorOnSurfaceDisabled};
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
.ft-tabs--align-justify [role='tab'] {
|
|
@@ -478,7 +479,7 @@ const oe=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===oe)return null==t?void
|
|
|
478
479
|
position: absolute;
|
|
479
480
|
height: 3px;
|
|
480
481
|
border-radius: 2px;
|
|
481
|
-
background-color: ${
|
|
482
|
+
background-color: ${Fi.colorPrimary};
|
|
482
483
|
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
483
484
|
}
|
|
484
485
|
|
|
@@ -487,4 +488,4 @@ const oe=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===oe)return null==t?void
|
|
|
487
488
|
flex-grow: 1;
|
|
488
489
|
overflow: auto;
|
|
489
490
|
}
|
|
490
|
-
`,
|
|
491
|
+
`,ji([o({type:Boolean})],Ai.prototype,"dense",void 0),ji([o({type:Boolean})],Ai.prototype,"contentBefore",void 0),ji([o()],Ai.prototype,"alignTabs",void 0),ji([s()],Ai.prototype,"ftTabs",void 0),ji([r("[role='tablist']")],Ai.prototype,"tabsContainer",void 0),ji([r("[aria-selected='true']")],Ai.prototype,"activeTab",void 0),ji([r(".ft-tabs--active-tab-indicator")],Ai.prototype,"activeTabIndicator",void 0),ji([o({type:Number,reflect:!0})],Ai.prototype,"activeIndex",void 0),a("ft-tab")(Ft),a("ft-tabs")(Ai),t.FtTab=Ft,t.FtTabs=Ai,t.FtTabsCssVariables=Fi,t.IndexChangeEvent=zi,Object.defineProperty(t,"i",{value:!0})}({});
|