@fluid-topics/ft-collapsible 0.3.32 → 0.3.33
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.css.js +18 -6
- package/build/ft-collapsible.d.ts +16 -2
- package/build/ft-collapsible.js +81 -19
- package/build/ft-collapsible.light.js +77 -61
- package/build/ft-collapsible.min.js +191 -176
- package/build/ft-collapsible.properties.d.ts +19 -8
- package/package.json +4 -4
|
@@ -14,12 +14,12 @@
|
|
|
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,i=window.customElements.define,e=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||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(n,h),h.standInClass=p);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.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(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const b=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(we){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,50 +29,49 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const s=({finisher:t,descriptor:
|
|
32
|
+
*/const s=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,s=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(s.finisher=function(i){t(i,o)}),s}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(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
|
-
*/;function r(t,
|
|
37
|
+
*/;function r(t,i){return s({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};function p(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/
|
|
48
|
-
const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)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(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new u("string"==typeof t?t:t+"",void 0,d),v=(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 u(i,t,d)},b=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
|
|
47
|
+
*/const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;class v{constructor(t,i,e){if(this._$cssResult$=!0,e!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(d&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=u.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&u.set(i,t))}return t}toString(){return this.cssText}}const y=t=>new v("string"==typeof t?t:t+"",void 0,f),b=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new v(e,t,f)},x=(t,i)=>{d?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=c.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return y(i)})(t):t
|
|
49
48
|
/**
|
|
50
49
|
* @license
|
|
51
50
|
* Copyright 2017 Google LLC
|
|
52
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var
|
|
52
|
+
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,i){switch(i){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,i)=>i!==t&&(i==i||t==t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:N};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=C){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(g(t))}else void 0!==t&&i.push(g(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=C){var o;const n=this.constructor._$Ep(t,e);if(void 0!==n&&!0===e.reflect){const s=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:k).toAttribute(i,e.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:k;this._$El=n,this[n]=s.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
54
53
|
/**
|
|
55
54
|
* @license
|
|
56
55
|
* Copyright 2017 Google LLC
|
|
57
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
57
|
*/
|
|
59
|
-
var E
|
|
58
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,z=M.trustedTypes,U=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,j="?"+F,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,G=T.createTreeWalker(T,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=_;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===_?"!--"===l[1]?r=I:void 0!==l[1]?r=D:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=W):void 0!==l[3]&&(r=W):r===W?">"===l[0]?(r=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?W:'"'===l[3]?K:H):r===K||r===H?r=W:r===I||r===D?r=_:(r=W,n=void 0);const c=r===W&&t[i+1].startsWith("/>")?" ":"";s+=r===_?e+B:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+F+c):e+F+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Y(t,i);if(this.el=Q.createElement(l,e),G.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=G.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(F)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?nt:"?"===i[1]?rt:"@"===i[1]?at:ot})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),G.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var n,s,r,a;if(i===J)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(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,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=tt(t,l._$AS(t,i.values),l,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);G.currentNode=n;let s=G.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new et(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new lt(s,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=G.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=tt(this,t,i),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new it(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new et(this.O(A()),this.O(A()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=tt(this,t,i,0),s=!L(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=tt(this,o[e+r],i,r),a===J&&(a=this._$AH[r]),s||(s=!L(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=z?z.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=M.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
60
59
|
/**
|
|
61
60
|
* @license
|
|
62
61
|
* Copyright 2017 Google LLC
|
|
63
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
63
|
*/
|
|
65
|
-
var
|
|
64
|
+
var pt,ct;class dt extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new et(i.insertBefore(A(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}dt.finalized=!0,dt._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:dt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:dt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,i,e){let o=t=>y(null!=t?t:e),n=b`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>b`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=b`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>b`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):y(null!=i?i:t.defaultValue),o=b`var(${y(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>b`var(${y(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function vt(t,i){return y(`${t.name}: ${i}`)}const yt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
65
|
/**
|
|
67
66
|
* @license
|
|
68
67
|
* Copyright 2021 Google LLC
|
|
69
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/var
|
|
71
|
-
${t.map((t=>
|
|
69
|
+
*/var bt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(n,this.constructor.elementStyles),n}}}(dt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),V`
|
|
70
|
+
${t.map((t=>V`
|
|
72
71
|
<style>${t}</style>
|
|
73
72
|
`))}
|
|
74
73
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}bt([o()],xt.prototype,"exportpartsPrefix",void 0),bt([p([])],xt.prototype,"exportpartsPrefixes",void 0);const gt=b`
|
|
76
75
|
.ft-no-text-select {
|
|
77
76
|
-webkit-touch-callout: none;
|
|
78
77
|
-webkit-user-select: none;
|
|
@@ -81,7 +80,7 @@ var ht,pt;class ct extends C{constructor(){super(...arguments),this.renderOption
|
|
|
81
80
|
-ms-user-select: none;
|
|
82
81
|
user-select: none;
|
|
83
82
|
}
|
|
84
|
-
`;var
|
|
83
|
+
`;var mt,wt,$t;b`
|
|
85
84
|
.ft-word-wrap {
|
|
86
85
|
white-space: normal;
|
|
87
86
|
word-wrap: break-word;
|
|
@@ -93,17 +92,17 @@ var ht,pt;class ct extends C{constructor(){super(...arguments),this.renderOption
|
|
|
93
92
|
-webkit-hyphens: auto;
|
|
94
93
|
hyphens: auto
|
|
95
94
|
}
|
|
96
|
-
`;const
|
|
95
|
+
`;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),St=1,kt=2,Nt=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
97
96
|
/**
|
|
98
97
|
* @license
|
|
99
98
|
* Copyright 2017 Google LLC
|
|
100
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/class
|
|
100
|
+
*/class Ct{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)}}
|
|
102
101
|
/**
|
|
103
102
|
* @license
|
|
104
103
|
* Copyright 2018 Google LLC
|
|
105
104
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const
|
|
105
|
+
*/const Et=Nt(class extends Ct{constructor(t){var i;if(super(t),t.type!==St||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Rt=ut.extend("--ft-ripple-color",yt.colorContent),Mt={color:Rt,backgroundColor:ut.extend("--ft-ripple-background-color",Rt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},zt=ut.extend("--ft-ripple-color",yt.colorPrimary),Ut=zt,Ft=ut.extend("--ft-ripple-background-color",zt),jt=ut.extend("--ft-ripple-color",yt.colorSecondary),Bt=jt,Tt=ut.extend("--ft-ripple-background-color",jt),At=b`
|
|
107
106
|
:host {
|
|
108
107
|
display: contents;
|
|
109
108
|
}
|
|
@@ -125,27 +124,27 @@ var ht,pt;class ct extends C{constructor(){super(...arguments),this.renderOption
|
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
.ft-ripple .ft-ripple--background {
|
|
128
|
-
background-color: ${
|
|
127
|
+
background-color: ${Mt.backgroundColor};
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
.ft-ripple .ft-ripple--effect {
|
|
132
|
-
background-color: ${
|
|
131
|
+
background-color: ${Mt.color};
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
136
|
-
background-color: ${
|
|
135
|
+
background-color: ${Tt};
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
140
|
-
background-color: ${
|
|
139
|
+
background-color: ${Bt};
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
144
|
-
background-color: ${
|
|
143
|
+
background-color: ${Ft};
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
148
|
-
background-color: ${
|
|
147
|
+
background-color: ${Ut};
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
.ft-ripple .ft-ripple--background {
|
|
@@ -177,22 +176,22 @@ var ht,pt;class ct extends C{constructor(){super(...arguments),this.renderOption
|
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
179
|
+
opacity: ${Mt.opacityContentOnSurfaceHover};
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
184
|
-
opacity: ${
|
|
183
|
+
opacity: ${Mt.opacityContentOnSurfaceSelected};
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
188
|
-
opacity: ${
|
|
187
|
+
opacity: ${Mt.opacityContentOnSurfaceFocused};
|
|
189
188
|
}
|
|
190
189
|
|
|
191
190
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
192
|
-
opacity: ${
|
|
191
|
+
opacity: ${Mt.opacityContentOnSurfacePressed};
|
|
193
192
|
transform: translate(-50%, -50%) scale(1);
|
|
194
193
|
}
|
|
195
|
-
`;var
|
|
194
|
+
`;var Lt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Pt extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=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-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 V`
|
|
196
195
|
<style>
|
|
197
196
|
.ft-ripple .ft-ripple--effect,
|
|
198
197
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -205,119 +204,119 @@ var ht,pt;class ct extends C{constructor(){super(...arguments),this.renderOption
|
|
|
205
204
|
top: ${this.originY}px;
|
|
206
205
|
}
|
|
207
206
|
</style>
|
|
208
|
-
<div class="${
|
|
207
|
+
<div class="${Et(t)}">
|
|
209
208
|
<div class="ft-ripple--background"></div>
|
|
210
209
|
<div class="ft-ripple--effect"></div>
|
|
211
210
|
</div>
|
|
212
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e
|
|
211
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Pt.elementDefinitions={},Pt.styles=At,Lt([o({type:Boolean})],Pt.prototype,"primary",void 0),Lt([o({type:Boolean})],Pt.prototype,"secondary",void 0),Lt([o({type:Boolean})],Pt.prototype,"unbounded",void 0),Lt([o({type:Boolean})],Pt.prototype,"activated",void 0),Lt([o({type:Boolean})],Pt.prototype,"selected",void 0),Lt([o({type:Boolean})],Pt.prototype,"disabled",void 0),Lt([n()],Pt.prototype,"hovered",void 0),Lt([n()],Pt.prototype,"focused",void 0),Lt([n()],Pt.prototype,"pressed",void 0),Lt([n()],Pt.prototype,"rippling",void 0),Lt([n()],Pt.prototype,"rippleSize",void 0),Lt([n()],Pt.prototype,"originX",void 0),Lt([n()],Pt.prototype,"originY",void 0),Lt([r(".ft-ripple")],Pt.prototype,"ripple",void 0),Lt([r(".ft-ripple--effect")],Pt.prototype,"rippleEffect",void 0),h("ft-ripple")(Pt);
|
|
213
212
|
/**
|
|
214
213
|
* @license
|
|
215
214
|
* Copyright 2020 Google LLC
|
|
216
215
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
217
216
|
*/
|
|
218
|
-
const
|
|
217
|
+
const _t=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===_t)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:_t}),Wt=new Map,Ht=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=It(s));)l+=n+i[++h],p=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=Wt.get(t))&&(r.raw=r,Wt.set(t,i=r)),e=a}return t(i,...e)})(V);var Kt;!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"}(Kt||(Kt={}));const Zt=ut.extend("--ft-typography-font-family",yt.titleFont),Vt=ut.extend("--ft-typography-font-family",yt.contentFont),Jt={fontFamily:Vt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},qt=ut.extend("--ft-typography-title-font-family",Zt),Xt=ut.extend("--ft-typography-title-font-size",Jt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",Jt.fontWeight,"normal"),Yt=ut.extend("--ft-typography-title-letter-spacing",Jt.letterSpacing,"0.15px"),Qt=ut.extend("--ft-typography-title-line-height",Jt.lineHeight,"1.2"),ti=ut.extend("--ft-typography-title-text-transform",Jt.textTransform,"inherit"),ii=ut.extend("--ft-typography-title-dense-font-family",Zt),ei=ut.extend("--ft-typography-title-dense-font-size",Jt.fontSize,"14px"),oi=ut.extend("--ft-typography-title-dense-font-weight",Jt.fontWeight,"normal"),ni=ut.extend("--ft-typography-title-dense-letter-spacing",Jt.letterSpacing,"0.105px"),si=ut.extend("--ft-typography-title-dense-line-height",Jt.lineHeight,"1.7"),ri=ut.extend("--ft-typography-title-dense-text-transform",Jt.textTransform,"inherit"),ai=ut.extend("--ft-typography-subtitle1-font-family",Vt),li=ut.extend("--ft-typography-subtitle1-font-size",Jt.fontSize,"16px"),hi=ut.extend("--ft-typography-subtitle1-font-weight",Jt.fontWeight,"600"),pi=ut.extend("--ft-typography-subtitle1-letter-spacing",Jt.letterSpacing,"0.144px"),ci=ut.extend("--ft-typography-subtitle1-line-height",Jt.lineHeight,"1.5"),di=ut.extend("--ft-typography-subtitle1-text-transform",Jt.textTransform,"inherit"),fi=ut.extend("--ft-typography-subtitle2-font-family",Vt),ui=ut.extend("--ft-typography-subtitle2-font-size",Jt.fontSize,"14px"),vi=ut.extend("--ft-typography-subtitle2-font-weight",Jt.fontWeight,"normal"),yi=ut.extend("--ft-typography-subtitle2-letter-spacing",Jt.letterSpacing,"0.098px"),bi=ut.extend("--ft-typography-subtitle2-line-height",Jt.lineHeight,"1.7"),xi=ut.extend("--ft-typography-subtitle2-text-transform",Jt.textTransform,"inherit"),gi=ut.extend("--ft-typography-body1-font-family",Vt),mi=ut.extend("--ft-typography-body1-font-size",Jt.fontSize,"16px"),wi=ut.extend("--ft-typography-body1-font-weight",Jt.fontWeight,"normal"),$i=ut.extend("--ft-typography-body1-letter-spacing",Jt.letterSpacing,"0.496px"),Oi=ut.extend("--ft-typography-body1-line-height",Jt.lineHeight,"1.5"),Si=ut.extend("--ft-typography-body1-text-transform",Jt.textTransform,"inherit"),ki=ut.extend("--ft-typography-body2-font-family",Vt),Ni=ut.extend("--ft-typography-body2-font-size",Jt.fontSize,"14px"),Ci=ut.extend("--ft-typography-body2-font-weight",Jt.fontWeight,"normal"),Ei=ut.extend("--ft-typography-body2-letter-spacing",Jt.letterSpacing,"0.252px"),Ri=ut.extend("--ft-typography-body2-line-height",Jt.lineHeight,"1.4"),Mi=ut.extend("--ft-typography-body2-text-transform",Jt.textTransform,"inherit"),zi=ut.extend("--ft-typography-caption-font-family",Vt),Ui=ut.extend("--ft-typography-caption-font-size",Jt.fontSize,"12px"),Fi=ut.extend("--ft-typography-caption-font-weight",Jt.fontWeight,"normal"),ji=ut.extend("--ft-typography-caption-letter-spacing",Jt.letterSpacing,"0.396px"),Bi=ut.extend("--ft-typography-caption-line-height",Jt.lineHeight,"1.33"),Ti=ut.extend("--ft-typography-caption-text-transform",Jt.textTransform,"inherit"),Ai=ut.extend("--ft-typography-breadcrumb-font-family",Vt),Li=ut.extend("--ft-typography-breadcrumb-font-size",Jt.fontSize,"10px"),Pi=ut.extend("--ft-typography-breadcrumb-font-weight",Jt.fontWeight,"normal"),_i=ut.extend("--ft-typography-breadcrumb-letter-spacing",Jt.letterSpacing,"0.33px"),Ii=ut.extend("--ft-typography-breadcrumb-line-height",Jt.lineHeight,"1.6"),Di=ut.extend("--ft-typography-breadcrumb-text-transform",Jt.textTransform,"inherit"),Wi=ut.extend("--ft-typography-overline-font-family",Vt),Hi=ut.extend("--ft-typography-overline-font-size",Jt.fontSize,"10px"),Ki=ut.extend("--ft-typography-overline-font-weight",Jt.fontWeight,"normal"),Zi=ut.extend("--ft-typography-overline-letter-spacing",Jt.letterSpacing,"1.5px"),Vi=ut.extend("--ft-typography-overline-line-height",Jt.lineHeight,"1.6"),Ji=ut.extend("--ft-typography-overline-text-transform",Jt.textTransform,"uppercase"),qi={fontFamily:ut.extend("--ft-typography-button-font-family",Vt),fontSize:ut.extend("--ft-typography-button-font-size",Jt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Jt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Jt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Jt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Jt.textTransform,"uppercase")},Xi=b`
|
|
219
218
|
.ft-typography--title {
|
|
220
|
-
font-family: ${
|
|
221
|
-
font-size: ${
|
|
222
|
-
font-weight: ${
|
|
219
|
+
font-family: ${qt};
|
|
220
|
+
font-size: ${Xt};
|
|
221
|
+
font-weight: ${Gt};
|
|
223
222
|
letter-spacing: ${Yt};
|
|
224
|
-
line-height: ${
|
|
225
|
-
text-transform: ${
|
|
223
|
+
line-height: ${Qt};
|
|
224
|
+
text-transform: ${ti};
|
|
226
225
|
}
|
|
227
|
-
`,
|
|
226
|
+
`,Gi=b`
|
|
228
227
|
.ft-typography--title-dense {
|
|
229
|
-
font-family: ${
|
|
230
|
-
font-size: ${
|
|
231
|
-
font-weight: ${
|
|
232
|
-
letter-spacing: ${
|
|
233
|
-
line-height: ${
|
|
234
|
-
text-transform: ${
|
|
235
|
-
}
|
|
236
|
-
`,
|
|
228
|
+
font-family: ${ii};
|
|
229
|
+
font-size: ${ei};
|
|
230
|
+
font-weight: ${oi};
|
|
231
|
+
letter-spacing: ${ni};
|
|
232
|
+
line-height: ${si};
|
|
233
|
+
text-transform: ${ri};
|
|
234
|
+
}
|
|
235
|
+
`,Yi=b`
|
|
237
236
|
.ft-typography--subtitle1 {
|
|
238
|
-
font-family: ${
|
|
239
|
-
font-size: ${
|
|
240
|
-
font-weight: ${
|
|
241
|
-
letter-spacing: ${
|
|
242
|
-
line-height: ${
|
|
243
|
-
text-transform: ${
|
|
244
|
-
}
|
|
245
|
-
`,
|
|
237
|
+
font-family: ${ai};
|
|
238
|
+
font-size: ${li};
|
|
239
|
+
font-weight: ${hi};
|
|
240
|
+
letter-spacing: ${pi};
|
|
241
|
+
line-height: ${ci};
|
|
242
|
+
text-transform: ${di};
|
|
243
|
+
}
|
|
244
|
+
`,Qi=b`
|
|
246
245
|
.ft-typography--subtitle2 {
|
|
247
|
-
font-family: ${
|
|
248
|
-
font-size: ${
|
|
249
|
-
font-weight: ${
|
|
250
|
-
letter-spacing: ${
|
|
251
|
-
line-height: ${
|
|
252
|
-
text-transform: ${
|
|
246
|
+
font-family: ${fi};
|
|
247
|
+
font-size: ${ui};
|
|
248
|
+
font-weight: ${vi};
|
|
249
|
+
letter-spacing: ${yi};
|
|
250
|
+
line-height: ${bi};
|
|
251
|
+
text-transform: ${xi};
|
|
253
252
|
}
|
|
254
253
|
|
|
255
|
-
`,
|
|
254
|
+
`,te=b`
|
|
256
255
|
.ft-typography--body1 {
|
|
257
|
-
font-family: ${
|
|
258
|
-
font-size: ${
|
|
259
|
-
font-weight: ${
|
|
260
|
-
letter-spacing: ${
|
|
261
|
-
line-height: ${
|
|
262
|
-
text-transform: ${
|
|
263
|
-
}
|
|
264
|
-
`,
|
|
256
|
+
font-family: ${gi};
|
|
257
|
+
font-size: ${mi};
|
|
258
|
+
font-weight: ${wi};
|
|
259
|
+
letter-spacing: ${$i};
|
|
260
|
+
line-height: ${Oi};
|
|
261
|
+
text-transform: ${Si};
|
|
262
|
+
}
|
|
263
|
+
`,ie=b`
|
|
265
264
|
.ft-typography--body2 {
|
|
266
|
-
font-family: ${
|
|
267
|
-
font-size: ${
|
|
268
|
-
font-weight: ${
|
|
269
|
-
letter-spacing: ${
|
|
270
|
-
line-height: ${
|
|
271
|
-
text-transform: ${
|
|
272
|
-
}
|
|
273
|
-
`,
|
|
265
|
+
font-family: ${ki};
|
|
266
|
+
font-size: ${Ni};
|
|
267
|
+
font-weight: ${Ci};
|
|
268
|
+
letter-spacing: ${Ei};
|
|
269
|
+
line-height: ${Ri};
|
|
270
|
+
text-transform: ${Mi};
|
|
271
|
+
}
|
|
272
|
+
`,ee=b`
|
|
274
273
|
.ft-typography--caption {
|
|
275
|
-
font-family: ${
|
|
276
|
-
font-size: ${
|
|
277
|
-
font-weight: ${
|
|
278
|
-
letter-spacing: ${
|
|
279
|
-
line-height: ${
|
|
280
|
-
text-transform: ${
|
|
281
|
-
}
|
|
282
|
-
`,
|
|
274
|
+
font-family: ${zi};
|
|
275
|
+
font-size: ${Ui};
|
|
276
|
+
font-weight: ${Fi};
|
|
277
|
+
letter-spacing: ${ji};
|
|
278
|
+
line-height: ${Bi};
|
|
279
|
+
text-transform: ${Ti};
|
|
280
|
+
}
|
|
281
|
+
`,oe=b`
|
|
283
282
|
.ft-typography--breadcrumb {
|
|
284
|
-
font-family: ${
|
|
285
|
-
font-size: ${
|
|
286
|
-
font-weight: ${
|
|
287
|
-
letter-spacing: ${
|
|
288
|
-
line-height: ${
|
|
289
|
-
text-transform: ${
|
|
290
|
-
}
|
|
291
|
-
`,
|
|
283
|
+
font-family: ${Ai};
|
|
284
|
+
font-size: ${Li};
|
|
285
|
+
font-weight: ${Pi};
|
|
286
|
+
letter-spacing: ${_i};
|
|
287
|
+
line-height: ${Ii};
|
|
288
|
+
text-transform: ${Di};
|
|
289
|
+
}
|
|
290
|
+
`,ne=b`
|
|
292
291
|
.ft-typography--overline {
|
|
293
|
-
font-family: ${
|
|
294
|
-
font-size: ${
|
|
295
|
-
font-weight: ${
|
|
296
|
-
letter-spacing: ${
|
|
297
|
-
line-height: ${
|
|
298
|
-
text-transform: ${
|
|
299
|
-
}
|
|
300
|
-
`,
|
|
292
|
+
font-family: ${Wi};
|
|
293
|
+
font-size: ${Hi};
|
|
294
|
+
font-weight: ${Ki};
|
|
295
|
+
letter-spacing: ${Zi};
|
|
296
|
+
line-height: ${Vi};
|
|
297
|
+
text-transform: ${Ji};
|
|
298
|
+
}
|
|
299
|
+
`,se=b`
|
|
301
300
|
.ft-typography--button {
|
|
302
|
-
font-family: ${
|
|
303
|
-
font-size: ${
|
|
304
|
-
font-weight: ${
|
|
305
|
-
letter-spacing: ${
|
|
306
|
-
line-height: ${
|
|
307
|
-
text-transform: ${
|
|
308
|
-
}
|
|
309
|
-
`,
|
|
301
|
+
font-family: ${qi.fontFamily};
|
|
302
|
+
font-size: ${qi.fontSize};
|
|
303
|
+
font-weight: ${qi.fontWeight};
|
|
304
|
+
letter-spacing: ${qi.letterSpacing};
|
|
305
|
+
line-height: ${qi.lineHeight};
|
|
306
|
+
text-transform: ${qi.textTransform};
|
|
307
|
+
}
|
|
308
|
+
`,re=b`
|
|
310
309
|
.ft-typography {
|
|
311
310
|
vertical-align: inherit;
|
|
312
311
|
}
|
|
313
|
-
`;var
|
|
312
|
+
`;var ae=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class le extends xt{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Ht`
|
|
314
313
|
<${Dt(this.element)}
|
|
315
314
|
class="ft-typography ft-typography--${this.variant}">
|
|
316
315
|
<slot></slot>
|
|
317
316
|
</${Dt(this.element)}>
|
|
318
|
-
`:
|
|
317
|
+
`:Ht`
|
|
319
318
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
320
|
-
`}}
|
|
319
|
+
`}}le.styles=[Xi,Gi,Yi,Qi,te,ie,ee,oe,ne,se,re],ae([o()],le.prototype,"element",void 0),ae([o()],le.prototype,"variant",void 0),h("ft-typography")(le);const he=ut.create("--ft-tooltip-distance","SIZE","4px"),pe=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),ce=ut.create("--ft-tooltip-background-color","COLOR","#666666"),de=ut.create("--ft-tooltip-z-index","NUMBER","1"),fe=ut.external(yt.borderRadiusS,"Design system"),ue=ut.create("--ft-tooltip-max-width","SIZE","150px"),ve=b`
|
|
321
320
|
.ft-tooltip--container {
|
|
322
321
|
display: block;
|
|
323
322
|
position: relative;
|
|
@@ -333,23 +332,23 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
333
332
|
box-sizing: border-box;
|
|
334
333
|
overflow: hidden;
|
|
335
334
|
width: max-content;
|
|
336
|
-
max-width: ${
|
|
335
|
+
max-width: ${ue};
|
|
337
336
|
text-align: center;
|
|
338
|
-
padding: ${
|
|
339
|
-
z-index: ${
|
|
337
|
+
padding: ${he};
|
|
338
|
+
z-index: ${de};
|
|
340
339
|
}
|
|
341
340
|
|
|
342
341
|
.ft-tooltip--content {
|
|
343
342
|
padding: 4px 8px;
|
|
344
|
-
border-radius: ${
|
|
345
|
-
background-color: ${
|
|
346
|
-
color: ${
|
|
343
|
+
border-radius: ${fe};
|
|
344
|
+
background-color: ${ce};
|
|
345
|
+
color: ${pe};
|
|
347
346
|
top: -500px;
|
|
348
347
|
left: -500px;
|
|
349
348
|
position: relative;
|
|
350
349
|
word-break: break-word;
|
|
351
350
|
}
|
|
352
|
-
`;var
|
|
351
|
+
`;var ye=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class be extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
|
|
353
352
|
<div part="container"
|
|
354
353
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
355
354
|
@mouseenter=${this.onHover}
|
|
@@ -357,7 +356,7 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
357
356
|
@focusin=${this.onHover}
|
|
358
357
|
@focusout=${this.onOut}
|
|
359
358
|
@touchstart=${this.onTouch}>
|
|
360
|
-
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.
|
|
359
|
+
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.validPosition}" ?hidden=${!this.visible}>
|
|
361
360
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
362
361
|
<slot name="text"></slot>
|
|
363
362
|
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
@@ -365,13 +364,13 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
365
364
|
</div>
|
|
366
365
|
<slot></slot>
|
|
367
366
|
</div>
|
|
368
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((
|
|
367
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${ue})`}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())}}be.elementDefinitions={"ft-typography":le},be.styles=ve,ye([o()],be.prototype,"text",void 0),ye([o({type:Boolean})],be.prototype,"manual",void 0),ye([o({type:Boolean})],be.prototype,"inline",void 0),ye([o({type:Number})],be.prototype,"delay",void 0),ye([o()],be.prototype,"position",void 0),ye([
|
|
369
368
|
/**
|
|
370
369
|
* @license
|
|
371
370
|
* Copyright 2017 Google LLC
|
|
372
371
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
373
372
|
*/
|
|
374
|
-
function(t,e
|
|
373
|
+
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],be.prototype,"slotNodes",void 0),ye([r(".ft-tooltip--container")],be.prototype,"container",void 0),ye([r("slot")],be.prototype,"target",void 0),ye([r(".ft-tooltip")],be.prototype,"tooltip",void 0),ye([r(".ft-tooltip--content")],be.prototype,"tooltipContent",void 0),ye([n()],be.prototype,"visible",void 0),h("ft-tooltip")(be);const xe={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},ge=b`
|
|
375
374
|
:host {
|
|
376
375
|
line-height: 0;
|
|
377
376
|
}
|
|
@@ -380,8 +379,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
380
379
|
display: inline-block;
|
|
381
380
|
position: relative;
|
|
382
381
|
|
|
383
|
-
width: ${
|
|
384
|
-
height: ${
|
|
382
|
+
width: ${xe.size};
|
|
383
|
+
height: ${xe.size};
|
|
385
384
|
}
|
|
386
385
|
|
|
387
386
|
.ft-loader div {
|
|
@@ -390,7 +389,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
390
389
|
width: 25%;
|
|
391
390
|
height: 25%;
|
|
392
391
|
border-radius: 50%;
|
|
393
|
-
background: ${
|
|
392
|
+
background: ${xe.color};
|
|
394
393
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
395
394
|
}
|
|
396
395
|
|
|
@@ -437,35 +436,35 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
437
436
|
transform: translate(0, 0);
|
|
438
437
|
}
|
|
439
438
|
100% {
|
|
440
|
-
transform: translate(calc(0.35 * ${
|
|
439
|
+
transform: translate(calc(0.35 * ${xe.size}), 0);
|
|
441
440
|
}
|
|
442
441
|
}
|
|
443
|
-
`;class
|
|
442
|
+
`;class me extends xt{render(){return V`
|
|
444
443
|
<div class="ft-loader">
|
|
445
444
|
<div></div>
|
|
446
445
|
<div></div>
|
|
447
446
|
<div></div>
|
|
448
447
|
<div></div>
|
|
449
448
|
</div>
|
|
450
|
-
`}}
|
|
449
|
+
`}}me.styles=ge,h("ft-loader")(me);
|
|
451
450
|
/**
|
|
452
451
|
* @license
|
|
453
452
|
* Copyright 2017 Google LLC
|
|
454
453
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
455
454
|
*/
|
|
456
|
-
class
|
|
455
|
+
class we extends Ct{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}we.directiveName="unsafeHTML",we.resultType=1;const $e=Nt(we);var Oe,Se;!function(t){t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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=""}(Oe||(Oe={})),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=""}(Se||(Se={})),new Map([...["abw"].map((t=>[t,Se.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,Se.AUDIO])),...["avi"].map((t=>[t,Se.AVI])),...["chm","xhs"].map((t=>[t,Se.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,Se.CODE])),...["csv"].map((t=>[t,Se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Se.DITA])),...["epub"].map((t=>[t,Se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Se.EXCEL])),...["flac"].map((t=>[t,Se.FLAC])),...["gif"].map((t=>[t,Se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Se.GZIP])),...["html","htm","xhtml"].map((t=>[t,Se.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,Se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Se.JPEG])),...["json"].map((t=>[t,Se.JSON])),...["m4a","m4p"].map((t=>[t,Se.M4A])),...["mov","qt"].map((t=>[t,Se.MOV])),...["mp3"].map((t=>[t,Se.MP3])),...["mp4","m4v"].map((t=>[t,Se.MP4])),...["ogg","oga"].map((t=>[t,Se.OGG])),...["pdf","ps"].map((t=>[t,Se.PDF])),...["png"].map((t=>[t,Se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Se.POWERPOINT])),...["rar"].map((t=>[t,Se.RAR])),...["stp"].map((t=>[t,Se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Se.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,Se.VIDEO])),...["wav"].map((t=>[t,Se.WAV])),...["wma"].map((t=>[t,Se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Se.WORD])),...["xml","xsl","rdf"].map((t=>[t,Se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Se.YAML])),...["zip"].map((t=>[t,Se.ZIP]))]);const ke={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ne=b`
|
|
457
456
|
:host {
|
|
458
457
|
display: inline-block;
|
|
459
458
|
}
|
|
460
459
|
|
|
461
460
|
:host, i.ft-icon {
|
|
462
|
-
width: ${
|
|
463
|
-
height: ${
|
|
461
|
+
width: ${ke.size};
|
|
462
|
+
height: ${ke.size};
|
|
464
463
|
text-align: center;
|
|
465
464
|
}
|
|
466
465
|
|
|
467
466
|
i.ft-icon {
|
|
468
|
-
font-size: ${
|
|
467
|
+
font-size: ${ke.size};
|
|
469
468
|
line-height: 1;
|
|
470
469
|
font-weight: normal;
|
|
471
470
|
text-transform: none;
|
|
@@ -476,26 +475,26 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
476
475
|
text-rendering: auto;
|
|
477
476
|
-webkit-font-smoothing: antialiased;
|
|
478
477
|
-moz-osx-font-smoothing: grayscale;
|
|
479
|
-
vertical-align: ${
|
|
478
|
+
vertical-align: ${ke.verticalAlign};
|
|
480
479
|
}
|
|
481
480
|
|
|
482
481
|
.ft-icon--fluid-topics {
|
|
483
|
-
font-family: ${
|
|
482
|
+
font-family: ${ke.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
484
483
|
}
|
|
485
484
|
|
|
486
485
|
.ft-icon--file-format {
|
|
487
|
-
font-family: ${
|
|
486
|
+
font-family: ${ke.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
488
487
|
}
|
|
489
488
|
|
|
490
489
|
.ft-icon--material {
|
|
491
|
-
font-family: ${
|
|
490
|
+
font-family: ${ke.materialFontFamily}, "Material Icons", sans-serif;
|
|
492
491
|
}
|
|
493
|
-
`;var
|
|
492
|
+
`;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ee=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Re extends xt{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
|
|
494
493
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
495
|
-
${
|
|
494
|
+
${$e(this.resolvedIcon)}
|
|
496
495
|
<slot ?hidden=${t}></slot>
|
|
497
496
|
</i>
|
|
498
|
-
`}get textContent(){var t,
|
|
497
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ce.file_format:this.resolvedIcon=null!==(t=Se[e.toUpperCase()])&&void 0!==t?t:e;break;case Ce.fluid_topics:this.resolvedIcon=null!==(i=Oe[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Re.elementDefinitions={},Re.styles=Ne,Ee([o()],Re.prototype,"variant",void 0),Ee([o()],Re.prototype,"value",void 0),Ee([n()],Re.prototype,"resolvedIcon",void 0),Ee([r("slot")],Re.prototype,"slottedContent",void 0),h("ft-icon")(Re);const Me=ut.extend("--ft-button-color",yt.colorPrimary),ze={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Me,fontSize:ut.extend("--ft-button-font-size",qi.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Me),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Ue=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Fe={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Ue,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ue)},je=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Be=[gt,b`
|
|
499
498
|
:host {
|
|
500
499
|
display: inline-block;
|
|
501
500
|
max-width: 100%;
|
|
@@ -506,7 +505,7 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
506
505
|
box-shadow: 0px 0px 0px transparent;
|
|
507
506
|
border: 0px solid transparent;
|
|
508
507
|
text-shadow: 0px 0px 0px transparent;
|
|
509
|
-
font-size: ${
|
|
508
|
+
font-size: ${ze.fontSize};
|
|
510
509
|
}
|
|
511
510
|
|
|
512
511
|
button:hover {
|
|
@@ -535,17 +534,17 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
535
534
|
border: none;
|
|
536
535
|
pointer-events: auto;
|
|
537
536
|
|
|
538
|
-
--ft-button-internal-line-height: calc(${
|
|
539
|
-
--ft-button-internal-color: ${
|
|
540
|
-
${
|
|
537
|
+
--ft-button-internal-line-height: calc(${ze.fontSize} + 2px);
|
|
538
|
+
--ft-button-internal-color: ${ze.color};
|
|
539
|
+
${vt(ke.size,ze.iconSize)};
|
|
541
540
|
--ft-button-internal-vertical-padding: 6px;
|
|
542
541
|
--ft-button-internal-horizontal-padding: 8px;
|
|
543
|
-
${
|
|
544
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
542
|
+
${vt(Mt.color,ze.rippleColor)};
|
|
543
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${ze.iconSize});
|
|
545
544
|
|
|
546
|
-
border-radius: ${
|
|
545
|
+
border-radius: ${ze.borderRadius};
|
|
547
546
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
548
|
-
background-color: ${
|
|
547
|
+
background-color: ${ze.backgroundColor};
|
|
549
548
|
color: var(--ft-button-internal-color);
|
|
550
549
|
-webkit-mask-image: radial-gradient(white, black);
|
|
551
550
|
}
|
|
@@ -557,7 +556,7 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
557
556
|
.ft-button--dense {
|
|
558
557
|
--ft-button-internal-vertical-padding: 2px;
|
|
559
558
|
--ft-button-internal-horizontal-padding: 4px;
|
|
560
|
-
border-radius: ${
|
|
559
|
+
border-radius: ${je};
|
|
561
560
|
}
|
|
562
561
|
|
|
563
562
|
.ft-button--round {
|
|
@@ -566,13 +565,13 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
566
565
|
|
|
567
566
|
.ft-button[disabled] {
|
|
568
567
|
filter: grayscale(1);
|
|
569
|
-
opacity: ${
|
|
568
|
+
opacity: ${ze.opacityDisabled};
|
|
570
569
|
}
|
|
571
570
|
|
|
572
571
|
.ft-button.ft-button--primary {
|
|
573
|
-
background-color: ${
|
|
574
|
-
--ft-button-internal-color: ${
|
|
575
|
-
${
|
|
572
|
+
background-color: ${Fe.backgroundColor};
|
|
573
|
+
--ft-button-internal-color: ${Fe.color};
|
|
574
|
+
${vt(Mt.color,Fe.rippleColor)};
|
|
576
575
|
}
|
|
577
576
|
|
|
578
577
|
.ft-button.ft-button--outlined {
|
|
@@ -591,8 +590,8 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
591
590
|
text-overflow: ellipsis;
|
|
592
591
|
display: block;
|
|
593
592
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
594
|
-
${
|
|
595
|
-
${
|
|
593
|
+
${vt(qi.fontSize,"1em")};
|
|
594
|
+
${vt(qi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
596
595
|
}
|
|
597
596
|
|
|
598
597
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -625,12 +624,12 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
625
624
|
}
|
|
626
625
|
|
|
627
626
|
ft-loader {
|
|
628
|
-
${
|
|
629
|
-
${
|
|
627
|
+
${vt(xe.size,ze.iconSize)};
|
|
628
|
+
${vt(xe.color,"var(--ft-button-internal-color)")};
|
|
630
629
|
}
|
|
631
|
-
`];var
|
|
630
|
+
`];var Te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ae extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ce.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Ot,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
|
|
632
631
|
<button part="button"
|
|
633
|
-
class="${
|
|
632
|
+
class="${Et(t)}"
|
|
634
633
|
aria-label="${this.getLabel()}"
|
|
635
634
|
?disabled=${this.isDisabled()}>
|
|
636
635
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -642,30 +641,45 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
642
641
|
</ft-typography>
|
|
643
642
|
${this.resolveIcon()}
|
|
644
643
|
</button>
|
|
645
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
644
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?V`
|
|
646
645
|
<ft-tooltip part="tooltip"
|
|
647
646
|
text="${this.getLabel()}"
|
|
648
647
|
position="${this.tooltipPosition}">
|
|
649
648
|
${t}
|
|
650
649
|
</ft-tooltip>
|
|
651
|
-
`:t}resolveIcon(){return this.loading?
|
|
652
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
653
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
654
|
-
:host
|
|
655
|
-
display:
|
|
650
|
+
`:t}resolveIcon(){return this.loading?V`
|
|
651
|
+
<ft-loader></ft-loader> `:this.icon?V`
|
|
652
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}Ae.elementDefinitions={"ft-ripple":Pt,"ft-tooltip":be,"ft-typography":le,"ft-icon":Re,"ft-loader":me},Ae.styles=Be,Te([o({type:Boolean})],Ae.prototype,"primary",void 0),Te([o({type:Boolean})],Ae.prototype,"outlined",void 0),Te([o({type:Boolean})],Ae.prototype,"disabled",void 0),Te([o({type:Boolean})],Ae.prototype,"dense",void 0),Te([o({type:Boolean})],Ae.prototype,"round",void 0),Te([o({type:String})],Ae.prototype,"label",void 0),Te([o({type:String})],Ae.prototype,"icon",void 0),Te([o({type:String})],Ae.prototype,"iconVariant",void 0),Te([o({type:Boolean})],Ae.prototype,"trailingIcon",void 0),Te([o({type:Boolean})],Ae.prototype,"loading",void 0),Te([o({type:String})],Ae.prototype,"tooltipPosition",void 0),Te([o({type:Boolean})],Ae.prototype,"hideTooltip",void 0),Te([o({type:Boolean})],Ae.prototype,"forceTooltip",void 0),Te([r(".ft-button")],Ae.prototype,"button",void 0),Te([r(".ft-button--label slot")],Ae.prototype,"slottedContent",void 0),h("ft-button")(Ae);const Le=b`
|
|
653
|
+
:host {
|
|
654
|
+
display: contents;
|
|
656
655
|
}
|
|
657
656
|
|
|
658
|
-
.
|
|
659
|
-
|
|
657
|
+
.ft-collapsible--hidden:not(.ft-collapsible--animation-in-progress) {
|
|
658
|
+
display: none;
|
|
660
659
|
}
|
|
661
660
|
|
|
662
|
-
.hidden {
|
|
663
|
-
|
|
661
|
+
.ft-collapsible--hidden.ft-collapsible--animated, .ft-collapsible--hidden.ft-collapsible--animated::slotted(*) {
|
|
662
|
+
opacity: 0;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.ft-collapsible--animated, .ft-collapsible--animated::slotted(*) {
|
|
666
|
+
opacity: 1;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.ft-collapsible--animated, .ft-collapsible--animated::slotted(*) {
|
|
670
|
+
transition: opacity 300ms 150ms;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.ft-collapsible--animated.ft-collapsible--hidden, .ft-collapsible--animated.ft-collapsible--hidden::slotted(*) {
|
|
674
|
+
transition: opacity 300ms;
|
|
664
675
|
}
|
|
665
|
-
`;var
|
|
676
|
+
`;var Pe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _e extends xt{constructor(){super(...arguments),this.open=!1,this.animated=!1,this.closeCollapsibleMatchers=[],this.primary=!1,this.secondary=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.tooltipPosition="right",this.iconVariant=Ce.fluid_topics,this.openIcon="THIN_ARROW",this.closedIcon="THIN_ARROW_RIGHT",this.trailingIcon=!1,this.animationInProgress=!1,this.animationEndSafeguard=new i(800)}render(){const t={"ft-collapsible--content":!0,"ft-collapsible--hidden":!this.open,"ft-collapsible--animated":this.animated,"ft-collapsible--animation-in-progress":this.animated&&this.animationInProgress};return V`
|
|
666
677
|
<ft-button
|
|
667
678
|
part="toggle"
|
|
668
|
-
|
|
679
|
+
.tooltipPosition=${this.tooltipPosition}
|
|
680
|
+
.iconVariant=${this.iconVariant}
|
|
681
|
+
.icon=${this.open?this.openIcon:this.closedIcon}
|
|
682
|
+
.label=${(this.open?this.openLabel:this.closedLabel)||this.label}
|
|
669
683
|
?primary=${this.primary}
|
|
670
684
|
?secondary=${this.secondary}
|
|
671
685
|
?disabled=${this.disabled}
|
|
@@ -673,15 +687,16 @@ class mi extends Nt{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
|
|
|
673
687
|
?round=${this.round}
|
|
674
688
|
?trailingIcon=${this.trailingIcon}
|
|
675
689
|
@click=${this.toggleOpen}
|
|
676
|
-
class="${this.hasCustomToggle()?"hidden":""}"
|
|
690
|
+
class="${this.hasCustomToggle()?"ft-collapsible--hidden":""}"
|
|
677
691
|
>
|
|
678
|
-
${this.
|
|
692
|
+
${(this.open?this.openText:this.closedText)||this.text}
|
|
679
693
|
</ft-button>
|
|
680
694
|
<slot name="toggle"
|
|
681
695
|
part="toggle"
|
|
696
|
+
class="${this.hasCustomToggle()?"":"ft-collapsible--hidden"}"
|
|
682
697
|
@click=${this.toggleOpen}
|
|
683
|
-
@slotchange=${this.onCustomToggleSlotChange}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,
|
|
698
|
+
@slotchange=${this.onCustomToggleSlotChange}></slot>
|
|
699
|
+
<slot class="${Et(t)}"
|
|
700
|
+
@click=${this.onContentClick}
|
|
701
|
+
@transitionend=${()=>this.animationInProgress=!1}></slot>
|
|
702
|
+
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,i;return 0!==(null!==(i=null===(t=this.toggleSlot)||void 0===t?void 0:t.assignedNodes().length)&&void 0!==i?i:0)}toggleOpen(){this.animationInProgress=!0,setTimeout((()=>this.open=!this.open),5),this.animationEndSafeguard.run((()=>this.animationInProgress=!1))}update(t){super.update(t),t.has("open")&&this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}onContentClick(t){if(this.closeCollapsibleMatchers.length>0){const i=t.composedPath();for(let t of i){if(t===this)return;if(t.matches&&this.closeCollapsibleMatchers.some((i=>t.matches(i))))return void this.toggleOpen()}}}}_e.elementDefinitions={"ft-button":Ae},_e.styles=Le,Pe([o({type:Boolean,reflect:!0})],_e.prototype,"open",void 0),Pe([o({type:Boolean})],_e.prototype,"animated",void 0),Pe([p([])],_e.prototype,"closeCollapsibleMatchers",void 0),Pe([o()],_e.prototype,"label",void 0),Pe([o()],_e.prototype,"openLabel",void 0),Pe([o()],_e.prototype,"closedLabel",void 0),Pe([o()],_e.prototype,"text",void 0),Pe([o()],_e.prototype,"openText",void 0),Pe([o()],_e.prototype,"closedText",void 0),Pe([o({type:Boolean})],_e.prototype,"primary",void 0),Pe([o({type:Boolean})],_e.prototype,"secondary",void 0),Pe([o({type:Boolean})],_e.prototype,"disabled",void 0),Pe([o({type:Boolean})],_e.prototype,"dense",void 0),Pe([o({type:Boolean})],_e.prototype,"round",void 0),Pe([o()],_e.prototype,"tooltipPosition",void 0),Pe([o()],_e.prototype,"iconVariant",void 0),Pe([o()],_e.prototype,"openIcon",void 0),Pe([o()],_e.prototype,"closedIcon",void 0),Pe([o({type:Boolean})],_e.prototype,"trailingIcon",void 0),Pe([r('slot[name="toggle"]')],_e.prototype,"toggleSlot",void 0),Pe([r(".content")],_e.prototype,"content",void 0),Pe([n()],_e.prototype,"animationInProgress",void 0),h("ft-collapsible")(_e),t.FtCollapsible=_e,t.styles=Le,Object.defineProperty(t,"i",{value:!0})}({});
|