@fluid-topics/ft-floating-menu 1.1.3 → 1.1.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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=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 s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,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,c),this._definitionsByClass.set(r,c);let
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=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 s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,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,c),this._definitionsByClass.set(r,c);let f=e.call(i,t);f||(f=p(t),o.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.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,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},p=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=f(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(tn){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -22,7 +22,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.cust
|
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:h}=Object,d=globalThis,u=d.trustedTypes,y=u?u.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){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}},x=(t,o)=>!s(t,o),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=O){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const n=i?.call(this);r.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...f(t),...p(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(a(t))}else void 0!==t&&o.push(a(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(e)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),r=o.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??x)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[b("elementProperties")]=new Map,v[b("finalized")]=new Map,g?.({ReactiveElement:v}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
@@ -53,7 +53,7 @@ const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,o,
|
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/const W=globalThis,L=W.trustedTypes,K=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",
|
|
56
|
+
*/const W=globalThis,L=W.trustedTypes,K=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+F,B=`<${Z}>`,A=document,M=()=>A.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,H="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,_=/>/g,G=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),X=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,ot=A.createTreeWalker(A,129);function et(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(o):o}let it=class t{constructor({strings:o,_$litType$:e},i){let r;this.parts=[];let n=0,a=0;const s=o.length-1,l=this.parts,[c,f]=((t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=j;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,f=0;for(;f<e.length&&(a.lastIndex=f,l=a.exec(e),null!==l);)f=a.lastIndex,a===j?"!--"===l[1]?a=T:void 0!==l[1]?a=_:void 0!==l[2]?(J.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=G):void 0!==l[3]&&(a=G):a===G?">"===l[0]?(a=r??j,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?G:'"'===l[3]?V:Y):a===V||a===Y?a=G:a===T||a===_?a=j:(a=G,r=void 0);const p=a===G&&t[o+1].startsWith("/>")?" ":"";n+=a===j?e+B:c>=0?(i.push(s),e.slice(0,c)+z+e.slice(c)+F+p):e+F+(-2===c?o:p)}return[et(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(o,e);if(this.el=t.createElement(c,i),ot.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ot.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const o=f[a++],e=r.getAttribute(t).split(F),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:e,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:at}),r.removeAttribute(t)}else t.startsWith(F)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(F),o=t.length-1;if(o>0){r.textContent=L?L.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],M()),ot.nextNode(),l.push({type:2,index:++n});r.append(t[o],M())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(F,t+1));)l.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,o){const e=A.createElement("template");return e.innerHTML=t,e}};function rt(t,o,e=t,i){if(o===X)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=D(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=rt(t,r._$AS(t,o.values),r,i)),o}let nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=rt(this,t,o),D(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Q&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=it.createElement(et(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??A).importNode(o,!0);ot.currentNode=i;let r=ot.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new nt(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new ft(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=ot.nextNode(),n++)}return ot.currentNode=A,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=tt.get(t.strings);return void 0===o&&tt.set(t.strings,o=new it(t)),o}T(o){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of o)r===e.length?e.push(i=new t(this.k(M()),this.k(M()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},at=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Q}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=rt(this,t,o,0),n=!D(t)||t!==this._$AH&&t!==X,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=rt(this,i[e+a],o,a),s===X&&(s=this._$AH[a]),n||=!D(s)||s!==this._$AH[a],s===Q?t=Q:t!==Q&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends at{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Q?void 0:t}},lt=class extends at{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},ct=class extends at{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=rt(this,t,o,0)??Q)===X)return;const e=this._$AH,i=t===Q&&e!==Q||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==Q&&(e===Q||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}};const pt=W.litHtmlPolyfillSupport;pt?.(it,nt),(W.litHtmlVersions??=[]).push("3.1.0");
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2019 Google LLC
|
|
@@ -70,7 +70,7 @@ const ht=globalThis,dt=ht.ShadowRoot&&(void 0===ht.ShadyCSS||ht.ShadyCSS.nativeS
|
|
|
70
70
|
* Copyright 2017 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
72
|
*/
|
|
73
|
-
const zt=globalThis,
|
|
73
|
+
const zt=globalThis,Ft=zt.trustedTypes,Zt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Bt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+At,Dt=`<${Mt}>`,Pt=document,Ht=()=>Pt.createComment(""),jt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Tt=Array.isArray,_t="[ \t\n\f\r]",Gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Vt=/>/g,Jt=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Xt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,to=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),oo=Symbol.for("lit-noChange"),eo=Symbol.for("lit-nothing"),io=new WeakMap,ro=Pt.createTreeWalker(Pt,129);function no(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Zt?Zt.createHTML(o):o}const ao=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=Gt;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,f=0;for(;f<e.length&&(a.lastIndex=f,l=a.exec(e),null!==l);)f=a.lastIndex,a===Gt?"!--"===l[1]?a=Yt:void 0!==l[1]?a=Vt:void 0!==l[2]?(Qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Jt):void 0!==l[3]&&(a=Jt):a===Jt?">"===l[0]?(a=r??Gt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Jt:'"'===l[3]?Xt:qt):a===Xt||a===qt?a=Jt:a===Yt||a===Vt?a=Gt:(a=Jt,r=void 0);const p=a===Jt&&t[o+1].startsWith("/>")?" ":"";n+=a===Gt?e+Dt:c>=0?(i.push(s),e.slice(0,c)+Bt+e.slice(c)+At+p):e+At+(-2===c?o:p)}return[no(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class so{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=ao(t,o);if(this.el=so.createElement(l,e),ro.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ro.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Bt)){const o=c[n++],e=i.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:a[2],strings:e,ctor:"."===a[1]?po:"?"===a[1]?ho:"@"===a[1]?uo:fo}),i.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(Qt.test(i.tagName)){const t=i.textContent.split(At),o=t.length-1;if(o>0){i.textContent=Ft?Ft.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Ht()),ro.nextNode(),s.push({type:2,index:++r});i.append(t[o],Ht())}}}else if(8===i.nodeType)if(i.data===Mt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(At,t+1));)s.push({type:7,index:r}),t+=At.length-1}r++}}static createElement(t,o){const e=Pt.createElement("template");return e.innerHTML=t,e}}function lo(t,o,e=t,i){if(o===oo)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=jt(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=lo(t,r._$AS(t,o.values),r,i)),o}class co{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=eo,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=lo(this,t,o),jt(t)?t===eo||null==t||""===t?(this._$AH!==eo&&this._$AR(),this._$AH=eo):t!==this._$AH&&t!==oo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Tt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==eo&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Pt.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=so.createElement(no(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??Pt).importNode(o,!0);ro.currentNode=i;let r=ro.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new co(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new yo(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=ro.nextNode(),n++)}return ro.currentNode=Pt,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=io.get(t.strings);return void 0===o&&io.set(t.strings,o=new so(t)),o}T(t){Tt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new co(this.k(Ht()),this.k(Ht()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class fo{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=eo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=eo}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=lo(this,t,o,0),n=!jt(t)||t!==this._$AH&&t!==oo,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=lo(this,i[e+a],o,a),s===oo&&(s=this._$AH[a]),n||=!jt(s)||s!==this._$AH[a],s===eo?t=eo:t!==eo&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===eo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class po extends fo{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===eo?void 0:t}}class ho extends fo{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==eo)}}class uo extends fo{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=lo(this,t,o,0)??eo)===oo)return;const e=this._$AH,i=t===eo&&e!==eo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==eo&&(e===eo||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class yo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){lo(this,t)}}const go=zt.litHtmlPolyfillSupport;go?.(so,co),(zt.litHtmlVersions??=[]).push("3.1.0");
|
|
74
74
|
/**
|
|
75
75
|
* @license
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
@@ -81,11 +81,11 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2019 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Ro.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var ko,Io=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Wo=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Ko=Symbol("exportpartsDebouncer");class zo extends Uo{constructor(){super(),this[ko]=new E(5),this[Lo]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const
|
|
84
|
+
*/class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Ro.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var ko,Io=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Wo=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Ko=Symbol("exportpartsDebouncer");class zo extends Uo{constructor(){super(),this[ko]=new E(5),this[Lo]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ko=Ko,Io([w()],zo.prototype,"exportpartsPrefix",void 0),Io([I([])],zo.prototype,"exportpartsPrefixes",void 0),Io([w()],zo.prototype,"customStylesheet",void 0);const Fo=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");mt`
|
|
85
85
|
.highlight-html-match {
|
|
86
|
-
background: ${
|
|
86
|
+
background: ${Fo};
|
|
87
87
|
}
|
|
88
|
-
`;const
|
|
88
|
+
`;const Zo=mt`
|
|
89
89
|
.ft-no-text-select {
|
|
90
90
|
-webkit-touch-callout: none;
|
|
91
91
|
-webkit-user-select: none;
|
|
@@ -117,7 +117,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
117
117
|
display: inline-block;
|
|
118
118
|
width: 0;
|
|
119
119
|
}
|
|
120
|
-
`;window.ftReduxStores||(window.ftReduxStores={});const
|
|
120
|
+
`;window.ftReduxStores||(window.ftReduxStores={});const Ao=Symbol("elementInternals");var Mo,Do,Po;const Ho=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Po=null===(Do=null===(Mo=window.safari)||void 0===Mo?void 0:Mo.pushNotification)||void 0===Do?void 0:Do.toString())&&void 0!==Po?Po:""),jo={zIndex:Oo.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:Oo.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:Oo.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:Oo.extend("--ft-floating-menu-text-color","",$o.colorOnSurfaceHigh),colorSurface:Oo.external($o.colorSurface,"Design system"),menuElevation:Oo.external($o.elevation02,"Design system"),borderRadiusS:Oo.external($o.borderRadiusS,"Design system")},To=mt`
|
|
121
121
|
.ft-floating-menu {
|
|
122
122
|
color: ${jo.textColor};
|
|
123
123
|
display: inline-block;
|
|
@@ -260,7 +260,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
260
260
|
opacity: ${Go.opacityContentOnSurfacePressed};
|
|
261
261
|
transform: translate(-50%, -50%) scale(1);
|
|
262
262
|
}
|
|
263
|
-
`;const oe=Oo.extend("--ft-typography-font-family","",$o.titleFont),ee=Oo.extend("--ft-typography-font-family","",$o.contentFont),ie={fontFamily:ee,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},re=Oo.extend("--ft-typography-title-font-family","",oe),ne=Oo.extend("--ft-typography-title-font-size","",ie.fontSize,"20px"),ae=Oo.extend("--ft-typography-title-font-weight","",ie.fontWeight,"normal"),se=Oo.extend("--ft-typography-title-letter-spacing","",ie.letterSpacing,"0.15px"),le=Oo.extend("--ft-typography-title-line-height","",ie.lineHeight,"1.2"),ce=Oo.extend("--ft-typography-title-text-transform","",ie.textTransform,"inherit"),
|
|
263
|
+
`;const oe=Oo.extend("--ft-typography-font-family","",$o.titleFont),ee=Oo.extend("--ft-typography-font-family","",$o.contentFont),ie={fontFamily:ee,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},re=Oo.extend("--ft-typography-title-font-family","",oe),ne=Oo.extend("--ft-typography-title-font-size","",ie.fontSize,"20px"),ae=Oo.extend("--ft-typography-title-font-weight","",ie.fontWeight,"normal"),se=Oo.extend("--ft-typography-title-letter-spacing","",ie.letterSpacing,"0.15px"),le=Oo.extend("--ft-typography-title-line-height","",ie.lineHeight,"1.2"),ce=Oo.extend("--ft-typography-title-text-transform","",ie.textTransform,"inherit"),fe=Oo.extend("--ft-typography-title-dense-font-family","",oe),pe=Oo.extend("--ft-typography-title-dense-font-size","",ie.fontSize,"14px"),he=Oo.extend("--ft-typography-title-dense-font-weight","",ie.fontWeight,"normal"),de=Oo.extend("--ft-typography-title-dense-letter-spacing","",ie.letterSpacing,"0.105px"),ue=Oo.extend("--ft-typography-title-dense-line-height","",ie.lineHeight,"1.7"),ye=Oo.extend("--ft-typography-title-dense-text-transform","",ie.textTransform,"inherit"),ge=Oo.extend("--ft-typography-subtitle1-font-family","",ee),be=Oo.extend("--ft-typography-subtitle1-font-size","",ie.fontSize,"16px"),me=Oo.extend("--ft-typography-subtitle1-font-weight","",ie.fontWeight,"600"),xe=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ie.letterSpacing,"0.144px"),Oe=Oo.extend("--ft-typography-subtitle1-line-height","",ie.lineHeight,"1.5"),ve=Oo.extend("--ft-typography-subtitle1-text-transform","",ie.textTransform,"inherit"),Ne=Oo.extend("--ft-typography-subtitle2-font-family","",ee),Se=Oo.extend("--ft-typography-subtitle2-font-size","",ie.fontSize,"14px"),we=Oo.extend("--ft-typography-subtitle2-font-weight","",ie.fontWeight,"normal"),Ce=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ie.letterSpacing,"0.098px"),$e=Oo.extend("--ft-typography-subtitle2-line-height","",ie.lineHeight,"1.7"),Re=Oo.extend("--ft-typography-subtitle2-text-transform","",ie.textTransform,"inherit"),Ee=Oo.extend("--ft-typography-body1-font-family","",ee),Ue=Oo.extend("--ft-typography-body1-font-size","",ie.fontSize,"16px"),ke=Oo.extend("--ft-typography-body1-font-weight","",ie.fontWeight,"normal"),Ie=Oo.extend("--ft-typography-body1-letter-spacing","",ie.letterSpacing,"0.496px"),We=Oo.extend("--ft-typography-body1-line-height","",ie.lineHeight,"1.5"),Le=Oo.extend("--ft-typography-body1-text-transform","",ie.textTransform,"inherit"),Ke=Oo.extend("--ft-typography-body2-font-family","",ee),ze=Oo.extend("--ft-typography-body2-font-size","",ie.fontSize,"14px"),Fe=Oo.extend("--ft-typography-body2-font-weight","",ie.fontWeight,"normal"),Ze=Oo.extend("--ft-typography-body2-letter-spacing","",ie.letterSpacing,"0.252px"),Be=Oo.extend("--ft-typography-body2-line-height","",ie.lineHeight,"1.4"),Ae=Oo.extend("--ft-typography-body2-text-transform","",ie.textTransform,"inherit"),Me=Oo.extend("--ft-typography-caption-font-family","",ee),De=Oo.extend("--ft-typography-caption-font-size","",ie.fontSize,"12px"),Pe=Oo.extend("--ft-typography-caption-font-weight","",ie.fontWeight,"normal"),He=Oo.extend("--ft-typography-caption-letter-spacing","",ie.letterSpacing,"0.396px"),je=Oo.extend("--ft-typography-caption-line-height","",ie.lineHeight,"1.33"),Te=Oo.extend("--ft-typography-caption-text-transform","",ie.textTransform,"inherit"),_e=Oo.extend("--ft-typography-breadcrumb-font-family","",ee),Ge=Oo.extend("--ft-typography-breadcrumb-font-size","",ie.fontSize,"10px"),Ye=Oo.extend("--ft-typography-breadcrumb-font-weight","",ie.fontWeight,"normal"),Ve=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ie.letterSpacing,"0.33px"),Je=Oo.extend("--ft-typography-breadcrumb-line-height","",ie.lineHeight,"1.6"),qe=Oo.extend("--ft-typography-breadcrumb-text-transform","",ie.textTransform,"inherit"),Xe=Oo.extend("--ft-typography-overline-font-family","",ee),Qe=Oo.extend("--ft-typography-overline-font-size","",ie.fontSize,"10px"),ti=Oo.extend("--ft-typography-overline-font-weight","",ie.fontWeight,"normal"),oi=Oo.extend("--ft-typography-overline-letter-spacing","",ie.letterSpacing,"1.5px"),ei=Oo.extend("--ft-typography-overline-line-height","",ie.lineHeight,"1.6"),ii=Oo.extend("--ft-typography-overline-text-transform","",ie.textTransform,"uppercase"),ri={fontFamily:Oo.extend("--ft-typography-button-font-family","",ee),fontSize:Oo.extend("--ft-typography-button-font-size","",ie.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",ie.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",ie.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",ie.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",ie.textTransform,"uppercase")},ni=mt`
|
|
264
264
|
.ft-typography--title {
|
|
265
265
|
font-family: ${re};
|
|
266
266
|
font-size: ${ne};
|
|
@@ -271,8 +271,8 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
271
271
|
}
|
|
272
272
|
`,ai=mt`
|
|
273
273
|
.ft-typography--title-dense {
|
|
274
|
-
font-family: ${
|
|
275
|
-
font-size: ${
|
|
274
|
+
font-family: ${fe};
|
|
275
|
+
font-size: ${pe};
|
|
276
276
|
font-weight: ${he};
|
|
277
277
|
letter-spacing: ${de};
|
|
278
278
|
line-height: ${ue};
|
|
@@ -306,18 +306,18 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
306
306
|
line-height: ${We};
|
|
307
307
|
text-transform: ${Le};
|
|
308
308
|
}
|
|
309
|
-
`,
|
|
309
|
+
`,fi=mt`
|
|
310
310
|
.ft-typography--body2 {
|
|
311
311
|
font-family: ${Ke};
|
|
312
312
|
font-size: ${ze};
|
|
313
|
-
font-weight: ${
|
|
314
|
-
letter-spacing: ${
|
|
313
|
+
font-weight: ${Fe};
|
|
314
|
+
letter-spacing: ${Ze};
|
|
315
315
|
line-height: ${Be};
|
|
316
|
-
text-transform: ${
|
|
316
|
+
text-transform: ${Ae};
|
|
317
317
|
}
|
|
318
|
-
`,
|
|
318
|
+
`,pi=mt`
|
|
319
319
|
.ft-typography--caption {
|
|
320
|
-
font-family: ${
|
|
320
|
+
font-family: ${Me};
|
|
321
321
|
font-size: ${De};
|
|
322
322
|
font-weight: ${Pe};
|
|
323
323
|
letter-spacing: ${He};
|
|
@@ -618,12 +618,12 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
618
618
|
${vo(bi.size,Ni.iconSize)};
|
|
619
619
|
${vo(bi.color,"var(--ft-button-internal-color)")};
|
|
620
620
|
}
|
|
621
|
-
`,
|
|
621
|
+
`,Zo],ki=1,Ii=2,Wi=t=>(...o)=>({_$litDirective$:t,values:o});let Li=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
|
|
622
622
|
/**
|
|
623
623
|
* @license
|
|
624
624
|
* Copyright 2018 Google LLC
|
|
625
625
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
626
|
-
*/const Ki=Wi(class extends Li{constructor(t){if(super(t),t.type!==ki||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}});var zi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class
|
|
626
|
+
*/const Ki=Wi(class extends Li{constructor(t){if(super(t),t.type!==ki||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}});var zi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Fi extends zo{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.originX=0,this.originY=0,this.debouncer=new E(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new E(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 to`
|
|
627
627
|
<style>
|
|
628
628
|
.ft-ripple .ft-ripple--effect {
|
|
629
629
|
left: ${this.originX}px;
|
|
@@ -634,20 +634,20 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
634
634
|
<div class="ft-ripple--background"></div>
|
|
635
635
|
<div class="ft-ripple--effect"></div>
|
|
636
636
|
</div>
|
|
637
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),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",i),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,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
637
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),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",i),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,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Fi.elementDefinitions={},Fi.styles=te,zi([w({type:Boolean})],Fi.prototype,"primary",void 0),zi([w({type:Boolean})],Fi.prototype,"secondary",void 0),zi([w({type:Boolean})],Fi.prototype,"unbounded",void 0),zi([w({type:Boolean})],Fi.prototype,"activated",void 0),zi([w({type:Boolean})],Fi.prototype,"selected",void 0),zi([w({type:Boolean})],Fi.prototype,"disabled",void 0),zi([C()],Fi.prototype,"hovered",void 0),zi([C()],Fi.prototype,"focused",void 0),zi([C()],Fi.prototype,"pressed",void 0),zi([C()],Fi.prototype,"rippling",void 0),zi([C()],Fi.prototype,"originX",void 0),zi([C()],Fi.prototype,"originY",void 0),zi([R(".ft-ripple")],Fi.prototype,"ripple",void 0),zi([R(".ft-ripple--effect")],Fi.prototype,"rippleEffect",void 0),k("ft-ripple")(Fi);
|
|
638
638
|
/**
|
|
639
639
|
* @license
|
|
640
640
|
* Copyright 2020 Google LLC
|
|
641
641
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
642
642
|
*/
|
|
643
|
-
const
|
|
644
|
-
<${
|
|
643
|
+
const Zi=Symbol.for(""),Bi=t=>{if(t?.r===Zi)return t?._$litStatic$},Ai=t=>({_$litStatic$:t,r:Zi}),Mi=new Map,Di=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=Bi(n));)l+=r+o[++c],f=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),f){const t=a.join("$$lit$$");void 0===(o=Mi.get(t))&&(a.raw=a,Mi.set(t,o=a)),e=s}return t(o,...e)})(q);var Pi;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Pi||(Pi={}));var Hi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ji extends zo{constructor(){super(...arguments),this.variant=Pi.body1}render(){return this.element?Di`
|
|
644
|
+
<${Ai(this.element)}
|
|
645
645
|
class="ft-typography ft-typography--${this.variant}">
|
|
646
646
|
<slot></slot>
|
|
647
|
-
</${
|
|
647
|
+
</${Ai(this.element)}>
|
|
648
648
|
`:Di`
|
|
649
649
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
650
|
-
`}}ji.styles=[ni,ai,si,li,ci,pi,
|
|
650
|
+
`}}ji.styles=[ni,ai,si,li,ci,fi,pi,hi,di,ui,yi,...gi],Hi([w()],ji.prototype,"element",void 0),Hi([w()],ji.prototype,"variant",void 0),k("ft-typography")(ji);const Ti=Oo.create("--ft-tooltip-distance","","SIZE","4px"),_i=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Gi=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),Yi=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),Vi=Oo.external($o.borderRadiusS,"Design system"),Ji=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),qi=mt`
|
|
651
651
|
.ft-tooltip--container {
|
|
652
652
|
display: block;
|
|
653
653
|
}
|
|
@@ -676,7 +676,7 @@ const Fi=Symbol.for(""),Bi=t=>{if(t?.r===Fi)return t?._$litStatic$},Mi=t=>({_$li
|
|
|
676
676
|
position: relative;
|
|
677
677
|
word-break: break-word;
|
|
678
678
|
}
|
|
679
|
-
`;var Xi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qi extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new E,this.revealDebouncer=new E}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
|
|
679
|
+
`,Xi=["start","end"],Qi=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Xi[0],o+"-"+Xi[1])),[]),tr=Math.min,or=Math.max,er=Math.round,ir=t=>({x:t,y:t}),rr={left:"right",right:"left",bottom:"top",top:"bottom"},nr={start:"end",end:"start"};function ar(t,o,e){return or(t,tr(o,e))}function sr(t,o){return"function"==typeof t?t(o):t}function lr(t){return t.split("-")[0]}function cr(t){return t.split("-")[1]}function fr(t){return"x"===t?"y":"x"}function pr(t){return"y"===t?"height":"width"}function hr(t){return["top","bottom"].includes(lr(t))?"y":"x"}function dr(t){return fr(hr(t))}function ur(t){return t.replace(/left|right|bottom|top/g,(t=>rr[t]))}function yr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function gr(t,o,e){let{reference:i,floating:r}=t;const n=hr(o),a=dr(o),s=pr(a),l=lr(o),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(cr(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function br(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=sr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===p?"reference":"floating":p],g=yr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=yr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function mr(t,o,e){return(t?[...e.filter((o=>cr(o)===t)),...e.filter((o=>cr(o)!==t))]:e.filter((t=>lr(t)===t))).filter((e=>!t||(cr(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>nr[t]))}(e)!==e)))}const xr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:h=Qi,autoAlignment:d=!0,...u}=sr(t,o),y=void 0!==p||h===Qi?mr(p||null,d,h):h,g=await br(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=cr(t),r=dr(t),n=pr(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ur(a)),[a,ur(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[lr(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=cr(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,cr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}},Or=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=sr(t,o),c={x:e,y:i},f=await br(o,l),p=hr(lr(r)),h=fr(p);let d=c[h],u=c[p];if(n){const t="y"===h?"bottom":"right";d=ar(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===p?"bottom":"right";u=ar(u+f["y"===p?"top":"left"],u,u-f[t])}const y=s.fn({...o,[h]:d,[p]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}};function vr(t){return wr(t)?(t.nodeName||"").toLowerCase():"#document"}function Nr(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Sr(t){var o;return null==(o=(wr(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function wr(t){return t instanceof Node||t instanceof Nr(t).Node}function Cr(t){return t instanceof Element||t instanceof Nr(t).Element}function $r(t){return t instanceof HTMLElement||t instanceof Nr(t).HTMLElement}function Rr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Nr(t).ShadowRoot)}function Er(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Lr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Ur(t){return["table","td","th"].includes(vr(t))}function kr(t){const o=Ir(),e=Lr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Ir(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wr(t){return["html","body","#document"].includes(vr(t))}function Lr(t){return Nr(t).getComputedStyle(t)}function Kr(t){return Cr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zr(t){if("html"===vr(t))return t;const o=t.assignedSlot||t.parentNode||Rr(t)&&t.host||Sr(t);return Rr(o)?o.host:o}function Fr(t){const o=zr(t);return Wr(o)?t.ownerDocument?t.ownerDocument.body:t.body:$r(o)&&Er(o)?o:Fr(o)}function Zr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Fr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Nr(r);return n?o.concat(a,a.visualViewport||[],Er(r)?r:[],a.frameElement&&e?Zr(a.frameElement):[]):o.concat(r,Zr(r,[],e))}function Br(t){const o=Lr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=$r(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=er(e)!==n||er(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function Ar(t){return Cr(t)?t:t.contextElement}function Mr(t){const o=Ar(t);if(!$r(o))return ir(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=Br(o);let a=(n?er(e.width):e.width)/i,s=(n?er(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Dr=ir(0);function Pr(t){const o=Nr(t);return Ir()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Dr}function Hr(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=Ar(t);let a=ir(1);o&&(i?Cr(i)&&(a=Mr(i)):a=Mr(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Nr(t))&&o}(n,e,i)?Pr(n):ir(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=Nr(n),o=i&&Cr(i)?Nr(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=Mr(e),o=e.getBoundingClientRect(),i=Lr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,p*=t.y,l+=r,c+=n,e=Nr(e).frameElement}}return yr({width:f,height:p,x:l,y:c})}function jr(t){return Hr(Sr(t)).left+Kr(t).scrollLeft}function Tr(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Nr(t),i=Sr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Ir();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Sr(t),e=Kr(t),i=t.ownerDocument.body,r=or(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=or(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+jr(t);const s=-e.scrollTop;return"rtl"===Lr(i).direction&&(a+=or(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Sr(t));else if(Cr(o))i=function(t,o){const e=Hr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=$r(t)?Mr(t):ir(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=Pr(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return yr(i)}function _r(t,o){const e=zr(t);return!(e===o||!Cr(e)||Wr(e))&&("fixed"===Lr(e).position||_r(e,o))}function Gr(t,o,e){const i=$r(o),r=Sr(o),n="fixed"===e,a=Hr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=ir(0);if(i||!i&&!n)if(("body"!==vr(o)||Er(r))&&(s=Kr(o)),i){const t=Hr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=jr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yr(t,o){return $r(t)&&"fixed"!==Lr(t).position?o?o(t):t.offsetParent:null}function Vr(t,o){const e=Nr(t);if(!$r(t))return e;let i=Yr(t,o);for(;i&&Ur(i)&&"static"===Lr(i).position;)i=Yr(i,o);return i&&("html"===vr(i)||"body"===vr(i)&&"static"===Lr(i).position&&!kr(i))?e:i||function(t){let o=zr(t);for(;$r(o)&&!Wr(o);){if(kr(o))return o;o=zr(o)}return null}(t)||e}const Jr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=$r(e),n=Sr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=ir(1);const l=ir(0);if((r||!r&&"fixed"!==i)&&(("body"!==vr(e)||Er(n))&&(a=Kr(e)),$r(e))){const t=Hr(e);s=Mr(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Sr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=Zr(t,[],!1).filter((t=>Cr(t)&&"body"!==vr(t))),r=null;const n="fixed"===Lr(t).position;let a=n?zr(t):t;for(;Cr(a)&&!Wr(a);){const o=Lr(a),e=kr(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Er(a)&&!e&&_r(t,a))?i=i.filter((t=>t!==a)):r=o,a=zr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=Tr(o,e,r);return t.top=or(i.top,t.top),t.right=tr(i.right,t.right),t.bottom=tr(i.bottom,t.bottom),t.left=or(i.left,t.left),t}),Tr(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Vr,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||Vr,n=this.getDimensions;return{reference:Gr(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Br(t)},getScale:Mr,isElement:Cr,isRTL:function(t){return"rtl"===Lr(t).direction}},qr=(t,o,e)=>{const i=new Map,r={platform:Jr,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:f,y:p}=gr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:f,y:p}=gr(c,h,l))),e=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var Xr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qr extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new E,this.revealDebouncer=new E}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
|
|
680
680
|
<div part="container"
|
|
681
681
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
682
682
|
@mouseenter=${this.onHover}
|
|
@@ -694,25 +694,25 @@ const Fi=Symbol.for(""),Bi=t=>{if(t?.r===Fi)return t?._$litStatic$},Mi=t=>({_$li
|
|
|
694
694
|
</div>
|
|
695
695
|
</div>
|
|
696
696
|
</div>
|
|
697
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent()
|
|
697
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",qr(this.slottedElement,this.tooltip,{middleware:[Or({crossAxis:!0}),xr({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Qr.elementDefinitions={"ft-typography":ji},Qr.styles=qi,Xr([w()],Qr.prototype,"text",void 0),Xr([w({type:Boolean})],Qr.prototype,"manual",void 0),Xr([w({type:Boolean})],Qr.prototype,"inline",void 0),Xr([w({type:Number})],Qr.prototype,"delay",void 0),Xr([w()],Qr.prototype,"position",void 0),Xr([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Qr.prototype,"slotNodes",void 0),Xr([R(".ft-tooltip--container")],Qr.prototype,"container",void 0),Xr([R(".ft-tooltip")],Qr.prototype,"tooltip",void 0),Xr([R(".ft-tooltip--content")],Qr.prototype,"tooltipContent",void 0),Xr([C()],Qr.prototype,"visible",void 0),k("ft-tooltip")(Qr);
|
|
698
698
|
/**
|
|
699
699
|
* @license
|
|
700
700
|
* Copyright 2017 Google LLC
|
|
701
701
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
702
702
|
*/
|
|
703
|
-
class
|
|
703
|
+
class tn extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}tn.directiveName="unsafeHTML",tn.resultType=1;const on=Wi(tn);var en,rn,nn;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(en||(en={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(rn||(rn={})),new Map([...["abw"].map((t=>[t,rn.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,rn.AUDIO])),...["avi"].map((t=>[t,rn.AVI])),...["chm","xhs"].map((t=>[t,rn.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,rn.CODE])),...["csv"].map((t=>[t,rn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,rn.DITA])),...["epub"].map((t=>[t,rn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,rn.EXCEL])),...["flac"].map((t=>[t,rn.FLAC])),...["gif"].map((t=>[t,rn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,rn.GZIP])),...["html","htm","xhtml"].map((t=>[t,rn.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,rn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,rn.JPEG])),...["json"].map((t=>[t,rn.JSON])),...["m4a","m4p"].map((t=>[t,rn.M4A])),...["mov","qt"].map((t=>[t,rn.MOV])),...["mp3"].map((t=>[t,rn.MP3])),...["mp4","m4v"].map((t=>[t,rn.MP4])),...["ogg","oga"].map((t=>[t,rn.OGG])),...["pdf","ps"].map((t=>[t,rn.PDF])),...["png"].map((t=>[t,rn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,rn.POWERPOINT])),...["rar"].map((t=>[t,rn.RAR])),...["stp"].map((t=>[t,rn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,rn.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,rn.VIDEO])),...["wav"].map((t=>[t,rn.WAV])),...["wma"].map((t=>[t,rn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,rn.WORD])),...["xml","xsl","rdf"].map((t=>[t,rn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,rn.YAML])),...["zip"].map((t=>[t,rn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(nn||(nn={}));var an=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sn extends zo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(nn).includes(this.variant)?this.variant:nn.fluid_topics,o=t!==nn.material||!!this.value;return to`
|
|
704
704
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
705
|
-
${
|
|
705
|
+
${on(this.resolvedIcon)}
|
|
706
706
|
<slot ?hidden=${o}></slot>
|
|
707
707
|
</i>
|
|
708
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
708
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case nn.file_format:this.resolvedIcon=null!==(t=rn[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case nn.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=en[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sn.elementDefinitions={},sn.styles=Oi,an([w()],sn.prototype,"variant",void 0),an([w()],sn.prototype,"value",void 0),an([C()],sn.prototype,"resolvedIcon",void 0),an([R("slot")],sn.prototype,"slottedContent",void 0),k("ft-icon")(sn);class ln extends zo{render(){return to`
|
|
709
709
|
<div class="ft-loader">
|
|
710
710
|
<div></div>
|
|
711
711
|
<div></div>
|
|
712
712
|
<div></div>
|
|
713
713
|
<div></div>
|
|
714
714
|
</div>
|
|
715
|
-
`}}
|
|
715
|
+
`}}ln.styles=mi,k("ft-loader")(ln);var cn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Ao].form}constructor(...t){super(t),this[Ao]=this.attachInternals(),this[Ao].role=o}setFormValue(t){this[Ao].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
|
|
716
716
|
<button part="button"
|
|
717
717
|
class="${Ki(this.buttonClasses)}"
|
|
718
718
|
aria-label="${this.getLabel()}"
|
|
@@ -735,7 +735,7 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
735
735
|
</ft-tooltip>
|
|
736
736
|
`:t}resolveIcon(){return this.loading?to`
|
|
737
737
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?to`
|
|
738
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
738
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}fn.elementDefinitions={"ft-ripple":Fi,"ft-tooltip":Qr,"ft-typography":ji,"ft-icon":sn,"ft-loader":ln},cn([w({type:String,reflect:!0})],fn.prototype,"role",void 0),cn([w()],fn.prototype,"type",void 0),cn([w({type:Boolean})],fn.prototype,"disabled",void 0),cn([w()],fn.prototype,"label",void 0),cn([w()],fn.prototype,"icon",void 0),cn([w()],fn.prototype,"iconVariant",void 0),cn([w({type:Boolean})],fn.prototype,"trailingIcon",void 0),cn([w({type:Boolean})],fn.prototype,"loading",void 0),cn([w()],fn.prototype,"tooltipPosition",void 0),cn([w({type:Boolean})],fn.prototype,"hideTooltip",void 0),cn([w({type:Boolean})],fn.prototype,"forceTooltip",void 0),cn([R(".ft-button")],fn.prototype,"button",void 0),cn([R(".ft-button--label slot")],fn.prototype,"slottedContent",void 0);var pn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class hn extends fn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}hn.styles=[Bo,Ui],pn([w({type:Boolean})],hn.prototype,"primary",void 0),pn([w({type:Boolean})],hn.prototype,"outlined",void 0),pn([w({type:Boolean})],hn.prototype,"dense",void 0),pn([w({type:Boolean})],hn.prototype,"round",void 0);const dn=[mt`
|
|
739
739
|
:host {
|
|
740
740
|
display: inline-block;
|
|
741
741
|
max-width: 100%;
|
|
@@ -953,7 +953,7 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
953
953
|
width: ${Co.smallIconOnlyWidth};
|
|
954
954
|
padding: unset;
|
|
955
955
|
}
|
|
956
|
-
`,
|
|
956
|
+
`,Zo];var un=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yn extends fn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Pi.caption1medium:Pi.body2medium}}yn.styles=[Bo,dn],un([w({type:Boolean})],yn.prototype,"primary",void 0),un([w({type:Boolean})],yn.prototype,"secondary",void 0),un([w({type:Boolean})],yn.prototype,"tertiary",void 0),un([w({type:Boolean})],yn.prototype,"neutral",void 0),un([w({type:Boolean})],yn.prototype,"small",void 0),k("ft-button")(hn),k("ftds-button")(yn);const gn={iconColor:Oo.extend("--ft-floating-menu-icon-color","",$o.colorOnSurfaceMedium)},bn=mt`
|
|
957
957
|
.ft-floating-menu-item {
|
|
958
958
|
cursor: pointer;
|
|
959
959
|
display: flex;
|
|
@@ -968,7 +968,7 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
.ft-floating-menu-item ft-icon {
|
|
971
|
-
color: ${
|
|
971
|
+
color: ${gn.iconColor};
|
|
972
972
|
margin-left: 0;
|
|
973
973
|
flex-shrink: 0;
|
|
974
974
|
flex-grow: 0;
|
|
@@ -983,7 +983,7 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
983
983
|
word-break: break-word;
|
|
984
984
|
hyphens: auto;
|
|
985
985
|
}
|
|
986
|
-
`;var
|
|
986
|
+
`;var mn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xn extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class On extends zo{constructor(){super(...arguments),this.value=""}render(){return to`
|
|
987
987
|
<div class="ft-floating-menu-item"
|
|
988
988
|
@click=${this.onClick}>
|
|
989
989
|
<ft-ripple></ft-ripple>
|
|
@@ -994,7 +994,7 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
994
994
|
<slot></slot>
|
|
995
995
|
</ft-typography>
|
|
996
996
|
</div>
|
|
997
|
-
`}onClick(t){this.dispatchEvent(new
|
|
997
|
+
`}onClick(t){this.dispatchEvent(new xn(this.value))}}On.elementDefinitions={"ft-icon":sn,"ft-ripple":Fi,"ft-typography":ji},On.styles=bn,mn([w()],On.prototype,"iconVariant",void 0),mn([w()],On.prototype,"icon",void 0),mn([w()],On.prototype,"value",void 0);var vn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nn extends zo{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=nn.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return to`
|
|
998
998
|
<div class="${Ki(t)}">
|
|
999
999
|
|
|
1000
1000
|
<slot name="toggle"
|
|
@@ -1030,4 +1030,4 @@ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error
|
|
|
1030
1030
|
</div>
|
|
1031
1031
|
</div>
|
|
1032
1032
|
</div>
|
|
1033
|
-
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){
|
|
1033
|
+
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="",qr(this.actionButton,this.menuWrapper,{middleware:[Or({crossAxis:!0}),xr({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:o})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${o}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}Nn.elementDefinitions={"ft-floating-menu-item":On},vn([C()],Nn.prototype,"menuOpen",void 0),vn([C()],Nn.prototype,"forceMenuOpen",void 0),vn([R(".ft-floating-menu")],Nn.prototype,"container",void 0),vn([R(".ft-floating-menu--wrapper")],Nn.prototype,"menuWrapper",void 0),vn([R("#ft-floating-menu-options")],Nn.prototype,"menuContent",void 0),vn([R("#actions-button")],Nn.prototype,"actionButton",void 0),vn([w({type:Boolean})],Nn.prototype,"primary",void 0),vn([w({type:Boolean})],Nn.prototype,"secondary",void 0),vn([w({type:Boolean})],Nn.prototype,"tertiary",void 0),vn([w({type:Boolean})],Nn.prototype,"neutral",void 0),vn([w({type:Boolean})],Nn.prototype,"small",void 0),vn([w()],Nn.prototype,"label",void 0),vn([w()],Nn.prototype,"tooltipPosition",void 0),vn([w()],Nn.prototype,"iconVariant",void 0),vn([w()],Nn.prototype,"icon",void 0),vn([w()],Nn.prototype,"text",void 0),vn([w()],Nn.prototype,"horizontalAlignment",void 0),vn([w()],Nn.prototype,"verticalAlignment",void 0),vn([w({type:Boolean})],Nn.prototype,"disabled",void 0),vn([I([])],Nn.prototype,"closeMenuMatchers",void 0);class Sn extends Nn{}Sn.elementDefinitions={"ft-or-ftds-button":hn},Sn.styles=To;class wn extends Nn{}wn.elementDefinitions={"ft-or-ftds-button":yn},wn.styles=To,k("ft-floating-menu")(Sn),k("ftds-floating-menu")(wn),k("ft-floating-menu-item")(On),t.FtFloatingMenu=Sn,t.FtFloatingMenuCssVariables=jo,t.FtFloatingMenuItem=On,t.FtFloatingMenuItemCssVariables=gn,t.FtFloatingMenuItemSelect=xn,t.FtdsFloatingMenu=wn,t.itemStyles=bn,t.styles=To}({});
|