@fluid-topics/ft-dialog 0.2.15 → 0.2.18
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.light.js +31 -29
- package/build/ft-dialog.min.js +161 -158
- package/package.json +6 -6
- package/build/ft-dialog.inline-styles.js +0 -749
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
package/build/ft-dialog.min.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const p={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,p),this._definitionsByClass.set(n,p);let h=e.call(o,t);h||(h=c(t),i.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let i=t.getRootNode();if(!p(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),p(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=h(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Zi){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,49 +29,50 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const s=({finisher:t,descriptor:
|
|
32
|
+
*/const s=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,s=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(s.finisher=function(i){t(i,o)}),s}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function r(t,
|
|
37
|
+
*/;function r(t,i){return s({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
|
|
47
|
+
*/
|
|
48
|
+
const h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),d=new Map;class f{constructor(t,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=d.get(this.cssText);return h&&void 0===t&&(d.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new f("string"==typeof t?t:t+"",c),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new f(e,c)},g=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
|
|
48
49
|
/**
|
|
49
50
|
* @license
|
|
50
51
|
* Copyright 2017 Google LLC
|
|
51
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var
|
|
53
|
+
*/;var x;const b=window.trustedTypes,m=b?b.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,i){switch(i){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(v(t))}else void 0!==t&&i.push(v(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=S){var o,n;const s=this.constructor._$Eh(t,e);if(void 0!==s&&!0===e.reflect){const r=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:$.toAttribute)(i,e.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,i){var e,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:$.fromAttribute;this._$Ei=r,this[r]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
53
54
|
/**
|
|
54
55
|
* @license
|
|
55
56
|
* Copyright 2017 Google LLC
|
|
56
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
58
|
*/
|
|
58
|
-
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(
|
|
59
|
+
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(x=globalThis.reactiveElementVersions)&&void 0!==x?x:globalThis.reactiveElementVersions=[]).push("1.3.2");const N=globalThis.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,z=`<${M}>`,F=document,U=(t="")=>F.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,A=/>/g,D=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,P=/"/g,I=/^(?:script|style|textarea|title)$/i,W=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=T;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===T?"!--"===l[1]?r=L:void 0!==l[1]?r=A:void 0!==l[2]?(I.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=D):void 0!==l[3]&&(r=D):r===D?">"===l[0]?(r=null!=n?n:T,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?D:'"'===l[3]?P:_):r===P||r===_?r=D:r===L||r===A?r=T:(r=D,n=void 0);const c=r===D&&t[i+1].startsWith("/>")?" ":"";s+=r===T?e+z:p>=0?(o.push(a),e.slice(0,p)+"$lit$"+e.slice(p)+R+c):e+R+(-2===p?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,p]=J(t,i);if(this.el=q.createElement(l,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],U()),V.nextNode(),a.push({type:2,index:++n});o.append(t[i],U())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:n}),t+=R.length-1}n++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var n,s,r,a;if(i===H)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=j(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=X(t,l._$AS(t,i.values),l,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=n;let s=V.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new G(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new nt(s,this,t)),this.v.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=V.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return B(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new Y(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new q(t)),i}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.M(U()),this.M(U()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=X(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=X(this,o[e+r],i,r),a===H&&(a=this._$AH[r]),s||(s=!j(a)||a!==this._$AH[r]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===K?void 0:t}}const it=N?N.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}C(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==K&&(o===K||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const st=window.litHtmlPolyfillSupport;
|
|
59
60
|
/**
|
|
60
61
|
* @license
|
|
61
62
|
* Copyright 2017 Google LLC
|
|
62
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
64
|
*/
|
|
64
|
-
var rt,at;null==st||st(
|
|
65
|
+
var rt,at;null==st||st(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.4");class lt extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new G(i.insertBefore(U(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return H}}lt.finalized=!0,lt._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:lt});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:lt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.2.0");class ht{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new ht(t,i,void 0,e)}static extend(t,i,e){return new ht(t,i.category,i,e)}static external(t,i){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return y`var(${u(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):u(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ct(t,i){return u(`${t.name}: ${i}`)}const dt={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
65
66
|
/**
|
|
66
67
|
* @license
|
|
67
68
|
* Copyright 2021 Google LLC
|
|
68
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/
|
|
70
|
+
*/var ft=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ut extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
|
|
70
71
|
${t.map((t=>W`
|
|
71
72
|
<style>${t}</style>
|
|
72
73
|
`))}
|
|
73
74
|
${this.getTemplate()}
|
|
74
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ut=y`
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}ft([o()],ut.prototype,"exportpartsPrefix",void 0),ft([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ut.prototype,"exportpartsPrefixes",void 0);const yt=y`
|
|
75
76
|
.ft-no-text-select {
|
|
76
77
|
-webkit-touch-callout: none;
|
|
77
78
|
-webkit-user-select: none;
|
|
@@ -80,139 +81,141 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
80
81
|
-ms-user-select: none;
|
|
81
82
|
user-select: none;
|
|
82
83
|
}
|
|
83
|
-
`;var
|
|
84
|
+
`;var gt,vt,xt;const bt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(xt=null===(vt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===vt?void 0:vt.toString())&&void 0!==xt?xt:""),mt=Symbol.for(""),wt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===mt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},$t=t=>({_$litStatic$:t,r:mt}),Ot=new Map,St=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=wt(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=Ot.get(t))&&(r.raw=r,Ot.set(t,i=r)),e=a}return t(i,...e)})(W);
|
|
84
85
|
/**
|
|
85
86
|
* @license
|
|
86
87
|
* Copyright 2020 Google LLC
|
|
87
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
-
*/var
|
|
89
|
+
*/var kt,Ct=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(kt||(kt={}));const Nt=ht.extend("--ft-typography-font-family",dt.titleFont),Et=ht.extend("--ft-typography-font-family",dt.contentFont),Rt={fontFamily:Et,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=ht.extend("--ft-typography-title-font-family",Nt),zt=ht.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),Ft=ht.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),Ut=ht.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),jt=ht.extend("--ft-typography-title-line-height",Rt.lineHeight,"1.2"),Bt=ht.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),Tt=ht.extend("--ft-typography-title-dense-font-family",Nt),Lt=ht.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),At=ht.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),Dt=ht.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),_t=ht.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"1.7"),Pt=ht.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),It=ht.extend("--ft-typography-subtitle1-font-family",Et),Wt=ht.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Ht=ht.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Kt=ht.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),Zt=ht.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"1.5"),Vt=ht.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),Jt=ht.extend("--ft-typography-subtitle2-font-family",Et),qt=ht.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),Xt=ht.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Yt=ht.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=ht.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"1.7"),Qt=ht.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),ti=ht.extend("--ft-typography-body1-font-family",Et),ii=ht.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),ei=ht.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),oi=ht.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),ni=ht.extend("--ft-typography-body1-line-height",Rt.lineHeight,"1.5"),si=ht.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit"),ri=ht.extend("--ft-typography-body2-font-family",Et),ai=ht.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),li=ht.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),pi=ht.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),hi=ht.extend("--ft-typography-body2-line-height",Rt.lineHeight,"1.4"),ci=ht.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),di=ht.extend("--ft-typography-caption-font-family",Et),fi=ht.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),ui=ht.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),yi=ht.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),gi=ht.extend("--ft-typography-caption-line-height",Rt.lineHeight,"1.33"),vi=ht.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit"),xi=ht.extend("--ft-typography-breadcrumb-font-family",Et),bi=ht.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),mi=ht.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),wi=ht.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),$i=ht.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"1.6"),Oi=ht.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),Si=ht.extend("--ft-typography-overline-font-family",Et),ki=ht.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),Ci=ht.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),Ni=ht.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),Ei=ht.extend("--ft-typography-overline-line-height",Rt.lineHeight,"1.6"),Ri=ht.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),Mi={fontFamily:ht.extend("--ft-typography-button-font-family",Et),fontSize:ht.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Rt.lineHeight,"1.15"),textTransform:ht.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase")},zi=y`
|
|
89
90
|
.ft-typography--title {
|
|
90
|
-
font-family: ${
|
|
91
|
-
font-size: ${
|
|
92
|
-
font-weight: ${
|
|
93
|
-
letter-spacing: ${
|
|
94
|
-
line-height: ${
|
|
95
|
-
text-transform: ${
|
|
91
|
+
font-family: ${Mt};
|
|
92
|
+
font-size: ${zt};
|
|
93
|
+
font-weight: ${Ft};
|
|
94
|
+
letter-spacing: ${Ut};
|
|
95
|
+
line-height: ${jt};
|
|
96
|
+
text-transform: ${Bt};
|
|
96
97
|
}
|
|
97
|
-
`,
|
|
98
|
+
`,Fi=y`
|
|
98
99
|
.ft-typography--title-dense {
|
|
99
|
-
font-family: ${
|
|
100
|
-
font-size: ${
|
|
101
|
-
font-weight: ${
|
|
102
|
-
letter-spacing: ${
|
|
103
|
-
line-height: ${
|
|
104
|
-
text-transform: ${
|
|
100
|
+
font-family: ${Tt};
|
|
101
|
+
font-size: ${Lt};
|
|
102
|
+
font-weight: ${At};
|
|
103
|
+
letter-spacing: ${Dt};
|
|
104
|
+
line-height: ${_t};
|
|
105
|
+
text-transform: ${Pt};
|
|
105
106
|
}
|
|
106
|
-
`,
|
|
107
|
+
`,Ui=y`
|
|
107
108
|
.ft-typography--subtitle1 {
|
|
108
109
|
font-family: ${It};
|
|
109
|
-
font-size: ${
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
-
line-height: ${
|
|
113
|
-
text-transform: ${
|
|
110
|
+
font-size: ${Wt};
|
|
111
|
+
font-weight: ${Ht};
|
|
112
|
+
letter-spacing: ${Kt};
|
|
113
|
+
line-height: ${Zt};
|
|
114
|
+
text-transform: ${Vt};
|
|
114
115
|
}
|
|
115
|
-
`,
|
|
116
|
+
`,ji=y`
|
|
116
117
|
.ft-typography--subtitle2 {
|
|
117
|
-
font-family: ${
|
|
118
|
+
font-family: ${Jt};
|
|
118
119
|
font-size: ${qt};
|
|
119
120
|
font-weight: ${Xt};
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
122
|
-
text-transform: ${
|
|
121
|
+
letter-spacing: ${Yt};
|
|
122
|
+
line-height: ${Gt};
|
|
123
|
+
text-transform: ${Qt};
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
`,
|
|
126
|
+
`,Bi=y`
|
|
126
127
|
.ft-typography--body1 {
|
|
127
|
-
font-family: ${
|
|
128
|
-
font-size: ${
|
|
129
|
-
font-weight: ${
|
|
130
|
-
letter-spacing: ${
|
|
131
|
-
line-height: ${
|
|
132
|
-
text-transform: ${
|
|
128
|
+
font-family: ${ti};
|
|
129
|
+
font-size: ${ii};
|
|
130
|
+
font-weight: ${ei};
|
|
131
|
+
letter-spacing: ${oi};
|
|
132
|
+
line-height: ${ni};
|
|
133
|
+
text-transform: ${si};
|
|
133
134
|
}
|
|
134
|
-
`,
|
|
135
|
+
`,Ti=y`
|
|
135
136
|
.ft-typography--body2 {
|
|
136
|
-
font-family: ${
|
|
137
|
-
font-size: ${
|
|
138
|
-
font-weight: ${
|
|
139
|
-
letter-spacing: ${
|
|
140
|
-
line-height: ${
|
|
141
|
-
text-transform: ${
|
|
137
|
+
font-family: ${ri};
|
|
138
|
+
font-size: ${ai};
|
|
139
|
+
font-weight: ${li};
|
|
140
|
+
letter-spacing: ${pi};
|
|
141
|
+
line-height: ${hi};
|
|
142
|
+
text-transform: ${ci};
|
|
142
143
|
}
|
|
143
|
-
`,
|
|
144
|
+
`,Li=y`
|
|
144
145
|
.ft-typography--caption {
|
|
145
|
-
font-family: ${
|
|
146
|
-
font-size: ${
|
|
147
|
-
font-weight: ${
|
|
148
|
-
letter-spacing: ${
|
|
149
|
-
line-height: ${
|
|
150
|
-
text-transform: ${
|
|
146
|
+
font-family: ${di};
|
|
147
|
+
font-size: ${fi};
|
|
148
|
+
font-weight: ${ui};
|
|
149
|
+
letter-spacing: ${yi};
|
|
150
|
+
line-height: ${gi};
|
|
151
|
+
text-transform: ${vi};
|
|
151
152
|
}
|
|
152
|
-
`,
|
|
153
|
+
`,Ai=y`
|
|
153
154
|
.ft-typography--breadcrumb {
|
|
154
|
-
font-family: ${
|
|
155
|
-
font-size: ${
|
|
156
|
-
font-weight: ${
|
|
157
|
-
letter-spacing: ${
|
|
158
|
-
line-height: ${
|
|
159
|
-
text-transform: ${
|
|
155
|
+
font-family: ${xi};
|
|
156
|
+
font-size: ${bi};
|
|
157
|
+
font-weight: ${mi};
|
|
158
|
+
letter-spacing: ${wi};
|
|
159
|
+
line-height: ${$i};
|
|
160
|
+
text-transform: ${Oi};
|
|
160
161
|
}
|
|
161
|
-
`,
|
|
162
|
+
`,Di=y`
|
|
162
163
|
.ft-typography--overline {
|
|
163
|
-
font-family: ${
|
|
164
|
-
font-size: ${
|
|
165
|
-
font-weight: ${
|
|
166
|
-
letter-spacing: ${
|
|
167
|
-
line-height: ${
|
|
168
|
-
text-transform: ${
|
|
164
|
+
font-family: ${Si};
|
|
165
|
+
font-size: ${ki};
|
|
166
|
+
font-weight: ${Ci};
|
|
167
|
+
letter-spacing: ${Ni};
|
|
168
|
+
line-height: ${Ei};
|
|
169
|
+
text-transform: ${Ri};
|
|
169
170
|
}
|
|
170
|
-
`,
|
|
171
|
+
`,_i=y`
|
|
171
172
|
.ft-typography--button {
|
|
172
|
-
font-family: ${
|
|
173
|
-
font-size: ${
|
|
174
|
-
font-weight: ${
|
|
175
|
-
letter-spacing: ${
|
|
176
|
-
line-height: ${
|
|
177
|
-
text-transform: ${
|
|
173
|
+
font-family: ${Mi.fontFamily};
|
|
174
|
+
font-size: ${Mi.fontSize};
|
|
175
|
+
font-weight: ${Mi.fontWeight};
|
|
176
|
+
letter-spacing: ${Mi.letterSpacing};
|
|
177
|
+
line-height: ${Mi.lineHeight};
|
|
178
|
+
text-transform: ${Mi.textTransform};
|
|
178
179
|
}
|
|
179
|
-
`;class
|
|
180
|
-
<${
|
|
180
|
+
`;class Pi extends ut{constructor(){super(...arguments),this.variant=kt.body1}render(){return this.element?St`
|
|
181
|
+
<${$t(this.element)}
|
|
181
182
|
class="ft-typography ft-typography--${this.variant}">
|
|
182
183
|
<slot></slot>
|
|
183
|
-
</${
|
|
184
|
-
`:
|
|
184
|
+
</${$t(this.element)}>
|
|
185
|
+
`:St`
|
|
185
186
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
186
|
-
`}}
|
|
187
|
+
`}}Pi.styles=[zi,Fi,Ui,ji,Bi,Ti,Li,Ai,Di,_i,y`
|
|
187
188
|
.ft-typography {
|
|
188
189
|
vertical-align: inherit;
|
|
189
190
|
}
|
|
190
|
-
`],
|
|
191
|
+
`],Ct([o()],Pi.prototype,"element",void 0),Ct([o()],Pi.prototype,"variant",void 0),p("ft-typography")(Pi);
|
|
191
192
|
/**
|
|
192
193
|
* @license
|
|
193
194
|
* Copyright 2017 Google LLC
|
|
194
195
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
195
196
|
*/
|
|
196
|
-
const
|
|
197
|
+
const Ii=1,Wi=2,Hi=t=>(...i)=>({_$litDirective$:t,values:i});class Ki{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
197
198
|
/**
|
|
198
199
|
* @license
|
|
199
200
|
* Copyright 2017 Google LLC
|
|
200
201
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
201
|
-
*/class
|
|
202
|
+
*/class Zi extends Ki{constructor(t){if(super(t),this.it=K,t.type!==Wi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.ft=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Zi.directiveName="unsafeHTML",Zi.resultType=1;const Vi=Hi(Zi);var Ji,qi;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Ji||(Ji={})),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=""}(qi||(qi={})),new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.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,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]);var Xi,Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));const Gi={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Qi extends ut{constructor(){super(...arguments),this.variant=Xi.fluid_topics}render(){return W`
|
|
202
203
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
203
|
-
${
|
|
204
|
+
${Vi(this.getIcon())}
|
|
204
205
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
205
206
|
</i>
|
|
206
|
-
`}get textContent(){var t,
|
|
207
|
-
:host
|
|
207
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===Xi.file_format?null!==(t=qi[e.toUpperCase()])&&void 0!==t?t:e:this.variant===Xi.fluid_topics?null!==(i=Ji[e.toUpperCase()])&&void 0!==i?i:e:K}}Qi.elementDefinitions={},Qi.styles=y`
|
|
208
|
+
:host {
|
|
208
209
|
display: inline-block;
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
}
|
|
211
|
+
:host, i.ft-icon {
|
|
212
|
+
width: ${Gi.size};
|
|
213
|
+
height: ${Gi.size};
|
|
211
214
|
text-align: center;
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
i.ft-icon {
|
|
215
|
-
font-size: ${
|
|
218
|
+
font-size: ${Gi.size};
|
|
216
219
|
line-height: 1;
|
|
217
220
|
font-weight: normal;
|
|
218
221
|
text-transform: none;
|
|
@@ -226,23 +229,23 @@ const Ie=1,Pe=2,We=t=>(...e)=>({_$litDirective$:t,values:e});class He{constructo
|
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
.ft-icon--fluid-topics {
|
|
229
|
-
font-family: ${
|
|
232
|
+
font-family: ${Gi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
230
233
|
}
|
|
231
234
|
|
|
232
235
|
.ft-icon--file-format {
|
|
233
|
-
font-family: ${
|
|
236
|
+
font-family: ${Gi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
234
237
|
}
|
|
235
238
|
|
|
236
239
|
.ft-icon--material {
|
|
237
|
-
font-family: ${
|
|
240
|
+
font-family: ${Gi.materialFontFamily}, "Material Icons", sans-serif;
|
|
238
241
|
}
|
|
239
|
-
`,
|
|
242
|
+
`,Yi([o()],Qi.prototype,"variant",void 0),Yi([r("slot")],Qi.prototype,"slottedContent",void 0),p("ft-icon")(Qi);
|
|
240
243
|
/**
|
|
241
244
|
* @license
|
|
242
245
|
* Copyright 2018 Google LLC
|
|
243
246
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
244
247
|
*/
|
|
245
|
-
const
|
|
248
|
+
const te=Hi(class extends Ki{constructor(t){var i;if(super(t),t.type!==Ii||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.et.add(t);return this.render(i)}const n=t.element.classList;this.et.forEach((t=>{t in i||(n.remove(t),this.et.delete(t))}));for(const t in i){const e=!!i[t];e===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.et.add(t)):(n.remove(t),this.et.delete(t)))}return H}});var ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const ee=ht.extend("--ft-ripple-color",dt.colorContent),oe={color:ee,backgroundColor:ht.extend("--ft-ripple-background-color",ee),opacityContentOnSurfacePressed:ht.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(dt.opacityContentOnSurfaceSelected,"Design system")},ne=ht.extend("--ft-ripple-color",dt.colorPrimary),se=ne,re=ht.extend("--ft-ripple-background-color",ne),ae=ht.extend("--ft-ripple-color",dt.colorSecondary),le=ae,pe=ht.extend("--ft-ripple-background-color",ae);class he extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
|
|
246
249
|
<style>
|
|
247
250
|
.ft-ripple .ft-ripple--effect,
|
|
248
251
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -255,11 +258,11 @@ const Qe=We(class extends He{constructor(t){var e;if(super(t),t.type!==Ie||"clas
|
|
|
255
258
|
top: ${this.originY}px;
|
|
256
259
|
}
|
|
257
260
|
</style>
|
|
258
|
-
<div class="${
|
|
261
|
+
<div class="${te(t)}">
|
|
259
262
|
<div class="ft-ripple--background"></div>
|
|
260
263
|
<div class="ft-ripple--effect"></div>
|
|
261
264
|
</div>
|
|
262
|
-
`}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
|
|
265
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}he.elementDefinitions={},he.styles=y`
|
|
263
266
|
:host {
|
|
264
267
|
display: contents;
|
|
265
268
|
}
|
|
@@ -281,27 +284,27 @@ const Qe=We(class extends He{constructor(t){var e;if(super(t),t.type!==Ie||"clas
|
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
.ft-ripple .ft-ripple--background {
|
|
284
|
-
background-color: ${
|
|
287
|
+
background-color: ${oe.backgroundColor};
|
|
285
288
|
}
|
|
286
289
|
|
|
287
290
|
.ft-ripple .ft-ripple--effect {
|
|
288
|
-
background-color: ${
|
|
291
|
+
background-color: ${oe.color};
|
|
289
292
|
}
|
|
290
293
|
|
|
291
294
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
292
|
-
background-color: ${
|
|
295
|
+
background-color: ${pe};
|
|
293
296
|
}
|
|
294
297
|
|
|
295
298
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
296
|
-
background-color: ${
|
|
299
|
+
background-color: ${le};
|
|
297
300
|
}
|
|
298
301
|
|
|
299
302
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
300
|
-
background-color: ${
|
|
303
|
+
background-color: ${re};
|
|
301
304
|
}
|
|
302
305
|
|
|
303
306
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
304
|
-
background-color: ${
|
|
307
|
+
background-color: ${se};
|
|
305
308
|
}
|
|
306
309
|
|
|
307
310
|
.ft-ripple .ft-ripple--background {
|
|
@@ -333,22 +336,22 @@ const Qe=We(class extends He{constructor(t){var e;if(super(t),t.type!==Ie||"clas
|
|
|
333
336
|
}
|
|
334
337
|
|
|
335
338
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
336
|
-
opacity: ${
|
|
339
|
+
opacity: ${oe.opacityContentOnSurfaceHover};
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
340
|
-
opacity: ${
|
|
343
|
+
opacity: ${oe.opacityContentOnSurfaceSelected};
|
|
341
344
|
}
|
|
342
345
|
|
|
343
346
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
344
|
-
opacity: ${
|
|
347
|
+
opacity: ${oe.opacityContentOnSurfaceFocused};
|
|
345
348
|
}
|
|
346
349
|
|
|
347
350
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
348
|
-
opacity: ${
|
|
351
|
+
opacity: ${oe.opacityContentOnSurfacePressed};
|
|
349
352
|
transform: translate(-50%, -50%) scale(1);
|
|
350
353
|
}
|
|
351
|
-
`,
|
|
354
|
+
`,ie([o({type:Boolean})],he.prototype,"primary",void 0),ie([o({type:Boolean})],he.prototype,"secondary",void 0),ie([o({type:Boolean})],he.prototype,"unbounded",void 0),ie([o({type:Boolean})],he.prototype,"activated",void 0),ie([o({type:Boolean})],he.prototype,"selected",void 0),ie([o({type:Boolean})],he.prototype,"disabled",void 0),ie([n()],he.prototype,"hovered",void 0),ie([n()],he.prototype,"focused",void 0),ie([n()],he.prototype,"pressed",void 0),ie([n()],he.prototype,"rippling",void 0),ie([n()],he.prototype,"rippleSize",void 0),ie([n()],he.prototype,"originX",void 0),ie([n()],he.prototype,"originY",void 0),ie([r(".ft-ripple")],he.prototype,"ripple",void 0),ie([r(".ft-ripple--effect")],he.prototype,"rippleEffect",void 0),p("ft-ripple")(he);var ce=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const de=ht.create("--ft-tooltip-distance","SIZE","4px"),fe=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),ue=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ye=ht.create("--ft-tooltip-z-index","NUMBER","1"),ge=ht.external(dt.borderRadiusS,"Design system");class ve extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
|
|
352
355
|
<div part="container"
|
|
353
356
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
354
357
|
@mouseenter=${this.onHover}
|
|
@@ -363,7 +366,7 @@ const Qe=We(class extends He{constructor(t){var e;if(super(t),t.type!==Ie||"clas
|
|
|
363
366
|
</div>
|
|
364
367
|
<slot></slot>
|
|
365
368
|
</div>
|
|
366
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const
|
|
369
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ve.elementDefinitions={"ft-typography":Pi},ve.styles=y`
|
|
367
370
|
.ft-tooltip--container {
|
|
368
371
|
display: block;
|
|
369
372
|
position: relative;
|
|
@@ -381,27 +384,27 @@ const Qe=We(class extends He{constructor(t){var e;if(super(t),t.type!==Ie||"clas
|
|
|
381
384
|
width: max-content;
|
|
382
385
|
max-width: 150px;
|
|
383
386
|
text-align: center;
|
|
384
|
-
padding: ${
|
|
385
|
-
z-index: ${
|
|
387
|
+
padding: ${de};
|
|
388
|
+
z-index: ${ye};
|
|
386
389
|
}
|
|
387
390
|
|
|
388
391
|
.ft-tooltip--content {
|
|
389
392
|
padding: 4px 8px;
|
|
390
|
-
border-radius: ${
|
|
391
|
-
background-color: ${
|
|
392
|
-
color: ${
|
|
393
|
+
border-radius: ${ge};
|
|
394
|
+
background-color: ${ue};
|
|
395
|
+
color: ${fe};
|
|
393
396
|
top: -500px;
|
|
394
397
|
left: -500px;
|
|
395
398
|
position: relative;
|
|
396
399
|
word-break: break-word;
|
|
397
400
|
}
|
|
398
|
-
`,
|
|
401
|
+
`,ce([o()],ve.prototype,"text",void 0),ce([o({type:Boolean})],ve.prototype,"manual",void 0),ce([o({type:Boolean})],ve.prototype,"inline",void 0),ce([o({type:Number})],ve.prototype,"delay",void 0),ce([o()],ve.prototype,"position",void 0),ce([
|
|
399
402
|
/**
|
|
400
403
|
* @license
|
|
401
404
|
* Copyright 2017 Google LLC
|
|
402
405
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
403
406
|
*/
|
|
404
|
-
function(t,e
|
|
407
|
+
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ve.prototype,"slotNodes",void 0),ce([r(".ft-tooltip--container")],ve.prototype,"container",void 0),ce([r("slot")],ve.prototype,"target",void 0),ce([r(".ft-tooltip")],ve.prototype,"tooltip",void 0),ce([r(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0),ce([n()],ve.prototype,"visible",void 0),p("ft-tooltip")(ve);const xe={color:ht.extend("--ft-loader-color",dt.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class be extends ut{static get styles(){return y`
|
|
405
408
|
:host {
|
|
406
409
|
line-height: 0;
|
|
407
410
|
}
|
|
@@ -410,8 +413,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
410
413
|
display: inline-block;
|
|
411
414
|
position: relative;
|
|
412
415
|
|
|
413
|
-
width: ${
|
|
414
|
-
height: ${
|
|
416
|
+
width: ${xe.size};
|
|
417
|
+
height: ${xe.size};
|
|
415
418
|
}
|
|
416
419
|
|
|
417
420
|
.ft-loader div {
|
|
@@ -420,7 +423,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
420
423
|
width: 25%;
|
|
421
424
|
height: 25%;
|
|
422
425
|
border-radius: 50%;
|
|
423
|
-
background: ${
|
|
426
|
+
background: ${xe.color};
|
|
424
427
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
425
428
|
}
|
|
426
429
|
|
|
@@ -467,7 +470,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
467
470
|
transform: translate(0, 0);
|
|
468
471
|
}
|
|
469
472
|
100% {
|
|
470
|
-
transform: translate(calc(0.35 * ${
|
|
473
|
+
transform: translate(calc(0.35 * ${xe.size}), 0);
|
|
471
474
|
}
|
|
472
475
|
}
|
|
473
476
|
`}render(){return W`
|
|
@@ -477,7 +480,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
477
480
|
<div></div>
|
|
478
481
|
<div></div>
|
|
479
482
|
</div>
|
|
480
|
-
`}}p("ft-loader")(
|
|
483
|
+
`}}p("ft-loader")(be);var me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const we=ht.extend("--ft-button-color",dt.colorPrimary),$e={backgroundColor:ht.extend("--ft-button-background-color",dt.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",dt.borderRadiusL),color:we,fontSize:ht.extend("--ft-button-font-size",Mi.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",we),opacityDisabled:ht.external(dt.colorOpacityDisabled,"Design system")},Oe=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",dt.colorOnPrimary)),Se={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",dt.colorPrimary)),color:Oe,rippleColor:ht.extend("--ft-button-primary-ripple-color",Oe)},ke=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",dt.borderRadiusM));class Ce extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[yt,y`
|
|
481
484
|
:host {
|
|
482
485
|
display: inline-block;
|
|
483
486
|
max-width: 100%;
|
|
@@ -488,7 +491,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
488
491
|
box-shadow: 0px 0px 0px transparent;
|
|
489
492
|
border: 0px solid transparent;
|
|
490
493
|
text-shadow: 0px 0px 0px transparent;
|
|
491
|
-
font-size:
|
|
494
|
+
font-size: 16px;
|
|
492
495
|
}
|
|
493
496
|
|
|
494
497
|
button:hover {
|
|
@@ -517,18 +520,18 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
517
520
|
border: none;
|
|
518
521
|
pointer-events: auto;
|
|
519
522
|
|
|
520
|
-
--ft-button-internal-font-size: ${
|
|
523
|
+
--ft-button-internal-font-size: ${$e.fontSize};
|
|
521
524
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
522
|
-
--ft-button-internal-color: ${
|
|
523
|
-
${ct(
|
|
525
|
+
--ft-button-internal-color: ${$e.color};
|
|
526
|
+
${ct(Gi.size,$e.iconSize)};
|
|
524
527
|
--ft-button-internal-vertical-padding: 6px;
|
|
525
528
|
--ft-button-internal-horizontal-padding: 8px;
|
|
526
|
-
${ct(
|
|
527
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
529
|
+
${ct(oe.color,$e.rippleColor)};
|
|
530
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${$e.iconSize});
|
|
528
531
|
|
|
529
|
-
border-radius: ${
|
|
532
|
+
border-radius: ${$e.borderRadius};
|
|
530
533
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
531
|
-
background-color: ${
|
|
534
|
+
background-color: ${$e.backgroundColor};
|
|
532
535
|
color: var(--ft-button-internal-color);
|
|
533
536
|
-webkit-mask-image: radial-gradient(white, black);
|
|
534
537
|
}
|
|
@@ -540,7 +543,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
540
543
|
.ft-button--dense {
|
|
541
544
|
--ft-button-internal-vertical-padding: 2px;
|
|
542
545
|
--ft-button-internal-horizontal-padding: 4px;
|
|
543
|
-
border-radius: ${
|
|
546
|
+
border-radius: ${ke};
|
|
544
547
|
}
|
|
545
548
|
|
|
546
549
|
.ft-button--round {
|
|
@@ -549,13 +552,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
549
552
|
|
|
550
553
|
.ft-button[disabled] {
|
|
551
554
|
filter: grayscale(1);
|
|
552
|
-
opacity: ${
|
|
555
|
+
opacity: ${$e.opacityDisabled};
|
|
553
556
|
}
|
|
554
557
|
|
|
555
558
|
.ft-button.ft-button--primary {
|
|
556
|
-
background-color: ${
|
|
557
|
-
--ft-button-internal-color: ${
|
|
558
|
-
${ct(
|
|
559
|
+
background-color: ${Se.backgroundColor};
|
|
560
|
+
--ft-button-internal-color: ${Se.color};
|
|
561
|
+
${ct(oe.color,Se.rippleColor)};
|
|
559
562
|
}
|
|
560
563
|
|
|
561
564
|
.ft-button.ft-button--outlined {
|
|
@@ -574,8 +577,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
574
577
|
text-overflow: ellipsis;
|
|
575
578
|
display: block;
|
|
576
579
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
577
|
-
${ct(
|
|
578
|
-
${ct(
|
|
580
|
+
${ct(Mi.fontSize,"var(--ft-button-internal-font-size)")};
|
|
581
|
+
${ct(Mi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
579
582
|
}
|
|
580
583
|
|
|
581
584
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -608,12 +611,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
608
611
|
}
|
|
609
612
|
|
|
610
613
|
ft-loader {
|
|
611
|
-
${ct(
|
|
612
|
-
${ct(
|
|
614
|
+
${ct(xe.size,$e.iconSize)};
|
|
615
|
+
${ct(xe.color,"var(--ft-button-internal-color)")};
|
|
613
616
|
}
|
|
614
617
|
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":bt,"ft-no-text-select":!0};return this.addTooltip(W`
|
|
615
618
|
<button part="button"
|
|
616
|
-
class="${
|
|
619
|
+
class="${te(t)}"
|
|
617
620
|
aria-label="${this.getLabel()}"
|
|
618
621
|
?disabled=${this.isDisabled()}>
|
|
619
622
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -633,14 +636,14 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
633
636
|
</ft-tooltip>
|
|
634
637
|
`}resolveIcon(){return this.loading?W`
|
|
635
638
|
<ft-loader></ft-loader> `:this.icon?W`
|
|
636
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:K}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}}
|
|
639
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:K}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}}Ce.elementDefinitions={"ft-ripple":he,"ft-tooltip":ve,"ft-typography":Pi,"ft-icon":Qi,"ft-loader":be},me([o({type:Boolean})],Ce.prototype,"primary",void 0),me([o({type:Boolean})],Ce.prototype,"outlined",void 0),me([o({type:Boolean})],Ce.prototype,"disabled",void 0),me([o({type:Boolean})],Ce.prototype,"dense",void 0),me([o({type:Boolean})],Ce.prototype,"round",void 0),me([o({type:String})],Ce.prototype,"label",void 0),me([o({type:String})],Ce.prototype,"icon",void 0),me([o({type:Boolean})],Ce.prototype,"trailingIcon",void 0),me([o({type:Boolean})],Ce.prototype,"loading",void 0),me([o({type:String})],Ce.prototype,"tooltipPosition",void 0),me([r(".ft-button")],Ce.prototype,"button",void 0),me([r(".ft-button--label slot")],Ce.prototype,"slottedContent",void 0),p("ft-button")(Ce);var Ne=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ee={zIndex:ht.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:ht.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:ht.create("--ft-dialog-height","SIZE","unset"),width:ht.create("--ft-dialog-width","SIZE","unset"),minWidth:ht.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:ht.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:ht.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:ht.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:ht.external(dt.colorSurface,"Design system"),headingColor:ht.external(dt.colorOnSurfaceMedium,"Design system"),borderRadiusS:ht.external(dt.borderRadiusS,"Design system"),elevation24:ht.external(dt.elevation24,"Design system")};class Re extends ut{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.heading="",this.icon=""}static get styles(){return y`
|
|
637
640
|
.ft-dialog {
|
|
638
641
|
position: fixed;
|
|
639
642
|
top: 0;
|
|
640
643
|
right: 0;
|
|
641
644
|
bottom: 0;
|
|
642
645
|
left: 0;
|
|
643
|
-
z-index: ${
|
|
646
|
+
z-index: ${Ee.zIndex};
|
|
644
647
|
|
|
645
648
|
display: flex;
|
|
646
649
|
flex-direction: column;
|
|
@@ -660,7 +663,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
660
663
|
height: 100%;
|
|
661
664
|
width: 100%;
|
|
662
665
|
|
|
663
|
-
background-color: ${
|
|
666
|
+
background-color: ${Ee.overlayBackgroundColor};
|
|
664
667
|
|
|
665
668
|
}
|
|
666
669
|
|
|
@@ -669,20 +672,20 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
669
672
|
display: flex;
|
|
670
673
|
flex-direction: column;
|
|
671
674
|
|
|
672
|
-
width: ${
|
|
673
|
-
height: ${
|
|
675
|
+
width: ${Ee.width};
|
|
676
|
+
height: ${Ee.height};
|
|
674
677
|
max-width: 95vw;
|
|
675
678
|
max-height: 95vh;
|
|
676
|
-
min-width: ${
|
|
679
|
+
min-width: ${Ee.minWidth};
|
|
677
680
|
|
|
678
|
-
padding-top: ${
|
|
679
|
-
padding-right: ${
|
|
680
|
-
padding-left: ${
|
|
681
|
+
padding-top: ${Ee.paddingTop};
|
|
682
|
+
padding-right: ${Ee.paddingSide};
|
|
683
|
+
padding-left: ${Ee.paddingSide};
|
|
681
684
|
|
|
682
|
-
background-color: ${
|
|
685
|
+
background-color: ${Ee.colorSurface};
|
|
683
686
|
|
|
684
|
-
border-radius: ${
|
|
685
|
-
box-shadow: ${
|
|
687
|
+
border-radius: ${Ee.borderRadiusS};
|
|
688
|
+
box-shadow: ${Ee.elevation24};
|
|
686
689
|
}
|
|
687
690
|
|
|
688
691
|
.ft-dialog-content {
|
|
@@ -696,11 +699,11 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
696
699
|
margin-bottom: 20px;
|
|
697
700
|
gap: 8px;
|
|
698
701
|
|
|
699
|
-
color: ${
|
|
702
|
+
color: ${Ee.headingColor};
|
|
700
703
|
}
|
|
701
704
|
|
|
702
705
|
.ft-dialog-buttons {
|
|
703
|
-
padding-top: ${
|
|
706
|
+
padding-top: ${Ee.paddingButtons};
|
|
704
707
|
}
|
|
705
708
|
|
|
706
709
|
slot[name=buttons] {
|
|
@@ -717,7 +720,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
717
720
|
|
|
718
721
|
.ft-dialog-heading ft-button {
|
|
719
722
|
margin-left: auto;
|
|
720
|
-
${ct(
|
|
723
|
+
${ct($e.color,Ee.headingColor)};
|
|
721
724
|
}
|
|
722
725
|
|
|
723
726
|
`}render(){return this.opened?W`
|
|
@@ -741,4 +744,4 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
741
744
|
</div>
|
|
742
745
|
</div>
|
|
743
746
|
</div>
|
|
744
|
-
`:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}
|
|
747
|
+
`:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Re.elementDefinitions={"ft-typography":Pi,"ft-icon":Qi,"ft-button":Ce},Ne([o({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Re.prototype,"opened",void 0),Ne([o({type:Boolean})],Re.prototype,"closeOnEsc",void 0),Ne([o({type:Boolean})],Re.prototype,"closeOnClickOutside",void 0),Ne([o({type:Boolean})],Re.prototype,"closable",void 0),Ne([o({type:String})],Re.prototype,"heading",void 0),Ne([o({type:String})],Re.prototype,"icon",void 0),p("ft-dialog")(Re),t.FtDialog=Re,t.FtDialogCssVariables=Ee,t.default=Re,Object.defineProperty(t,"t",{value:!0})}({});
|