@fluid-topics/ft-notice 0.2.15 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-notice.light.js +32 -30
- package/build/ft-notice.min.js +104 -101
- package/package.json +5 -5
- package/build/ft-notice.inline-styles.js +0 -281
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
package/build/ft-notice.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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",t.material="material"}(l||(l={}));const
|
|
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",t.material="material"}(l||(l={}));const f={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class p extends e.FtLitElement{constructor(){super(...arguments),this.variant=l.fluid_topics}render(){return i.html`
|
|
2
2
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
3
|
${n.unsafeHTML(this.getIcon())}
|
|
4
4
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
@@ -9,16 +9,18 @@
|
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
var h;
|
|
13
|
-
:host
|
|
12
|
+
var h;p.elementDefinitions={},p.styles=i.css`
|
|
13
|
+
:host {
|
|
14
14
|
display: inline-block;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
:host, i.ft-icon {
|
|
17
|
+
width: ${f.size};
|
|
18
|
+
height: ${f.size};
|
|
17
19
|
text-align: center;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
i.ft-icon {
|
|
21
|
-
font-size: ${
|
|
23
|
+
font-size: ${f.size};
|
|
22
24
|
line-height: 1;
|
|
23
25
|
font-weight: normal;
|
|
24
26
|
text-transform: none;
|
|
@@ -32,23 +34,23 @@ var h;f.elementDefinitions={},f.styles=i.css`
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.ft-icon--fluid-topics {
|
|
35
|
-
font-family: ${
|
|
37
|
+
font-family: ${f.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
.ft-icon--file-format {
|
|
39
|
-
font-family: ${
|
|
41
|
+
font-family: ${f.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.ft-icon--material {
|
|
43
|
-
font-family: ${
|
|
45
|
+
font-family: ${f.materialFontFamily}, "Material Icons", sans-serif;
|
|
44
46
|
}
|
|
45
|
-
`,a([o.property()],
|
|
47
|
+
`,a([o.property()],p.prototype,"variant",void 0),a([o.query("slot")],p.prototype,"slottedContent",void 0),e.customElement("ft-icon")(p);const x=globalThis.trustedTypes,y=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,g="?"+c,d=`<${g}>`,m=document,u=(t="")=>m.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,z=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,_=/"/g,A=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),I=new WeakMap,C=m.createTreeWalker(m,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=$;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,p=0;for(;p<i.length&&(r.lastIndex=p,a=r.exec(i),null!==a);)p=r.lastIndex,r===$?"!--"===a[1]?r=w:void 0!==a[1]?r=z:void 0!==a[2]?(A.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=N):void 0!==a[3]&&(r=N):r===N?">"===a[0]?(r=null!=n?n:$,f=-1):void 0===a[1]?f=-2:(f=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?N:'"'===a[3]?_:j):r===_||r===j?r=N:r===w||r===z?r=$:(r=N,n=void 0);const h=r===N&&t[e+1].startsWith("/>")?" ":"";s+=r===$?i+d:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+c+h):i+c+(-2===f?(o.push(void 0),e):h)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,f]=M(t,e);if(this.el=T.createElement(a,i),C.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=C.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(c)){const i=f[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(c),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?R:W})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(c),e=t.length-1;if(e>0){o.textContent=x?x.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),C.nextNode(),l.push({type:2,index:++n});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===g)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)l.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function U(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 f=v(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==f&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===f?a=void 0:(a=new f(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=U(t,a._$AS(t,e.values),a,o)),e}class E{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:m).importNode(i,!0);C.currentNode=n;let s=C.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new F(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new q(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=C.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 F{constructor(t,e,i,o){var n;this.type=2,this._$AH=k,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=U(this,t,e),v(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return b(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==k&&v(this._$AH)?this._$AA.nextSibling.data=t:this.k(m.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=T.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 E(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new T(t)),e}S(t){b(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 F(this.M(u()),this.M(u()),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 W{constructor(t,e,i,o,n){this.type=1,this._$AH=k,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=k}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=U(this,t,e,0),s=!v(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=U(this,o[i+r],e,r),l===O&&(l=this._$AH[r]),s||(s=!v(l)||l!==this._$AH[r]),l===k?t=k:t!==k&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.C(t)}C(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends W{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===k?void 0:t}}const Z=x?x.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}C(t){t&&t!==k?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class R extends W{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=U(this,t,e,0))&&void 0!==i?i:k)===O)return;const o=this._$AH,n=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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 q{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){U(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(T,F),(null!==(h=globalThis.litHtmlVersions)&&void 0!==h?h:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
46
48
|
/**
|
|
47
49
|
* @license
|
|
48
50
|
* Copyright 2020 Google LLC
|
|
49
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
52
|
*/
|
|
51
|
-
const
|
|
53
|
+
const B=Symbol.for(""),D=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===B)return null===(i=t)||void 0===i?void 0:i._$litStatic$},L=t=>({_$litStatic$:t,r:B}),J=new Map,P=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,f=0,p=!1;for(;f<o;){for(a=e[f];f<o&&void 0!==(s=i[f],n=D(s));)a+=n+e[++f],p=!0;l.push(s),r.push(a),f++}if(f===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=l}return t(e,...i)})(S);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=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Y=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Y,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariable.extend("--ft-typography-title-font-family",X),it=e.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=e.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",X),at=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ft=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),ht=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),xt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Y),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Y),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),zt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),Nt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariable.extend("--ft-typography-body1-font-family",Y),_t=e.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),At=e.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),St=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),Ot=e.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),kt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),It=e.FtCssVariable.extend("--ft-typography-body2-font-family",Y),Ct=e.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Mt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Tt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Ut=e.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Ft=e.FtCssVariable.extend("--ft-typography-caption-font-family",Y),Wt=e.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Kt=e.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Gt=e.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),Rt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),qt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Y),Ht=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Lt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Pt=e.FtCssVariable.extend("--ft-typography-overline-font-family",Y),Qt=e.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Vt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Xt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Yt=e.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),te=e.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee=e.FtCssVariable.extend("--ft-typography-button-font-family",Y),ie=e.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),oe=e.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),ne=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),se=e.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),re=e.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),le=i.css`
|
|
52
54
|
.ft-typography--title {
|
|
53
55
|
font-family: ${et};
|
|
54
56
|
font-size: ${it};
|
|
@@ -61,12 +63,12 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
61
63
|
.ft-typography--title-dense {
|
|
62
64
|
font-family: ${lt};
|
|
63
65
|
font-size: ${at};
|
|
64
|
-
font-weight: ${
|
|
65
|
-
letter-spacing: ${
|
|
66
|
+
font-weight: ${ft};
|
|
67
|
+
letter-spacing: ${pt};
|
|
66
68
|
line-height: ${ht};
|
|
67
69
|
text-transform: ${xt};
|
|
68
70
|
}
|
|
69
|
-
`,
|
|
71
|
+
`,fe=i.css`
|
|
70
72
|
.ft-typography--subtitle1 {
|
|
71
73
|
font-family: ${yt};
|
|
72
74
|
font-size: ${ct};
|
|
@@ -75,7 +77,7 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
75
77
|
line-height: ${mt};
|
|
76
78
|
text-transform: ${ut};
|
|
77
79
|
}
|
|
78
|
-
`,
|
|
80
|
+
`,pe=i.css`
|
|
79
81
|
.ft-typography--subtitle2 {
|
|
80
82
|
font-family: ${vt};
|
|
81
83
|
font-size: ${bt};
|
|
@@ -91,15 +93,15 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
91
93
|
font-size: ${_t};
|
|
92
94
|
font-weight: ${At};
|
|
93
95
|
letter-spacing: ${St};
|
|
94
|
-
line-height: ${
|
|
95
|
-
text-transform: ${
|
|
96
|
+
line-height: ${Ot};
|
|
97
|
+
text-transform: ${kt};
|
|
96
98
|
}
|
|
97
99
|
`,xe=i.css`
|
|
98
100
|
.ft-typography--body2 {
|
|
99
|
-
font-family: ${
|
|
101
|
+
font-family: ${It};
|
|
100
102
|
font-size: ${Ct};
|
|
101
|
-
font-weight: ${
|
|
102
|
-
letter-spacing: ${
|
|
103
|
+
font-weight: ${Mt};
|
|
104
|
+
letter-spacing: ${Tt};
|
|
103
105
|
line-height: ${Ut};
|
|
104
106
|
text-transform: ${Et};
|
|
105
107
|
}
|
|
@@ -107,8 +109,8 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
107
109
|
.ft-typography--caption {
|
|
108
110
|
font-family: ${Ft};
|
|
109
111
|
font-size: ${Wt};
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
+
font-weight: ${Kt};
|
|
113
|
+
letter-spacing: ${Zt};
|
|
112
114
|
line-height: ${Gt};
|
|
113
115
|
text-transform: ${Rt};
|
|
114
116
|
}
|
|
@@ -116,9 +118,9 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
116
118
|
.ft-typography--breadcrumb {
|
|
117
119
|
font-family: ${qt};
|
|
118
120
|
font-size: ${Ht};
|
|
119
|
-
font-weight: ${
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
121
|
+
font-weight: ${Bt};
|
|
122
|
+
letter-spacing: ${Dt};
|
|
123
|
+
line-height: ${Lt};
|
|
122
124
|
text-transform: ${Jt};
|
|
123
125
|
}
|
|
124
126
|
`,ge=i.css`
|
|
@@ -140,13 +142,13 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
140
142
|
text-transform: ${re};
|
|
141
143
|
}
|
|
142
144
|
`;class me extends e.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?P`
|
|
143
|
-
<${
|
|
145
|
+
<${L(this.element)}
|
|
144
146
|
class="ft-typography ft-typography--${this.variant}">
|
|
145
147
|
<slot></slot>
|
|
146
|
-
</${
|
|
148
|
+
</${L(this.element)}>
|
|
147
149
|
`:P`
|
|
148
150
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
149
|
-
`}}me.styles=[le,ae,pe,
|
|
151
|
+
`}}me.styles=[le,ae,fe,pe,he,xe,ye,ce,ge,de,i.css`
|
|
150
152
|
.ft-typography {
|
|
151
153
|
vertical-align: inherit;
|
|
152
154
|
}
|
|
@@ -158,7 +160,7 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
ft-icon {
|
|
161
|
-
${e.setVariable(
|
|
163
|
+
${e.setVariable(f.size,"20px")};
|
|
162
164
|
padding: 0 8px;
|
|
163
165
|
display: flex;
|
|
164
166
|
align-self: center;
|
|
@@ -188,4 +190,4 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
188
190
|
<slot></slot>
|
|
189
191
|
</ft-typography>
|
|
190
192
|
</div>
|
|
191
|
-
`}}be.elementDefinitions={"ft-icon":
|
|
193
|
+
`}}be.elementDefinitions={"ft-icon":p,"ft-typography":me},ue([o.property({type:String})],be.prototype,"icon",void 0),e.customElement("ft-notice")(be),t.FtNotice=be,t.FtNoticeCssVariables=ve,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|