@fluid-topics/ft-radio 0.2.3 → 0.2.4
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-radio.inline-styles.js +132 -118
- package/build/ft-radio.light.js +69 -55
- package/build/ft-radio.min.js +130 -116
- package/package.json +5 -5
package/build/ft-radio.min.js
CHANGED
|
@@ -14,64 +14,64 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);d(s,l,a);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}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 e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(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=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||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 b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}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
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function s(t){return o({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s: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 s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function
|
|
37
|
+
*/;function n(t,e){return r({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}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/,
|
|
47
|
+
*/,c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),d=new Map;class f{constructor(t,e){if(this._$cssResult$=!0,e!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=d.get(this.cssText);return c&&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+"",p),y=(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 f(i,p)},g=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var
|
|
52
|
+
*/;var b;const m=window.trustedTypes,x=m?m.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?x: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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class C extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||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,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(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 g(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||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)}_$ES(t,e,i=S){var o,s;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:$.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(s=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==s?s:$.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){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,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$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._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var C
|
|
58
|
+
var k;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:C}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.2.2");const N=globalThis.trustedTypes,R=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,M="?"+E,U=`<${M}>`,F=document,A=(t="")=>F.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,T=/>/g,j=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,P=/"/g,W=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),V=new WeakMap,Z=F.createTreeWalker(F,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=D;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===D?"!--"===l[1]?n=z:void 0!==l[1]?n=T:void 0!==l[2]?(W.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=j):void 0!==l[3]&&(n=j):n===j?">"===l[0]?(n=null!=s?s:D,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?j:'"'===l[3]?P:_):n===P||n===_?n=j:n===z||n===T?n=D:(n=j,s=void 0);const p=n===j&&t[e+1].startsWith("/>")?" ":"";r+=n===D?i+U:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+E+p):i+E+(-2===h?(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!==R?R.createHTML(a):a,o]};class q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,h]=X(t,e);if(this.el=q.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<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?ot:Q})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(W.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Z.nextNode(),a.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:s}),t+=E.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var s,r,n,a;if(e===K)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=L(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,o)),e}class Y{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);Z.currentNode=s;let r=Z.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===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 st(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=Z.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=J(this,t,e),L(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==K&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return B(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&L(this._$AH)?this._$AA.nextSibling.data=t:this.S(F.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new Y(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new q(t)),e}A(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new G(this.M(A()),this.M(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=J(this,t,e,0),r=!L(t)||t!==this._$AH&&t!==K,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=J(this,o[i+n],e,n),a===K&&(a=this._$AH[n]),r||(r=!L(a)||a!==this._$AH[n]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const et=N?N.emptyScript:"";class it extends Q{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=J(this,t,e,0))&&void 0!==i?i:I)===K)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class st{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){J(this,t)}}const rt=window.litHtmlPolyfillSupport;
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var
|
|
64
|
+
var nt,at;null==rt||rt(q,G),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k:globalThis.litHtmlVersions=[]).push("2.1.3");class lt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new G(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return K}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:lt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.1.2");class ct{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,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,e,i){return new ct(t,e,void 0,i)}static extend(t,e,i){return new ct(t,e.category,e,i)}static external(t,e){return new ct(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}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,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const pt={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")};
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2021 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/class
|
|
70
|
-
${t.map((t=>
|
|
69
|
+
*/class dt 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 s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(s,this.constructor.elementStyles),s}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
|
|
70
|
+
${t.map((t=>H`
|
|
71
71
|
<style>${t}</style>
|
|
72
72
|
`))}
|
|
73
73
|
${this.getTemplate()}
|
|
74
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ft,
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ft,ut;y`
|
|
75
75
|
.ft-no-text-select {
|
|
76
76
|
-webkit-touch-callout: none;
|
|
77
77
|
-webkit-user-select: none;
|
|
@@ -80,19 +80,19 @@ var rt,nt;null==st||st(X,Y),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
80
80
|
-ms-user-select: none;
|
|
81
81
|
user-select: none;
|
|
82
82
|
}
|
|
83
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
83
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(ft=window.safari)||void 0===ft?void 0:ft.pushNotification)||void 0===ut||ut.toString());
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright 2017 Google LLC
|
|
87
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
88
|
*/
|
|
89
|
-
const
|
|
89
|
+
const yt=1;
|
|
90
90
|
/**
|
|
91
91
|
* @license
|
|
92
92
|
* Copyright 2018 Google LLC
|
|
93
93
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
94
|
*/
|
|
95
|
-
const
|
|
95
|
+
const gt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{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)}}{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const s=t.element.classList;this.st.forEach((t=>{t in e||(s.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return K}});var vt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const bt=ct.extend("--ft-ripple-color",pt.colorContent),mt=bt,xt=ct.extend("--ft-ripple-background-color",bt),wt=ct.external(pt.opacityContentOnSurfacePressed,"Design system"),$t=ct.external(pt.opacityContentOnSurfaceHover,"Design system"),Ot=ct.external(pt.opacityContentOnSurfaceFocused,"Design system"),St=ct.external(pt.opacityContentOnSurfaceSelected,"Design system"),Ct=ct.extend("--ft-ripple-color",pt.colorPrimary),kt=Ct,Nt=ct.extend("--ft-ripple-background-color",Ct),Rt=ct.extend("--ft-ripple-color",pt.colorSecondary),Et=Rt,Mt=ct.extend("--ft-ripple-background-color",Rt);class Ut extends dt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return H`
|
|
96
96
|
<style>
|
|
97
97
|
.ft-ripple .ft-ripple--effect,
|
|
98
98
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -105,11 +105,11 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
105
105
|
top: ${this.originY}px;
|
|
106
106
|
}
|
|
107
107
|
</style>
|
|
108
|
-
<div class="${
|
|
108
|
+
<div class="${gt(t)}">
|
|
109
109
|
<div class="ft-ripple--background"></div>
|
|
110
110
|
<div class="ft-ripple--effect"></div>
|
|
111
111
|
</div>
|
|
112
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled
|
|
112
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ut.elementDefinitions={},Ut.styles=y`
|
|
113
113
|
:host {
|
|
114
114
|
display: contents;
|
|
115
115
|
}
|
|
@@ -128,17 +128,30 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
128
128
|
.ft-ripple .ft-ripple--effect {
|
|
129
129
|
position: absolute;
|
|
130
130
|
opacity: 0;
|
|
131
|
-
background-color: ${vt};
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
.ft-ripple
|
|
135
|
-
|
|
133
|
+
.ft-ripple .ft-ripple--background {
|
|
134
|
+
background-color: ${xt};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ft-ripple .ft-ripple--effect {
|
|
136
138
|
background-color: ${mt};
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
.ft-ripple.ft-ripple--
|
|
141
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
142
|
+
background-color: ${Mt};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
146
|
+
background-color: ${Et};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
150
|
+
background-color: ${Nt};
|
|
151
|
+
}
|
|
152
|
+
|
|
140
153
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
141
|
-
background-color: ${
|
|
154
|
+
background-color: ${kt};
|
|
142
155
|
}
|
|
143
156
|
|
|
144
157
|
.ft-ripple .ft-ripple--background {
|
|
@@ -146,6 +159,7 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
146
159
|
left: 0;
|
|
147
160
|
height: 100%;
|
|
148
161
|
width: 100%;
|
|
162
|
+
transition: opacity 75ms linear;
|
|
149
163
|
}
|
|
150
164
|
|
|
151
165
|
.ft-ripple .ft-ripple--effect,
|
|
@@ -169,131 +183,131 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
169
183
|
}
|
|
170
184
|
|
|
171
185
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
172
|
-
opacity: ${
|
|
186
|
+
opacity: ${$t};
|
|
173
187
|
}
|
|
174
188
|
|
|
175
189
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
176
|
-
opacity: ${
|
|
190
|
+
opacity: ${St};
|
|
177
191
|
}
|
|
178
192
|
|
|
179
193
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
180
|
-
opacity: ${
|
|
194
|
+
opacity: ${Ot};
|
|
181
195
|
}
|
|
182
196
|
|
|
183
197
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
184
|
-
opacity: ${
|
|
198
|
+
opacity: ${wt};
|
|
185
199
|
transform: translate(-50%, -50%) scale(1);
|
|
186
200
|
}
|
|
187
|
-
`,
|
|
201
|
+
`,vt([o({type:Boolean})],Ut.prototype,"primary",void 0),vt([o({type:Boolean})],Ut.prototype,"secondary",void 0),vt([o({type:Boolean})],Ut.prototype,"unbounded",void 0),vt([o({type:Boolean})],Ut.prototype,"activated",void 0),vt([o({type:Boolean})],Ut.prototype,"selected",void 0),vt([o({type:Boolean})],Ut.prototype,"disabled",void 0),vt([s()],Ut.prototype,"hovered",void 0),vt([s()],Ut.prototype,"focused",void 0),vt([s()],Ut.prototype,"pressed",void 0),vt([s()],Ut.prototype,"rippling",void 0),vt([s()],Ut.prototype,"rippleSize",void 0),vt([s()],Ut.prototype,"originX",void 0),vt([s()],Ut.prototype,"originY",void 0),vt([n(".ft-ripple")],Ut.prototype,"ripple",void 0),vt([n(".ft-ripple--effect")],Ut.prototype,"rippleEffect",void 0),h("ft-ripple")(Ut);
|
|
188
202
|
/**
|
|
189
203
|
* @license
|
|
190
204
|
* Copyright 2020 Google LLC
|
|
191
205
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
192
206
|
*/
|
|
193
|
-
const
|
|
207
|
+
const Ft=t=>({_$litStatic$:t}),At=new Map,Lt=(t=>(e,...i)=>{var o;const s=i.length;let r,n;const a=[],l=[];let h,c=0,p=!1;for(;c<s;){for(h=e[c];c<s&&void 0!==(n=i[c],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)h+=r+e[++c],p=!0;l.push(n),a.push(h),c++}if(c===s&&a.push(e[s]),p){const t=a.join("$$lit$$");void 0===(e=At.get(t))&&(a.raw=a,At.set(t,e=a)),i=l}return t(e,...i)})(H);var Bt,Dt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Bt||(Bt={}));const zt=ct.extend("--ft-typography-font-family",pt.titleFont),Tt=ct.extend("--ft-typography-font-family",pt.contentFont),jt={fontFamily:Tt,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","SIZE","24px"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=ct.extend("--ft-typography-title-font-family",zt),Pt=ct.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Wt=ct.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),Ht=ct.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Kt=ct.extend("--ft-typography-title-line-height",jt.lineHeight,"24px"),It=ct.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),Vt=ct.extend("--ft-typography-title-dense-font-family",zt),Zt=ct.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Xt=ct.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),qt=ct.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Jt=ct.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"24px"),Yt=ct.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Gt=ct.extend("--ft-typography-subtitle1-font-family",Tt),Qt=ct.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),te=ct.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),ee=ct.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),ie=ct.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"24px"),oe=ct.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),se=ct.extend("--ft-typography-subtitle2-font-family",Tt),re=ct.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),ne=ct.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),ae=ct.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),le=ct.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"24px"),he=ct.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ce=ct.extend("--ft-typography-body1-font-family",Tt),pe=ct.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),de=ct.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),fe=ct.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),ue=ct.extend("--ft-typography-body1-line-height",jt.lineHeight,"24px"),ye=ct.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit"),ge=ct.extend("--ft-typography-body2-font-family",Tt),ve=ct.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),be=ct.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),me=ct.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),xe=ct.extend("--ft-typography-body2-line-height",jt.lineHeight,"20px"),we=ct.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit"),$e=ct.extend("--ft-typography-caption-font-family",Tt),Oe=ct.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),Se=ct.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),Ce=ct.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),ke=ct.extend("--ft-typography-caption-line-height",jt.lineHeight,"16px"),Ne=ct.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit"),Re=ct.extend("--ft-typography-breadcrumb-font-family",Tt),Ee=ct.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),Me=ct.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),Ue=ct.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),Fe=ct.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"16px"),Ae=ct.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),Le=ct.extend("--ft-typography-overline-font-family",Tt),Be=ct.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),De=ct.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),ze=ct.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),Te=ct.extend("--ft-typography-overline-line-height",jt.lineHeight,"16px"),je=ct.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),_e=ct.extend("--ft-typography-button-font-family",Tt),Pe=ct.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),We=ct.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),He=ct.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),Ke=ct.extend("--ft-typography-button-line-height",jt.lineHeight,"16px"),Ie=ct.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),Ve=y`
|
|
194
208
|
.ft-typography--title {
|
|
195
|
-
font-family: ${
|
|
196
|
-
font-size: ${
|
|
197
|
-
font-weight: ${
|
|
198
|
-
letter-spacing: ${
|
|
199
|
-
line-height: ${
|
|
200
|
-
text-transform: ${
|
|
209
|
+
font-family: ${_t};
|
|
210
|
+
font-size: ${Pt};
|
|
211
|
+
font-weight: ${Wt};
|
|
212
|
+
letter-spacing: ${Ht};
|
|
213
|
+
line-height: ${Kt};
|
|
214
|
+
text-transform: ${It};
|
|
201
215
|
}
|
|
202
|
-
`,
|
|
216
|
+
`,Ze=y`
|
|
203
217
|
.ft-typography--title-dense {
|
|
204
|
-
font-family: ${
|
|
205
|
-
font-size: ${
|
|
206
|
-
font-weight: ${
|
|
207
|
-
letter-spacing: ${
|
|
208
|
-
line-height: ${
|
|
209
|
-
text-transform: ${
|
|
218
|
+
font-family: ${Vt};
|
|
219
|
+
font-size: ${Zt};
|
|
220
|
+
font-weight: ${Xt};
|
|
221
|
+
letter-spacing: ${qt};
|
|
222
|
+
line-height: ${Jt};
|
|
223
|
+
text-transform: ${Yt};
|
|
210
224
|
}
|
|
211
|
-
`,
|
|
225
|
+
`,Xe=y`
|
|
212
226
|
.ft-typography--subtitle1 {
|
|
213
|
-
font-family: ${
|
|
214
|
-
font-size: ${
|
|
215
|
-
font-weight: ${
|
|
216
|
-
letter-spacing: ${
|
|
217
|
-
line-height: ${
|
|
218
|
-
text-transform: ${
|
|
227
|
+
font-family: ${Gt};
|
|
228
|
+
font-size: ${Qt};
|
|
229
|
+
font-weight: ${te};
|
|
230
|
+
letter-spacing: ${ee};
|
|
231
|
+
line-height: ${ie};
|
|
232
|
+
text-transform: ${oe};
|
|
219
233
|
}
|
|
220
|
-
`,
|
|
234
|
+
`,qe=y`
|
|
221
235
|
.ft-typography--subtitle2 {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
236
|
+
font-family: ${se};
|
|
237
|
+
font-size: ${re};
|
|
238
|
+
font-weight: ${ne};
|
|
239
|
+
letter-spacing: ${ae};
|
|
240
|
+
line-height: ${le};
|
|
241
|
+
text-transform: ${he};
|
|
228
242
|
}
|
|
229
243
|
|
|
230
|
-
`,
|
|
244
|
+
`,Je=y`
|
|
231
245
|
.ft-typography--body1 {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${se};
|
|
234
|
-
font-weight: ${re};
|
|
235
|
-
letter-spacing: ${ne};
|
|
236
|
-
line-height: ${ae};
|
|
237
|
-
text-transform: ${le};
|
|
238
|
-
}
|
|
239
|
-
`,Ke=u`
|
|
240
|
-
.ft-typography--body2 {
|
|
241
|
-
font-family: ${he};
|
|
246
|
+
font-family: ${ce};
|
|
242
247
|
font-size: ${pe};
|
|
243
|
-
font-weight: ${
|
|
248
|
+
font-weight: ${de};
|
|
244
249
|
letter-spacing: ${fe};
|
|
245
|
-
line-height: ${
|
|
246
|
-
text-transform: ${
|
|
250
|
+
line-height: ${ue};
|
|
251
|
+
text-transform: ${ye};
|
|
252
|
+
}
|
|
253
|
+
`,Ye=y`
|
|
254
|
+
.ft-typography--body2 {
|
|
255
|
+
font-family: ${ge};
|
|
256
|
+
font-size: ${ve};
|
|
257
|
+
font-weight: ${be};
|
|
258
|
+
letter-spacing: ${me};
|
|
259
|
+
line-height: ${xe};
|
|
260
|
+
text-transform: ${we};
|
|
247
261
|
}
|
|
248
|
-
`,
|
|
262
|
+
`,Ge=y`
|
|
249
263
|
.ft-typography--caption {
|
|
250
|
-
font-family: ${
|
|
251
|
-
font-size: ${
|
|
252
|
-
font-weight: ${
|
|
253
|
-
letter-spacing: ${
|
|
254
|
-
line-height: ${
|
|
255
|
-
text-transform: ${
|
|
264
|
+
font-family: ${$e};
|
|
265
|
+
font-size: ${Oe};
|
|
266
|
+
font-weight: ${Se};
|
|
267
|
+
letter-spacing: ${Ce};
|
|
268
|
+
line-height: ${ke};
|
|
269
|
+
text-transform: ${Ne};
|
|
256
270
|
}
|
|
257
|
-
`,
|
|
271
|
+
`,Qe=y`
|
|
258
272
|
.ft-typography--breadcrumb {
|
|
259
|
-
font-family: ${
|
|
260
|
-
font-size: ${
|
|
261
|
-
font-weight: ${
|
|
262
|
-
letter-spacing: ${
|
|
263
|
-
line-height: ${
|
|
264
|
-
text-transform: ${
|
|
273
|
+
font-family: ${Re};
|
|
274
|
+
font-size: ${Ee};
|
|
275
|
+
font-weight: ${Me};
|
|
276
|
+
letter-spacing: ${Ue};
|
|
277
|
+
line-height: ${Fe};
|
|
278
|
+
text-transform: ${Ae};
|
|
265
279
|
}
|
|
266
|
-
`,
|
|
280
|
+
`,ti=y`
|
|
267
281
|
.ft-typography--overline {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
282
|
+
font-family: ${Le};
|
|
283
|
+
font-size: ${Be};
|
|
284
|
+
font-weight: ${De};
|
|
285
|
+
letter-spacing: ${ze};
|
|
286
|
+
line-height: ${Te};
|
|
287
|
+
text-transform: ${je};
|
|
274
288
|
}
|
|
275
|
-
`,
|
|
289
|
+
`,ei=y`
|
|
276
290
|
.ft-typography--button {
|
|
277
|
-
font-family: ${
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
281
|
-
line-height: ${
|
|
282
|
-
text-transform: ${
|
|
291
|
+
font-family: ${_e};
|
|
292
|
+
font-size: ${Pe};
|
|
293
|
+
font-weight: ${We};
|
|
294
|
+
letter-spacing: ${He};
|
|
295
|
+
line-height: ${Ke};
|
|
296
|
+
text-transform: ${Ie};
|
|
283
297
|
}
|
|
284
|
-
`;class
|
|
285
|
-
<${
|
|
298
|
+
`;class ii extends dt{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?Lt`
|
|
299
|
+
<${Ft(this.element)}
|
|
286
300
|
class="ft-typography ft-typography--${this.variant}">
|
|
287
301
|
<slot></slot>
|
|
288
|
-
</${
|
|
289
|
-
`:
|
|
302
|
+
</${Ft(this.element)}>
|
|
303
|
+
`:Lt`
|
|
290
304
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
291
|
-
`}}
|
|
305
|
+
`}}ii.styles=[Ve,Ze,Xe,qe,Je,Ye,Ge,Qe,ti,ei,y`
|
|
292
306
|
.ft-typography {
|
|
293
307
|
vertical-align: inherit;
|
|
294
308
|
}
|
|
295
|
-
`],
|
|
296
|
-
<div class="${
|
|
309
|
+
`],Dt([o()],ii.prototype,"element",void 0),Dt([o()],ii.prototype,"variant",void 0),h("ft-typography")(ii);var oi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const si={textColor:ct.extend("--ft-radio-text-color",pt.colorOnSurfaceHigh),colorPrimary:ct.external(pt.colorPrimary,"Design system"),colorOnPrimary:ct.external(pt.colorOnPrimary,"Design system"),borderColor:ct.extend("--ft-radio-border-color",pt.colorOnSurfaceMedium),colorOnSurfaceDisabled:ct.external(pt.colorOnSurfaceDisabled,"Design system")};class ri extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class ni extends dt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return H`
|
|
310
|
+
<div class="${gt(t)}">
|
|
297
311
|
<div class="ft-radio--box-container">
|
|
298
312
|
<input id="radio-button"
|
|
299
313
|
type="radio"
|
|
@@ -317,14 +331,14 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
317
331
|
</ft-typography>
|
|
318
332
|
</label>
|
|
319
333
|
</div>
|
|
320
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
334
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ri(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ri(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ni.elementDefinitions={"ft-ripple":Ut,"ft-typography":ii},ni.styles=y`
|
|
321
335
|
* {
|
|
322
336
|
box-sizing: border-box;
|
|
323
337
|
}
|
|
324
338
|
|
|
325
339
|
.ft-radio {
|
|
326
340
|
box-sizing: border-box;
|
|
327
|
-
color: ${
|
|
341
|
+
color: ${si.textColor};
|
|
328
342
|
|
|
329
343
|
display: inline-flex;
|
|
330
344
|
align-items: center;
|
|
@@ -332,7 +346,7 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
332
346
|
}
|
|
333
347
|
|
|
334
348
|
.ft-radio--disabled {
|
|
335
|
-
color: ${
|
|
349
|
+
color: ${si.colorOnSurfaceDisabled};
|
|
336
350
|
}
|
|
337
351
|
|
|
338
352
|
input {
|
|
@@ -355,7 +369,7 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
355
369
|
}
|
|
356
370
|
|
|
357
371
|
.ft-radio--box {
|
|
358
|
-
border: 2px solid ${
|
|
372
|
+
border: 2px solid ${si.borderColor};
|
|
359
373
|
border-radius: 50%;
|
|
360
374
|
|
|
361
375
|
display: flex;
|
|
@@ -368,7 +382,7 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
368
382
|
|
|
369
383
|
.ft-radio--box:after {
|
|
370
384
|
content: " ";
|
|
371
|
-
background-color: ${
|
|
385
|
+
background-color: ${si.colorPrimary};
|
|
372
386
|
|
|
373
387
|
border-radius: 50%;
|
|
374
388
|
|
|
@@ -380,7 +394,7 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
380
394
|
}
|
|
381
395
|
|
|
382
396
|
.ft-radio--checked .ft-radio--box {
|
|
383
|
-
border-color: ${
|
|
397
|
+
border-color: ${si.colorPrimary};
|
|
384
398
|
}
|
|
385
399
|
|
|
386
400
|
|
|
@@ -389,21 +403,21 @@ const Ct=t=>({_$litStatic$:t}),Nt=new Map,Rt=(t=>(e,...i)=>{var o;const s=i.leng
|
|
|
389
403
|
}
|
|
390
404
|
|
|
391
405
|
.ft-radio--disabled .ft-radio--box {
|
|
392
|
-
border-color: ${
|
|
406
|
+
border-color: ${si.colorOnSurfaceDisabled};
|
|
393
407
|
background-color: transparent;
|
|
394
408
|
}
|
|
395
409
|
|
|
396
410
|
.ft-radio--disabled .ft-radio--box:after {
|
|
397
|
-
background-color: ${
|
|
411
|
+
background-color: ${si.colorOnSurfaceDisabled};
|
|
398
412
|
}
|
|
399
|
-
`,
|
|
413
|
+
`,oi([o()],ni.prototype,"value",void 0),oi([o()],ni.prototype,"name",void 0),oi([o({type:Boolean})],ni.prototype,"checked",void 0),oi([o({type:Boolean})],ni.prototype,"disabled",void 0),oi([n(".ft-radio")],ni.prototype,"container",void 0),oi([n("ft-ripple")],ni.prototype,"ripple",void 0),oi([n("input")],ni.prototype,"input",void 0);var ai=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class li extends dt{constructor(){super(...arguments),this.name=""}render(){return H`
|
|
400
414
|
<slot @slotchange=${this.onSlotChange}
|
|
401
415
|
@change=${this.onChange}
|
|
402
416
|
@keydown=${this.onKeyDown}
|
|
403
417
|
@focusin=${this.onFocusIn}
|
|
404
418
|
></slot>
|
|
405
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
419
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}li.elementDefinitions={},li.styles=y`
|
|
406
420
|
:host {
|
|
407
421
|
display: contents;
|
|
408
422
|
}
|
|
409
|
-
`,
|
|
423
|
+
`,ai([o()],li.prototype,"name",void 0),ai([function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}()],li.prototype,"radioButtons",void 0),h("ft-radio")(ni),h("ft-radio-group")(li),t.FtRadio=ni,t.FtRadioChangeEvent=ri,t.FtRadioCssVariables=si,t.FtRadioGroup=li,Object.defineProperty(t,"t",{value:!0})}({});
|