@fluid-topics/ft-notice 0.3.21 → 0.3.23
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-notice.min.js +112 -112
- package/package.json +5 -5
package/build/ft-notice.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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={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,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.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 c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(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 r{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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={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,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.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 c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(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 r{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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Et){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){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -30,40 +30,40 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
30
30
|
* Copyright 2021 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const r=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2019 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const s=window,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==l)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(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new h("string"==typeof t?t:t+"",void 0,l),f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new h(i,t,l)},d=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=s.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/;var
|
|
44
|
+
*/;var y;const x=window,g=x.trustedTypes,m=g?g.emptyScript:"",v=x.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(u(t))}else void 0!==t&&e.push(u(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 d(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=$){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:b).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:b;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var O
|
|
50
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:O}),(null!==(y=x.reactiveElementVersions)&&void 0!==y?y:x.reactiveElementVersions=[]).push("1.4.1");const N=window,E=N.trustedTypes,C=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,k=`<${M}>`,U=document,F=(t="")=>U.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,_=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,W=/"/g,B=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),I=new WeakMap,Z=U.createTreeWalker(U,129,null,!1),V=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=A;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===A?"!--"===l[1]?s=L:void 0!==l[1]?s=_:void 0!==l[2]?(B.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=P):void 0!==l[3]&&(s=P):s===P?">"===l[0]?(s=null!=n?n:A,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?P:'"'===l[3]?W:T):s===W||s===T?s=P:s===L||s===_?s=A:(s=P,n=void 0);const p=s===P&&t[e+1].startsWith("/>")?" ":"";r+=s===A?i+k:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+R+p):i+R+(-2===c?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=J.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Z.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(R)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?et:"@"===e[1]?it:Q})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(B.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],F()),Z.nextNode(),a.push({type:2,index:++n});o.append(t[e],F())}}}else if(8===o.nodeType)if(o.data===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,e){const i=U.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var n,r,s,a;if(e===K)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,o)),e}class X{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:U).importNode(i,!0);Z.currentNode=n;let r=Z.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new G(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ot(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Z.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{constructor(t,e,i,o){var n;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==K&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new X(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new J(t)),e}k(t){z(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 G(this.O(F()),this.O(F()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,o,n){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=q(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==K,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=q(this,o[i+s],e,s),a===K&&(a=this._$AH[s]),r||(r=!j(a)||a!==this._$AH[s]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const tt=E?E.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends Q{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=q(this,t,e,0))&&void 0!==i?i:H)===K)return;const o=this._$AH,n=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const nt=N.litHtmlPolyfillSupport;null==nt||nt(J,G),(null!==(S=N.litHtmlVersions)&&void 0!==S?S:N.litHtmlVersions=[]).push("2.4.0");
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
56
|
+
var rt,st;class at extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new G(e.insertBefore(F(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 K}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:at}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let o=t=>p(null!=t?t:i),n=f`var(${p(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>f`var(${p(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=f`var(${p(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>f`var(${p(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):p(null!=e?e:t.defaultValue),o=f`var(${p(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=>f`var(${p(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ht={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var
|
|
62
|
-
${t.map((t=>
|
|
61
|
+
*/var pt,ft,dt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ut 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 d(n,this.constructor.elementStyles),n}}}(at)){constructor(){super(...arguments),this.exportpartsDebouncer=new e(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
|
|
62
|
+
${t.map((t=>D`
|
|
63
63
|
<style>${t}</style>
|
|
64
64
|
`))}
|
|
65
65
|
${this.getTemplate()}
|
|
66
|
-
`}updated(t){super.updated(t),setTimeout((()=>{
|
|
66
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;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 c=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!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}dt([o()],ut.prototype,"exportpartsPrefix",void 0),dt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],ut.prototype,"exportpartsPrefixes",void 0),f`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -72,7 +72,7 @@ var nt,rt;class st extends ${constructor(){super(...arguments),this.renderOption
|
|
|
72
72
|
-ms-user-select: none;
|
|
73
73
|
user-select: none;
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,f`
|
|
76
76
|
.ft-word-wrap {
|
|
77
77
|
white-space: normal;
|
|
78
78
|
word-wrap: break-word;
|
|
@@ -84,30 +84,30 @@ var nt,rt;class st extends ${constructor(){super(...arguments),this.renderOption
|
|
|
84
84
|
-webkit-hyphens: auto;
|
|
85
85
|
hyphens: auto
|
|
86
86
|
}
|
|
87
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
87
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ft||ft.toString());
|
|
88
88
|
/**
|
|
89
89
|
* @license
|
|
90
90
|
* Copyright 2017 Google LLC
|
|
91
91
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
92
|
*/
|
|
93
|
-
const
|
|
93
|
+
const yt=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
94
94
|
/**
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright 2017 Google LLC
|
|
97
97
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
-
*/class
|
|
98
|
+
*/class gt extends xt{constructor(t){if(super(t),this.it=H,t.type!==yt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this._t=void 0,this.it=t;if(t===K)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}gt.directiveName="unsafeHTML",gt.resultType=1;const mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(gt);var vt,bt;!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=""}(vt||(vt={})),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=""}(bt||(bt={})),new Map([...["abw"].map((t=>[t,bt.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,bt.AUDIO])),...["avi"].map((t=>[t,bt.AVI])),...["chm","xhs"].map((t=>[t,bt.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,bt.CODE])),...["csv"].map((t=>[t,bt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,bt.DITA])),...["epub"].map((t=>[t,bt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,bt.EXCEL])),...["flac"].map((t=>[t,bt.FLAC])),...["gif"].map((t=>[t,bt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,bt.GZIP])),...["html","htm","xhtml"].map((t=>[t,bt.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,bt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,bt.JPEG])),...["json"].map((t=>[t,bt.JSON])),...["m4a","m4p"].map((t=>[t,bt.M4A])),...["mov","qt"].map((t=>[t,bt.MOV])),...["mp3"].map((t=>[t,bt.MP3])),...["mp4","m4v"].map((t=>[t,bt.MP4])),...["ogg","oga"].map((t=>[t,bt.OGG])),...["pdf","ps"].map((t=>[t,bt.PDF])),...["png"].map((t=>[t,bt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,bt.POWERPOINT])),...["rar"].map((t=>[t,bt.RAR])),...["stp"].map((t=>[t,bt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,bt.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,bt.VIDEO])),...["wav"].map((t=>[t,bt.WAV])),...["wma"].map((t=>[t,bt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,bt.WORD])),...["xml","xsl","rdf"].map((t=>[t,bt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,bt.YAML])),...["zip"].map((t=>[t,bt.ZIP]))]);const wt={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")},$t=f`
|
|
99
99
|
:host {
|
|
100
100
|
display: inline-block;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:host, i.ft-icon {
|
|
104
|
-
width: ${
|
|
105
|
-
height: ${
|
|
104
|
+
width: ${wt.size};
|
|
105
|
+
height: ${wt.size};
|
|
106
106
|
text-align: center;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
i.ft-icon {
|
|
110
|
-
font-size: ${
|
|
110
|
+
font-size: ${wt.size};
|
|
111
111
|
line-height: 1;
|
|
112
112
|
font-weight: normal;
|
|
113
113
|
text-transform: none;
|
|
@@ -118,145 +118,145 @@ const ut=2;class yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
118
118
|
text-rendering: auto;
|
|
119
119
|
-webkit-font-smoothing: antialiased;
|
|
120
120
|
-moz-osx-font-smoothing: grayscale;
|
|
121
|
-
vertical-align: ${
|
|
121
|
+
vertical-align: ${wt.verticalAlign};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.ft-icon--fluid-topics {
|
|
125
|
-
font-family: ${
|
|
125
|
+
font-family: ${wt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.ft-icon--file-format {
|
|
129
|
-
font-family: ${
|
|
129
|
+
font-family: ${wt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.ft-icon--material {
|
|
133
|
-
font-family: ${
|
|
133
|
+
font-family: ${wt.materialFontFamily}, "Material Icons", sans-serif;
|
|
134
134
|
}
|
|
135
|
-
`;var
|
|
135
|
+
`;var Ot;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ot||(Ot={}));var St=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Nt extends ut{constructor(){super(...arguments),this.variant=Ot.fluid_topics,this.resolvedIcon=H}render(){const t="material"!==this.variant||this.value;return D`
|
|
136
136
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
137
|
-
${
|
|
137
|
+
${mt(this.resolvedIcon)}
|
|
138
138
|
<slot ?hidden=${t}></slot>
|
|
139
139
|
</i>
|
|
140
|
-
`}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
|
|
140
|
+
`}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 Ot.file_format:this.resolvedIcon=null!==(t=bt[i.toUpperCase()])&&void 0!==t?t:i;break;case Ot.fluid_topics:this.resolvedIcon=null!==(e=vt[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||H}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Nt.elementDefinitions={},Nt.styles=$t,St([o()],Nt.prototype,"variant",void 0),St([o()],Nt.prototype,"value",void 0),St([function(t){return o({...t,state:!0})}
|
|
141
141
|
/**
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright 2017 Google LLC
|
|
144
144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
145
|
-
*/()],
|
|
145
|
+
*/()],Nt.prototype,"resolvedIcon",void 0),St([
|
|
146
146
|
/**
|
|
147
147
|
* @license
|
|
148
148
|
* Copyright 2017 Google LLC
|
|
149
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
150
|
*/
|
|
151
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],
|
|
151
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],Nt.prototype,"slottedContent",void 0),r("ft-icon")(Nt);
|
|
152
152
|
/**
|
|
153
153
|
* @license
|
|
154
154
|
* Copyright 2020 Google LLC
|
|
155
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
156
156
|
*/
|
|
157
|
-
const
|
|
157
|
+
const Et=Symbol.for(""),Ct=t=>{if((null==t?void 0:t.r)===Et)return null==t?void 0:t._$litStatic$},Rt=t=>({_$litStatic$:t,r:Et}),Mt=new Map,kt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=Ct(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Mt.get(t))&&(s.raw=s,Mt.set(t,e=s)),i=a}return t(e,...i)})(D);var Ut;!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"}(Ut||(Ut={}));const Ft=ct.extend("--ft-typography-font-family",ht.titleFont),jt=ct.extend("--ft-typography-font-family",ht.contentFont),zt={fontFamily:jt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},At=ct.extend("--ft-typography-title-font-family",Ft),Lt=ct.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),_t=ct.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Pt=ct.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),Tt=ct.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Wt=ct.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Bt=ct.extend("--ft-typography-title-dense-font-family",Ft),Dt=ct.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Kt=ct.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),Ht=ct.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),It=ct.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Zt=ct.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),Vt=ct.extend("--ft-typography-subtitle1-font-family",jt),Jt=ct.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),qt=ct.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Xt=ct.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Gt=ct.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),Qt=ct.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Yt=ct.extend("--ft-typography-subtitle2-font-family",jt),te=ct.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),ee=ct.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),ie=ct.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),oe=ct.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),ne=ct.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),re=ct.extend("--ft-typography-body1-font-family",jt),se=ct.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),ae=ct.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),le=ct.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),ce=ct.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),he=ct.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),pe=ct.extend("--ft-typography-body2-font-family",jt),fe=ct.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),de=ct.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),ue=ct.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),ye=ct.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),xe=ct.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit"),ge=ct.extend("--ft-typography-caption-font-family",jt),me=ct.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),ve=ct.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),be=ct.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),we=ct.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),$e=ct.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit"),Oe=ct.extend("--ft-typography-breadcrumb-font-family",jt),Se=ct.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),Ne=ct.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),Ee=ct.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),Ce=ct.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),Re=ct.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),Me=ct.extend("--ft-typography-overline-font-family",jt),ke=ct.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),Ue=ct.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),Fe=ct.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),je=ct.extend("--ft-typography-overline-line-height",zt.lineHeight,"1.6"),ze=ct.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),Ae=ct.extend("--ft-typography-button-font-family",jt),Le=ct.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),_e=ct.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),Pe=ct.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),Te=ct.extend("--ft-typography-button-line-height",zt.lineHeight,"1.15"),We=ct.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase"),Be=f`
|
|
158
158
|
.ft-typography--title {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
159
|
+
font-family: ${At};
|
|
160
|
+
font-size: ${Lt};
|
|
161
|
+
font-weight: ${_t};
|
|
162
|
+
letter-spacing: ${Pt};
|
|
163
|
+
line-height: ${Tt};
|
|
164
|
+
text-transform: ${Wt};
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,De=f`
|
|
167
167
|
.ft-typography--title-dense {
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
173
|
-
text-transform: ${
|
|
168
|
+
font-family: ${Bt};
|
|
169
|
+
font-size: ${Dt};
|
|
170
|
+
font-weight: ${Kt};
|
|
171
|
+
letter-spacing: ${Ht};
|
|
172
|
+
line-height: ${It};
|
|
173
|
+
text-transform: ${Zt};
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,Ke=f`
|
|
176
176
|
.ft-typography--subtitle1 {
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
177
|
+
font-family: ${Vt};
|
|
178
|
+
font-size: ${Jt};
|
|
179
|
+
font-weight: ${qt};
|
|
180
|
+
letter-spacing: ${Xt};
|
|
181
|
+
line-height: ${Gt};
|
|
182
|
+
text-transform: ${Qt};
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,He=f`
|
|
185
185
|
.ft-typography--subtitle2 {
|
|
186
|
-
font-family: ${
|
|
187
|
-
font-size: ${
|
|
188
|
-
font-weight: ${
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
186
|
+
font-family: ${Yt};
|
|
187
|
+
font-size: ${te};
|
|
188
|
+
font-weight: ${ee};
|
|
189
|
+
letter-spacing: ${ie};
|
|
190
|
+
line-height: ${oe};
|
|
191
|
+
text-transform: ${ne};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
`,
|
|
194
|
+
`,Ie=f`
|
|
195
195
|
.ft-typography--body1 {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
196
|
+
font-family: ${re};
|
|
197
|
+
font-size: ${se};
|
|
198
|
+
font-weight: ${ae};
|
|
199
|
+
letter-spacing: ${le};
|
|
200
|
+
line-height: ${ce};
|
|
201
|
+
text-transform: ${he};
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,Ze=f`
|
|
204
204
|
.ft-typography--body2 {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
205
|
+
font-family: ${pe};
|
|
206
|
+
font-size: ${fe};
|
|
207
|
+
font-weight: ${de};
|
|
208
|
+
letter-spacing: ${ue};
|
|
209
|
+
line-height: ${ye};
|
|
210
|
+
text-transform: ${xe};
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,Ve=f`
|
|
213
213
|
.ft-typography--caption {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
214
|
+
font-family: ${ge};
|
|
215
|
+
font-size: ${me};
|
|
216
|
+
font-weight: ${ve};
|
|
217
|
+
letter-spacing: ${be};
|
|
218
|
+
line-height: ${we};
|
|
219
|
+
text-transform: ${$e};
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,Je=f`
|
|
222
222
|
.ft-typography--breadcrumb {
|
|
223
|
-
font-family: ${
|
|
224
|
-
font-size: ${
|
|
225
|
-
font-weight: ${
|
|
226
|
-
letter-spacing: ${
|
|
227
|
-
line-height: ${
|
|
228
|
-
text-transform: ${
|
|
223
|
+
font-family: ${Oe};
|
|
224
|
+
font-size: ${Se};
|
|
225
|
+
font-weight: ${Ne};
|
|
226
|
+
letter-spacing: ${Ee};
|
|
227
|
+
line-height: ${Ce};
|
|
228
|
+
text-transform: ${Re};
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,qe=f`
|
|
231
231
|
.ft-typography--overline {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${
|
|
234
|
-
font-weight: ${
|
|
235
|
-
letter-spacing: ${
|
|
236
|
-
line-height: ${
|
|
237
|
-
text-transform: ${
|
|
232
|
+
font-family: ${Me};
|
|
233
|
+
font-size: ${ke};
|
|
234
|
+
font-weight: ${Ue};
|
|
235
|
+
letter-spacing: ${Fe};
|
|
236
|
+
line-height: ${je};
|
|
237
|
+
text-transform: ${ze};
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,Xe=f`
|
|
240
240
|
.ft-typography--button {
|
|
241
|
-
font-family: ${
|
|
242
|
-
font-size: ${
|
|
243
|
-
font-weight: ${
|
|
244
|
-
letter-spacing: ${
|
|
245
|
-
line-height: ${
|
|
246
|
-
text-transform: ${
|
|
241
|
+
font-family: ${Ae};
|
|
242
|
+
font-size: ${Le};
|
|
243
|
+
font-weight: ${_e};
|
|
244
|
+
letter-spacing: ${Pe};
|
|
245
|
+
line-height: ${Te};
|
|
246
|
+
text-transform: ${We};
|
|
247
247
|
}
|
|
248
|
-
`,
|
|
248
|
+
`,Ge=f`
|
|
249
249
|
.ft-typography {
|
|
250
250
|
vertical-align: inherit;
|
|
251
251
|
}
|
|
252
|
-
`;var
|
|
253
|
-
<${
|
|
252
|
+
`;var Qe=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ye extends ut{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?kt`
|
|
253
|
+
<${Rt(this.element)}
|
|
254
254
|
class="ft-typography ft-typography--${this.variant}">
|
|
255
255
|
<slot></slot>
|
|
256
|
-
</${
|
|
257
|
-
`:
|
|
256
|
+
</${Rt(this.element)}>
|
|
257
|
+
`:kt`
|
|
258
258
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
259
|
-
`}}
|
|
259
|
+
`}}Ye.styles=[Be,De,Ke,He,Ie,Ze,Ve,Je,qe,Xe,Ge],Qe([o()],Ye.prototype,"element",void 0),Qe([o()],Ye.prototype,"variant",void 0),r("ft-typography")(Ye);const ti={noticeColor:ct.extend("--ft-notice-color",ht.colorPrimary),noticeIconColor:ct.extend("--ft-notice-icon-color",ht.colorOnPrimary),borderRadius:ct.external(ht.borderRadiusS,"Design System")},ei=f`
|
|
260
260
|
.ft-notice {
|
|
261
261
|
display: inline-flex;
|
|
262
262
|
align-items: stretch;
|
|
@@ -264,28 +264,28 @@ const Nt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Nt)return null==t?void
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
ft-icon {
|
|
267
|
-
${
|
|
267
|
+
${ii=wt.size,oi="20px",p(`${ii.name}: ${oi}`)};
|
|
268
268
|
padding: 0 8px;
|
|
269
269
|
display: flex;
|
|
270
270
|
align-self: center;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.ft-icon {
|
|
274
|
-
color: ${
|
|
275
|
-
background-color: ${
|
|
274
|
+
color: ${ti.noticeIconColor};
|
|
275
|
+
background-color: ${ti.noticeColor};
|
|
276
276
|
display: flex;
|
|
277
277
|
align-items: center;
|
|
278
|
-
border-top-left-radius: ${
|
|
279
|
-
border-bottom-left-radius: ${
|
|
278
|
+
border-top-left-radius: ${ti.borderRadius};
|
|
279
|
+
border-bottom-left-radius: ${ti.borderRadius};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
.ft-notice-label {
|
|
283
283
|
padding: 8px;
|
|
284
|
-
border-top-right-radius: ${
|
|
285
|
-
border-bottom-right-radius: ${
|
|
286
|
-
border: 1px solid ${
|
|
284
|
+
border-top-right-radius: ${ti.borderRadius};
|
|
285
|
+
border-bottom-right-radius: ${ti.borderRadius};
|
|
286
|
+
border: 1px solid ${ti.noticeColor};
|
|
287
287
|
}
|
|
288
|
-
`;var
|
|
288
|
+
`;var ii,oi,ni=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ri extends ut{constructor(){super(...arguments),this.icon="info"}render(){return D`
|
|
289
289
|
<div class="ft-notice">
|
|
290
290
|
<div class="ft-icon">
|
|
291
291
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -294,4 +294,4 @@ const Nt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Nt)return null==t?void
|
|
|
294
294
|
<slot></slot>
|
|
295
295
|
</ft-typography>
|
|
296
296
|
</div>
|
|
297
|
-
`}}
|
|
297
|
+
`}}ri.elementDefinitions={"ft-icon":Nt,"ft-typography":Ye},ri.styles=ei,ni([o({type:String})],ri.prototype,"icon",void 0),r("ft-notice")(ri),t.FtNotice=ri,t.FtNoticeCssVariables=ti,t.styles=ei,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.23",
|
|
23
|
+
"@fluid-topics/ft-typography": "0.3.23",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.23",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "7fb0bb52d064423f63bfd9c36c5454d65aa890d6"
|
|
28
28
|
}
|