@fluid-topics/ft-tooltip 0.2.15 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-tooltip.light.js +23 -23
- package/build/ft-tooltip.min.js +82 -81
- package/package.json +4 -4
- package/build/ft-tooltip.inline-styles.js +0 -250
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var s;const n=globalThis.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,l="?"+h,
|
|
7
|
+
var s;const n=globalThis.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,l="?"+h,a=`<${l}>`,p=document,f=(t="")=>p.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,d=/-->/g,u=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,$=/'/g,b=/"/g,m=/^(?:script|style|textarea|title)$/i,x=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),k=new WeakMap,A=p.createTreeWalker(p,129,null,!1),N=(t,i)=>{const o=t.length-1,e=[];let s,n=2===i?"<svg>":"",l=c;for(let i=0;i<o;i++){const o=t[i];let r,p,f=-1,y=0;for(;y<o.length&&(l.lastIndex=y,p=l.exec(o),null!==p);)y=l.lastIndex,l===c?"!--"===p[1]?l=d:void 0!==p[1]?l=u:void 0!==p[2]?(m.test(p[2])&&(s=RegExp("</"+p[2],"g")),l=v):void 0!==p[3]&&(l=v):l===v?">"===p[0]?(l=null!=s?s:c,f=-1):void 0===p[1]?f=-2:(f=l.lastIndex-p[2].length,r=p[1],l=void 0===p[3]?v:'"'===p[3]?b:$):l===b||l===$?l=v:l===d||l===u?l=c:(l=v,s=void 0);const g=l===v&&t[i+1].startsWith("/>")?" ":"";n+=l===c?o+a:f>=0?(e.push(r),o.slice(0,f)+"$lit$"+o.slice(f)+h+g):o+h+(-2===f?(e.push(void 0),i):g)}const p=n+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,e]};class _{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let s=0,r=0;const a=t.length-1,p=this.parts,[y,g]=N(t,i);if(this.el=_.createElement(y,o),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=A.nextNode())&&p.length<a;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(h)){const o=g[r++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+"$lit$").split(h),i=/([.?@])?(.*)/.exec(o);p.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?E:"?"===i[1]?I:"@"===i[1]?U:O})}else p.push({type:6,index:s})}for(const i of t)e.removeAttribute(i)}if(m.test(e.tagName)){const t=e.textContent.split(h),i=t.length-1;if(i>0){e.textContent=n?n.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],f()),A.nextNode(),p.push({type:2,index:++s});e.append(t[i],f())}}}else if(8===e.nodeType)if(e.data===l)p.push({type:2,index:s});else{let t=-1;for(;-1!==(t=e.data.indexOf(h,t+1));)p.push({type:7,index:s}),t+=h.length-1}s++}}static createElement(t,i){const o=p.createElement("template");return o.innerHTML=t,o}}function S(t,i,o=t,e){var s,n,r,h;if(i===w)return i;let l=void 0!==e?null===(s=o._$Cl)||void 0===s?void 0:s[e]:o._$Cu;const a=y(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,o,e)),void 0!==e?(null!==(r=(h=o)._$Cl)&&void 0!==r?r:h._$Cl=[])[e]=l:o._$Cu=l),void 0!==l&&(i=S(t,l._$AS(t,i.values),l,e)),i}class T{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:o},parts:e}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:p).importNode(o,!0);A.currentNode=s;let n=A.nextNode(),r=0,h=0,l=e[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new C(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new F(n,this,t)),this.v.push(i),l=e[++h]}r!==(null==l?void 0:l.index)&&(n=A.nextNode(),r++)}return s}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class C{constructor(t,i,o,e){var s;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cg=null===(s=null==e?void 0:e.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),y(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&y(this._$AH)?this._$AA.nextSibling.data=t:this.k(p.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:e}=t,s="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=_.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(o);else{const t=new T(s,this),i=t.p(this.options);t.m(o),this.k(i),this._$AH=t}}_$AC(t){let i=k.get(t.strings);return void 0===i&&k.set(t.strings,i=new _(t)),i}S(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const s of t)e===i.length?i.push(o=new C(this.M(f()),this.M(f()),this,this.options)):o=i[e],o._$AI(s),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class O{constructor(t,i,o,e,s){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=s,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const s=this.strings;let n=!1;if(void 0===s)t=S(this,t,i,0),n=!y(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{const e=t;let r,h;for(t=s[0],r=0;r<s.length-1;r++)h=S(this,e[o+r],i,r),h===w&&(h=this._$AH[r]),n||(n=!y(h)||h!==this._$AH[r]),h===z?t=z:t!==z&&(t+=(null!=h?h:"")+s[r+1]),this._$AH[r]=h}n&&!e&&this.C(t)}C(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class E extends O{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===z?void 0:t}}const M=n?n.emptyScript:"";class I extends O{constructor(){super(...arguments),this.type=4}C(t){t&&t!==z?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class U extends O{constructor(t,i,o,e,s){super(t,i,o,e,s),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=S(this,t,i,0))&&void 0!==o?o:z)===w)return;const e=this._$AH,s=t===z&&e!==z||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==z&&(e===z||s);s&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class F{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const R=window.litHtmlPolyfillSupport;null==R||R(_,C),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const j=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===j)return null===(o=t)||void 0===o?void 0:o._$litStatic$},B=t=>({_$litStatic$:t,r:j}),W=new Map,G=(t=>(i,...o)=>{const e=o.length;let s,n;const r=[],h=[];let l,a=0,p=!1;for(;a<e;){for(l=i[a];a<e&&void 0!==(n=o[a],s=Z(n));)l+=s+i[++a],p=!0;h.push(n),r.push(l),a++}if(a===e&&r.push(i[e]),p){const t=r.join("$$lit$$");void 0===(i=W.get(t))&&(r.raw=r,W.set(t,i=r)),o=h}return t(i,...o)})(x);var H,L=function(t,i,o,e){for(var s,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,o,r):s(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(H||(H={}));const K=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),D=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),q={fontFamily:D,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariable.extend("--ft-typography-title-font-family",K),P=i.FtCssVariable.extend("--ft-typography-title-font-size",q.fontSize,"20px"),Q=i.FtCssVariable.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),V=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),X=i.FtCssVariable.extend("--ft-typography-title-line-height",q.lineHeight,"1.2"),Y=i.FtCssVariable.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",K),it=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),et=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),st=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",q.lineHeight,"1.7"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",D),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"1.5"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",D),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"1.7"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-family",D),bt=i.FtCssVariable.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),xt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),wt=i.FtCssVariable.extend("--ft-typography-body1-line-height",q.lineHeight,"1.5"),zt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit"),kt=i.FtCssVariable.extend("--ft-typography-body2-font-family",D),At=i.FtCssVariable.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),_t=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),St=i.FtCssVariable.extend("--ft-typography-body2-line-height",q.lineHeight,"1.4"),Tt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit"),Ct=i.FtCssVariable.extend("--ft-typography-caption-font-family",D),Ot=i.FtCssVariable.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),Et=i.FtCssVariable.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),Mt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),It=i.FtCssVariable.extend("--ft-typography-caption-line-height",q.lineHeight,"1.33"),Ut=i.FtCssVariable.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit"),Ft=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",D),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),Bt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"1.6"),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),Gt=i.FtCssVariable.extend("--ft-typography-overline-font-family",D),Ht=i.FtCssVariable.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Lt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),Kt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Dt=i.FtCssVariable.extend("--ft-typography-overline-line-height",q.lineHeight,"1.6"),qt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),Jt=i.FtCssVariable.extend("--ft-typography-button-font-family",D),Pt=i.FtCssVariable.extend("--ft-typography-button-font-size",q.fontSize,"14px"),Qt=i.FtCssVariable.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),Vt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),Xt=i.FtCssVariable.extend("--ft-typography-button-line-height",q.lineHeight,"1.15"),Yt=i.FtCssVariable.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase"),ti=o.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${J};
|
|
16
16
|
font-size: ${P};
|
|
@@ -33,8 +33,8 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
33
33
|
font-family: ${rt};
|
|
34
34
|
font-size: ${ht};
|
|
35
35
|
font-weight: ${lt};
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
36
|
+
letter-spacing: ${at};
|
|
37
|
+
line-height: ${pt};
|
|
38
38
|
text-transform: ${ft};
|
|
39
39
|
}
|
|
40
40
|
`,ei=o.css`
|
|
@@ -51,8 +51,8 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
51
51
|
.ft-typography--body1 {
|
|
52
52
|
font-family: ${$t};
|
|
53
53
|
font-size: ${bt};
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
54
|
+
font-weight: ${mt};
|
|
55
|
+
letter-spacing: ${xt};
|
|
56
56
|
line-height: ${wt};
|
|
57
57
|
text-transform: ${zt};
|
|
58
58
|
}
|
|
@@ -60,8 +60,8 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
60
60
|
.ft-typography--body2 {
|
|
61
61
|
font-family: ${kt};
|
|
62
62
|
font-size: ${At};
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
63
|
+
font-weight: ${Nt};
|
|
64
|
+
letter-spacing: ${_t};
|
|
65
65
|
line-height: ${St};
|
|
66
66
|
text-transform: ${Tt};
|
|
67
67
|
}
|
|
@@ -70,18 +70,18 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
70
70
|
font-family: ${Ct};
|
|
71
71
|
font-size: ${Ot};
|
|
72
72
|
font-weight: ${Et};
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
73
|
+
letter-spacing: ${Mt};
|
|
74
|
+
line-height: ${It};
|
|
75
|
+
text-transform: ${Ut};
|
|
76
76
|
}
|
|
77
77
|
`,hi=o.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
79
|
+
font-family: ${Ft};
|
|
80
|
+
font-size: ${Rt};
|
|
81
|
+
font-weight: ${jt};
|
|
82
82
|
letter-spacing: ${Zt};
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
83
|
+
line-height: ${Bt};
|
|
84
|
+
text-transform: ${Wt};
|
|
85
85
|
}
|
|
86
86
|
`,li=o.css`
|
|
87
87
|
.ft-typography--overline {
|
|
@@ -92,7 +92,7 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
92
92
|
line-height: ${Dt};
|
|
93
93
|
text-transform: ${qt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,ai=o.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
97
|
font-family: ${Jt};
|
|
98
98
|
font-size: ${Pt};
|
|
@@ -101,18 +101,18 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
101
101
|
line-height: ${Xt};
|
|
102
102
|
text-transform: ${Yt};
|
|
103
103
|
}
|
|
104
|
-
`;class
|
|
105
|
-
<${
|
|
104
|
+
`;class pi extends i.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?G`
|
|
105
|
+
<${B(this.element)}
|
|
106
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
107
|
<slot></slot>
|
|
108
|
-
</${
|
|
108
|
+
</${B(this.element)}>
|
|
109
109
|
`:G`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
|
-
`}}
|
|
111
|
+
`}}pi.styles=[ti,ii,oi,ei,si,ni,ri,hi,li,ai,o.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],L([e.property()],
|
|
115
|
+
`],L([e.property()],pi.prototype,"element",void 0),L([e.property()],pi.prototype,"variant",void 0),i.customElement("ft-typography")(pi);var fi=function(t,i,o,e){for(var s,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,o,r):s(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};const yi={distance:i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),color:i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system")};class gi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return o.html`
|
|
116
116
|
<div part="container"
|
|
117
117
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
118
118
|
@mouseenter=${this.onHover}
|
|
@@ -127,7 +127,7 @@ const R=Symbol.for(""),Z=t=>{var i,o;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
127
127
|
</div>
|
|
128
128
|
<slot></slot>
|
|
129
129
|
</div>
|
|
130
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),o=(i.height-this.tooltip.clientHeight)/2,e=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=e+"px";break;case"bottom":s.top=i.height+"px",s.left=e+"px";break;case"left":s.top=o+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=o+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}gi.elementDefinitions={"ft-typography":
|
|
130
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),o=(i.height-this.tooltip.clientHeight)/2,e=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=e+"px";break;case"bottom":s.top=i.height+"px",s.left=e+"px";break;case"left":s.top=o+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=o+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}gi.elementDefinitions={"ft-typography":pi},gi.styles=o.css`
|
|
131
131
|
.ft-tooltip--container {
|
|
132
132
|
display: block;
|
|
133
133
|
position: relative;
|
package/build/ft-tooltip.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);u(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?d(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},d=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(gt){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -40,12 +40,13 @@ const n=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!=
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var r;const a=null!=(null===(r=window.HTMLSlotElement)||void 0===r?void 0:r.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const l=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
|
|
43
|
+
*/var r;const a=null!=(null===(r=window.HTMLSlotElement)||void 0===r?void 0:r.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const l=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
|
|
48
|
+
*/
|
|
49
|
+
const h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),p=new Map;class u{constructor(t,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=p.get(this.cssText);return h&&void 0===t&&(p.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const f=t=>new u("string"==typeof t?t:t+"",c),d=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new u(e,c)},y=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},g=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return f(i)})(t):t
|
|
49
50
|
/**
|
|
50
51
|
* @license
|
|
51
52
|
* Copyright 2017 Google LLC
|
|
@@ -56,23 +57,23 @@ const n=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!=
|
|
|
56
57
|
* Copyright 2017 Google LLC
|
|
57
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
59
|
*/
|
|
59
|
-
var N;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:S}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,R=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,M="?"+E,U=`<${M}>`,k=document,F=(t="")=>k.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,
|
|
60
|
+
var N;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:S}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,R=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,M="?"+E,U=`<${M}>`,k=document,F=(t="")=>k.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,P=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,_=/"/g,D=/^(?:script|style|textarea|title)$/i,W=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),I=new WeakMap,V=k.createTreeWalker(k,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=T;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,l=r.exec(e),null!==l);)c=r.lastIndex,r===T?"!--"===l[1]?r=z:void 0!==l[1]?r=P:void 0!==l[2]?(D.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=B):void 0!==l[3]&&(r=B):r===B?">"===l[0]?(r=null!=n?n:T,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?B:'"'===l[3]?_:j):r===_||r===j?r=B:r===z||r===P?r=T:(r=B,n=void 0);const p=r===B&&t[i+1].startsWith("/>")?" ":"";s+=r===T?e+U:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+E+p):e+E+(-2===h?(o.push(void 0),i):p)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class J{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Z(t,i);if(this.el=J.createElement(l,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(E)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(E),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?it:"@"===i[1]?et:Q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(E),i=t.length-1;if(i>0){o.textContent=C?C.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],F()),V.nextNode(),a.push({type:2,index:++n});o.append(t[i],F())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,i){const e=k.createElement("template");return e.innerHTML=t,e}}function q(t,i,e=t,o){var n,s,r,a;if(i===H)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=q(t,l._$AS(t,i.values),l,o)),i}class X{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:k).importNode(e,!0);V.currentNode=n;let s=V.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new G(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new ot(s,this,t)),this.v.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=V.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=q(this,t,i),L(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return A(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==K&&L(this._$AH)?this._$AA.nextSibling.data=t:this.k(k.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new X(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new J(t)),i}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.M(F()),this.M(F()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=q(this,t,i,0),s=!L(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=q(this,o[e+r],i,r),a===H&&(a=this._$AH[r]),s||(s=!L(a)||a!==this._$AH[r]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends Q{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===K?void 0:t}}const tt=C?C.emptyScript:"";class it extends Q{constructor(){super(...arguments),this.type=4}C(t){t&&t!==K?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class et extends Q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=q(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==K&&(o===K||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const nt=window.litHtmlPolyfillSupport;
|
|
60
61
|
/**
|
|
61
62
|
* @license
|
|
62
63
|
* Copyright 2017 Google LLC
|
|
63
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
65
|
*/
|
|
65
|
-
var st,rt;null==nt||nt(
|
|
66
|
+
var st,rt;null==nt||nt(J,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.4");class at extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new G(i.insertBefore(F(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:at});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:at}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.0");class ht{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new ht(t,i,void 0,e)}static extend(t,i,e){return new ht(t,i.category,i,e)}static external(t,i){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return d`var(${f(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):f(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const ct={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
67
|
/**
|
|
67
68
|
* @license
|
|
68
69
|
* Copyright 2021 Google LLC
|
|
69
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/
|
|
71
|
+
*/var pt,ut,ft=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(n,this.constructor.elementStyles),n}}}(at)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
|
|
71
72
|
${t.map((t=>W`
|
|
72
73
|
<style>${t}</style>
|
|
73
74
|
`))}
|
|
74
75
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}ft([o()],dt.prototype,"exportpartsPrefix",void 0),ft([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),d`
|
|
76
77
|
.ft-no-text-select {
|
|
77
78
|
-webkit-touch-callout: none;
|
|
78
79
|
-webkit-user-select: none;
|
|
@@ -81,115 +82,115 @@ var st,rt;null==nt||nt(q,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N
|
|
|
81
82
|
-ms-user-select: none;
|
|
82
83
|
user-select: none;
|
|
83
84
|
}
|
|
84
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(
|
|
85
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ut||ut.toString());
|
|
85
86
|
/**
|
|
86
87
|
* @license
|
|
87
88
|
* Copyright 2020 Google LLC
|
|
88
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
90
|
*/
|
|
90
|
-
const
|
|
91
|
+
const yt=Symbol.for(""),gt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===yt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},vt=t=>({_$litStatic$:t,r:yt}),bt=new Map,mt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=gt(s));)l+=n+i[++h],c=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=bt.get(t))&&(r.raw=r,bt.set(t,i=r)),e=a}return t(i,...e)})(W);var xt,wt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(xt||(xt={}));const Ot=ht.extend("--ft-typography-font-family",ct.titleFont),$t=ht.extend("--ft-typography-font-family",ct.contentFont),St={fontFamily:$t,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Nt=ht.extend("--ft-typography-title-font-family",Ot),Ct=ht.extend("--ft-typography-title-font-size",St.fontSize,"20px"),Rt=ht.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),Et=ht.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),Mt=ht.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),Ut=ht.extend("--ft-typography-title-text-transform",St.textTransform,"inherit"),kt=ht.extend("--ft-typography-title-dense-font-family",Ot),Ft=ht.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),Lt=ht.extend("--ft-typography-title-dense-font-weight",St.fontWeight,"normal"),At=ht.extend("--ft-typography-title-dense-letter-spacing",St.letterSpacing,"0.105px"),Tt=ht.extend("--ft-typography-title-dense-line-height",St.lineHeight,"1.7"),zt=ht.extend("--ft-typography-title-dense-text-transform",St.textTransform,"inherit"),Pt=ht.extend("--ft-typography-subtitle1-font-family",$t),Bt=ht.extend("--ft-typography-subtitle1-font-size",St.fontSize,"16px"),jt=ht.extend("--ft-typography-subtitle1-font-weight",St.fontWeight,"600"),_t=ht.extend("--ft-typography-subtitle1-letter-spacing",St.letterSpacing,"0.144px"),Dt=ht.extend("--ft-typography-subtitle1-line-height",St.lineHeight,"1.5"),Wt=ht.extend("--ft-typography-subtitle1-text-transform",St.textTransform,"inherit"),Ht=ht.extend("--ft-typography-subtitle2-font-family",$t),Kt=ht.extend("--ft-typography-subtitle2-font-size",St.fontSize,"14px"),It=ht.extend("--ft-typography-subtitle2-font-weight",St.fontWeight,"normal"),Vt=ht.extend("--ft-typography-subtitle2-letter-spacing",St.letterSpacing,"0.098px"),Zt=ht.extend("--ft-typography-subtitle2-line-height",St.lineHeight,"1.7"),Jt=ht.extend("--ft-typography-subtitle2-text-transform",St.textTransform,"inherit"),qt=ht.extend("--ft-typography-body1-font-family",$t),Xt=ht.extend("--ft-typography-body1-font-size",St.fontSize,"16px"),Gt=ht.extend("--ft-typography-body1-font-weight",St.fontWeight,"normal"),Qt=ht.extend("--ft-typography-body1-letter-spacing",St.letterSpacing,"0.496px"),Yt=ht.extend("--ft-typography-body1-line-height",St.lineHeight,"1.5"),ti=ht.extend("--ft-typography-body1-text-transform",St.textTransform,"inherit"),ii=ht.extend("--ft-typography-body2-font-family",$t),ei=ht.extend("--ft-typography-body2-font-size",St.fontSize,"14px"),oi=ht.extend("--ft-typography-body2-font-weight",St.fontWeight,"normal"),ni=ht.extend("--ft-typography-body2-letter-spacing",St.letterSpacing,"0.252px"),si=ht.extend("--ft-typography-body2-line-height",St.lineHeight,"1.4"),ri=ht.extend("--ft-typography-body2-text-transform",St.textTransform,"inherit"),ai=ht.extend("--ft-typography-caption-font-family",$t),li=ht.extend("--ft-typography-caption-font-size",St.fontSize,"12px"),hi=ht.extend("--ft-typography-caption-font-weight",St.fontWeight,"normal"),ci=ht.extend("--ft-typography-caption-letter-spacing",St.letterSpacing,"0.396px"),pi=ht.extend("--ft-typography-caption-line-height",St.lineHeight,"1.33"),ui=ht.extend("--ft-typography-caption-text-transform",St.textTransform,"inherit"),fi=ht.extend("--ft-typography-breadcrumb-font-family",$t),di=ht.extend("--ft-typography-breadcrumb-font-size",St.fontSize,"10px"),yi=ht.extend("--ft-typography-breadcrumb-font-weight",St.fontWeight,"normal"),gi=ht.extend("--ft-typography-breadcrumb-letter-spacing",St.letterSpacing,"0.33px"),vi=ht.extend("--ft-typography-breadcrumb-line-height",St.lineHeight,"1.6"),bi=ht.extend("--ft-typography-breadcrumb-text-transform",St.textTransform,"inherit"),mi=ht.extend("--ft-typography-overline-font-family",$t),xi=ht.extend("--ft-typography-overline-font-size",St.fontSize,"10px"),wi=ht.extend("--ft-typography-overline-font-weight",St.fontWeight,"normal"),Oi=ht.extend("--ft-typography-overline-letter-spacing",St.letterSpacing,"1.5px"),$i=ht.extend("--ft-typography-overline-line-height",St.lineHeight,"1.6"),Si=ht.extend("--ft-typography-overline-text-transform",St.textTransform,"uppercase"),Ni=ht.extend("--ft-typography-button-font-family",$t),Ci=ht.extend("--ft-typography-button-font-size",St.fontSize,"14px"),Ri=ht.extend("--ft-typography-button-font-weight",St.fontWeight,"600"),Ei=ht.extend("--ft-typography-button-letter-spacing",St.letterSpacing,"1.246px"),Mi=ht.extend("--ft-typography-button-line-height",St.lineHeight,"1.15"),Ui=ht.extend("--ft-typography-button-text-transform",St.textTransform,"uppercase"),ki=d`
|
|
91
92
|
.ft-typography--title {
|
|
92
|
-
font-family: ${
|
|
93
|
-
font-size: ${
|
|
94
|
-
font-weight: ${
|
|
95
|
-
letter-spacing: ${
|
|
96
|
-
line-height: ${
|
|
97
|
-
text-transform: ${
|
|
93
|
+
font-family: ${Nt};
|
|
94
|
+
font-size: ${Ct};
|
|
95
|
+
font-weight: ${Rt};
|
|
96
|
+
letter-spacing: ${Et};
|
|
97
|
+
line-height: ${Mt};
|
|
98
|
+
text-transform: ${Ut};
|
|
98
99
|
}
|
|
99
|
-
`,
|
|
100
|
+
`,Fi=d`
|
|
100
101
|
.ft-typography--title-dense {
|
|
101
|
-
font-family: ${
|
|
102
|
-
font-size: ${
|
|
103
|
-
font-weight: ${
|
|
104
|
-
letter-spacing: ${
|
|
102
|
+
font-family: ${kt};
|
|
103
|
+
font-size: ${Ft};
|
|
104
|
+
font-weight: ${Lt};
|
|
105
|
+
letter-spacing: ${At};
|
|
105
106
|
line-height: ${Tt};
|
|
106
107
|
text-transform: ${zt};
|
|
107
108
|
}
|
|
108
|
-
`,
|
|
109
|
+
`,Li=d`
|
|
109
110
|
.ft-typography--subtitle1 {
|
|
110
|
-
font-family: ${
|
|
111
|
+
font-family: ${Pt};
|
|
111
112
|
font-size: ${Bt};
|
|
112
|
-
font-weight: ${
|
|
113
|
+
font-weight: ${jt};
|
|
113
114
|
letter-spacing: ${_t};
|
|
114
|
-
line-height: ${
|
|
115
|
-
text-transform: ${
|
|
115
|
+
line-height: ${Dt};
|
|
116
|
+
text-transform: ${Wt};
|
|
116
117
|
}
|
|
117
|
-
`,
|
|
118
|
+
`,Ai=d`
|
|
118
119
|
.ft-typography--subtitle2 {
|
|
119
|
-
font-family: ${
|
|
120
|
-
font-size: ${
|
|
121
|
-
font-weight: ${
|
|
122
|
-
letter-spacing: ${
|
|
120
|
+
font-family: ${Ht};
|
|
121
|
+
font-size: ${Kt};
|
|
122
|
+
font-weight: ${It};
|
|
123
|
+
letter-spacing: ${Vt};
|
|
123
124
|
line-height: ${Zt};
|
|
124
|
-
text-transform: ${
|
|
125
|
+
text-transform: ${Jt};
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
`,Ti=d`
|
|
128
129
|
.ft-typography--body1 {
|
|
129
130
|
font-family: ${qt};
|
|
130
|
-
font-size: ${
|
|
131
|
-
font-weight: ${
|
|
132
|
-
letter-spacing: ${
|
|
133
|
-
line-height: ${
|
|
134
|
-
text-transform: ${
|
|
131
|
+
font-size: ${Xt};
|
|
132
|
+
font-weight: ${Gt};
|
|
133
|
+
letter-spacing: ${Qt};
|
|
134
|
+
line-height: ${Yt};
|
|
135
|
+
text-transform: ${ti};
|
|
135
136
|
}
|
|
136
137
|
`,zi=d`
|
|
137
138
|
.ft-typography--body2 {
|
|
138
|
-
font-family: ${
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
141
|
-
letter-spacing: ${
|
|
142
|
-
line-height: ${
|
|
143
|
-
text-transform: ${
|
|
139
|
+
font-family: ${ii};
|
|
140
|
+
font-size: ${ei};
|
|
141
|
+
font-weight: ${oi};
|
|
142
|
+
letter-spacing: ${ni};
|
|
143
|
+
line-height: ${si};
|
|
144
|
+
text-transform: ${ri};
|
|
144
145
|
}
|
|
145
|
-
`,
|
|
146
|
+
`,Pi=d`
|
|
146
147
|
.ft-typography--caption {
|
|
147
|
-
font-family: ${
|
|
148
|
-
font-size: ${
|
|
149
|
-
font-weight: ${
|
|
150
|
-
letter-spacing: ${
|
|
151
|
-
line-height: ${
|
|
152
|
-
text-transform: ${
|
|
148
|
+
font-family: ${ai};
|
|
149
|
+
font-size: ${li};
|
|
150
|
+
font-weight: ${hi};
|
|
151
|
+
letter-spacing: ${ci};
|
|
152
|
+
line-height: ${pi};
|
|
153
|
+
text-transform: ${ui};
|
|
153
154
|
}
|
|
154
155
|
`,Bi=d`
|
|
155
156
|
.ft-typography--breadcrumb {
|
|
156
157
|
font-family: ${fi};
|
|
157
|
-
font-size: ${
|
|
158
|
-
font-weight: ${
|
|
159
|
-
letter-spacing: ${
|
|
160
|
-
line-height: ${
|
|
161
|
-
text-transform: ${
|
|
158
|
+
font-size: ${di};
|
|
159
|
+
font-weight: ${yi};
|
|
160
|
+
letter-spacing: ${gi};
|
|
161
|
+
line-height: ${vi};
|
|
162
|
+
text-transform: ${bi};
|
|
162
163
|
}
|
|
163
|
-
`,
|
|
164
|
+
`,ji=d`
|
|
164
165
|
.ft-typography--overline {
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
-
font-weight: ${
|
|
168
|
-
letter-spacing: ${
|
|
169
|
-
line-height: ${
|
|
170
|
-
text-transform: ${
|
|
166
|
+
font-family: ${mi};
|
|
167
|
+
font-size: ${xi};
|
|
168
|
+
font-weight: ${wi};
|
|
169
|
+
letter-spacing: ${Oi};
|
|
170
|
+
line-height: ${$i};
|
|
171
|
+
text-transform: ${Si};
|
|
171
172
|
}
|
|
172
173
|
`,_i=d`
|
|
173
174
|
.ft-typography--button {
|
|
174
|
-
font-family: ${
|
|
175
|
-
font-size: ${
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
175
|
+
font-family: ${Ni};
|
|
176
|
+
font-size: ${Ci};
|
|
177
|
+
font-weight: ${Ri};
|
|
178
|
+
letter-spacing: ${Ei};
|
|
179
|
+
line-height: ${Mi};
|
|
180
|
+
text-transform: ${Ui};
|
|
180
181
|
}
|
|
181
|
-
`;class
|
|
182
|
-
<${
|
|
182
|
+
`;class Di extends dt{constructor(){super(...arguments),this.variant=xt.body1}render(){return this.element?mt`
|
|
183
|
+
<${vt(this.element)}
|
|
183
184
|
class="ft-typography ft-typography--${this.variant}">
|
|
184
185
|
<slot></slot>
|
|
185
|
-
</${
|
|
186
|
-
`:
|
|
186
|
+
</${vt(this.element)}>
|
|
187
|
+
`:mt`
|
|
187
188
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
188
|
-
`}}
|
|
189
|
+
`}}Di.styles=[ki,Fi,Li,Ai,Ti,zi,Pi,Bi,ji,_i,d`
|
|
189
190
|
.ft-typography {
|
|
190
191
|
vertical-align: inherit;
|
|
191
192
|
}
|
|
192
|
-
`],
|
|
193
|
+
`],wt([o()],Di.prototype,"element",void 0),wt([o()],Di.prototype,"variant",void 0),l("ft-typography")(Di);var Wi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Hi={distance:ht.create("--ft-tooltip-distance","SIZE","4px"),color:ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:ht.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:ht.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:ht.external(ct.borderRadiusS,"Design system")};class Ki extends dt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
|
|
193
194
|
<div part="container"
|
|
194
195
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
195
196
|
@mouseenter=${this.onHover}
|
|
@@ -204,7 +205,7 @@ const dt=Symbol.for(""),yt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
204
205
|
</div>
|
|
205
206
|
<slot></slot>
|
|
206
207
|
</div>
|
|
207
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}
|
|
208
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ki.elementDefinitions={"ft-typography":Di},Ki.styles=d`
|
|
208
209
|
.ft-tooltip--container {
|
|
209
210
|
display: block;
|
|
210
211
|
position: relative;
|
|
@@ -222,24 +223,24 @@ const dt=Symbol.for(""),yt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
222
223
|
width: max-content;
|
|
223
224
|
max-width: 150px;
|
|
224
225
|
text-align: center;
|
|
225
|
-
padding: ${
|
|
226
|
-
z-index: ${
|
|
226
|
+
padding: ${Hi.distance};
|
|
227
|
+
z-index: ${Hi.zIndex};
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
.ft-tooltip--content {
|
|
230
231
|
padding: 4px 8px;
|
|
231
|
-
border-radius: ${
|
|
232
|
-
background-color: ${
|
|
233
|
-
color: ${
|
|
232
|
+
border-radius: ${Hi.borderRadiusS};
|
|
233
|
+
background-color: ${Hi.backgroundColor};
|
|
234
|
+
color: ${Hi.color};
|
|
234
235
|
top: -500px;
|
|
235
236
|
left: -500px;
|
|
236
237
|
position: relative;
|
|
237
238
|
word-break: break-word;
|
|
238
239
|
}
|
|
239
|
-
`,
|
|
240
|
+
`,Wi([o()],Ki.prototype,"text",void 0),Wi([o({type:Boolean})],Ki.prototype,"manual",void 0),Wi([o({type:Boolean})],Ki.prototype,"inline",void 0),Wi([o({type:Number})],Ki.prototype,"delay",void 0),Wi([o()],Ki.prototype,"position",void 0),Wi([
|
|
240
241
|
/**
|
|
241
242
|
* @license
|
|
242
243
|
* Copyright 2017 Google LLC
|
|
243
244
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
244
245
|
*/
|
|
245
|
-
function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
246
|
+
function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Ki.prototype,"slotNodes",void 0),Wi([s(".ft-tooltip--container")],Ki.prototype,"container",void 0),Wi([s("slot")],Ki.prototype,"target",void 0),Wi([s(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Wi([s(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Wi([function(t){return o({...t,state:!0})}()],Ki.prototype,"visible",void 0),l("ft-tooltip")(Ki),t.FtTooltip=Ki,t.FtTooltipCssVariables=Hi,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tooltip",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "A simple tooltip component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-typography": "^0.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.2.
|
|
22
|
+
"@fluid-topics/ft-typography": "^0.2.18",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.2.18",
|
|
24
24
|
"lit": "2.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "ef8d35d4cfa0669cf38aa2e3d40e02ba46f4d7f9"
|
|
27
27
|
}
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
!function(){
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
-
* This code may only be used under the BSD style license found at
|
|
6
|
-
* http://polymer.github.io/LICENSE.txt
|
|
7
|
-
* The complete set of authors may be found at
|
|
8
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
-
* The complete set of contributors may be found at
|
|
10
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
-
* Code distributed by Google as part of the polymer project is also
|
|
12
|
-
* subject to an additional IP rights grant found at
|
|
13
|
-
* http://polymer.github.io/PATENTS.txt
|
|
14
|
-
*
|
|
15
|
-
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
|
-
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)s.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?d(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},u=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):u(e)},d=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){u(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(dt){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const i=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function e(t){return(e,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,e,o):i(t,e)
|
|
23
|
-
/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}
|
|
28
|
-
/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright 2017 Google LLC
|
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/
|
|
33
|
-
const o=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,s=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(s.finisher=function(i){t(i,o)}),s}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,o)}}
|
|
34
|
-
/**
|
|
35
|
-
* @license
|
|
36
|
-
* Copyright 2017 Google LLC
|
|
37
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/;function n(t,i){return o({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
39
|
-
/**
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2021 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var s;const r=null!=(null===(s=window.HTMLSlotElement)||void 0===s?void 0:s.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const a=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
|
|
44
|
-
/**
|
|
45
|
-
* @license
|
|
46
|
-
* Copyright 2019 Google LLC
|
|
47
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/,l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),c=new Map;class p{constructor(t,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=c.get(this.cssText);return l&&void 0===t&&(c.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const f=t=>new p("string"==typeof t?t:t+"",h),u=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new p(e,h)},d=(t,i)=>{l?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},y=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return f(i)})(t):t
|
|
49
|
-
/**
|
|
50
|
-
* @license
|
|
51
|
-
* Copyright 2017 Google LLC
|
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var g;const v=window.trustedTypes,b=v?v.emptyScript:"",m=window.reactiveElementPolyfillSupport,x={toAttribute(t,i){switch(i){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},w=(t,i)=>i!==t&&(i==i||t==t),$={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=$){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(y(t))}else void 0!==t&&i.push(y(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=$){var o,n;const s=this.constructor._$Eh(t,e);if(void 0!==s&&!0===e.reflect){const r=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:x.toAttribute)(i,e.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,i){var e,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:x.fromAttribute;this._$Ei=r,this[r]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright 2017 Google LLC
|
|
57
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/
|
|
59
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const N=globalThis.trustedTypes,C=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,E="?"+R,M=`<${E}>`,U=document,k=(t="")=>U.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,z=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,P=/'/g,_=/"/g,j=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,I=U.createTreeWalker(U,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=T;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,l=r.exec(e),null!==l);)c=r.lastIndex,r===T?"!--"===l[1]?r=A:void 0!==l[1]?r=z:void 0!==l[2]?(j.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=B):void 0!==l[3]&&(r=B):r===B?">"===l[0]?(r=null!=n?n:T,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?B:'"'===l[3]?_:P):r===_||r===P?r=B:r===A||r===z?r=T:(r=B,n=void 0);const p=r===B&&t[i+1].startsWith("/>")?" ":"";s+=r===T?e+M:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+R+p):e+R+(-2===h?(o.push(void 0),i):p)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class V{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Z(t,i);if(this.el=V.createElement(l,e),I.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=I.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Q:"?"===i[1]?tt:"@"===i[1]?it:G})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(j.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),I.nextNode(),a.push({type:2,index:++n});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:n}),t+=R.length-1}n++}}static createElement(t,i){const e=U.createElement("template");return e.innerHTML=t,e}}function q(t,i,e=t,o){var n,s,r,a;if(i===W)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=F(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=q(t,l._$AS(t,i.values),l,o)),i}class J{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:U).importNode(e,!0);I.currentNode=n;let s=I.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new X(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new et(s,this,t)),this.v.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=I.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class X{constructor(t,i,e,o){var n;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=q(this,t,i),F(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return L(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==H&&F(this._$AH)?this._$AA.nextSibling.data=t:this.k(U.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new J(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=K.get(t.strings);return void 0===i&&K.set(t.strings,i=new V(t)),i}S(t){L(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new X(this.M(k()),this.M(k()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=q(this,t,i,0),s=!F(t)||t!==this._$AH&&t!==W,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=q(this,o[e+r],i,r),a===W&&(a=this._$AH[r]),s||(s=!F(a)||a!==this._$AH[r]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===H?void 0:t}}const Y=N?N.emptyScript:"";class tt extends G{constructor(){super(...arguments),this.type=4}C(t){t&&t!==H?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=q(this,t,i,0))&&void 0!==e?e:H)===W)return;const o=this._$AH,n=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==H&&(o===H||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
60
|
-
/**
|
|
61
|
-
* @license
|
|
62
|
-
* Copyright 2017 Google LLC
|
|
63
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
-
*/
|
|
65
|
-
var nt,st;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new X(i.insertBefore(k(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return W}}rt.finalized=!0,rt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:rt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:rt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.0");class lt{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new lt(t,i,void 0,e)}static extend(t,i,e){return new lt(t,i.category,i,e)}static external(t,i){return new lt(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return u`var(${f(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):f(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const ht={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:lt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:lt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:lt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:lt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:lt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:lt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:lt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:lt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:lt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
|
-
/**
|
|
67
|
-
* @license
|
|
68
|
-
* Copyright 2021 Google LLC
|
|
69
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/class ct extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(n,this.constructor.elementStyles),n}}}(rt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
|
|
71
|
-
${t.map((t=>D`
|
|
72
|
-
<style>${t}</style>
|
|
73
|
-
`))}
|
|
74
|
-
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var pt,ft;u`
|
|
76
|
-
.ft-no-text-select {
|
|
77
|
-
-webkit-touch-callout: none;
|
|
78
|
-
-webkit-user-select: none;
|
|
79
|
-
-khtml-user-select: none;
|
|
80
|
-
-moz-user-select: none;
|
|
81
|
-
-ms-user-select: none;
|
|
82
|
-
user-select: none;
|
|
83
|
-
}
|
|
84
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ft||ft.toString());
|
|
85
|
-
/**
|
|
86
|
-
* @license
|
|
87
|
-
* Copyright 2020 Google LLC
|
|
88
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/
|
|
90
|
-
const ut=Symbol.for(""),dt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===ut)return null===(e=t)||void 0===e?void 0:e._$litStatic$},yt=t=>({_$litStatic$:t,r:ut}),gt=new Map,vt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=dt(s));)l+=n+i[++h],c=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=gt.get(t))&&(r.raw=r,gt.set(t,i=r)),e=a}return t(i,...e)})(D);var bt,mt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(bt||(bt={}));const xt=lt.extend("--ft-typography-font-family",ht.titleFont),wt=lt.extend("--ft-typography-font-family",ht.contentFont),$t={fontFamily:wt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","SIZE","24px"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ot=lt.extend("--ft-typography-title-font-family",xt),St=lt.extend("--ft-typography-title-font-size",$t.fontSize,"20px"),Nt=lt.extend("--ft-typography-title-font-weight",$t.fontWeight,"normal"),Ct=lt.extend("--ft-typography-title-letter-spacing",$t.letterSpacing,"0.15px"),Rt=lt.extend("--ft-typography-title-line-height",$t.lineHeight,"24px"),Et=lt.extend("--ft-typography-title-text-transform",$t.textTransform,"inherit"),Mt=lt.extend("--ft-typography-title-dense-font-family",xt),Ut=lt.extend("--ft-typography-title-dense-font-size",$t.fontSize,"14px"),kt=lt.extend("--ft-typography-title-dense-font-weight",$t.fontWeight,"normal"),Ft=lt.extend("--ft-typography-title-dense-letter-spacing",$t.letterSpacing,"0.105px"),Lt=lt.extend("--ft-typography-title-dense-line-height",$t.lineHeight,"24px"),Tt=lt.extend("--ft-typography-title-dense-text-transform",$t.textTransform,"inherit"),At=lt.extend("--ft-typography-subtitle1-font-family",wt),zt=lt.extend("--ft-typography-subtitle1-font-size",$t.fontSize,"16px"),Bt=lt.extend("--ft-typography-subtitle1-font-weight",$t.fontWeight,"600"),Pt=lt.extend("--ft-typography-subtitle1-letter-spacing",$t.letterSpacing,"0.144px"),_t=lt.extend("--ft-typography-subtitle1-line-height",$t.lineHeight,"24px"),jt=lt.extend("--ft-typography-subtitle1-text-transform",$t.textTransform,"inherit"),Dt=lt.extend("--ft-typography-subtitle2-font-family",wt),Wt=lt.extend("--ft-typography-subtitle2-font-size",$t.fontSize,"14px"),Ht=lt.extend("--ft-typography-subtitle2-font-weight",$t.fontWeight,"normal"),Kt=lt.extend("--ft-typography-subtitle2-letter-spacing",$t.letterSpacing,"0.098px"),It=lt.extend("--ft-typography-subtitle2-line-height",$t.lineHeight,"24px"),Zt=lt.extend("--ft-typography-subtitle2-text-transform",$t.textTransform,"inherit"),Vt=lt.extend("--ft-typography-body1-font-family",wt),qt=lt.extend("--ft-typography-body1-font-size",$t.fontSize,"16px"),Jt=lt.extend("--ft-typography-body1-font-weight",$t.fontWeight,"normal"),Xt=lt.extend("--ft-typography-body1-letter-spacing",$t.letterSpacing,"0.496px"),Gt=lt.extend("--ft-typography-body1-line-height",$t.lineHeight,"24px"),Qt=lt.extend("--ft-typography-body1-text-transform",$t.textTransform,"inherit"),Yt=lt.extend("--ft-typography-body2-font-family",wt),ti=lt.extend("--ft-typography-body2-font-size",$t.fontSize,"14px"),ii=lt.extend("--ft-typography-body2-font-weight",$t.fontWeight,"normal"),ei=lt.extend("--ft-typography-body2-letter-spacing",$t.letterSpacing,"0.252px"),oi=lt.extend("--ft-typography-body2-line-height",$t.lineHeight,"20px"),ni=lt.extend("--ft-typography-body2-text-transform",$t.textTransform,"inherit"),si=lt.extend("--ft-typography-caption-font-family",wt),ri=lt.extend("--ft-typography-caption-font-size",$t.fontSize,"12px"),ai=lt.extend("--ft-typography-caption-font-weight",$t.fontWeight,"normal"),li=lt.extend("--ft-typography-caption-letter-spacing",$t.letterSpacing,"0.396px"),hi=lt.extend("--ft-typography-caption-line-height",$t.lineHeight,"16px"),ci=lt.extend("--ft-typography-caption-text-transform",$t.textTransform,"inherit"),pi=lt.extend("--ft-typography-breadcrumb-font-family",wt),fi=lt.extend("--ft-typography-breadcrumb-font-size",$t.fontSize,"10px"),ui=lt.extend("--ft-typography-breadcrumb-font-weight",$t.fontWeight,"normal"),di=lt.extend("--ft-typography-breadcrumb-letter-spacing",$t.letterSpacing,"0.33px"),yi=lt.extend("--ft-typography-breadcrumb-line-height",$t.lineHeight,"16px"),gi=lt.extend("--ft-typography-breadcrumb-text-transform",$t.textTransform,"inherit"),vi=lt.extend("--ft-typography-overline-font-family",wt),bi=lt.extend("--ft-typography-overline-font-size",$t.fontSize,"10px"),mi=lt.extend("--ft-typography-overline-font-weight",$t.fontWeight,"normal"),xi=lt.extend("--ft-typography-overline-letter-spacing",$t.letterSpacing,"1.5px"),wi=lt.extend("--ft-typography-overline-line-height",$t.lineHeight,"16px"),$i=lt.extend("--ft-typography-overline-text-transform",$t.textTransform,"uppercase"),Oi=lt.extend("--ft-typography-button-font-family",wt),Si=lt.extend("--ft-typography-button-font-size",$t.fontSize,"14px"),Ni=lt.extend("--ft-typography-button-font-weight",$t.fontWeight,"600"),Ci=lt.extend("--ft-typography-button-letter-spacing",$t.letterSpacing,"1.246px"),Ri=lt.extend("--ft-typography-button-line-height",$t.lineHeight,"16px"),Ei=lt.extend("--ft-typography-button-text-transform",$t.textTransform,"uppercase"),Mi=u`
|
|
91
|
-
.ft-typography--title {
|
|
92
|
-
font-family: ${Ot};
|
|
93
|
-
font-size: ${St};
|
|
94
|
-
font-weight: ${Nt};
|
|
95
|
-
letter-spacing: ${Ct};
|
|
96
|
-
line-height: ${Rt};
|
|
97
|
-
text-transform: ${Et};
|
|
98
|
-
}
|
|
99
|
-
`,Ui=u`
|
|
100
|
-
.ft-typography--title-dense {
|
|
101
|
-
font-family: ${Mt};
|
|
102
|
-
font-size: ${Ut};
|
|
103
|
-
font-weight: ${kt};
|
|
104
|
-
letter-spacing: ${Ft};
|
|
105
|
-
line-height: ${Lt};
|
|
106
|
-
text-transform: ${Tt};
|
|
107
|
-
}
|
|
108
|
-
`,ki=u`
|
|
109
|
-
.ft-typography--subtitle1 {
|
|
110
|
-
font-family: ${At};
|
|
111
|
-
font-size: ${zt};
|
|
112
|
-
font-weight: ${Bt};
|
|
113
|
-
letter-spacing: ${Pt};
|
|
114
|
-
line-height: ${_t};
|
|
115
|
-
text-transform: ${jt};
|
|
116
|
-
}
|
|
117
|
-
`,Fi=u`
|
|
118
|
-
.ft-typography--subtitle2 {
|
|
119
|
-
font-family: ${Dt};
|
|
120
|
-
font-size: ${Wt};
|
|
121
|
-
font-weight: ${Ht};
|
|
122
|
-
letter-spacing: ${Kt};
|
|
123
|
-
line-height: ${It};
|
|
124
|
-
text-transform: ${Zt};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
`,Li=u`
|
|
128
|
-
.ft-typography--body1 {
|
|
129
|
-
font-family: ${Vt};
|
|
130
|
-
font-size: ${qt};
|
|
131
|
-
font-weight: ${Jt};
|
|
132
|
-
letter-spacing: ${Xt};
|
|
133
|
-
line-height: ${Gt};
|
|
134
|
-
text-transform: ${Qt};
|
|
135
|
-
}
|
|
136
|
-
`,Ti=u`
|
|
137
|
-
.ft-typography--body2 {
|
|
138
|
-
font-family: ${Yt};
|
|
139
|
-
font-size: ${ti};
|
|
140
|
-
font-weight: ${ii};
|
|
141
|
-
letter-spacing: ${ei};
|
|
142
|
-
line-height: ${oi};
|
|
143
|
-
text-transform: ${ni};
|
|
144
|
-
}
|
|
145
|
-
`,Ai=u`
|
|
146
|
-
.ft-typography--caption {
|
|
147
|
-
font-family: ${si};
|
|
148
|
-
font-size: ${ri};
|
|
149
|
-
font-weight: ${ai};
|
|
150
|
-
letter-spacing: ${li};
|
|
151
|
-
line-height: ${hi};
|
|
152
|
-
text-transform: ${ci};
|
|
153
|
-
}
|
|
154
|
-
`,zi=u`
|
|
155
|
-
.ft-typography--breadcrumb {
|
|
156
|
-
font-family: ${pi};
|
|
157
|
-
font-size: ${fi};
|
|
158
|
-
font-weight: ${ui};
|
|
159
|
-
letter-spacing: ${di};
|
|
160
|
-
line-height: ${yi};
|
|
161
|
-
text-transform: ${gi};
|
|
162
|
-
}
|
|
163
|
-
`,Bi=u`
|
|
164
|
-
.ft-typography--overline {
|
|
165
|
-
font-family: ${vi};
|
|
166
|
-
font-size: ${bi};
|
|
167
|
-
font-weight: ${mi};
|
|
168
|
-
letter-spacing: ${xi};
|
|
169
|
-
line-height: ${wi};
|
|
170
|
-
text-transform: ${$i};
|
|
171
|
-
}
|
|
172
|
-
`,Pi=u`
|
|
173
|
-
.ft-typography--button {
|
|
174
|
-
font-family: ${Oi};
|
|
175
|
-
font-size: ${Si};
|
|
176
|
-
font-weight: ${Ni};
|
|
177
|
-
letter-spacing: ${Ci};
|
|
178
|
-
line-height: ${Ri};
|
|
179
|
-
text-transform: ${Ei};
|
|
180
|
-
}
|
|
181
|
-
`;class _i extends ct{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?vt`
|
|
182
|
-
<${yt(this.element)}
|
|
183
|
-
class="ft-typography ft-typography--${this.variant}">
|
|
184
|
-
<slot></slot>
|
|
185
|
-
</${yt(this.element)}>
|
|
186
|
-
`:vt`
|
|
187
|
-
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
188
|
-
`}}_i.styles=[Mi,Ui,ki,Fi,Li,Ti,Ai,zi,Bi,Pi,u`
|
|
189
|
-
.ft-typography {
|
|
190
|
-
vertical-align: inherit;
|
|
191
|
-
}
|
|
192
|
-
`],mt([e()],_i.prototype,"element",void 0),mt([e()],_i.prototype,"variant",void 0),a("ft-typography")(_i);var ji=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Di=lt.create("--ft-tooltip-distance","SIZE","4px"),Wi=lt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Hi=lt.create("--ft-tooltip-background-color","COLOR","#666666"),Ki=lt.create("--ft-tooltip-z-index","NUMBER","1"),Ii=lt.external(ht.borderRadiusS,"Design system");class Zi extends ct{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return D`
|
|
193
|
-
<div part="container"
|
|
194
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
195
|
-
@mouseenter=${this.onHover}
|
|
196
|
-
@mouseleave=${this.onOut}
|
|
197
|
-
@focusin=${this.onHover}
|
|
198
|
-
@focusout=${this.onOut}
|
|
199
|
-
@touchstart=${this.onTouch}>
|
|
200
|
-
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
201
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
202
|
-
<ft-typography variant="caption">${this.text}</ft-typography>
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
<slot></slot>
|
|
206
|
-
</div>
|
|
207
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Zi.elementDefinitions={"ft-typography":_i},Zi.styles=u`
|
|
208
|
-
.ft-tooltip--container {
|
|
209
|
-
display: block;
|
|
210
|
-
position: relative;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.ft-tooltip--inline {
|
|
214
|
-
display: inline-block;
|
|
215
|
-
max-width: 100%;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.ft-tooltip {
|
|
219
|
-
position: absolute;
|
|
220
|
-
box-sizing: border-box;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
width: max-content;
|
|
223
|
-
max-width: 150px;
|
|
224
|
-
text-align: center;
|
|
225
|
-
padding: ${Di};
|
|
226
|
-
z-index: ${Ki};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.ft-tooltip--content {
|
|
230
|
-
padding: 4px 8px;
|
|
231
|
-
border-radius: ${Ii};
|
|
232
|
-
background-color: ${Hi};
|
|
233
|
-
color: ${Wi};
|
|
234
|
-
top: -500px;
|
|
235
|
-
left: -500px;
|
|
236
|
-
position: relative;
|
|
237
|
-
word-break: break-word;
|
|
238
|
-
}
|
|
239
|
-
`,ji([e()],Zi.prototype,"text",void 0),ji([e({type:Boolean})],Zi.prototype,"manual",void 0),ji([e({type:Boolean})],Zi.prototype,"inline",void 0),ji([e({type:Number})],Zi.prototype,"delay",void 0),ji([e()],Zi.prototype,"position",void 0),ji([
|
|
240
|
-
/**
|
|
241
|
-
* @license
|
|
242
|
-
* Copyright 2017 Google LLC
|
|
243
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
244
|
-
*/
|
|
245
|
-
function(t,i,e){let n,s=t;return"object"==typeof t?(s=t.slot,n=t):n={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return o({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),a=null!=s?r(s,t):[];return e?a.filter((t=>t.matches(e))):a},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):o({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==o?void 0:o.assignedNodes(n))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Zi.prototype,"slotNodes",void 0),ji([n(".ft-tooltip--container")],Zi.prototype,"container",void 0),ji([n("slot")],Zi.prototype,"target",void 0),ji([n(".ft-tooltip")],Zi.prototype,"tooltip",void 0),ji([n(".ft-tooltip--content")],Zi.prototype,"tooltipContent",void 0),ji([function(t){return e({...t,state:!0})}()],Zi.prototype,"visible",void 0),a("ft-tooltip")(function t(i){var e;let o;if("elementDefinitions"in i){o={};const e=i.elementDefinitions;for(let i in e)o[i]=t(e[i])}return e=class extends i{render(){var t;let e=null!==(t=i.styles)&&void 0!==t?t:[];return Array.isArray(e)||(e=[e]),D`
|
|
246
|
-
${e.map((t=>D`
|
|
247
|
-
<style>${t}</style>
|
|
248
|
-
`))}
|
|
249
|
-
${super.render()}
|
|
250
|
-
`}},e.styles=void 0,e.elementDefinitions=o,e}(Zi))}();
|
package/build/inline-styles.d.ts
DELETED
package/build/inline-styles.js
DELETED