@fluid-topics/ft-radio 0.2.16 → 0.2.19
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.min.js +112 -111
- package/package.json +5 -5
- package/build/ft-radio.inline-styles.js +0 -428
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -6
package/build/ft-radio.min.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,r=new WeakMap,s=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,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(n.set(r,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),r.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,r=o._getDefinition(i);return r?u(e,r):s.set(e,o),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,r),e.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);r.call(this,o),e.call(this,o,t,null)}else r.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),r.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(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,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==r.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),r=i.get(o)||[];this[+e]=t,r.push(t),i.set(o,r)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),i=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Lt){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,49 +29,50 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const s=({finisher:t,descriptor:
|
|
32
|
+
*/const s=({finisher:t,descriptor:i})=>(e,o)=>{var r;if(void 0===o){const o=null!==(r=e.originalKey)&&void 0!==r?r:e.key,s=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(s.finisher=function(i){t(i,o)}),s}{const r=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(r,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function n(t,
|
|
37
|
+
*/;function n(t,i){return s({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
|
|
47
|
+
*/
|
|
48
|
+
const 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,i){if(this._$cssResult$=!0,i!==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,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new f(e,p)},g=(t,i)=>{c?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
|
|
48
49
|
/**
|
|
49
50
|
* @license
|
|
50
51
|
* Copyright 2017 Google LLC
|
|
51
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var b;const m=window.trustedTypes,x=m?m.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,
|
|
53
|
+
*/;var b;const m=window.trustedTypes,x=m?m.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,i){switch(i){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class C extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const r=this[t];this[i]=o,this.requestUpdate(t,r,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(v(t))}else void 0!==t&&i.push(v(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=S){var o,r;const s=this.constructor._$Eh(t,e);if(void 0!==s&&!0===e.reflect){const n=(null!==(r=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:$.toAttribute)(i,e.type);this._$Ei=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Ei=null}}_$AK(t,i){var e,o,r;const s=this.constructor,n=s._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=s.getPropertyOptions(n),a=t.converter,l=null!==(r=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==r?r:$.fromAttribute;this._$Ei=n,this[n]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
53
54
|
/**
|
|
54
55
|
* @license
|
|
55
56
|
* Copyright 2017 Google LLC
|
|
56
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
58
|
*/
|
|
58
|
-
var
|
|
59
|
+
var N;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.3.2");const k=globalThis.trustedTypes,R=k?k.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,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,z=/>/g,T=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,P=/'/g,_=/"/g,W=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),K=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),V=new WeakMap,Z=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=j;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(n.lastIndex=c,l=n.exec(e),null!==l);)c=n.lastIndex,n===j?"!--"===l[1]?n=D:void 0!==l[1]?n=z:void 0!==l[2]?(W.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=T):void 0!==l[3]&&(n=T):n===T?">"===l[0]?(n=null!=r?r:j,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?T:'"'===l[3]?_:P):n===_||n===P?n=T:n===D||n===z?n=j:(n=T,r=void 0);const p=n===T&&t[i+1].startsWith("/>")?" ":"";s+=n===j?e+U:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+E+p):e+E+(-2===h?(o.push(void 0),i):p)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,h]=J(t,i);if(this.el=X.createElement(l,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(E)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(E),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else a.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(E),i=t.length-1;if(i>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Z.nextNode(),a.push({type:2,index:++r});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function q(t,i,e=t,o){var r,s,n,a;if(i===K)return i;let l=void 0!==o?null===(r=e._$Cl)||void 0===r?void 0:r[o]:e._$Cu;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(n=(a=e)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=q(t,l._$AS(t,i.values),l,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);Z.currentNode=r;let s=Z.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let i;2===l.type?i=new G(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new rt(s,this,t)),this.v.push(i),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=Z.nextNode(),n++)}return r}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var r;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=q(this,t,i),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.k(t):(t=>{var i;return B(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&L(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.m(e);else{const t=new Y(r,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new X(t)),i}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new G(this.M(A()),this.M(A()),this,this.options)):e=i[o],e._$AI(r),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,r){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const r=this.strings;let s=!1;if(void 0===r)t=q(this,t,i,0),s=!L(t)||t!==this._$AH&&t!==K,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=q(this,o[e+n],i,n),a===K&&(a=this._$AH[n]),s||(s=!L(a)||a!==this._$AH[n]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.C(t)}C(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}C(t){this.element[this.name]=t===I?void 0:t}}const it=k?k.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=q(this,t,i,0))&&void 0!==e?e:I)===K)return;const o=this._$AH,r=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const st=window.litHtmlPolyfillSupport;
|
|
59
60
|
/**
|
|
60
61
|
* @license
|
|
61
62
|
* Copyright 2017 Google LLC
|
|
62
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
64
|
*/
|
|
64
|
-
var nt,at;null==st||st(
|
|
65
|
+
var nt,at;null==st||st(X,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.4");class lt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,r;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new G(i.insertBefore(A(),t),t,void 0,null!=e?e:{})}return n._$AI(t),n})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return 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.2.0");class ct{constructor(t,i,e,o,r){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=r,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new ct(t,i,void 0,e)}static extend(t,i,e){return new ct(t,i.category,i,e)}static external(t,i){return new ct(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return y`var(${u(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):u(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}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
66
|
/**
|
|
66
67
|
* @license
|
|
67
68
|
* Copyright 2021 Google LLC
|
|
68
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/
|
|
70
|
+
*/var dt,ft,ut=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class yt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(r,this.constructor.elementStyles),r}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
|
|
70
71
|
${t.map((t=>H`
|
|
71
72
|
<style>${t}</style>
|
|
72
73
|
`))}
|
|
73
74
|
${this.getTemplate()}
|
|
74
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],e=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}ut([o()],yt.prototype,"exportpartsPrefix",void 0),ut([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0),y`
|
|
75
76
|
.ft-no-text-select {
|
|
76
77
|
-webkit-touch-callout: none;
|
|
77
78
|
-webkit-user-select: none;
|
|
@@ -80,19 +81,19 @@ var nt,at;null==st||st(q,G),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k
|
|
|
80
81
|
-ms-user-select: none;
|
|
81
82
|
user-select: none;
|
|
82
83
|
}
|
|
83
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
84
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===ft||ft.toString());
|
|
84
85
|
/**
|
|
85
86
|
* @license
|
|
86
87
|
* Copyright 2017 Google LLC
|
|
87
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
89
|
*/
|
|
89
|
-
const
|
|
90
|
+
const gt=1;
|
|
90
91
|
/**
|
|
91
92
|
* @license
|
|
92
93
|
* Copyright 2018 Google LLC
|
|
93
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
95
|
*/
|
|
95
|
-
const
|
|
96
|
+
const vt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}{constructor(t){var i;if(super(t),t.type!==gt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.et.add(t);return this.render(i)}const r=t.element.classList;this.et.forEach((t=>{t in i||(r.remove(t),this.et.delete(t))}));for(const t in i){const e=!!i[t];e===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(r.add(t),this.et.add(t)):(r.remove(t),this.et.delete(t)))}return K}});var bt=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const mt=ct.extend("--ft-ripple-color",pt.colorContent),xt=mt,wt=ct.extend("--ft-ripple-background-color",mt),$t=ct.external(pt.opacityContentOnSurfacePressed,"Design system"),Ot=ct.external(pt.opacityContentOnSurfaceHover,"Design system"),St=ct.external(pt.opacityContentOnSurfaceFocused,"Design system"),Ct=ct.external(pt.opacityContentOnSurfaceSelected,"Design system"),Nt=ct.extend("--ft-ripple-color",pt.colorPrimary),kt=Nt,Rt=ct.extend("--ft-ripple-background-color",Nt),Et=ct.extend("--ft-ripple-color",pt.colorSecondary),Mt=Et,Ut=ct.extend("--ft-ripple-background-color",Et);class Ft extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return H`
|
|
96
97
|
<style>
|
|
97
98
|
.ft-ripple .ft-ripple--effect,
|
|
98
99
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -105,11 +106,11 @@ const gt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
105
106
|
top: ${this.originY}px;
|
|
106
107
|
}
|
|
107
108
|
</style>
|
|
108
|
-
<div class="${
|
|
109
|
+
<div class="${vt(t)}">
|
|
109
110
|
<div class="ft-ripple--background"></div>
|
|
110
111
|
<div class="ft-ripple--effect"></div>
|
|
111
112
|
</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){var e
|
|
113
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,r;return null!=i.x?({x:o,y:r}=i):null!=e.touches&&(o=e.touches[0].clientX,r=e.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ft.elementDefinitions={},Ft.styles=y`
|
|
113
114
|
:host {
|
|
114
115
|
display: contents;
|
|
115
116
|
}
|
|
@@ -131,23 +132,23 @@ const gt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.ft-ripple .ft-ripple--background {
|
|
134
|
-
background-color: ${
|
|
135
|
+
background-color: ${wt};
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.ft-ripple .ft-ripple--effect {
|
|
138
|
-
background-color: ${
|
|
139
|
+
background-color: ${xt};
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
142
|
-
background-color: ${
|
|
143
|
+
background-color: ${Ut};
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
146
|
-
background-color: ${
|
|
147
|
+
background-color: ${Mt};
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
150
|
-
background-color: ${
|
|
151
|
+
background-color: ${Rt};
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -183,131 +184,131 @@ const gt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
186
|
-
opacity: ${
|
|
187
|
+
opacity: ${Ot};
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
190
|
-
opacity: ${
|
|
191
|
+
opacity: ${Ct};
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
194
|
-
opacity: ${
|
|
195
|
+
opacity: ${St};
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
198
|
-
opacity: ${
|
|
199
|
+
opacity: ${$t};
|
|
199
200
|
transform: translate(-50%, -50%) scale(1);
|
|
200
201
|
}
|
|
201
|
-
`,
|
|
202
|
+
`,bt([o({type:Boolean})],Ft.prototype,"primary",void 0),bt([o({type:Boolean})],Ft.prototype,"secondary",void 0),bt([o({type:Boolean})],Ft.prototype,"unbounded",void 0),bt([o({type:Boolean})],Ft.prototype,"activated",void 0),bt([o({type:Boolean})],Ft.prototype,"selected",void 0),bt([o({type:Boolean})],Ft.prototype,"disabled",void 0),bt([r()],Ft.prototype,"hovered",void 0),bt([r()],Ft.prototype,"focused",void 0),bt([r()],Ft.prototype,"pressed",void 0),bt([r()],Ft.prototype,"rippling",void 0),bt([r()],Ft.prototype,"rippleSize",void 0),bt([r()],Ft.prototype,"originX",void 0),bt([r()],Ft.prototype,"originY",void 0),bt([n(".ft-ripple")],Ft.prototype,"ripple",void 0),bt([n(".ft-ripple--effect")],Ft.prototype,"rippleEffect",void 0),h("ft-ripple")(Ft);
|
|
202
203
|
/**
|
|
203
204
|
* @license
|
|
204
205
|
* Copyright 2020 Google LLC
|
|
205
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
206
207
|
*/
|
|
207
|
-
const
|
|
208
|
+
const At=Symbol.for(""),Lt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===At)return null===(e=t)||void 0===e?void 0:e._$litStatic$},Bt=t=>({_$litStatic$:t,r:At}),jt=new Map,Dt=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],r=Lt(s));)l+=r+i[++h],c=!0;a.push(s),n.push(l),h++}if(h===o&&n.push(i[o]),c){const t=n.join("$$lit$$");void 0===(i=jt.get(t))&&(n.raw=n,jt.set(t,i=n)),e=a}return t(i,...e)})(H);var zt,Tt=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,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"}(zt||(zt={}));const Pt=ct.extend("--ft-typography-font-family",pt.titleFont),_t=ct.extend("--ft-typography-font-family",pt.contentFont),Wt={fontFamily:_t,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")},Ht=ct.extend("--ft-typography-title-font-family",Pt),Kt=ct.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),It=ct.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Vt=ct.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),Zt=ct.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),Jt=ct.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Xt=ct.extend("--ft-typography-title-dense-font-family",Pt),qt=ct.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Yt=ct.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),Gt=ct.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),Qt=ct.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),ti=ct.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),ii=ct.extend("--ft-typography-subtitle1-font-family",_t),ei=ct.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),oi=ct.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),ri=ct.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),si=ct.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),ni=ct.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),ai=ct.extend("--ft-typography-subtitle2-font-family",_t),li=ct.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),hi=ct.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),ci=ct.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),pi=ct.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),di=ct.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),fi=ct.extend("--ft-typography-body1-font-family",_t),ui=ct.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),yi=ct.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),gi=ct.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),vi=ct.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),bi=ct.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit"),mi=ct.extend("--ft-typography-body2-font-family",_t),xi=ct.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),wi=ct.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),$i=ct.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),Oi=ct.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),Si=ct.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit"),Ci=ct.extend("--ft-typography-caption-font-family",_t),Ni=ct.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),ki=ct.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),Ri=ct.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),Ei=ct.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),Mi=ct.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit"),Ui=ct.extend("--ft-typography-breadcrumb-font-family",_t),Fi=ct.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),Ai=ct.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),Li=ct.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),Bi=ct.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),ji=ct.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Di=ct.extend("--ft-typography-overline-font-family",_t),zi=ct.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Ti=ct.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),Pi=ct.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),_i=ct.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),Wi=ct.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Hi=ct.extend("--ft-typography-button-font-family",_t),Ki=ct.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),Ii=ct.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),Vi=ct.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),Zi=ct.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),Ji=ct.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase"),Xi=y`
|
|
208
209
|
.ft-typography--title {
|
|
209
|
-
font-family: ${
|
|
210
|
-
font-size: ${
|
|
211
|
-
font-weight: ${
|
|
212
|
-
letter-spacing: ${
|
|
213
|
-
line-height: ${
|
|
214
|
-
text-transform: ${
|
|
210
|
+
font-family: ${Ht};
|
|
211
|
+
font-size: ${Kt};
|
|
212
|
+
font-weight: ${It};
|
|
213
|
+
letter-spacing: ${Vt};
|
|
214
|
+
line-height: ${Zt};
|
|
215
|
+
text-transform: ${Jt};
|
|
215
216
|
}
|
|
216
|
-
`,
|
|
217
|
+
`,qi=y`
|
|
217
218
|
.ft-typography--title-dense {
|
|
218
219
|
font-family: ${Xt};
|
|
219
220
|
font-size: ${qt};
|
|
220
|
-
font-weight: ${
|
|
221
|
-
letter-spacing: ${
|
|
222
|
-
line-height: ${
|
|
223
|
-
text-transform: ${
|
|
221
|
+
font-weight: ${Yt};
|
|
222
|
+
letter-spacing: ${Gt};
|
|
223
|
+
line-height: ${Qt};
|
|
224
|
+
text-transform: ${ti};
|
|
224
225
|
}
|
|
225
|
-
`,
|
|
226
|
+
`,Yi=y`
|
|
226
227
|
.ft-typography--subtitle1 {
|
|
227
|
-
font-family: ${
|
|
228
|
-
font-size: ${
|
|
229
|
-
font-weight: ${
|
|
230
|
-
letter-spacing: ${
|
|
231
|
-
line-height: ${
|
|
232
|
-
text-transform: ${
|
|
228
|
+
font-family: ${ii};
|
|
229
|
+
font-size: ${ei};
|
|
230
|
+
font-weight: ${oi};
|
|
231
|
+
letter-spacing: ${ri};
|
|
232
|
+
line-height: ${si};
|
|
233
|
+
text-transform: ${ni};
|
|
233
234
|
}
|
|
234
|
-
`,
|
|
235
|
+
`,Gi=y`
|
|
235
236
|
.ft-typography--subtitle2 {
|
|
236
|
-
font-family: ${
|
|
237
|
-
font-size: ${
|
|
238
|
-
font-weight: ${
|
|
239
|
-
letter-spacing: ${
|
|
240
|
-
line-height: ${
|
|
241
|
-
text-transform: ${
|
|
237
|
+
font-family: ${ai};
|
|
238
|
+
font-size: ${li};
|
|
239
|
+
font-weight: ${hi};
|
|
240
|
+
letter-spacing: ${ci};
|
|
241
|
+
line-height: ${pi};
|
|
242
|
+
text-transform: ${di};
|
|
242
243
|
}
|
|
243
244
|
|
|
244
|
-
`,
|
|
245
|
+
`,Qi=y`
|
|
245
246
|
.ft-typography--body1 {
|
|
246
|
-
font-family: ${
|
|
247
|
-
font-size: ${
|
|
248
|
-
font-weight: ${
|
|
249
|
-
letter-spacing: ${
|
|
250
|
-
line-height: ${
|
|
251
|
-
text-transform: ${
|
|
247
|
+
font-family: ${fi};
|
|
248
|
+
font-size: ${ui};
|
|
249
|
+
font-weight: ${yi};
|
|
250
|
+
letter-spacing: ${gi};
|
|
251
|
+
line-height: ${vi};
|
|
252
|
+
text-transform: ${bi};
|
|
252
253
|
}
|
|
253
|
-
`,
|
|
254
|
+
`,te=y`
|
|
254
255
|
.ft-typography--body2 {
|
|
255
|
-
font-family: ${
|
|
256
|
-
font-size: ${
|
|
257
|
-
font-weight: ${
|
|
258
|
-
letter-spacing: ${
|
|
259
|
-
line-height: ${
|
|
260
|
-
text-transform: ${
|
|
256
|
+
font-family: ${mi};
|
|
257
|
+
font-size: ${xi};
|
|
258
|
+
font-weight: ${wi};
|
|
259
|
+
letter-spacing: ${$i};
|
|
260
|
+
line-height: ${Oi};
|
|
261
|
+
text-transform: ${Si};
|
|
261
262
|
}
|
|
262
|
-
`,
|
|
263
|
+
`,ie=y`
|
|
263
264
|
.ft-typography--caption {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
265
|
+
font-family: ${Ci};
|
|
266
|
+
font-size: ${Ni};
|
|
267
|
+
font-weight: ${ki};
|
|
268
|
+
letter-spacing: ${Ri};
|
|
269
|
+
line-height: ${Ei};
|
|
270
|
+
text-transform: ${Mi};
|
|
270
271
|
}
|
|
271
|
-
`,
|
|
272
|
+
`,ee=y`
|
|
272
273
|
.ft-typography--breadcrumb {
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
274
|
+
font-family: ${Ui};
|
|
275
|
+
font-size: ${Fi};
|
|
276
|
+
font-weight: ${Ai};
|
|
277
|
+
letter-spacing: ${Li};
|
|
278
|
+
line-height: ${Bi};
|
|
279
|
+
text-transform: ${ji};
|
|
279
280
|
}
|
|
280
|
-
`,
|
|
281
|
+
`,oe=y`
|
|
281
282
|
.ft-typography--overline {
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
283
|
+
font-family: ${Di};
|
|
284
|
+
font-size: ${zi};
|
|
285
|
+
font-weight: ${Ti};
|
|
286
|
+
letter-spacing: ${Pi};
|
|
287
|
+
line-height: ${_i};
|
|
288
|
+
text-transform: ${Wi};
|
|
288
289
|
}
|
|
289
|
-
`,
|
|
290
|
+
`,re=y`
|
|
290
291
|
.ft-typography--button {
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
292
|
+
font-family: ${Hi};
|
|
293
|
+
font-size: ${Ki};
|
|
294
|
+
font-weight: ${Ii};
|
|
295
|
+
letter-spacing: ${Vi};
|
|
296
|
+
line-height: ${Zi};
|
|
297
|
+
text-transform: ${Ji};
|
|
297
298
|
}
|
|
298
|
-
`;class
|
|
299
|
-
<${
|
|
299
|
+
`;class se extends yt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Dt`
|
|
300
|
+
<${Bt(this.element)}
|
|
300
301
|
class="ft-typography ft-typography--${this.variant}">
|
|
301
302
|
<slot></slot>
|
|
302
|
-
</${
|
|
303
|
+
</${Bt(this.element)}>
|
|
303
304
|
`:Dt`
|
|
304
305
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
305
|
-
`}}
|
|
306
|
+
`}}se.styles=[Xi,qi,Yi,Gi,Qi,te,ie,ee,oe,re,y`
|
|
306
307
|
.ft-typography {
|
|
307
308
|
vertical-align: inherit;
|
|
308
309
|
}
|
|
309
|
-
`],Tt([o()],
|
|
310
|
-
<div class="${
|
|
310
|
+
`],Tt([o()],se.prototype,"element",void 0),Tt([o()],se.prototype,"variant",void 0),h("ft-typography")(se);var ne=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const ae={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 le extends CustomEvent{constructor(t,i){super("change",{detail:{value:t,checked:i},bubbles:!0,composed:!0})}}class he extends yt{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`
|
|
311
|
+
<div class="${vt(t)}">
|
|
311
312
|
<div class="ft-radio--box-container">
|
|
312
313
|
<input id="radio-button"
|
|
313
314
|
type="radio"
|
|
@@ -331,14 +332,14 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
331
332
|
</ft-typography>
|
|
332
333
|
</label>
|
|
333
334
|
</div>
|
|
334
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
335
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new le(this.value,this.checked))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new le(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}he.elementDefinitions={"ft-ripple":Ft,"ft-typography":se},he.styles=y`
|
|
335
336
|
* {
|
|
336
337
|
box-sizing: border-box;
|
|
337
338
|
}
|
|
338
339
|
|
|
339
340
|
.ft-radio {
|
|
340
341
|
box-sizing: border-box;
|
|
341
|
-
color: ${
|
|
342
|
+
color: ${ae.textColor};
|
|
342
343
|
|
|
343
344
|
display: inline-flex;
|
|
344
345
|
align-items: center;
|
|
@@ -346,7 +347,7 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
.ft-radio--disabled {
|
|
349
|
-
color: ${
|
|
350
|
+
color: ${ae.colorOnSurfaceDisabled};
|
|
350
351
|
}
|
|
351
352
|
|
|
352
353
|
input {
|
|
@@ -369,7 +370,7 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
369
370
|
}
|
|
370
371
|
|
|
371
372
|
.ft-radio--box {
|
|
372
|
-
border: 2px solid ${
|
|
373
|
+
border: 2px solid ${ae.borderColor};
|
|
373
374
|
border-radius: 50%;
|
|
374
375
|
|
|
375
376
|
display: flex;
|
|
@@ -382,7 +383,7 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
382
383
|
|
|
383
384
|
.ft-radio--box:after {
|
|
384
385
|
content: " ";
|
|
385
|
-
background-color: ${
|
|
386
|
+
background-color: ${ae.colorPrimary};
|
|
386
387
|
|
|
387
388
|
border-radius: 50%;
|
|
388
389
|
|
|
@@ -394,7 +395,7 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
.ft-radio--checked .ft-radio--box {
|
|
397
|
-
border-color: ${
|
|
398
|
+
border-color: ${ae.colorPrimary};
|
|
398
399
|
}
|
|
399
400
|
|
|
400
401
|
|
|
@@ -403,21 +404,21 @@ const Ft=Symbol.for(""),At=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
403
404
|
}
|
|
404
405
|
|
|
405
406
|
.ft-radio--disabled .ft-radio--box {
|
|
406
|
-
border-color: ${
|
|
407
|
+
border-color: ${ae.colorOnSurfaceDisabled};
|
|
407
408
|
background-color: transparent;
|
|
408
409
|
}
|
|
409
410
|
|
|
410
411
|
.ft-radio--disabled .ft-radio--box:after {
|
|
411
|
-
background-color: ${
|
|
412
|
+
background-color: ${ae.colorOnSurfaceDisabled};
|
|
412
413
|
}
|
|
413
|
-
`,
|
|
414
|
+
`,ne([o()],he.prototype,"value",void 0),ne([o()],he.prototype,"name",void 0),ne([o({type:Boolean})],he.prototype,"checked",void 0),ne([o({type:Boolean})],he.prototype,"disabled",void 0),ne([n(".ft-radio")],he.prototype,"container",void 0),ne([n("ft-ripple")],he.prototype,"ripple",void 0),ne([n("input")],he.prototype,"input",void 0);var ce=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class pe extends yt{constructor(){super(...arguments),this.name=""}render(){return H`
|
|
414
415
|
<slot @slotchange=${this.onSlotChange}
|
|
415
416
|
@change=${this.onChange}
|
|
416
417
|
@keydown=${this.onKeyDown}
|
|
417
418
|
@focusin=${this.onFocusIn}
|
|
418
419
|
></slot>
|
|
419
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((
|
|
420
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((i=>i.checked=t.detail.value===i.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let i=this.findFtRadio(t),e=this.radioButtons.indexOf(i)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let i=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[i>this.radioButtons.length-1?0:i].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)}}pe.elementDefinitions={},pe.styles=y`
|
|
420
421
|
:host {
|
|
421
422
|
display: contents;
|
|
422
423
|
}
|
|
423
|
-
`,
|
|
424
|
+
`,ce([o()],pe.prototype,"name",void 0),ce([function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const r="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),n=null!=s?l(s,t):[];return e?n.filter((t=>t.matches(e))):n},enumerable:!0,configurable:!0})})}()],pe.prototype,"radioButtons",void 0),h("ft-radio")(he),h("ft-radio-group")(pe),t.FtRadio=he,t.FtRadioChangeEvent=le,t.FtRadioCssVariables=ae,t.FtRadioGroup=pe,Object.defineProperty(t,"t",{value:!0})}({});
|