@fluid-topics/ft-notice 0.1.4 → 0.1.7
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/README.md +1 -1
- package/build/ft-notice.d.ts +3 -4
- package/build/ft-notice.js +27 -38
- package/build/ft-notice.light.js +189 -0
- package/build/ft-notice.min.js +176 -25
- package/package.json +5 -4
package/README.md
CHANGED
package/build/ft-notice.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ElementDefinitionsMap, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export interface FtNoticeProperties {
|
|
3
|
-
type: string;
|
|
4
3
|
icon: string;
|
|
5
4
|
}
|
|
6
5
|
export declare const FtNoticeCssVariables: {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
noticeColor: FtCssVariable;
|
|
7
|
+
noticeIconColor: FtCssVariable;
|
|
8
|
+
borderRadius: FtCssVariable;
|
|
9
9
|
};
|
|
10
10
|
export declare class FtNotice extends FtLitElement implements FtNoticeProperties {
|
|
11
11
|
static elementDefinitions: ElementDefinitionsMap;
|
|
12
12
|
protected getStyles(): import("lit").CSSResult;
|
|
13
|
-
type: "info" | "warning";
|
|
14
13
|
icon: string;
|
|
15
14
|
protected getTemplate(): import("lit-html").TemplateResult<1>;
|
|
16
15
|
}
|
package/build/ft-notice.js
CHANGED
|
@@ -6,80 +6,69 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { css, html } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import { customElement, designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
|
-
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
9
|
+
import { customElement, designSystemVariables, FtCssVariable, FtLitElement, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
10
|
+
import { FtIcon, FtIconCssVariables } from "@fluid-topics/ft-icon";
|
|
11
|
+
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
11
12
|
export const FtNoticeCssVariables = {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
noticeColor: FtCssVariable.extend("--ft-notice-color", designSystemVariables.colorPrimary),
|
|
14
|
+
noticeIconColor: FtCssVariable.extend("--ft-notice-icon-color", designSystemVariables.colorOnPrimary),
|
|
15
|
+
borderRadius: FtCssVariable.external(designSystemVariables.borderRadiusS, "Design System")
|
|
14
16
|
};
|
|
15
17
|
let FtNotice = class FtNotice extends FtLitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.icon = "info";
|
|
21
|
+
}
|
|
16
22
|
getStyles() {
|
|
17
23
|
// language=CSS
|
|
18
24
|
return css `
|
|
19
25
|
.ft-notice {
|
|
20
|
-
display: flex;
|
|
26
|
+
display: inline-flex;
|
|
21
27
|
align-items: stretch;
|
|
22
28
|
box-sizing: border-box;
|
|
23
|
-
border-radius: 0.3em;
|
|
24
|
-
border: 1px solid ${FtNoticeCssVariables.noticeInfoColor};
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
ft-icon {
|
|
28
|
-
|
|
29
|
-
padding: 0
|
|
32
|
+
${setVariable(FtIconCssVariables.size, "20px")};
|
|
33
|
+
padding: 0 8px;
|
|
30
34
|
display: flex;
|
|
31
35
|
align-self: center;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
.ft-icon {
|
|
35
|
-
color:
|
|
39
|
+
color: ${FtNoticeCssVariables.noticeIconColor};
|
|
40
|
+
background-color: ${FtNoticeCssVariables.noticeColor};
|
|
36
41
|
display: flex;
|
|
37
42
|
align-items: center;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
.ft-notice-info {
|
|
41
|
-
border: 1px solid ${FtNoticeCssVariables.noticeInfoColor};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ft-notice-warning {
|
|
45
|
-
border: 1px solid ${FtNoticeCssVariables.noticeWarningColor};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ft-icon-info {
|
|
49
|
-
background-color: ${FtNoticeCssVariables.noticeInfoColor};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ft-icon-warning {
|
|
53
|
-
background-color: ${FtNoticeCssVariables.noticeWarningColor};
|
|
43
|
+
border-top-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
44
|
+
border-bottom-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
54
45
|
}
|
|
55
46
|
|
|
56
47
|
.ft-notice-label {
|
|
57
|
-
font-size: 0.9em;
|
|
58
|
-
font-family: system-ui;
|
|
59
|
-
font-weight: 100;
|
|
60
48
|
padding: 8px;
|
|
49
|
+
border-top-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
50
|
+
border-bottom-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
51
|
+
border: 1px solid ${FtNoticeCssVariables.noticeColor};
|
|
61
52
|
}
|
|
62
53
|
`;
|
|
63
54
|
}
|
|
64
55
|
getTemplate() {
|
|
65
56
|
return html `
|
|
66
|
-
<div class="ft-notice
|
|
67
|
-
<div class="ft-icon
|
|
68
|
-
<ft-icon>${
|
|
57
|
+
<div class="ft-notice">
|
|
58
|
+
<div class="ft-icon">
|
|
59
|
+
<ft-icon>${this.icon}</ft-icon>
|
|
69
60
|
</div>
|
|
70
|
-
<
|
|
61
|
+
<ft-typography class="ft-notice-label" variant="body2">
|
|
71
62
|
<slot></slot>
|
|
72
|
-
</
|
|
63
|
+
</ft-typography>
|
|
73
64
|
</div>
|
|
74
65
|
`;
|
|
75
66
|
}
|
|
76
67
|
};
|
|
77
68
|
FtNotice.elementDefinitions = {
|
|
78
|
-
"ft-icon": FtIcon
|
|
69
|
+
"ft-icon": FtIcon,
|
|
70
|
+
"ft-typography": FtTypography
|
|
79
71
|
};
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: String })
|
|
82
|
-
], FtNotice.prototype, "type", void 0);
|
|
83
72
|
__decorate([
|
|
84
73
|
property({ type: String })
|
|
85
74
|
], FtNotice.prototype, "icon", void 0);
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
!function(t,e,i,o,n){var s,r;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(s||(s={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(r||(r={})),new Map([...["abw"].map((t=>[t,r.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,r.AUDIO])),...["avi"].map((t=>[t,r.AVI])),...["chm","xhs"].map((t=>[t,r.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,r.CODE])),...["csv"].map((t=>[t,r.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,r.DITA])),...["epub"].map((t=>[t,r.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,r.EXCEL])),...["flac"].map((t=>[t,r.FLAC])),...["gif"].map((t=>[t,r.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,r.GZIP])),...["html","htm","xhtml"].map((t=>[t,r.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,r.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,r.JPEG])),...["json"].map((t=>[t,r.JSON])),...["m4a","m4p"].map((t=>[t,r.M4A])),...["mov","qt"].map((t=>[t,r.MOV])),...["mp3"].map((t=>[t,r.MP3])),...["mp4","m4v"].map((t=>[t,r.MP4])),...["ogg","oga"].map((t=>[t,r.OGG])),...["pdf","ps"].map((t=>[t,r.PDF])),...["png"].map((t=>[t,r.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,r.POWERPOINT])),...["rar"].map((t=>[t,r.RAR])),...["stp"].map((t=>[t,r.STP])),...["txt","rtf","md","mdown"].map((t=>[t,r.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,r.VIDEO])),...["wav"].map((t=>[t,r.WAV])),...["wma"].map((t=>[t,r.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,r.WORD])),...["xml","xsl","rdf"].map((t=>[t,r.XML])),...["yaml","yml","x-yaml"].map((t=>[t,r.YAML])),...["zip"].map((t=>[t,r.ZIP]))]);var l,a=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format"}(l||(l={}));const p={size:o.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",o.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariable.extend("--ft-icon-file-format-font-family",o.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},h=e.css`
|
|
2
|
+
.ft-icon--fluid-topics {
|
|
3
|
+
font-family: ${p.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
4
|
+
font-size: ${p.size};
|
|
5
|
+
line-height: 1;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
text-transform: none;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-variant: normal;
|
|
10
|
+
speak: none;
|
|
11
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
12
|
+
text-rendering: auto;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
}
|
|
16
|
+
`,f=e.css`
|
|
17
|
+
.ft-icon--file-format {
|
|
18
|
+
font-family: ${p.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
19
|
+
font-size: ${p.size};
|
|
20
|
+
line-height: 1;
|
|
21
|
+
font-weight: normal;
|
|
22
|
+
text-transform: none;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-variant: normal;
|
|
25
|
+
speak: none;
|
|
26
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
27
|
+
text-rendering: auto;
|
|
28
|
+
-webkit-font-smoothing: antialiased;
|
|
29
|
+
-moz-osx-font-smoothing: grayscale;
|
|
30
|
+
}
|
|
31
|
+
`;let x=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=l.fluid_topics}getStyles(){return[h,f,e.css`
|
|
32
|
+
:host, i.ft-icon {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
width: ${p.size};
|
|
35
|
+
height: ${p.size};
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
`]}getTemplate(){return e.html`
|
|
39
|
+
<slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
|
|
40
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">${n.unsafeHTML(this.getIcon())}</i>
|
|
41
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;return this.variant===l.file_format?null!==(t=r[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=s[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};
|
|
42
|
+
/**
|
|
43
|
+
* @license
|
|
44
|
+
* Copyright 2017 Google LLC
|
|
45
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
+
*/
|
|
47
|
+
var y;x.elementDefinitions={},a([i.property()],x.prototype,"variant",void 0),a([i.query("slot")],x.prototype,"slottedContent",void 0),x=a([o.customElement("ft-icon")],x);const g=globalThis.trustedTypes,c=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,m="?"+d,u=`<${m}>`,v=document,b=(t="")=>v.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,N=/>/g,S=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,_=/"/g,k=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),E=new WeakMap,U=v.createTreeWalker(v,129,null,!1),C=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=z;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===z?"!--"===a[1]?r=j:void 0!==a[1]?r=N:void 0!==a[2]?(k.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=n?n:z,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?_:A):r===_||r===A?r=S:r===j||r===N?r=z:(r=S,n=void 0);const f=r===S&&t[e+1].startsWith("/>")?" ":"";s+=r===z?i+u:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+d+f):i+d+(-2===p?(o.push(void 0),e):f)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=C(t,e);if(this.el=M.createElement(a,i),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(d)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(d),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?q:"@"===e[1]?H:G})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(d),e=t.length-1;if(e>0){o.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],b()),U.nextNode(),l.push({type:2,index:++n});o.append(t[e],b())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)l.push({type:7,index:n}),t+=d.length-1}n++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,o){var n,s,r,l;if(e===O)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=$(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=F(t,a._$AS(t,e.values),a,o)),e}class W{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:v).importNode(i,!0);U.currentNode=n;let s=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Z(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new D(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=U.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),$(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return w(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&$(this._$AH)?this._$AA.nextSibling.data=t:this.S(v.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new W(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new M(t)),e}A(t){w(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Z(this.M(b()),this.M(b()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=F(this,t,e,0),s=!$(t)||t!==this._$AH&&t!==O,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=F(this,o[i+r],e,r),l===O&&(l=this._$AH[r]),s||(s=!$(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends G{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const R=g?g.emptyScript:"";class q extends G{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class H extends G{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:I)===O)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class D{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const L=window.litHtmlPolyfillSupport;null==L||L(M,Z),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2020 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*/
|
|
53
|
+
const B=t=>({_$litStatic$:t}),J=new Map,P=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const l=[],a=[];let p,h=0,f=!1;for(;h<n;){for(p=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],f=!0;a.push(r),l.push(p),h++}if(h===n&&l.push(e[n]),f){const t=l.join("$$lit$$");void 0===(e=J.get(t))&&(l.raw=l,J.set(t,e=l)),i=a}return t(e,...i)})(T);var Q,V=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,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"}(Q||(Q={}));const X=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.titleFont),Y=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.contentFont),tt={fontFamily:Y,fontSize:o.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:o.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:o.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:o.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:o.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=o.FtCssVariable.extend("--ft-typography-title-font-family",X),it=o.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=o.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=o.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=o.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"24px"),rt=o.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=o.FtCssVariable.extend("--ft-typography-title-dense-font-family",X),at=o.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),pt=o.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=o.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),ft=o.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"24px"),xt=o.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),yt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Y),gt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),ct=o.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),dt=o.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),mt=o.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"24px"),ut=o.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),vt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Y),bt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=o.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=o.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),zt=o.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"24px"),jt=o.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),Nt=o.FtCssVariable.extend("--ft-typography-body1-font-family",Y),St=o.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),At=o.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),_t=o.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),kt=o.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"24px"),Tt=o.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),Ot=o.FtCssVariable.extend("--ft-typography-body2-font-family",Y),It=o.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Et=o.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Ut=o.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Ct=o.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"20px"),Mt=o.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Ft=o.FtCssVariable.extend("--ft-typography-caption-font-family",Y),Wt=o.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Zt=o.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Gt=o.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Kt=o.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"16px"),Rt=o.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),qt=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Y),Ht=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Dt=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Lt=o.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Bt=o.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"16px"),Jt=o.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Pt=o.FtCssVariable.extend("--ft-typography-overline-font-family",Y),Qt=o.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Vt=o.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Xt=o.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Yt=o.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"16px"),te=o.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee=o.FtCssVariable.extend("--ft-typography-button-font-family",Y),ie=o.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),oe=o.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),ne=o.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),se=o.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"16px"),re=o.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),le=e.css`
|
|
54
|
+
.ft-typography--title {
|
|
55
|
+
font-family: ${et};
|
|
56
|
+
font-size: ${it};
|
|
57
|
+
font-weight: ${ot};
|
|
58
|
+
letter-spacing: ${nt};
|
|
59
|
+
line-height: ${st};
|
|
60
|
+
text-transform: ${rt};
|
|
61
|
+
}
|
|
62
|
+
`,ae=e.css`
|
|
63
|
+
.ft-typography--title-dense {
|
|
64
|
+
font-family: ${lt};
|
|
65
|
+
font-size: ${at};
|
|
66
|
+
font-weight: ${pt};
|
|
67
|
+
letter-spacing: ${ht};
|
|
68
|
+
line-height: ${ft};
|
|
69
|
+
text-transform: ${xt};
|
|
70
|
+
}
|
|
71
|
+
`,pe=e.css`
|
|
72
|
+
.ft-typography--subtitle1 {
|
|
73
|
+
font-family: ${yt};
|
|
74
|
+
font-size: ${gt};
|
|
75
|
+
font-weight: ${ct};
|
|
76
|
+
letter-spacing: ${dt};
|
|
77
|
+
line-height: ${mt};
|
|
78
|
+
text-transform: ${ut};
|
|
79
|
+
}
|
|
80
|
+
`,he=e.css`
|
|
81
|
+
.ft-typography--subtitle2 {
|
|
82
|
+
font-family: ${vt};
|
|
83
|
+
font-size: ${bt};
|
|
84
|
+
font-weight: ${$t};
|
|
85
|
+
letter-spacing: ${wt};
|
|
86
|
+
line-height: ${zt};
|
|
87
|
+
text-transform: ${jt};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
`,fe=e.css`
|
|
91
|
+
.ft-typography--body1 {
|
|
92
|
+
font-family: ${Nt};
|
|
93
|
+
font-size: ${St};
|
|
94
|
+
font-weight: ${At};
|
|
95
|
+
letter-spacing: ${_t};
|
|
96
|
+
line-height: ${kt};
|
|
97
|
+
text-transform: ${Tt};
|
|
98
|
+
}
|
|
99
|
+
`,xe=e.css`
|
|
100
|
+
.ft-typography--body2 {
|
|
101
|
+
font-family: ${Ot};
|
|
102
|
+
font-size: ${It};
|
|
103
|
+
font-weight: ${Et};
|
|
104
|
+
letter-spacing: ${Ut};
|
|
105
|
+
line-height: ${Ct};
|
|
106
|
+
text-transform: ${Mt};
|
|
107
|
+
}
|
|
108
|
+
`,ye=e.css`
|
|
109
|
+
.ft-typography--caption {
|
|
110
|
+
font-family: ${Ft};
|
|
111
|
+
font-size: ${Wt};
|
|
112
|
+
font-weight: ${Zt};
|
|
113
|
+
letter-spacing: ${Gt};
|
|
114
|
+
line-height: ${Kt};
|
|
115
|
+
text-transform: ${Rt};
|
|
116
|
+
}
|
|
117
|
+
`,ge=e.css`
|
|
118
|
+
.ft-typography--breadcrumb {
|
|
119
|
+
font-family: ${qt};
|
|
120
|
+
font-size: ${Ht};
|
|
121
|
+
font-weight: ${Dt};
|
|
122
|
+
letter-spacing: ${Lt};
|
|
123
|
+
line-height: ${Bt};
|
|
124
|
+
text-transform: ${Jt};
|
|
125
|
+
}
|
|
126
|
+
`,ce=e.css`
|
|
127
|
+
.ft-typography--overline {
|
|
128
|
+
font-family: ${Pt};
|
|
129
|
+
font-size: ${Qt};
|
|
130
|
+
font-weight: ${Vt};
|
|
131
|
+
letter-spacing: ${Xt};
|
|
132
|
+
line-height: ${Yt};
|
|
133
|
+
text-transform: ${te};
|
|
134
|
+
}
|
|
135
|
+
`,de=e.css`
|
|
136
|
+
.ft-typography--button {
|
|
137
|
+
font-family: ${ee};
|
|
138
|
+
font-size: ${ie};
|
|
139
|
+
font-weight: ${oe};
|
|
140
|
+
letter-spacing: ${ne};
|
|
141
|
+
line-height: ${se};
|
|
142
|
+
text-transform: ${re};
|
|
143
|
+
}
|
|
144
|
+
`;let me=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}getStyles(){return[le,ae,pe,he,fe,xe,ye,ge,ce,de]}getTemplate(){return this.element?P`
|
|
145
|
+
<${B(this.element)}
|
|
146
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
147
|
+
<slot></slot>
|
|
148
|
+
</${B(this.element)}>
|
|
149
|
+
`:P`
|
|
150
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
151
|
+
`}};V([i.property()],me.prototype,"element",void 0),V([i.property()],me.prototype,"variant",void 0),me=V([o.customElement("ft-typography")],me);var ue=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ve={noticeColor:o.FtCssVariable.extend("--ft-notice-color",o.designSystemVariables.colorPrimary),noticeIconColor:o.FtCssVariable.extend("--ft-notice-icon-color",o.designSystemVariables.colorOnPrimary),borderRadius:o.FtCssVariable.external(o.designSystemVariables.borderRadiusS,"Design System")};t.FtNotice=class extends o.FtLitElement{constructor(){super(...arguments),this.icon="info"}getStyles(){return e.css`
|
|
152
|
+
.ft-notice {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: stretch;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
ft-icon {
|
|
159
|
+
${o.setVariable(p.size,"20px")};
|
|
160
|
+
padding: 0 8px;
|
|
161
|
+
display: flex;
|
|
162
|
+
align-self: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ft-icon {
|
|
166
|
+
color: ${ve.noticeIconColor};
|
|
167
|
+
background-color: ${ve.noticeColor};
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
border-top-left-radius: ${ve.borderRadius};
|
|
171
|
+
border-bottom-left-radius: ${ve.borderRadius};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ft-notice-label {
|
|
175
|
+
padding: 8px;
|
|
176
|
+
border-top-right-radius: ${ve.borderRadius};
|
|
177
|
+
border-bottom-right-radius: ${ve.borderRadius};
|
|
178
|
+
border: 1px solid ${ve.noticeColor};
|
|
179
|
+
}
|
|
180
|
+
`}getTemplate(){return e.html`
|
|
181
|
+
<div class="ft-notice">
|
|
182
|
+
<div class="ft-icon">
|
|
183
|
+
<ft-icon>${this.icon}</ft-icon>
|
|
184
|
+
</div>
|
|
185
|
+
<ft-typography class="ft-notice-label" variant="body2">
|
|
186
|
+
<slot></slot>
|
|
187
|
+
</ft-typography>
|
|
188
|
+
</div>
|
|
189
|
+
`}},t.FtNotice.elementDefinitions={"ft-icon":x,"ft-typography":me},ue([i.property({type:String})],t.FtNotice.prototype,"icon",void 0),t.FtNotice=ue([o.customElement("ft-notice")],t.FtNotice),t.FtNoticeCssVariables=ve,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils,ftGlobals.litUnsafeHTML);
|
package/build/ft-notice.min.js
CHANGED
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),
|
|
7
|
+
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new Map;class n{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=o.get(this.cssText);return e&&void 0===t&&(o.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",i),s=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new n(o,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return r(e)})(t):t
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/;var c;const h=window.trustedTypes,
|
|
12
|
+
*/;var c;const h=window.trustedTypes,p=h?h.emptyScript:"",f=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},d=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:d};class x extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=y){var o,n;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:u.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:u.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
18
|
+
var g;x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:x}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.2.2");const v=globalThis.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,w="?"+b,O=`<${w}>`,$=document,S=(t="")=>$.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,M=/>/g,U=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,F=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),L=new WeakMap,_=$.createTreeWalker($,129,null,!1),P=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=E;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===E?"!--"===l[1]?s=C:void 0!==l[1]?s=M:void 0!==l[2]?(k.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=U):void 0!==l[3]&&(s=U):s===U?">"===l[0]?(s=null!=n?n:E,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?U:'"'===l[3]?F:j):s===F||s===j?s=U:s===C||s===M?s=E:(s=U,n=void 0);const p=s===U&&t[e+1].startsWith("/>")?" ":"";r+=s===E?i+O:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+b+p):i+b+(-2===c?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(a):a,o]};class B{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=P(t,e);if(this.el=B.createElement(l,i),_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=_.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?V:"@"===e[1]?q:H})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(b),e=t.length-1;if(e>0){o.textContent=v?v.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],S()),_.nextNode(),a.push({type:2,index:++n});o.append(t[e],S())}}}else if(8===o.nodeType)if(o.data===w)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(b,t+1));)a.push({type:7,index:n}),t+=b.length-1}n++}}static createElement(t,e){const i=$.createElement("template");return i.innerHTML=t,i}}function W(t,e,i=t,o){var n,r,s,a;if(e===T)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=N(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=W(t,l._$AS(t,e.values),l,o)),e}class D{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$).importNode(i,!0);_.currentNode=n;let r=_.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new K(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new J(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=_.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class K{constructor(t,e,i,o){var n;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),N(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return R(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==A&&N(this._$AH)?this._$AA.nextSibling.data=t:this.S($.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new D(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new B(t)),e}A(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new K(this.M(S()),this.M(S()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,i,o,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=W(this,t,e,0),r=!N(t)||t!==this._$AH&&t!==T,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=W(this,o[i+s],e,s),a===T&&(a=this._$AH[s]),r||(r=!N(a)||a!==this._$AH[s]),a===A?t=A:t!==A&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.k(t)}k(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class I extends H{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===A?void 0:t}}const Z=v?v.emptyScript:"";class V extends H{constructor(){super(...arguments),this.type=4}k(t){t&&t!==A?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class q extends H{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=W(this,t,e,0))&&void 0!==i?i:A)===T)return;const o=this._$AH,n=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==A&&(o===A||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var G,Q;null==X||X(
|
|
24
|
+
var G,Q;null==X||X(B,K),(null!==(g=globalThis.litHtmlVersions)&&void 0!==g?g:globalThis.litHtmlVersions=[]).push("2.1.3");class Y extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new K(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return T}}Y.finalized=!0,Y._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:Y});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Y}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
@@ -38,32 +38,41 @@ const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e
|
|
|
38
38
|
* Copyright 2021 Google LLC
|
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
40
|
*/
|
|
41
|
-
var nt;null===(nt=window.HTMLSlotElement)||void 0===nt||nt.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,n=[];!(i=t.next()).done;)n.push(i.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,n){return e=t(e,i),n&&Reflect.setPrototypeOf(e,n.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=n(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=o;if(!ShadowRoot.prototype.createElement){var h,u=window.HTMLElement,f=window.customElements.define,d=window.customElements.get,p=window.customElements,x=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(g(i,o,n),n={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,n),this.o.set(i,n),(o=d.call(p,t))||(o=y(t),f.call(p,t,o)),this===window.customElements&&(m.set(i,n),n.s=o),o=this.h.get(t)){this.h.delete(t);for(var r=(o=e(o)).next();!r.done;r=o.next())r=r.value,v.delete(r),O(r,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){N.push(this),p.upgrade.apply(p,arguments),N.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var n=this.h.get(e);n||this.h.set(e,n=new Set),i?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=h;if(t)return h=void 0,t;var e=m.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(u,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),x.set(t,e),t},window.HTMLElement.prototype=u.prototype;var y=function(t){function e(){var e=Reflect.construct(u,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=N[N.length-1])instanceof CustomElementRegistry){var n=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(n=b.get(i))?void 0:n.getRootNode())||document)}n=i.customElements}return(i=(n=n||window.customElements).j(t))?O(e,i):v.set(e,n),e}return r.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=x.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):v.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=x.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):v.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=x.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=x.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},g=function(t,e,i){if(0!==e.size&&void 0!==i){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);n.call(this,t,o),i.call(this,t,r,o)}else n.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);o.call(this,t),i.call(this,t,n,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===u?Object.setPrototypeOf(t,window.HTMLElement):w(e)},O=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),x.set(t,e),h=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=S.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var N=[document],R=function(t,e,i){var n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){N.push(this);var t=n.apply(i||this,arguments);return void 0!==t&&b.set(t,this),N.pop(),t}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");var E=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){N.push(this),e.set.call(this,t),N.pop()}}))};if(E(Element),E(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,$=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return e=$.call.apply($,[this].concat(i(e))),C.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,n=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=C.get(this),!0!==x.get(o).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(i(e)))}}));var M=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},U=M,j=Array;if(U.prototype=n(j.prototype),U.prototype.constructor=U,c)c(U,j);else for(var k in j)if("prototype"!=k)if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(j,k);F&&Object.defineProperty(U,k,F)}else U[k]=j[k];U.u=j.prototype,r.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var T=function(t){var e=this,i=new Map;t.forEach((function(t,n){var o=t.getAttribute("name"),r=i.get(o)||[];e[+n]=t,r.push(t),i.set(o,r)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new M(t))}))};T.prototype.namedItem=function(t){return this[t]};var A=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=A.get.call(this,[]),i=[],n=(t=e(t)).next();!n.done;n=t.next()){n=n.value;var o=x.get(n);o&&!0!==o.formAssociated||i.push(n)}return new T(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(dt){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.warn(e,i,n,t)}}}const ot=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class rt{constructor(t,e,i,n,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=n,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new rt(t,e,void 0,i)}static extend(t,e,i){return new rt(t,e.category,e,i)}static external(t,e){return new rt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${r(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):r(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
41
|
+
var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,o=[];!(i=t.next()).done;)o.push(i.value);t=o}return t}var o="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var n,r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,o){return e=t(e,i),o&&Reflect.setPrototypeOf(e,o.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=o(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}n=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=n;if(!ShadowRoot.prototype.createElement){var h,p=window.HTMLElement,f=window.customElements.define,u=window.customElements.get,d=window.customElements,y=new WeakMap,x=new WeakMap,g=new WeakMap,v=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var o=i.prototype.attributeChangedCallback,n=new Set(i.observedAttributes||[]);if(b(i,n,o),o={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:o,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:n},this.l.set(t,o),this.o.set(i,o),(n=u.call(d,t))||(n=m(t),f.call(d,t,n)),this===window.customElements&&(g.set(i,o),o.s=n),n=this.h.get(t)){this.h.delete(t);for(var r=(n=e(n)).next();!r.done;r=n.next())r=r.value,x.delete(r),O(r,o,!0)}return void 0!==(o=this.i.get(t))&&(o.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),d.upgrade.apply(d,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var o=this.h.get(e);o||this.h.set(e,o=new Set),i?o.add(t):o.delete(t)},window.HTMLElement=function(){var t=h;if(t)return h=void 0,t;var e=g.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),y.set(t,e),t},window.HTMLElement.prototype=p.prototype;var m=function(t){function e(){var e=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var o=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(o=v.get(i))?void 0:o.getRootNode())||document)}o=i.customElements}return(i=(o=o||window.customElements).j(t))?O(e,i):x.set(e,o),e}return r.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=y.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):x.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=y.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):x.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=y.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=y.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},b=function(t,e,i){if(0!==e.size&&void 0!==i){var o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t,n),i.call(this,t,r,n)}else o.call(this,t,n)});var n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var o=this.getAttribute(t);n.call(this,t),i.call(this,t,o,null)}else n.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===p?Object.setPrototypeOf(t,window.HTMLElement):w(e)},O=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),y.set(t,e),h=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=$.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],N=function(t,e,i){var o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=o.apply(i||this,arguments);return void 0!==t&&v.set(t,this),S.pop(),t}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");var R=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(R(Element),R(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];return e=C.call.apply(C,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,o=e[t];e[t]=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(n=E.get(this),!0!==y.get(n).formAssociated)throw new DOMException("Failed to execute "+o+" on 'ElementInternals': The target element is not a form-associated custom element.");null==o||o.call.apply(o,[this].concat(i(e)))}}));var M=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},U=M,j=Array;if(U.prototype=o(j.prototype),U.prototype.constructor=U,c)c(U,j);else for(var F in j)if("prototype"!=F)if(Object.defineProperties){var k=Object.getOwnPropertyDescriptor(j,F);k&&Object.defineProperty(U,F,k)}else U[F]=j[F];U.u=j.prototype,r.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var z=function(t){var e=this,i=new Map;t.forEach((function(t,o){var n=t.getAttribute("name"),r=i.get(n)||[];e[+o]=t,r.push(t),i.set(n,r)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new M(t))}))};z.prototype.namedItem=function(t){return this[t]};var T=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=T.get.call(this,[]),i=[],o=(t=e(t)).next();!o.done;o=t.next()){o=o.value;var n=y.get(o);n&&!0!==n.formAssociated||i.push(o)}return new z(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(pt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}const nt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class rt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,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,e,i){return new rt(t,e,void 0,i)}static extend(t,e,i){return new rt(t,e.category,e,i)}static external(t,e){return new rt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${r(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):r(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright 2021 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
*/class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`
|
|
47
|
+
${t.map((t=>z`
|
|
48
|
+
<style>${t}</style>
|
|
49
|
+
`))}
|
|
50
|
+
${this.getTemplate()}
|
|
51
|
+
`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var lt,ct;s`
|
|
52
|
+
.ft-no-text-select {
|
|
53
|
+
-webkit-touch-callout: none;
|
|
54
|
+
-webkit-user-select: none;
|
|
55
|
+
-khtml-user-select: none;
|
|
56
|
+
-moz-user-select: none;
|
|
57
|
+
-ms-user-select: none;
|
|
58
|
+
user-select: none;
|
|
59
|
+
}
|
|
60
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ct=null===(lt=window.safari)||void 0===lt?void 0:lt.pushNotification)||void 0===ct||ct.toString());
|
|
53
61
|
/**
|
|
54
62
|
* @license
|
|
55
63
|
* Copyright 2017 Google LLC
|
|
56
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
65
|
*/
|
|
66
|
+
const ht=2;
|
|
58
67
|
/**
|
|
59
68
|
* @license
|
|
60
69
|
* Copyright 2017 Google LLC
|
|
61
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
71
|
*/
|
|
63
|
-
class
|
|
72
|
+
class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=A,t.type!==ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||null==t)return this.vt=void 0,this.it=t;if(t===T)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var ut,dt;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ut||(ut={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(dt||(dt={})),new Map([...["abw"].map((t=>[t,dt.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,dt.AUDIO])),...["avi"].map((t=>[t,dt.AVI])),...["chm","xhs"].map((t=>[t,dt.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,dt.CODE])),...["csv"].map((t=>[t,dt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,dt.DITA])),...["epub"].map((t=>[t,dt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,dt.EXCEL])),...["flac"].map((t=>[t,dt.FLAC])),...["gif"].map((t=>[t,dt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,dt.GZIP])),...["html","htm","xhtml"].map((t=>[t,dt.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,dt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,dt.JPEG])),...["json"].map((t=>[t,dt.JSON])),...["m4a","m4p"].map((t=>[t,dt.M4A])),...["mov","qt"].map((t=>[t,dt.MOV])),...["mp3"].map((t=>[t,dt.MP3])),...["mp4","m4v"].map((t=>[t,dt.MP4])),...["ogg","oga"].map((t=>[t,dt.OGG])),...["pdf","ps"].map((t=>[t,dt.PDF])),...["png"].map((t=>[t,dt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,dt.POWERPOINT])),...["rar"].map((t=>[t,dt.RAR])),...["stp"].map((t=>[t,dt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,dt.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,dt.VIDEO])),...["wav"].map((t=>[t,dt.WAV])),...["wma"].map((t=>[t,dt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,dt.WORD])),...["xml","xsl","rdf"].map((t=>[t,dt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,dt.YAML])),...["zip"].map((t=>[t,dt.ZIP]))]);var yt,xt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format"}(yt||(yt={}));const gt={size:rt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:rt.extend("--ft-icon-fluid-topics-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:rt.extend("--ft-icon-file-format-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},vt=s`
|
|
64
73
|
.ft-icon--fluid-topics {
|
|
65
|
-
font-family: ${gt}, ft-icons, fticons, sans-serif;
|
|
66
|
-
font-size: ${
|
|
74
|
+
font-family: ${gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
75
|
+
font-size: ${gt.size};
|
|
67
76
|
line-height: 1;
|
|
68
77
|
font-weight: normal;
|
|
69
78
|
text-transform: none;
|
|
@@ -75,10 +84,10 @@ class dt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
|
75
84
|
-webkit-font-smoothing: antialiased;
|
|
76
85
|
-moz-osx-font-smoothing: grayscale;
|
|
77
86
|
}
|
|
78
|
-
`,
|
|
87
|
+
`,mt=s`
|
|
79
88
|
.ft-icon--file-format {
|
|
80
|
-
font-family: ${
|
|
81
|
-
font-size: ${
|
|
89
|
+
font-family: ${gt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
90
|
+
font-size: ${gt.size};
|
|
82
91
|
line-height: 1;
|
|
83
92
|
font-weight: normal;
|
|
84
93
|
text-transform: none;
|
|
@@ -90,20 +99,162 @@ class dt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
|
90
99
|
-webkit-font-smoothing: antialiased;
|
|
91
100
|
-moz-osx-font-smoothing: grayscale;
|
|
92
101
|
}
|
|
93
|
-
`;let
|
|
102
|
+
`;let bt=class extends at{constructor(){super(...arguments),this.variant=yt.fluid_topics}getStyles(){return[vt,mt,s`
|
|
94
103
|
:host, i.ft-icon {
|
|
95
104
|
display: inline-block;
|
|
96
|
-
width: ${
|
|
97
|
-
height: ${
|
|
105
|
+
width: ${gt.size};
|
|
106
|
+
height: ${gt.size};
|
|
98
107
|
text-align: center;
|
|
99
108
|
}
|
|
100
|
-
`]}getTemplate(){return
|
|
109
|
+
`]}getTemplate(){return z`
|
|
101
110
|
<slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
|
|
102
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">${
|
|
103
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;return this.variant===
|
|
111
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">${ft(this.getIcon())}</i>
|
|
112
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;return this.variant===yt.file_format?null!==(t=dt[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=ut[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};bt.elementDefinitions={},xt([it()],bt.prototype,"variant",void 0),xt([
|
|
104
113
|
/**
|
|
105
114
|
* @license
|
|
106
115
|
* Copyright 2017 Google LLC
|
|
107
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
117
|
*/
|
|
109
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,
|
|
118
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],bt.prototype,"slottedContent",void 0),bt=xt([nt("ft-icon")],bt);
|
|
119
|
+
/**
|
|
120
|
+
* @license
|
|
121
|
+
* Copyright 2020 Google LLC
|
|
122
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
+
*/
|
|
124
|
+
const wt=t=>({_$litStatic$:t}),Ot=new Map,$t=(t=>(e,...i)=>{var o;const n=i.length;let r,s;const a=[],l=[];let c,h=0,p=!1;for(;h<n;){for(c=e[h];h<n&&void 0!==(s=i[h],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)c+=r+e[++h],p=!0;l.push(s),a.push(c),h++}if(h===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=Ot.get(t))&&(a.raw=a,Ot.set(t,e=a)),i=l}return t(e,...i)})(z);var St,Nt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(St||(St={}));const Rt=rt.extend("--ft-typography-font-family",st.titleFont),Et=rt.extend("--ft-typography-font-family",st.contentFont),Ct={fontFamily:Et,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","SIZE","24px"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=rt.extend("--ft-typography-title-font-family",Rt),Ut=rt.extend("--ft-typography-title-font-size",Ct.fontSize,"20px"),jt=rt.extend("--ft-typography-title-font-weight",Ct.fontWeight,"normal"),Ft=rt.extend("--ft-typography-title-letter-spacing",Ct.letterSpacing,"0.15px"),kt=rt.extend("--ft-typography-title-line-height",Ct.lineHeight,"24px"),zt=rt.extend("--ft-typography-title-text-transform",Ct.textTransform,"inherit"),Tt=rt.extend("--ft-typography-title-dense-font-family",Rt),At=rt.extend("--ft-typography-title-dense-font-size",Ct.fontSize,"14px"),Lt=rt.extend("--ft-typography-title-dense-font-weight",Ct.fontWeight,"normal"),_t=rt.extend("--ft-typography-title-dense-letter-spacing",Ct.letterSpacing,"0.105px"),Pt=rt.extend("--ft-typography-title-dense-line-height",Ct.lineHeight,"24px"),Bt=rt.extend("--ft-typography-title-dense-text-transform",Ct.textTransform,"inherit"),Wt=rt.extend("--ft-typography-subtitle1-font-family",Et),Dt=rt.extend("--ft-typography-subtitle1-font-size",Ct.fontSize,"16px"),Kt=rt.extend("--ft-typography-subtitle1-font-weight",Ct.fontWeight,"600"),Ht=rt.extend("--ft-typography-subtitle1-letter-spacing",Ct.letterSpacing,"0.144px"),It=rt.extend("--ft-typography-subtitle1-line-height",Ct.lineHeight,"24px"),Zt=rt.extend("--ft-typography-subtitle1-text-transform",Ct.textTransform,"inherit"),Vt=rt.extend("--ft-typography-subtitle2-font-family",Et),qt=rt.extend("--ft-typography-subtitle2-font-size",Ct.fontSize,"14px"),Jt=rt.extend("--ft-typography-subtitle2-font-weight",Ct.fontWeight,"normal"),Xt=rt.extend("--ft-typography-subtitle2-letter-spacing",Ct.letterSpacing,"0.098px"),Gt=rt.extend("--ft-typography-subtitle2-line-height",Ct.lineHeight,"24px"),Qt=rt.extend("--ft-typography-subtitle2-text-transform",Ct.textTransform,"inherit"),Yt=rt.extend("--ft-typography-body1-font-family",Et),te=rt.extend("--ft-typography-body1-font-size",Ct.fontSize,"16px"),ee=rt.extend("--ft-typography-body1-font-weight",Ct.fontWeight,"normal"),ie=rt.extend("--ft-typography-body1-letter-spacing",Ct.letterSpacing,"0.496px"),oe=rt.extend("--ft-typography-body1-line-height",Ct.lineHeight,"24px"),ne=rt.extend("--ft-typography-body1-text-transform",Ct.textTransform,"inherit"),re=rt.extend("--ft-typography-body2-font-family",Et),se=rt.extend("--ft-typography-body2-font-size",Ct.fontSize,"14px"),ae=rt.extend("--ft-typography-body2-font-weight",Ct.fontWeight,"normal"),le=rt.extend("--ft-typography-body2-letter-spacing",Ct.letterSpacing,"0.252px"),ce=rt.extend("--ft-typography-body2-line-height",Ct.lineHeight,"20px"),he=rt.extend("--ft-typography-body2-text-transform",Ct.textTransform,"inherit"),pe=rt.extend("--ft-typography-caption-font-family",Et),fe=rt.extend("--ft-typography-caption-font-size",Ct.fontSize,"12px"),ue=rt.extend("--ft-typography-caption-font-weight",Ct.fontWeight,"normal"),de=rt.extend("--ft-typography-caption-letter-spacing",Ct.letterSpacing,"0.396px"),ye=rt.extend("--ft-typography-caption-line-height",Ct.lineHeight,"16px"),xe=rt.extend("--ft-typography-caption-text-transform",Ct.textTransform,"inherit"),ge=rt.extend("--ft-typography-breadcrumb-font-family",Et),ve=rt.extend("--ft-typography-breadcrumb-font-size",Ct.fontSize,"10px"),me=rt.extend("--ft-typography-breadcrumb-font-weight",Ct.fontWeight,"normal"),be=rt.extend("--ft-typography-breadcrumb-letter-spacing",Ct.letterSpacing,"0.33px"),we=rt.extend("--ft-typography-breadcrumb-line-height",Ct.lineHeight,"16px"),Oe=rt.extend("--ft-typography-breadcrumb-text-transform",Ct.textTransform,"inherit"),$e=rt.extend("--ft-typography-overline-font-family",Et),Se=rt.extend("--ft-typography-overline-font-size",Ct.fontSize,"10px"),Ne=rt.extend("--ft-typography-overline-font-weight",Ct.fontWeight,"normal"),Re=rt.extend("--ft-typography-overline-letter-spacing",Ct.letterSpacing,"1.5px"),Ee=rt.extend("--ft-typography-overline-line-height",Ct.lineHeight,"16px"),Ce=rt.extend("--ft-typography-overline-text-transform",Ct.textTransform,"uppercase"),Me=rt.extend("--ft-typography-button-font-family",Et),Ue=rt.extend("--ft-typography-button-font-size",Ct.fontSize,"14px"),je=rt.extend("--ft-typography-button-font-weight",Ct.fontWeight,"600"),Fe=rt.extend("--ft-typography-button-letter-spacing",Ct.letterSpacing,"1.246px"),ke=rt.extend("--ft-typography-button-line-height",Ct.lineHeight,"16px"),ze=rt.extend("--ft-typography-button-text-transform",Ct.textTransform,"uppercase"),Te=s`
|
|
125
|
+
.ft-typography--title {
|
|
126
|
+
font-family: ${Mt};
|
|
127
|
+
font-size: ${Ut};
|
|
128
|
+
font-weight: ${jt};
|
|
129
|
+
letter-spacing: ${Ft};
|
|
130
|
+
line-height: ${kt};
|
|
131
|
+
text-transform: ${zt};
|
|
132
|
+
}
|
|
133
|
+
`,Ae=s`
|
|
134
|
+
.ft-typography--title-dense {
|
|
135
|
+
font-family: ${Tt};
|
|
136
|
+
font-size: ${At};
|
|
137
|
+
font-weight: ${Lt};
|
|
138
|
+
letter-spacing: ${_t};
|
|
139
|
+
line-height: ${Pt};
|
|
140
|
+
text-transform: ${Bt};
|
|
141
|
+
}
|
|
142
|
+
`,Le=s`
|
|
143
|
+
.ft-typography--subtitle1 {
|
|
144
|
+
font-family: ${Wt};
|
|
145
|
+
font-size: ${Dt};
|
|
146
|
+
font-weight: ${Kt};
|
|
147
|
+
letter-spacing: ${Ht};
|
|
148
|
+
line-height: ${It};
|
|
149
|
+
text-transform: ${Zt};
|
|
150
|
+
}
|
|
151
|
+
`,_e=s`
|
|
152
|
+
.ft-typography--subtitle2 {
|
|
153
|
+
font-family: ${Vt};
|
|
154
|
+
font-size: ${qt};
|
|
155
|
+
font-weight: ${Jt};
|
|
156
|
+
letter-spacing: ${Xt};
|
|
157
|
+
line-height: ${Gt};
|
|
158
|
+
text-transform: ${Qt};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
`,Pe=s`
|
|
162
|
+
.ft-typography--body1 {
|
|
163
|
+
font-family: ${Yt};
|
|
164
|
+
font-size: ${te};
|
|
165
|
+
font-weight: ${ee};
|
|
166
|
+
letter-spacing: ${ie};
|
|
167
|
+
line-height: ${oe};
|
|
168
|
+
text-transform: ${ne};
|
|
169
|
+
}
|
|
170
|
+
`,Be=s`
|
|
171
|
+
.ft-typography--body2 {
|
|
172
|
+
font-family: ${re};
|
|
173
|
+
font-size: ${se};
|
|
174
|
+
font-weight: ${ae};
|
|
175
|
+
letter-spacing: ${le};
|
|
176
|
+
line-height: ${ce};
|
|
177
|
+
text-transform: ${he};
|
|
178
|
+
}
|
|
179
|
+
`,We=s`
|
|
180
|
+
.ft-typography--caption {
|
|
181
|
+
font-family: ${pe};
|
|
182
|
+
font-size: ${fe};
|
|
183
|
+
font-weight: ${ue};
|
|
184
|
+
letter-spacing: ${de};
|
|
185
|
+
line-height: ${ye};
|
|
186
|
+
text-transform: ${xe};
|
|
187
|
+
}
|
|
188
|
+
`,De=s`
|
|
189
|
+
.ft-typography--breadcrumb {
|
|
190
|
+
font-family: ${ge};
|
|
191
|
+
font-size: ${ve};
|
|
192
|
+
font-weight: ${me};
|
|
193
|
+
letter-spacing: ${be};
|
|
194
|
+
line-height: ${we};
|
|
195
|
+
text-transform: ${Oe};
|
|
196
|
+
}
|
|
197
|
+
`,Ke=s`
|
|
198
|
+
.ft-typography--overline {
|
|
199
|
+
font-family: ${$e};
|
|
200
|
+
font-size: ${Se};
|
|
201
|
+
font-weight: ${Ne};
|
|
202
|
+
letter-spacing: ${Re};
|
|
203
|
+
line-height: ${Ee};
|
|
204
|
+
text-transform: ${Ce};
|
|
205
|
+
}
|
|
206
|
+
`,He=s`
|
|
207
|
+
.ft-typography--button {
|
|
208
|
+
font-family: ${Me};
|
|
209
|
+
font-size: ${Ue};
|
|
210
|
+
font-weight: ${je};
|
|
211
|
+
letter-spacing: ${Fe};
|
|
212
|
+
line-height: ${ke};
|
|
213
|
+
text-transform: ${ze};
|
|
214
|
+
}
|
|
215
|
+
`;let Ie=class extends at{constructor(){super(...arguments),this.variant=St.body1}getStyles(){return[Te,Ae,Le,_e,Pe,Be,We,De,Ke,He]}getTemplate(){return this.element?$t`
|
|
216
|
+
<${wt(this.element)}
|
|
217
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
218
|
+
<slot></slot>
|
|
219
|
+
</${wt(this.element)}>
|
|
220
|
+
`:$t`
|
|
221
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
222
|
+
`}};Nt([it()],Ie.prototype,"element",void 0),Nt([it()],Ie.prototype,"variant",void 0),Ie=Nt([nt("ft-typography")],Ie);var Ze=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ve={noticeColor:rt.extend("--ft-notice-color",st.colorPrimary),noticeIconColor:rt.extend("--ft-notice-icon-color",st.colorOnPrimary),borderRadius:rt.external(st.borderRadiusS,"Design System")};t.FtNotice=class extends at{constructor(){super(...arguments),this.icon="info"}getStyles(){return s`
|
|
223
|
+
.ft-notice {
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
align-items: stretch;
|
|
226
|
+
box-sizing: border-box;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
ft-icon {
|
|
230
|
+
${t=gt.size,e="20px",r(`${t.name}: ${e}`)};
|
|
231
|
+
padding: 0 8px;
|
|
232
|
+
display: flex;
|
|
233
|
+
align-self: center;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ft-icon {
|
|
237
|
+
color: ${Ve.noticeIconColor};
|
|
238
|
+
background-color: ${Ve.noticeColor};
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
border-top-left-radius: ${Ve.borderRadius};
|
|
242
|
+
border-bottom-left-radius: ${Ve.borderRadius};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ft-notice-label {
|
|
246
|
+
padding: 8px;
|
|
247
|
+
border-top-right-radius: ${Ve.borderRadius};
|
|
248
|
+
border-bottom-right-radius: ${Ve.borderRadius};
|
|
249
|
+
border: 1px solid ${Ve.noticeColor};
|
|
250
|
+
}
|
|
251
|
+
`;var t,e}getTemplate(){return z`
|
|
252
|
+
<div class="ft-notice">
|
|
253
|
+
<div class="ft-icon">
|
|
254
|
+
<ft-icon>${this.icon}</ft-icon>
|
|
255
|
+
</div>
|
|
256
|
+
<ft-typography class="ft-notice-label" variant="body2">
|
|
257
|
+
<slot></slot>
|
|
258
|
+
</ft-typography>
|
|
259
|
+
</div>
|
|
260
|
+
`}},t.FtNotice.elementDefinitions={"ft-icon":bt,"ft-typography":Ie},Ze([it({type:String})],t.FtNotice.prototype,"icon",void 0),t.FtNotice=Ze([nt("ft-notice")],t.FtNotice),t.FtNoticeCssVariables=Ve,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-
|
|
22
|
+
"@fluid-topics/ft-icon": "^0.1.7",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.1.7",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.1.7",
|
|
24
25
|
"lit": "^2.0.2"
|
|
25
26
|
},
|
|
26
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "78397cca67971191c46739cfb6c87481aaa65745"
|
|
27
28
|
}
|