@fluid-topics/ft-dialog 0.3.70 → 1.0.0-alpha.0
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-dialog.css.d.ts +0 -1
- package/build/ft-dialog.css.js +0 -1
- package/build/ft-dialog.d.ts +2 -1
- package/build/ft-dialog.js +11 -6
- package/build/ft-dialog.light.js +176 -170
- package/build/ft-dialog.min.js +199 -203
- package/build/ft-dialog.properties.d.ts +2 -1
- package/build/ft-dialog.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +7 -7
package/build/ft-dialog.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,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=i.call(o,t);p||(p=c(t),e.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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);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=i.call(o,t);p||(p=c(t),e.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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(ri){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)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
|
|
@@ -50,34 +50,24 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const d=window,f=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),y=new WeakMap;class
|
|
53
|
+
const d=window,f=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),y=new WeakMap;let v=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)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(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&y.set(e,t))}return t}toString(){return this.cssText}};const g=t=>new v("string"==typeof t?t:t+"",void 0,u),b=(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 v(i,t,u)},x=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},m=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return g(e)})(t):t
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var w;const $=window,O=$.trustedTypes,S=O?O.emptyScript:"",k=$.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},E=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:E};
|
|
58
|
+
*/;var w;const $=window,O=$.trustedTypes,S=O?O.emptyScript:"",k=$.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},E=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:E};let R=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=N){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:C).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;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===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:C;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||E)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:R}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.
|
|
64
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:R}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const U=window,j=U.trustedTypes,z=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,A="?"+B,T=`<${A}>`,L=document,P=()=>L.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=L.createTreeWalker(L,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=W;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(r.lastIndex=p,l=r.exec(i),null!==l);)p=r.lastIndex,r===W?"!--"===l[1]?r=Z:void 0!==l[1]?r=H:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=K):void 0!==l[3]&&(r=K):r===K?">"===l[0]?(r=null!=n?n:W,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?K:'"'===l[3]?J:V):r===J||r===V?r=K:r===Z||r===H?r=W:(r=K,n=void 0);const c=r===K&&t[e+1].startsWith("/>")?" ":"";s+=r===W?i+T:h>=0?(o.push(a),i.slice(0,h)+F+i.slice(h)+B+c):i+B+(-2===h?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=et(t,e);if(this.el=it.createElement(l,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(F)||e.startsWith(B)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+F).split(B),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?at:"?"===e[1]?ht:"@"===e[1]?pt:rt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),tt.nextNode(),a.push({type:2,index:++n});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===A)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)a.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var n,s,r,a;if(e===Y)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=I(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,o)),e}class nt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);tt.currentNode=n;let s=tt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new st(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ct(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=tt.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),I(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new nt(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}T(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new st(this.k(P()),this.k(P()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=ot(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ot(this,o[i+r],e,r),a===Y&&(a=this._$AH[r]),s||(s=!I(a)||a!==this._$AH[r]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=j?j.emptyScript:"";class ht extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class pt extends rt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const dt=U.litHtmlPolyfillSupport;null==dt||dt(it,st),(null!==(M=U.litHtmlVersions)&&void 0!==M?M:U.litHtmlVersions=[]).push("2.7.3");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
var ct,dt;class ft extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new ot(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return q}}ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:ft}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.2.2");class yt{static create(t,e,i){let o=t=>v(null!=t?t:i),n=x`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=x`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=x`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function gt(t,e){return v(`${t.name}: ${e}`)}const vt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
71
|
-
/**
|
|
72
|
-
* @license
|
|
73
|
-
* Copyright 2021 Google LLC
|
|
74
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/var xt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(n,this.constructor.elementStyles),n}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new e(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]),J`
|
|
76
|
-
${t.map((t=>J`
|
|
77
|
-
<style>${t}</style>
|
|
78
|
-
`))}
|
|
79
|
-
${this.getTemplate()}
|
|
80
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.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,i,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=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(...e,...i).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}xt([o()],bt.prototype,"exportpartsPrefix",void 0),xt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!p(t,e),...null!=e?e:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),xt([o()],bt.prototype,"customStylesheet",void 0);const mt=x`
|
|
70
|
+
var ft,ut;let yt=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new st(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};yt.finalized=!0,yt._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:yt});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:yt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class gt{static create(t,e,i){let o=t=>g(null!=t?t:i),n=b`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${g(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${g(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):g(null!=e?e:t.defaultValue),o=b`var(${g(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>b`var(${g(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function bt(t,e){return g(`${t.name}: ${e}`)}const xt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return x(i,t.elementStyles),i}}var wt,$t=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Ct extends mt{constructor(){super(),this[wt]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[kt].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,i,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=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(...e,...i).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}wt=kt,$t([o()],Ct.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!p(t,e),...null!=e?e:{}})}([])],Ct.prototype,"exportpartsPrefixes",void 0),$t([o()],Ct.prototype,"customStylesheet",void 0);const Et=b`
|
|
81
71
|
.ft-no-text-select {
|
|
82
72
|
-webkit-touch-callout: none;
|
|
83
73
|
-webkit-user-select: none;
|
|
@@ -86,7 +76,7 @@ var ct,dt;class ft extends R{constructor(){super(...arguments),this.renderOption
|
|
|
86
76
|
-ms-user-select: none;
|
|
87
77
|
user-select: none;
|
|
88
78
|
}
|
|
89
|
-
`;
|
|
79
|
+
`;b`
|
|
90
80
|
.ft-word-wrap {
|
|
91
81
|
white-space: normal;
|
|
92
82
|
word-wrap: break-word;
|
|
@@ -98,7 +88,7 @@ var ct,dt;class ft extends R{constructor(){super(...arguments),this.renderOption
|
|
|
98
88
|
-webkit-hyphens: auto;
|
|
99
89
|
hyphens: auto
|
|
100
90
|
}
|
|
101
|
-
`;const
|
|
91
|
+
`;const Nt=b`
|
|
102
92
|
.ft-safari-ellipsis-fix {
|
|
103
93
|
margin-right: 0;
|
|
104
94
|
|
|
@@ -109,125 +99,125 @@ var ct,dt;class ft extends R{constructor(){super(...arguments),this.renderOption
|
|
|
109
99
|
display: inline-block;
|
|
110
100
|
width: 0;
|
|
111
101
|
}
|
|
112
|
-
`;var
|
|
102
|
+
`;var Rt,Mt,Ut;const jt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ut=null===(Mt=null===(Rt=window.safari)||void 0===Rt?void 0:Rt.pushNotification)||void 0===Mt?void 0:Mt.toString())&&void 0!==Ut?Ut:""),zt=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:zt}),At=new Map,Tt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=Ft(s));)l+=n+e[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=At.get(t))&&(r.raw=r,At.set(t,e=r)),i=a}return t(e,...i)})(X);
|
|
113
103
|
/**
|
|
114
104
|
* @license
|
|
115
105
|
* Copyright 2020 Google LLC
|
|
116
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/var
|
|
107
|
+
*/var Lt;!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"}(Lt||(Lt={}));const Pt=gt.extend("--ft-typography-font-family",xt.titleFont),It=gt.extend("--ft-typography-font-family",xt.contentFont),Dt={fontFamily:It,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=gt.extend("--ft-typography-title-font-family",Pt),Wt=gt.extend("--ft-typography-title-font-size",Dt.fontSize,"20px"),Zt=gt.extend("--ft-typography-title-font-weight",Dt.fontWeight,"normal"),Ht=gt.extend("--ft-typography-title-letter-spacing",Dt.letterSpacing,"0.15px"),Kt=gt.extend("--ft-typography-title-line-height",Dt.lineHeight,"1.2"),Vt=gt.extend("--ft-typography-title-text-transform",Dt.textTransform,"inherit"),Jt=gt.extend("--ft-typography-title-dense-font-family",Pt),qt=gt.extend("--ft-typography-title-dense-font-size",Dt.fontSize,"14px"),Xt=gt.extend("--ft-typography-title-dense-font-weight",Dt.fontWeight,"normal"),Yt=gt.extend("--ft-typography-title-dense-letter-spacing",Dt.letterSpacing,"0.105px"),Gt=gt.extend("--ft-typography-title-dense-line-height",Dt.lineHeight,"1.7"),Qt=gt.extend("--ft-typography-title-dense-text-transform",Dt.textTransform,"inherit"),te=gt.extend("--ft-typography-subtitle1-font-family",It),ee=gt.extend("--ft-typography-subtitle1-font-size",Dt.fontSize,"16px"),ie=gt.extend("--ft-typography-subtitle1-font-weight",Dt.fontWeight,"600"),oe=gt.extend("--ft-typography-subtitle1-letter-spacing",Dt.letterSpacing,"0.144px"),ne=gt.extend("--ft-typography-subtitle1-line-height",Dt.lineHeight,"1.5"),se=gt.extend("--ft-typography-subtitle1-text-transform",Dt.textTransform,"inherit"),re=gt.extend("--ft-typography-subtitle2-font-family",It),ae=gt.extend("--ft-typography-subtitle2-font-size",Dt.fontSize,"14px"),le=gt.extend("--ft-typography-subtitle2-font-weight",Dt.fontWeight,"normal"),he=gt.extend("--ft-typography-subtitle2-letter-spacing",Dt.letterSpacing,"0.098px"),pe=gt.extend("--ft-typography-subtitle2-line-height",Dt.lineHeight,"1.7"),ce=gt.extend("--ft-typography-subtitle2-text-transform",Dt.textTransform,"inherit"),de=gt.extend("--ft-typography-body1-font-family",It),fe=gt.extend("--ft-typography-body1-font-size",Dt.fontSize,"16px"),ue=gt.extend("--ft-typography-body1-font-weight",Dt.fontWeight,"normal"),ye=gt.extend("--ft-typography-body1-letter-spacing",Dt.letterSpacing,"0.496px"),ve=gt.extend("--ft-typography-body1-line-height",Dt.lineHeight,"1.5"),ge=gt.extend("--ft-typography-body1-text-transform",Dt.textTransform,"inherit"),be=gt.extend("--ft-typography-body2-font-family",It),xe=gt.extend("--ft-typography-body2-font-size",Dt.fontSize,"14px"),me=gt.extend("--ft-typography-body2-font-weight",Dt.fontWeight,"normal"),we=gt.extend("--ft-typography-body2-letter-spacing",Dt.letterSpacing,"0.252px"),$e=gt.extend("--ft-typography-body2-line-height",Dt.lineHeight,"1.4"),Oe=gt.extend("--ft-typography-body2-text-transform",Dt.textTransform,"inherit"),Se=gt.extend("--ft-typography-caption-font-family",It),ke=gt.extend("--ft-typography-caption-font-size",Dt.fontSize,"12px"),Ce=gt.extend("--ft-typography-caption-font-weight",Dt.fontWeight,"normal"),Ee=gt.extend("--ft-typography-caption-letter-spacing",Dt.letterSpacing,"0.396px"),Ne=gt.extend("--ft-typography-caption-line-height",Dt.lineHeight,"1.33"),Re=gt.extend("--ft-typography-caption-text-transform",Dt.textTransform,"inherit"),Me=gt.extend("--ft-typography-breadcrumb-font-family",It),Ue=gt.extend("--ft-typography-breadcrumb-font-size",Dt.fontSize,"10px"),je=gt.extend("--ft-typography-breadcrumb-font-weight",Dt.fontWeight,"normal"),ze=gt.extend("--ft-typography-breadcrumb-letter-spacing",Dt.letterSpacing,"0.33px"),Fe=gt.extend("--ft-typography-breadcrumb-line-height",Dt.lineHeight,"1.6"),Be=gt.extend("--ft-typography-breadcrumb-text-transform",Dt.textTransform,"inherit"),Ae=gt.extend("--ft-typography-overline-font-family",It),Te=gt.extend("--ft-typography-overline-font-size",Dt.fontSize,"10px"),Le=gt.extend("--ft-typography-overline-font-weight",Dt.fontWeight,"normal"),Pe=gt.extend("--ft-typography-overline-letter-spacing",Dt.letterSpacing,"1.5px"),Ie=gt.extend("--ft-typography-overline-line-height",Dt.lineHeight,"1.6"),De=gt.extend("--ft-typography-overline-text-transform",Dt.textTransform,"uppercase"),_e={fontFamily:gt.extend("--ft-typography-button-font-family",It),fontSize:gt.extend("--ft-typography-button-font-size",Dt.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",Dt.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",Dt.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",Dt.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",Dt.textTransform,"uppercase")},We=b`
|
|
118
108
|
.ft-typography--title {
|
|
119
|
-
font-family: ${
|
|
120
|
-
font-size: ${
|
|
121
|
-
font-weight: ${
|
|
122
|
-
letter-spacing: ${
|
|
123
|
-
line-height: ${
|
|
124
|
-
text-transform: ${
|
|
125
|
-
}
|
|
126
|
-
`,
|
|
109
|
+
font-family: ${_t};
|
|
110
|
+
font-size: ${Wt};
|
|
111
|
+
font-weight: ${Zt};
|
|
112
|
+
letter-spacing: ${Ht};
|
|
113
|
+
line-height: ${Kt};
|
|
114
|
+
text-transform: ${Vt};
|
|
115
|
+
}
|
|
116
|
+
`,Ze=b`
|
|
127
117
|
.ft-typography--title-dense {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
134
|
-
}
|
|
135
|
-
`,
|
|
118
|
+
font-family: ${Jt};
|
|
119
|
+
font-size: ${qt};
|
|
120
|
+
font-weight: ${Xt};
|
|
121
|
+
letter-spacing: ${Yt};
|
|
122
|
+
line-height: ${Gt};
|
|
123
|
+
text-transform: ${Qt};
|
|
124
|
+
}
|
|
125
|
+
`,He=b`
|
|
136
126
|
.ft-typography--subtitle1 {
|
|
137
|
-
font-family: ${
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
143
|
-
}
|
|
144
|
-
`,
|
|
127
|
+
font-family: ${te};
|
|
128
|
+
font-size: ${ee};
|
|
129
|
+
font-weight: ${ie};
|
|
130
|
+
letter-spacing: ${oe};
|
|
131
|
+
line-height: ${ne};
|
|
132
|
+
text-transform: ${se};
|
|
133
|
+
}
|
|
134
|
+
`,Ke=b`
|
|
145
135
|
.ft-typography--subtitle2 {
|
|
146
|
-
font-family: ${
|
|
147
|
-
font-size: ${
|
|
148
|
-
font-weight: ${
|
|
149
|
-
letter-spacing: ${
|
|
150
|
-
line-height: ${
|
|
151
|
-
text-transform: ${
|
|
136
|
+
font-family: ${re};
|
|
137
|
+
font-size: ${ae};
|
|
138
|
+
font-weight: ${le};
|
|
139
|
+
letter-spacing: ${he};
|
|
140
|
+
line-height: ${pe};
|
|
141
|
+
text-transform: ${ce};
|
|
152
142
|
}
|
|
153
143
|
|
|
154
|
-
`,
|
|
144
|
+
`,Ve=b`
|
|
155
145
|
.ft-typography--body1 {
|
|
156
|
-
font-family: ${
|
|
157
|
-
font-size: ${
|
|
158
|
-
font-weight: ${
|
|
159
|
-
letter-spacing: ${
|
|
160
|
-
line-height: ${
|
|
161
|
-
text-transform: ${pe};
|
|
162
|
-
}
|
|
163
|
-
`,De=x`
|
|
164
|
-
.ft-typography--body2 {
|
|
165
|
-
font-family: ${ce};
|
|
166
|
-
font-size: ${de};
|
|
167
|
-
font-weight: ${fe};
|
|
168
|
-
letter-spacing: ${ue};
|
|
169
|
-
line-height: ${ye};
|
|
146
|
+
font-family: ${de};
|
|
147
|
+
font-size: ${fe};
|
|
148
|
+
font-weight: ${ue};
|
|
149
|
+
letter-spacing: ${ye};
|
|
150
|
+
line-height: ${ve};
|
|
170
151
|
text-transform: ${ge};
|
|
171
152
|
}
|
|
172
|
-
`,
|
|
173
|
-
.ft-typography--
|
|
174
|
-
font-family: ${
|
|
153
|
+
`,Je=b`
|
|
154
|
+
.ft-typography--body2 {
|
|
155
|
+
font-family: ${be};
|
|
175
156
|
font-size: ${xe};
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
157
|
+
font-weight: ${me};
|
|
158
|
+
letter-spacing: ${we};
|
|
159
|
+
line-height: ${$e};
|
|
160
|
+
text-transform: ${Oe};
|
|
180
161
|
}
|
|
181
|
-
`,
|
|
162
|
+
`,qe=b`
|
|
163
|
+
.ft-typography--caption {
|
|
164
|
+
font-family: ${Se};
|
|
165
|
+
font-size: ${ke};
|
|
166
|
+
font-weight: ${Ce};
|
|
167
|
+
letter-spacing: ${Ee};
|
|
168
|
+
line-height: ${Ne};
|
|
169
|
+
text-transform: ${Re};
|
|
170
|
+
}
|
|
171
|
+
`,Xe=b`
|
|
182
172
|
.ft-typography--breadcrumb {
|
|
183
|
-
font-family: ${
|
|
184
|
-
font-size: ${
|
|
185
|
-
font-weight: ${
|
|
186
|
-
letter-spacing: ${
|
|
187
|
-
line-height: ${
|
|
188
|
-
text-transform: ${
|
|
189
|
-
}
|
|
190
|
-
`,
|
|
173
|
+
font-family: ${Me};
|
|
174
|
+
font-size: ${Ue};
|
|
175
|
+
font-weight: ${je};
|
|
176
|
+
letter-spacing: ${ze};
|
|
177
|
+
line-height: ${Fe};
|
|
178
|
+
text-transform: ${Be};
|
|
179
|
+
}
|
|
180
|
+
`,Ye=b`
|
|
191
181
|
.ft-typography--overline {
|
|
192
|
-
font-family: ${
|
|
193
|
-
font-size: ${
|
|
194
|
-
font-weight: ${
|
|
195
|
-
letter-spacing: ${
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
198
|
-
}
|
|
199
|
-
`,
|
|
182
|
+
font-family: ${Ae};
|
|
183
|
+
font-size: ${Te};
|
|
184
|
+
font-weight: ${Le};
|
|
185
|
+
letter-spacing: ${Pe};
|
|
186
|
+
line-height: ${Ie};
|
|
187
|
+
text-transform: ${De};
|
|
188
|
+
}
|
|
189
|
+
`,Ge=b`
|
|
200
190
|
.ft-typography--button {
|
|
201
|
-
font-family: ${
|
|
202
|
-
font-size: ${
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
206
|
-
text-transform: ${
|
|
207
|
-
}
|
|
208
|
-
`,
|
|
191
|
+
font-family: ${_e.fontFamily};
|
|
192
|
+
font-size: ${_e.fontSize};
|
|
193
|
+
font-weight: ${_e.fontWeight};
|
|
194
|
+
letter-spacing: ${_e.letterSpacing};
|
|
195
|
+
line-height: ${_e.lineHeight};
|
|
196
|
+
text-transform: ${_e.textTransform};
|
|
197
|
+
}
|
|
198
|
+
`,Qe=b`
|
|
209
199
|
.ft-typography {
|
|
210
200
|
vertical-align: inherit;
|
|
211
201
|
}
|
|
212
|
-
`;var
|
|
213
|
-
<${
|
|
202
|
+
`;var ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ei extends Ct{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Tt`
|
|
203
|
+
<${Bt(this.element)}
|
|
214
204
|
class="ft-typography ft-typography--${this.variant}">
|
|
215
205
|
<slot></slot>
|
|
216
|
-
</${
|
|
217
|
-
`:
|
|
206
|
+
</${Bt(this.element)}>
|
|
207
|
+
`:Tt`
|
|
218
208
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
219
|
-
`}}
|
|
209
|
+
`}}ei.styles=[We,Ze,He,Ke,Ve,Je,qe,Xe,Ye,Ge,Qe],ti([o()],ei.prototype,"element",void 0),ti([o()],ei.prototype,"variant",void 0),c("ft-typography")(ei);
|
|
220
210
|
/**
|
|
221
211
|
* @license
|
|
222
212
|
* Copyright 2017 Google LLC
|
|
223
213
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
224
214
|
*/
|
|
225
|
-
const
|
|
215
|
+
const ii=1,oi=2,ni=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
226
216
|
/**
|
|
227
217
|
* @license
|
|
228
218
|
* Copyright 2017 Google LLC
|
|
229
219
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
230
|
-
*/class
|
|
220
|
+
*/class ri extends si{constructor(t){if(super(t),this.et=G,t.type!==oi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ri.directiveName="unsafeHTML",ri.resultType=1;const ai=ni(ri);var li,hi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.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=""}(li||(li={})),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=""}(hi||(hi={})),new Map([...["abw"].map((t=>[t,hi.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,hi.AUDIO])),...["avi"].map((t=>[t,hi.AVI])),...["chm","xhs"].map((t=>[t,hi.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,hi.CODE])),...["csv"].map((t=>[t,hi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,hi.DITA])),...["epub"].map((t=>[t,hi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,hi.EXCEL])),...["flac"].map((t=>[t,hi.FLAC])),...["gif"].map((t=>[t,hi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,hi.GZIP])),...["html","htm","xhtml"].map((t=>[t,hi.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,hi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,hi.JPEG])),...["json"].map((t=>[t,hi.JSON])),...["m4a","m4p"].map((t=>[t,hi.M4A])),...["mov","qt"].map((t=>[t,hi.MOV])),...["mp3"].map((t=>[t,hi.MP3])),...["mp4","m4v"].map((t=>[t,hi.MP4])),...["ogg","oga"].map((t=>[t,hi.OGG])),...["pdf","ps"].map((t=>[t,hi.PDF])),...["png"].map((t=>[t,hi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,hi.POWERPOINT])),...["rar"].map((t=>[t,hi.RAR])),...["stp"].map((t=>[t,hi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,hi.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,hi.VIDEO])),...["wav"].map((t=>[t,hi.WAV])),...["wma"].map((t=>[t,hi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,hi.WORD])),...["xml","xsl","rdf"].map((t=>[t,hi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,hi.YAML])),...["zip"].map((t=>[t,hi.ZIP]))]);const pi={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ci=b`
|
|
231
221
|
:host, i.ft-icon {
|
|
232
222
|
display: inline-flex;
|
|
233
223
|
align-items: center;
|
|
@@ -236,14 +226,14 @@ const qe=1,Xe=2,Ye=t=>(...e)=>({_$litDirective$:t,values:e});class Ge{constructo
|
|
|
236
226
|
}
|
|
237
227
|
|
|
238
228
|
:host {
|
|
239
|
-
width: ${
|
|
240
|
-
height: ${
|
|
229
|
+
width: ${pi.size};
|
|
230
|
+
height: ${pi.size};
|
|
241
231
|
}
|
|
242
232
|
|
|
243
233
|
i.ft-icon {
|
|
244
234
|
width: 100%;
|
|
245
235
|
height: 100%;
|
|
246
|
-
font-size: ${
|
|
236
|
+
font-size: ${pi.size};
|
|
247
237
|
line-height: 1;
|
|
248
238
|
font-weight: normal;
|
|
249
239
|
text-transform: none;
|
|
@@ -254,38 +244,38 @@ const qe=1,Xe=2,Ye=t=>(...e)=>({_$litDirective$:t,values:e});class Ge{constructo
|
|
|
254
244
|
text-rendering: auto;
|
|
255
245
|
-webkit-font-smoothing: antialiased;
|
|
256
246
|
-moz-osx-font-smoothing: grayscale;
|
|
257
|
-
vertical-align: ${
|
|
247
|
+
vertical-align: ${pi.verticalAlign};
|
|
258
248
|
}
|
|
259
249
|
|
|
260
250
|
i.ft-icon.ft-icon--fluid-topics {
|
|
261
|
-
font-family: ${
|
|
251
|
+
font-family: ${pi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
262
252
|
|
|
263
253
|
/* Ugly fix because font is broken */
|
|
264
|
-
font-size: calc(0.
|
|
254
|
+
font-size: calc(0.75 * ${pi.size});
|
|
265
255
|
position: relative;
|
|
266
|
-
top: -
|
|
256
|
+
top: -4%;
|
|
267
257
|
justify-content: center;
|
|
268
258
|
}
|
|
269
259
|
|
|
270
260
|
.ft-icon--file-format {
|
|
271
|
-
font-family: ${
|
|
261
|
+
font-family: ${pi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
272
262
|
}
|
|
273
263
|
|
|
274
264
|
.ft-icon--material {
|
|
275
|
-
font-family: ${
|
|
265
|
+
font-family: ${pi.materialFontFamily}, "Material Icons", sans-serif;
|
|
276
266
|
}
|
|
277
|
-
`;var
|
|
278
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
279
|
-
${
|
|
280
|
-
<slot ?hidden=${
|
|
267
|
+
`;var di;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(di||(di={}));var fi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ui extends Ct{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(di).includes(this.variant)?this.variant:di.fluid_topics,e=t!==di.material||!!this.value;return X`
|
|
268
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
269
|
+
${ai(this.resolvedIcon)}
|
|
270
|
+
<slot ?hidden=${e}></slot>
|
|
281
271
|
</i>
|
|
282
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
272
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case di.file_format:this.resolvedIcon=null!==(t=hi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case di.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=li[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ui.elementDefinitions={},ui.styles=ci,fi([o()],ui.prototype,"variant",void 0),fi([o()],ui.prototype,"value",void 0),fi([n()],ui.prototype,"resolvedIcon",void 0),fi([r("slot")],ui.prototype,"slottedContent",void 0),c("ft-icon")(ui);
|
|
283
273
|
/**
|
|
284
274
|
* @license
|
|
285
275
|
* Copyright 2018 Google LLC
|
|
286
276
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
277
|
*/
|
|
288
|
-
const
|
|
278
|
+
const yi=ni(class extends si{constructor(t){var e;if(super(t),t.type!==ii||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return Y}}),vi=gt.extend("--ft-ripple-color",xt.colorContent),gi={color:vi,backgroundColor:gt.extend("--ft-ripple-background-color",vi),opacityContentOnSurfacePressed:gt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:gt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:gt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:gt.external(xt.opacityContentOnSurfaceSelected,"Design system")},bi=gt.extend("--ft-ripple-color",xt.colorPrimary),xi=bi,mi=gt.extend("--ft-ripple-background-color",bi),wi=gt.extend("--ft-ripple-color",xt.colorSecondary),$i=wi,Oi=gt.extend("--ft-ripple-background-color",wi),Si=b`
|
|
289
279
|
:host {
|
|
290
280
|
display: contents;
|
|
291
281
|
}
|
|
@@ -307,27 +297,27 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
307
297
|
}
|
|
308
298
|
|
|
309
299
|
.ft-ripple .ft-ripple--background {
|
|
310
|
-
background-color: ${
|
|
300
|
+
background-color: ${gi.backgroundColor};
|
|
311
301
|
}
|
|
312
302
|
|
|
313
303
|
.ft-ripple .ft-ripple--effect {
|
|
314
|
-
background-color: ${
|
|
304
|
+
background-color: ${gi.color};
|
|
315
305
|
}
|
|
316
306
|
|
|
317
307
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
318
|
-
background-color: ${
|
|
308
|
+
background-color: ${Oi};
|
|
319
309
|
}
|
|
320
310
|
|
|
321
311
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
322
|
-
background-color: ${
|
|
312
|
+
background-color: ${$i};
|
|
323
313
|
}
|
|
324
314
|
|
|
325
315
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
326
|
-
background-color: ${
|
|
316
|
+
background-color: ${mi};
|
|
327
317
|
}
|
|
328
318
|
|
|
329
319
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
330
|
-
background-color: ${
|
|
320
|
+
background-color: ${xi};
|
|
331
321
|
}
|
|
332
322
|
|
|
333
323
|
.ft-ripple .ft-ripple--background {
|
|
@@ -359,22 +349,22 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
359
349
|
}
|
|
360
350
|
|
|
361
351
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
362
|
-
opacity: ${
|
|
352
|
+
opacity: ${gi.opacityContentOnSurfaceHover};
|
|
363
353
|
}
|
|
364
354
|
|
|
365
355
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
366
|
-
opacity: ${
|
|
356
|
+
opacity: ${gi.opacityContentOnSurfaceSelected};
|
|
367
357
|
}
|
|
368
358
|
|
|
369
359
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
370
|
-
opacity: ${
|
|
360
|
+
opacity: ${gi.opacityContentOnSurfaceFocused};
|
|
371
361
|
}
|
|
372
362
|
|
|
373
363
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
374
|
-
opacity: ${
|
|
364
|
+
opacity: ${gi.opacityContentOnSurfacePressed};
|
|
375
365
|
transform: translate(-50%, -50%) scale(1);
|
|
376
366
|
}
|
|
377
|
-
`;var
|
|
367
|
+
`;var ki=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ci extends Ct{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
|
|
378
368
|
<style>
|
|
379
369
|
.ft-ripple .ft-ripple--effect,
|
|
380
370
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -387,11 +377,11 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
387
377
|
top: ${this.originY}px;
|
|
388
378
|
}
|
|
389
379
|
</style>
|
|
390
|
-
<div class="${
|
|
380
|
+
<div class="${yi(t)}">
|
|
391
381
|
<div class="ft-ripple--background"></div>
|
|
392
382
|
<div class="ft-ripple--effect"></div>
|
|
393
383
|
</div>
|
|
394
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
384
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ci.elementDefinitions={},Ci.styles=Si,ki([o({type:Boolean})],Ci.prototype,"primary",void 0),ki([o({type:Boolean})],Ci.prototype,"secondary",void 0),ki([o({type:Boolean})],Ci.prototype,"unbounded",void 0),ki([o({type:Boolean})],Ci.prototype,"activated",void 0),ki([o({type:Boolean})],Ci.prototype,"selected",void 0),ki([o({type:Boolean})],Ci.prototype,"disabled",void 0),ki([n()],Ci.prototype,"hovered",void 0),ki([n()],Ci.prototype,"focused",void 0),ki([n()],Ci.prototype,"pressed",void 0),ki([n()],Ci.prototype,"rippling",void 0),ki([n()],Ci.prototype,"rippleSize",void 0),ki([n()],Ci.prototype,"originX",void 0),ki([n()],Ci.prototype,"originY",void 0),ki([r(".ft-ripple")],Ci.prototype,"ripple",void 0),ki([r(".ft-ripple--effect")],Ci.prototype,"rippleEffect",void 0),c("ft-ripple")(Ci);const Ei=gt.create("--ft-tooltip-distance","SIZE","4px"),Ni=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=gt.create("--ft-tooltip-background-color","COLOR","#666666"),Mi=gt.create("--ft-tooltip-z-index","NUMBER","1"),Ui=gt.external(xt.borderRadiusS,"Design system"),ji=gt.create("--ft-tooltip-max-width","SIZE","150px"),zi=b`
|
|
395
385
|
.ft-tooltip--container {
|
|
396
386
|
display: block;
|
|
397
387
|
position: relative;
|
|
@@ -407,23 +397,23 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
407
397
|
box-sizing: border-box;
|
|
408
398
|
overflow: hidden;
|
|
409
399
|
width: max-content;
|
|
410
|
-
max-width: ${
|
|
400
|
+
max-width: ${ji};
|
|
411
401
|
text-align: center;
|
|
412
|
-
padding: ${
|
|
413
|
-
z-index: ${
|
|
402
|
+
padding: ${Ei};
|
|
403
|
+
z-index: ${Mi};
|
|
414
404
|
}
|
|
415
405
|
|
|
416
406
|
.ft-tooltip--content {
|
|
417
407
|
padding: 4px 8px;
|
|
418
|
-
border-radius: ${
|
|
419
|
-
background-color: ${
|
|
420
|
-
color: ${
|
|
408
|
+
border-radius: ${Ui};
|
|
409
|
+
background-color: ${Ri};
|
|
410
|
+
color: ${Ni};
|
|
421
411
|
top: -500px;
|
|
422
412
|
left: -500px;
|
|
423
413
|
position: relative;
|
|
424
414
|
word-break: break-word;
|
|
425
415
|
}
|
|
426
|
-
`;var
|
|
416
|
+
`;var Fi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Bi extends Ct{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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
|
|
427
417
|
<div part="container"
|
|
428
418
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
429
419
|
@mouseenter=${this.onHover}
|
|
@@ -441,7 +431,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
441
431
|
</div>
|
|
442
432
|
</div>
|
|
443
433
|
</div>
|
|
444
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.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=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${
|
|
434
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.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=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${ji})`}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())}}Bi.elementDefinitions={"ft-typography":ei},Bi.styles=zi,Fi([o()],Bi.prototype,"text",void 0),Fi([o({type:Boolean})],Bi.prototype,"manual",void 0),Fi([o({type:Boolean})],Bi.prototype,"inline",void 0),Fi([o({type:Number})],Bi.prototype,"delay",void 0),Fi([o()],Bi.prototype,"position",void 0),Fi([function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?h({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Bi.prototype,"slotNodes",void 0),Fi([r(".ft-tooltip--container")],Bi.prototype,"container",void 0),Fi([r("slot")],Bi.prototype,"target",void 0),Fi([r(".ft-tooltip")],Bi.prototype,"tooltip",void 0),Fi([r(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),Fi([n()],Bi.prototype,"visible",void 0),c("ft-tooltip")(Bi);const Ai={color:gt.extend("--ft-loader-color",xt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},Ti=b`
|
|
445
435
|
:host {
|
|
446
436
|
line-height: 0;
|
|
447
437
|
}
|
|
@@ -450,8 +440,8 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
450
440
|
display: inline-block;
|
|
451
441
|
position: relative;
|
|
452
442
|
|
|
453
|
-
width: ${
|
|
454
|
-
height: ${
|
|
443
|
+
width: ${Ai.size};
|
|
444
|
+
height: ${Ai.size};
|
|
455
445
|
}
|
|
456
446
|
|
|
457
447
|
.ft-loader div {
|
|
@@ -460,7 +450,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
460
450
|
width: 25%;
|
|
461
451
|
height: 25%;
|
|
462
452
|
border-radius: 50%;
|
|
463
|
-
background: ${
|
|
453
|
+
background: ${Ai.color};
|
|
464
454
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
465
455
|
}
|
|
466
456
|
|
|
@@ -507,17 +497,17 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
507
497
|
transform: translate(0, 0);
|
|
508
498
|
}
|
|
509
499
|
100% {
|
|
510
|
-
transform: translate(calc(0.35 * ${
|
|
500
|
+
transform: translate(calc(0.35 * ${Ai.size}), 0);
|
|
511
501
|
}
|
|
512
502
|
}
|
|
513
|
-
`;class
|
|
503
|
+
`;class Li extends Ct{render(){return X`
|
|
514
504
|
<div class="ft-loader">
|
|
515
505
|
<div></div>
|
|
516
506
|
<div></div>
|
|
517
507
|
<div></div>
|
|
518
508
|
<div></div>
|
|
519
509
|
</div>
|
|
520
|
-
`}}
|
|
510
|
+
`}}Li.styles=Ti,c("ft-loader")(Li);const Pi=gt.extend("--ft-button-color",xt.colorPrimary),Ii={backgroundColor:gt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",xt.borderRadiusL),color:Pi,fontSize:gt.extend("--ft-button-font-size",_e.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",Pi),verticalPadding:gt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:gt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:gt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:gt.external(xt.colorOpacityDisabled,"Design system")},Di=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",xt.colorOnPrimary)),_i={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",xt.colorPrimary)),color:Di,rippleColor:gt.extend("--ft-button-primary-ripple-color",Di)},Wi=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",xt.borderRadiusM)),Zi=gt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Hi=gt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ki=gt.create("--ft-button-dense-icon-padding","SIZE","4px"),Vi=[Et,b`
|
|
521
511
|
:host {
|
|
522
512
|
display: inline-block;
|
|
523
513
|
max-width: 100%;
|
|
@@ -528,7 +518,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
528
518
|
box-shadow: 0px 0px 0px transparent;
|
|
529
519
|
border: 0px solid transparent;
|
|
530
520
|
text-shadow: 0px 0px 0px transparent;
|
|
531
|
-
font-size: ${
|
|
521
|
+
font-size: ${Ii.fontSize};
|
|
532
522
|
}
|
|
533
523
|
|
|
534
524
|
button:hover {
|
|
@@ -556,34 +546,33 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
556
546
|
box-sizing: border-box;
|
|
557
547
|
border: none;
|
|
558
548
|
pointer-events: auto;
|
|
559
|
-
gap: ${zi.iconPadding};
|
|
560
549
|
|
|
561
|
-
--ft-button-internal-line-height: calc(${
|
|
562
|
-
--ft-button-internal-color: ${
|
|
563
|
-
${
|
|
564
|
-
${
|
|
565
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
550
|
+
--ft-button-internal-line-height: calc(${Ii.fontSize} + 2px);
|
|
551
|
+
--ft-button-internal-color: ${Ii.color};
|
|
552
|
+
${bt(pi.size,Ii.iconSize)};
|
|
553
|
+
${bt(gi.color,Ii.rippleColor)};
|
|
554
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ii.iconSize});
|
|
566
555
|
|
|
567
|
-
border-radius: ${
|
|
568
|
-
padding: ${
|
|
569
|
-
background-color: ${
|
|
556
|
+
border-radius: ${Ii.borderRadius};
|
|
557
|
+
padding: ${Ii.verticalPadding} ${Ii.horizontalPadding};
|
|
558
|
+
background-color: ${Ii.backgroundColor};
|
|
570
559
|
color: var(--ft-button-internal-color);
|
|
571
560
|
-webkit-mask-image: radial-gradient(white, black);
|
|
572
561
|
}
|
|
573
562
|
|
|
574
563
|
.ft-button.ft-button--outlined {
|
|
575
564
|
border: 1px solid var(--ft-button-internal-color);
|
|
576
|
-
padding: calc(${
|
|
565
|
+
padding: calc(${Ii.verticalPadding} - 1px) calc(${Ii.horizontalPadding} - 1px);
|
|
577
566
|
}
|
|
578
567
|
|
|
579
568
|
.ft-button.ft-button--dense {
|
|
580
|
-
padding: ${
|
|
581
|
-
border-radius: ${
|
|
582
|
-
gap: ${
|
|
569
|
+
padding: ${Zi} ${Hi};
|
|
570
|
+
border-radius: ${Wi};
|
|
571
|
+
gap: ${Ki};
|
|
583
572
|
}
|
|
584
573
|
|
|
585
574
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
586
|
-
padding: calc(${
|
|
575
|
+
padding: calc(${Zi} - 1px) calc(${Hi} - 1px);
|
|
587
576
|
}
|
|
588
577
|
|
|
589
578
|
.ft-button:not([disabled]):hover {
|
|
@@ -591,22 +580,22 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
591
580
|
}
|
|
592
581
|
|
|
593
582
|
.ft-button--round {
|
|
594
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
583
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Ii.verticalPadding});
|
|
595
584
|
}
|
|
596
585
|
|
|
597
586
|
.ft-button--round.ft-button--dense {
|
|
598
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
587
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Zi});
|
|
599
588
|
}
|
|
600
589
|
|
|
601
590
|
.ft-button[disabled] {
|
|
602
591
|
filter: grayscale(1);
|
|
603
|
-
opacity: ${
|
|
592
|
+
opacity: ${Ii.opacityDisabled};
|
|
604
593
|
}
|
|
605
594
|
|
|
606
595
|
.ft-button.ft-button--primary {
|
|
607
|
-
background-color: ${
|
|
608
|
-
--ft-button-internal-color: ${
|
|
609
|
-
${
|
|
596
|
+
background-color: ${_i.backgroundColor};
|
|
597
|
+
--ft-button-internal-color: ${_i.color};
|
|
598
|
+
${bt(gi.color,_i.rippleColor)};
|
|
610
599
|
}
|
|
611
600
|
|
|
612
601
|
.ft-button:focus {
|
|
@@ -619,8 +608,13 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
619
608
|
white-space: nowrap;
|
|
620
609
|
text-overflow: ellipsis;
|
|
621
610
|
display: block;
|
|
622
|
-
${
|
|
623
|
-
${
|
|
611
|
+
margin: 0 ${Ii.iconPadding};
|
|
612
|
+
${bt(_e.fontSize,"1em")};
|
|
613
|
+
${bt(_e.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.ft-button--dense .ft-button--label {
|
|
617
|
+
margin: 0 ${Ki};
|
|
624
618
|
}
|
|
625
619
|
|
|
626
620
|
.ft-button--label[hidden] {
|
|
@@ -633,13 +627,13 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
633
627
|
}
|
|
634
628
|
|
|
635
629
|
.ft-button--label[hidden] + ft-icon {
|
|
636
|
-
margin: 0 calc(${
|
|
637
|
-
padding: 0 ${
|
|
630
|
+
margin: 0 calc(${Ii.horizontalPadding} * -1);
|
|
631
|
+
padding: 0 ${Ii.verticalPadding};
|
|
638
632
|
}
|
|
639
633
|
|
|
640
634
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
641
|
-
margin: 0 calc(${
|
|
642
|
-
padding: 0 ${
|
|
635
|
+
margin: 0 calc(${Hi} * -1);
|
|
636
|
+
padding: 0 ${Zi};
|
|
643
637
|
}
|
|
644
638
|
|
|
645
639
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -648,40 +642,40 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
648
642
|
}
|
|
649
643
|
|
|
650
644
|
ft-loader {
|
|
651
|
-
${
|
|
652
|
-
${
|
|
645
|
+
${bt(Ai.size,Ii.iconSize)};
|
|
646
|
+
${bt(Ai.color,"var(--ft-button-internal-color)")};
|
|
653
647
|
}
|
|
654
|
-
`];var
|
|
648
|
+
`];var Ji=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qi extends Ct{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
|
|
655
649
|
<button part="button"
|
|
656
|
-
class="${
|
|
650
|
+
class="${yi(t)}"
|
|
657
651
|
aria-label="${this.getLabel()}"
|
|
658
652
|
?disabled=${this.isDisabled()}>
|
|
659
653
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
660
654
|
<ft-typography part="label"
|
|
661
655
|
variant="button"
|
|
662
656
|
element="span"
|
|
663
|
-
class="ft-button--label ${
|
|
657
|
+
class="ft-button--label ${jt?"ft-safari-ellipsis-fix":""}"
|
|
664
658
|
?hidden=${!this.hasTextContent()}>
|
|
665
659
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
666
660
|
</ft-typography>
|
|
667
661
|
${this.resolveIcon()}
|
|
668
662
|
</button>
|
|
669
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
663
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?X`
|
|
670
664
|
<ft-tooltip part="tooltip"
|
|
671
665
|
text="${this.getLabel()}"
|
|
672
666
|
position="${this.tooltipPosition}">
|
|
673
667
|
${t}
|
|
674
668
|
</ft-tooltip>
|
|
675
|
-
`:t}resolveIcon(){return this.loading?
|
|
676
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
677
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
669
|
+
`:t}resolveIcon(){return this.loading?X`
|
|
670
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?X`
|
|
671
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}qi.elementDefinitions={"ft-ripple":Ci,"ft-tooltip":Bi,"ft-typography":ei,"ft-icon":ui,"ft-loader":Li},qi.styles=[Nt,Vi],Ji([o({type:String,reflect:!0})],qi.prototype,"role",void 0),Ji([o({type:Boolean})],qi.prototype,"primary",void 0),Ji([o({type:Boolean})],qi.prototype,"outlined",void 0),Ji([o({type:Boolean})],qi.prototype,"disabled",void 0),Ji([o({type:Boolean})],qi.prototype,"dense",void 0),Ji([o({type:Boolean})],qi.prototype,"round",void 0),Ji([o()],qi.prototype,"label",void 0),Ji([o()],qi.prototype,"icon",void 0),Ji([o()],qi.prototype,"iconVariant",void 0),Ji([o({type:Boolean})],qi.prototype,"trailingIcon",void 0),Ji([o({type:Boolean})],qi.prototype,"loading",void 0),Ji([o()],qi.prototype,"tooltipPosition",void 0),Ji([o({type:Boolean})],qi.prototype,"hideTooltip",void 0),Ji([o({type:Boolean})],qi.prototype,"forceTooltip",void 0),Ji([r(".ft-button")],qi.prototype,"button",void 0),Ji([r(".ft-button--label slot")],qi.prototype,"slottedContent",void 0),c("ft-button")(qi);const Xi={zIndex:gt.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:gt.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:gt.create("--ft-dialog-height","SIZE","unset"),width:gt.create("--ft-dialog-width","SIZE","unset"),minWidth:gt.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:gt.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:gt.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:gt.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:gt.external(xt.colorSurface,"Design system"),headingColor:gt.external(xt.colorOnSurfaceMedium,"Design system"),borderRadiusS:gt.external(xt.borderRadiusS,"Design system"),elevation24:gt.external(xt.elevation24,"Design system")},Yi=b`
|
|
678
672
|
.ft-dialog {
|
|
679
673
|
position: fixed;
|
|
680
674
|
top: 0;
|
|
681
675
|
right: 0;
|
|
682
676
|
bottom: 0;
|
|
683
677
|
left: 0;
|
|
684
|
-
z-index: ${
|
|
678
|
+
z-index: ${Xi.zIndex};
|
|
685
679
|
|
|
686
680
|
display: flex;
|
|
687
681
|
flex-direction: column;
|
|
@@ -701,7 +695,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
701
695
|
height: 100%;
|
|
702
696
|
width: 100%;
|
|
703
697
|
|
|
704
|
-
background-color: ${
|
|
698
|
+
background-color: ${Xi.overlayBackgroundColor};
|
|
705
699
|
|
|
706
700
|
}
|
|
707
701
|
|
|
@@ -709,26 +703,26 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
709
703
|
position: fixed;
|
|
710
704
|
display: flex;
|
|
711
705
|
flex-direction: column;
|
|
712
|
-
gap: ${
|
|
706
|
+
gap: ${Xi.paddingButtons};
|
|
713
707
|
|
|
714
|
-
width: ${
|
|
715
|
-
height: ${
|
|
708
|
+
width: ${Xi.width};
|
|
709
|
+
height: ${Xi.height};
|
|
716
710
|
max-width: 95vw;
|
|
717
711
|
max-height: 95vh;
|
|
718
|
-
min-width: ${
|
|
712
|
+
min-width: ${Xi.minWidth};
|
|
719
713
|
|
|
720
|
-
padding-top: ${
|
|
721
|
-
padding-bottom: ${
|
|
714
|
+
padding-top: ${Xi.paddingTop};
|
|
715
|
+
padding-bottom: ${Xi.paddingTop};
|
|
722
716
|
|
|
723
|
-
background-color: ${
|
|
717
|
+
background-color: ${Xi.colorSurface};
|
|
724
718
|
|
|
725
|
-
border-radius: ${
|
|
726
|
-
box-shadow: ${
|
|
719
|
+
border-radius: ${Xi.borderRadiusS};
|
|
720
|
+
box-shadow: ${Xi.elevation24};
|
|
727
721
|
}
|
|
728
722
|
|
|
729
723
|
.ft-dialog-wrapper > * {
|
|
730
|
-
padding-right: ${
|
|
731
|
-
padding-left: ${
|
|
724
|
+
padding-right: ${Xi.paddingSide};
|
|
725
|
+
padding-left: ${Xi.paddingSide};
|
|
732
726
|
}
|
|
733
727
|
|
|
734
728
|
.ft-dialog-content {
|
|
@@ -743,7 +737,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
743
737
|
align-items: center;
|
|
744
738
|
gap: 8px;
|
|
745
739
|
|
|
746
|
-
color: ${
|
|
740
|
+
color: ${Xi.headingColor};
|
|
747
741
|
}
|
|
748
742
|
|
|
749
743
|
.ft-dialog-heading * {
|
|
@@ -759,7 +753,7 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
759
753
|
}
|
|
760
754
|
|
|
761
755
|
.ft-dialog-heading ft-button {
|
|
762
|
-
${
|
|
756
|
+
${bt(Ii.color,Xi.headingColor)};
|
|
763
757
|
}
|
|
764
758
|
|
|
765
759
|
.ft-dialog-buttons.ft-dialog-no-buttons {
|
|
@@ -773,23 +767,25 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
773
767
|
gap: 8px;
|
|
774
768
|
}
|
|
775
769
|
|
|
776
|
-
`;var
|
|
770
|
+
`;var Gi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qi extends Ct{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?X`
|
|
777
771
|
<div class="ft-dialog">
|
|
778
772
|
<div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
|
|
779
773
|
<div class="ft-dialog-wrapper">
|
|
780
|
-
${this.heading?
|
|
774
|
+
${this.heading?X`
|
|
781
775
|
<div class="ft-dialog-heading">
|
|
782
|
-
${this.icon?
|
|
783
|
-
<ft-icon variant="
|
|
776
|
+
${this.icon?X`
|
|
777
|
+
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
784
778
|
`:void 0}
|
|
785
779
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
786
|
-
${this.closable?
|
|
780
|
+
${this.closable?X`
|
|
787
781
|
<ft-button round icon="close" @click=${this.close}></ft-button>
|
|
788
782
|
`:void 0}
|
|
789
783
|
</div>
|
|
790
784
|
`:null}
|
|
791
785
|
<div class="ft-dialog-content">
|
|
792
|
-
<
|
|
786
|
+
<ft-typography variant="body1">
|
|
787
|
+
<slot></slot>
|
|
788
|
+
</ft-typography>
|
|
793
789
|
</div>
|
|
794
790
|
<slot name="buttons"
|
|
795
791
|
class="ft-dialog-buttons ${this.buttons.length>0?"":"ft-dialog-no-buttons"}"
|
|
@@ -797,4 +793,4 @@ const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"clas
|
|
|
797
793
|
></slot>
|
|
798
794
|
</div>
|
|
799
795
|
</div>
|
|
800
|
-
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}
|
|
796
|
+
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}Qi.elementDefinitions={"ft-typography":ei,"ft-icon":ui,"ft-button":qi},Qi.styles=Yi,Gi([o({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],Qi.prototype,"opened",void 0),Gi([o({type:Boolean})],Qi.prototype,"closeOnEsc",void 0),Gi([o({type:Boolean})],Qi.prototype,"closeOnClickOutside",void 0),Gi([o({type:Boolean})],Qi.prototype,"closable",void 0),Gi([o({type:()=>Boolean})],Qi.prototype,"beforeClose",void 0),Gi([o()],Qi.prototype,"heading",void 0),Gi([o()],Qi.prototype,"icon",void 0),Gi([o()],Qi.prototype,"iconVariant",void 0),Gi([h({slot:"buttons"})],Qi.prototype,"buttons",void 0),c("ft-dialog")(Qi),t.FtDialog=Qi,t.FtDialogCssVariables=Xi,t.styles=Yi}({});
|