@fluid-topics/ft-icon 0.3.12 → 0.3.14

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.
@@ -0,0 +1,9 @@
1
+ export declare const FtIconCssVariables: {
2
+ size: import("@fluid-topics/ft-wc-utils").FtCssVariable;
3
+ fluidTopicsFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
4
+ fileFormatFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
5
+ materialFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
6
+ verticalAlign: import("@fluid-topics/ft-wc-utils").FtCssVariable;
7
+ };
8
+ export declare const styles: import("lit").CSSResult;
9
+ //# sourceMappingURL=ft-icon.css.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { css } from "lit";
2
+ import { FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
3
+ export const FtIconCssVariables = {
4
+ size: FtCssVariableFactory.create("--ft-icon-font-size", "SIZE", "24px"),
5
+ fluidTopicsFontFamily: FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "ft-icons")),
6
+ fileFormatFontFamily: FtCssVariableFactory.extend("--ft-icon-file-format-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "ft-mime")),
7
+ materialFontFamily: FtCssVariableFactory.extend("--ft-icon-material-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "Material Icons")),
8
+ verticalAlign: FtCssVariableFactory.create("--ft-icon-vertical-align", "UNKNOWN", "unset"),
9
+ };
10
+ //language=css
11
+ export const styles = css `
12
+ :host {
13
+ display: inline-block;
14
+ }
15
+
16
+ :host, i.ft-icon {
17
+ width: ${FtIconCssVariables.size};
18
+ height: ${FtIconCssVariables.size};
19
+ text-align: center;
20
+ }
21
+
22
+ i.ft-icon {
23
+ font-size: ${FtIconCssVariables.size};
24
+ line-height: 1;
25
+ font-weight: normal;
26
+ text-transform: none;
27
+ font-style: normal;
28
+ font-variant: normal;
29
+ speak: none;
30
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
31
+ text-rendering: auto;
32
+ -webkit-font-smoothing: antialiased;
33
+ -moz-osx-font-smoothing: grayscale;
34
+ vertical-align: ${FtIconCssVariables.verticalAlign};
35
+ }
36
+
37
+ .ft-icon--fluid-topics {
38
+ font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
39
+ }
40
+
41
+ .ft-icon--file-format {
42
+ font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
43
+ }
44
+
45
+ .ft-icon--material {
46
+ font-family: ${FtIconCssVariables.materialFontFamily}, "Material Icons", sans-serif;
47
+ }
48
+ `;
49
+ //# sourceMappingURL=ft-icon.css.js.map
@@ -1,20 +1,6 @@
1
1
  import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
- export declare enum FtIconVariants {
4
- fluid_topics = "fluid-topics",
5
- file_format = "file-format",
6
- material = "material"
7
- }
8
- export interface FtIconProperties {
9
- variant: FtIconVariants;
10
- }
11
- export declare const FtIconCssVariables: {
12
- size: import("@fluid-topics/ft-wc-utils").FtCssVariable;
13
- fluidTopicsFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
14
- fileFormatFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
15
- materialFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
16
- verticalAlign: import("@fluid-topics/ft-wc-utils").FtCssVariable;
17
- };
3
+ import { FtIconProperties, FtIconVariants } from "./ft-icon.properties";
18
4
  export declare class FtIcon extends FtLitElement implements FtIconProperties {
19
5
  static elementDefinitions: ElementDefinitionsMap;
20
6
  static styles: import("lit").CSSResult;
package/build/ft-icon.js CHANGED
@@ -4,24 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, html, nothing } from "lit";
7
+ import { html, nothing } from "lit";
8
8
  import { property, query, state } from "lit/decorators.js";
9
- import { FtCssVariableFactory, FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
11
11
  import { FtFileFormatIcons, FtIcons } from "./icons";
12
- export var FtIconVariants;
13
- (function (FtIconVariants) {
14
- FtIconVariants["fluid_topics"] = "fluid-topics";
15
- FtIconVariants["file_format"] = "file-format";
16
- FtIconVariants["material"] = "material";
17
- })(FtIconVariants || (FtIconVariants = {}));
18
- export const FtIconCssVariables = {
19
- size: FtCssVariableFactory.create("--ft-icon-font-size", "SIZE", "24px"),
20
- fluidTopicsFontFamily: FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "ft-icons")),
21
- fileFormatFontFamily: FtCssVariableFactory.extend("--ft-icon-file-format-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "ft-mime")),
22
- materialFontFamily: FtCssVariableFactory.extend("--ft-icon-material-font-family", FtCssVariableFactory.create("--ft-icon-font-family", "UNKNOWN", "Material Icons")),
23
- verticalAlign: FtCssVariableFactory.create("--ft-icon-vertical-align", "UNKNOWN", "unset"),
24
- };
12
+ import { styles } from "./ft-icon.css";
13
+ import { FtIconVariants } from "./ft-icon.properties";
25
14
  export class FtIcon extends FtLitElement {
26
15
  constructor() {
27
16
  super(...arguments);
@@ -70,44 +59,7 @@ export class FtIcon extends FtLitElement {
70
59
  }
71
60
  FtIcon.elementDefinitions = {};
72
61
  //language=css
73
- FtIcon.styles = css `
74
- :host {
75
- display: inline-block;
76
- }
77
-
78
- :host, i.ft-icon {
79
- width: ${FtIconCssVariables.size};
80
- height: ${FtIconCssVariables.size};
81
- text-align: center;
82
- }
83
-
84
- i.ft-icon {
85
- font-size: ${FtIconCssVariables.size};
86
- line-height: 1;
87
- font-weight: normal;
88
- text-transform: none;
89
- font-style: normal;
90
- font-variant: normal;
91
- speak: none;
92
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
93
- text-rendering: auto;
94
- -webkit-font-smoothing: antialiased;
95
- -moz-osx-font-smoothing: grayscale;
96
- vertical-align: ${FtIconCssVariables.verticalAlign};
97
- }
98
-
99
- .ft-icon--fluid-topics {
100
- font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
101
- }
102
-
103
- .ft-icon--file-format {
104
- font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
105
- }
106
-
107
- .ft-icon--material {
108
- font-family: ${FtIconCssVariables.materialFontFamily}, "Material Icons", sans-serif;
109
- }
110
- `;
62
+ FtIcon.styles = styles;
111
63
  __decorate([
112
64
  property()
113
65
  ], FtIcon.prototype, "variant", void 0);
@@ -1,43 +1,43 @@
1
- !function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",x.THIN_ARROW_RIGHT="&#xe957;",x.MY_COLLECTIONS="&#xe955;",x.OFFLINE_SETTINGS="&#xe954;",x.MY_LIBRARY="&#xe959;",x.RATE_PLAIN="&#xe952;",x.RATE="&#xe953;",x.FEEDBACK_PLAIN="&#xe951;",x.STAR_PLAIN="&#xe94b;",x.STAR="&#xe94c;",x.THUMBS_DOWN_PLAIN="&#xe94d;",x.THUMBS_DOWN="&#xe94e;",x.THUMBS_UP_PLAIN="&#xe94f;",x.THUMBS_UP="&#xe950;",x.PAUSE="&#xe949;",x.PLAY="&#xe94a;",x.RELATIVES_PLAIN="&#xe947;",x.RELATIVES="&#xe948;",x.SHORTCUT_MENU="&#xe946;",x.PRINT="&#xe944;",x.DEFAULT_ROLES="&#xe945;",x.ACCOUNT_SETTINGS="&#xe943;",x.ONLINE="&#xe941;",x.OFFLINE="&#xe816;",x.UPLOAD="&#xe940;",x.BOOK_PLAIN="&#xe93f;",x.SYNC="&#xe93d;",x.SHARED_PBK="&#xe931;",x.COLLECTIONS="&#xe92a;",x.SEARCH_IN_PUBLICATION="&#xe92f;",x.BOOKS="&#xe806;",x.LOCKER="&#xe93b;",x.ARROW_DOWN="&#xe92b;",x.ARROW_LEFT="&#xe92c;",x.ARROW_RIGHT="&#xe92d;",x.ARROW_UP="&#xe92e;",x.SAVE="&#xe93a;",x.MAILS_AND_NOTIFICATIONS="&#xe939;",x.DOT="&#xe936;",x.MINUS="&#xe937;",x.PLUS="&#xe938;",x.FILTERS="&#xe935;",x.STRIPE_ARROW_RIGHT="&#xe934;",x.STRIPE_ARROW_LEFT="&#xe933;",x.ATTACHMENTS="&#xe932;",x.ADD_BOOKMARK="&#xe804;",x.BOOKMARK="&#xe805;",x.EXPORT="&#xe80f;",x.MENU="&#xe807;",x.TAG="&#xe93e;",x.TAG_PLAIN="&#xe942;",x.COPY_TO_CLIPBOARD="&#xe930;",x.COLUMNS="&#xe928;",x.ARTICLE="&#xe927;",x.CLOSE_PLAIN="&#xe925;",x.CHECK_PLAIN="&#xe926;",x.LOGOUT="&#xe923;",x.SIGN_IN="&#xe922;",x.THIN_ARROW="&#xe921;",x.TRIANGLE_BOTTOM="&#xe91d;",x.TRIANGLE_LEFT="&#xe91e;",x.TRIANGLE_RIGHT="&#xe91f;",x.TRIANGLE_TOP="&#xe920;",x.FACET_HAS_DESCENDANT="&#xe91c;",x.MINUS_PLAIN="&#xe91a;",x.PLUS_PLAIN="&#xe91b;",x.INFO="&#xe919;",x.ICON_EXPAND="&#xe917;",x.ICON_COLLAPSE="&#xe918;",x.ADD_TO_PBK="&#xe800;",x.ALERT="&#xe801;",x.ADD_ALERT="&#xe802;",x.BACK_TO_SEARCH="&#xe803;",x.DOWNLOAD="&#xe808;",x.EDIT="&#xe809;",x.FEEDBACK="&#xe80a;",x.MODIFY_PBK="&#xe80c;",x.SCHEDULED="&#xe80d;",x.SEARCH="&#xe80e;",x.SHARE="&#xe80f1;",x.TOC="&#xe810;",x.WRITE_UGC="&#xe811;",x.TRASH="&#xe812;",x.EXTLINK="&#xe814;",x.CALENDAR="&#xe815;",x.BOOK="&#xe817;",x.DOWNLOAD_PLAIN="&#xe818;",x.CHECK="&#xe819;",x.TOPICS="&#xe900;",x.EYE="\f06e",x.DISC="&#xe901;",x.CIRCLE="&#xe903;",x.SHARED="&#xe904;",x.SORT_UNSORTED="&#xe905;",x.SORT_UP="&#xe906;",x.SORT_DOWN="&#xe907;",x.WORKING="&#xe908;",x.CLOSE="&#xe909;",x.ZOOM_OUT="&#xe90a;",x.ZOOM_IN="&#xe90b;",x.ZOOM_REALSIZE="&#xe90c;",x.ZOOM_FULLSCREEN="&#xe90d;",x.ADMIN_RESTRICTED="&#xe90e;",x.ADMIN_THEME="&#xe911;",x.WARNING="&#xe913;",x.CONTEXT="&#xe914;",x.SEARCH_HOME="&#xe915;",x.STEPS="&#xe916;",x.HOME="&#xe80b;",x.TRANSLATE="&#xe924;",x.USER="&#xe813;",x.ADMIN="&#xe902;",x.ANALYTICS="&#xe929;",x.ADMIN_KHUB="&#xe90f;",x.ADMIN_USERS="&#xe910;",x.ADMIN_INTEGRATION="&#xe93c;",x.ADMIN_PORTAL="&#xe912;",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",p.ABW="&#xe900;",p.AUDIO="&#xe901;",p.AVI="&#xe902;",p.CHM="&#xe904;",p.CODE="&#xe905;",p.CSV="&#xe903;",p.DITA="&#xe906;",p.EPUB="&#xe907;",p.EXCEL="&#xe908;",p.FLAC="&#xe909;",p.GIF="&#xe90b;",p.GZIP="&#xe90c;",p.HTML="&#xe90d;",p.IMAGE="&#xe90e;",p.JPEG="&#xe90f;",p.JSON="&#xe910;",p.M4A="&#xe911;",p.MOV="&#xe912;",p.MP3="&#xe913;",p.MP4="&#xe914;",p.OGG="&#xe915;",p.PDF="&#xe916;",p.PNG="&#xe917;",p.POWERPOINT="&#xe918;",p.RAR="&#xe91a;",p.STP="&#xe91b;",p.TEXT="&#xe91c;",p.VIDEO="&#xe91e;",p.WAV="&#xe91f;",p.WMA="&#xe920;",p.WORD="&#xe921;",p.XML="&#xe922;",p.YAML="&#xe919;",p.ZIP="&#xe923;";const n=new Map([...["abw"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.AUDIO])),...["avi"].map((t=>[t,e.FtFileFormatIcons.AVI])),...["chm","xhs"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.CODE])),...["csv"].map((t=>[t,e.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,e.FtFileFormatIcons.DITA])),...["epub"].map((t=>[t,e.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,e.FtFileFormatIcons.EXCEL])),...["flac"].map((t=>[t,e.FtFileFormatIcons.FLAC])),...["gif"].map((t=>[t,e.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,e.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,e.FtFileFormatIcons.JPEG])),...["json"].map((t=>[t,e.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((t=>[t,e.FtFileFormatIcons.M4A])),...["mov","qt"].map((t=>[t,e.FtFileFormatIcons.MOV])),...["mp3"].map((t=>[t,e.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((t=>[t,e.FtFileFormatIcons.MP4])),...["ogg","oga"].map((t=>[t,e.FtFileFormatIcons.OGG])),...["pdf","ps"].map((t=>[t,e.FtFileFormatIcons.PDF])),...["png"].map((t=>[t,e.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,e.FtFileFormatIcons.POWERPOINT])),...["rar"].map((t=>[t,e.FtFileFormatIcons.RAR])),...["stp"].map((t=>[t,e.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.VIDEO])),...["wav"].map((t=>[t,e.FtFileFormatIcons.WAV])),...["wma"].map((t=>[t,e.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,e.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((t=>[t,e.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((t=>[t,e.FtFileFormatIcons.YAML])),...["zip"].map((t=>[t,e.FtFileFormatIcons.ZIP]))]),l=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var s,m=function(e,t,a,i){for(var o,x=arguments.length,p=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,n=e.length-1;n>=0;n--)(o=e[n])&&(p=(x<3?o(p):x>3?o(t,a,p):o(t,a))||p);return x>3&&p&&Object.defineProperty(t,a,p),p};e.FtIconVariants=void 0,(s=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",s.file_format="file-format",s.material="material";const c={size:t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")};class d extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics,this.resolvedIcon=a.nothing}render(){const e="material"!==this.variant||this.value;return a.html`
2
- <i class="ft-icon ${"ft-icon--"+this.variant}">
3
- ${o.unsafeHTML(this.resolvedIcon)}
4
- <slot ?hidden=${e}></slot>
5
- </i>
6
- `}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=e.FtIcons[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||a.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}d.elementDefinitions={},d.styles=a.css`
7
- :host {
8
- display: inline-block;
9
- }
1
+ !function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",x.THIN_ARROW_RIGHT="&#xe957;",x.MY_COLLECTIONS="&#xe955;",x.OFFLINE_SETTINGS="&#xe954;",x.MY_LIBRARY="&#xe959;",x.RATE_PLAIN="&#xe952;",x.RATE="&#xe953;",x.FEEDBACK_PLAIN="&#xe951;",x.STAR_PLAIN="&#xe94b;",x.STAR="&#xe94c;",x.THUMBS_DOWN_PLAIN="&#xe94d;",x.THUMBS_DOWN="&#xe94e;",x.THUMBS_UP_PLAIN="&#xe94f;",x.THUMBS_UP="&#xe950;",x.PAUSE="&#xe949;",x.PLAY="&#xe94a;",x.RELATIVES_PLAIN="&#xe947;",x.RELATIVES="&#xe948;",x.SHORTCUT_MENU="&#xe946;",x.PRINT="&#xe944;",x.DEFAULT_ROLES="&#xe945;",x.ACCOUNT_SETTINGS="&#xe943;",x.ONLINE="&#xe941;",x.OFFLINE="&#xe816;",x.UPLOAD="&#xe940;",x.BOOK_PLAIN="&#xe93f;",x.SYNC="&#xe93d;",x.SHARED_PBK="&#xe931;",x.COLLECTIONS="&#xe92a;",x.SEARCH_IN_PUBLICATION="&#xe92f;",x.BOOKS="&#xe806;",x.LOCKER="&#xe93b;",x.ARROW_DOWN="&#xe92b;",x.ARROW_LEFT="&#xe92c;",x.ARROW_RIGHT="&#xe92d;",x.ARROW_UP="&#xe92e;",x.SAVE="&#xe93a;",x.MAILS_AND_NOTIFICATIONS="&#xe939;",x.DOT="&#xe936;",x.MINUS="&#xe937;",x.PLUS="&#xe938;",x.FILTERS="&#xe935;",x.STRIPE_ARROW_RIGHT="&#xe934;",x.STRIPE_ARROW_LEFT="&#xe933;",x.ATTACHMENTS="&#xe932;",x.ADD_BOOKMARK="&#xe804;",x.BOOKMARK="&#xe805;",x.EXPORT="&#xe80f;",x.MENU="&#xe807;",x.TAG="&#xe93e;",x.TAG_PLAIN="&#xe942;",x.COPY_TO_CLIPBOARD="&#xe930;",x.COLUMNS="&#xe928;",x.ARTICLE="&#xe927;",x.CLOSE_PLAIN="&#xe925;",x.CHECK_PLAIN="&#xe926;",x.LOGOUT="&#xe923;",x.SIGN_IN="&#xe922;",x.THIN_ARROW="&#xe921;",x.TRIANGLE_BOTTOM="&#xe91d;",x.TRIANGLE_LEFT="&#xe91e;",x.TRIANGLE_RIGHT="&#xe91f;",x.TRIANGLE_TOP="&#xe920;",x.FACET_HAS_DESCENDANT="&#xe91c;",x.MINUS_PLAIN="&#xe91a;",x.PLUS_PLAIN="&#xe91b;",x.INFO="&#xe919;",x.ICON_EXPAND="&#xe917;",x.ICON_COLLAPSE="&#xe918;",x.ADD_TO_PBK="&#xe800;",x.ALERT="&#xe801;",x.ADD_ALERT="&#xe802;",x.BACK_TO_SEARCH="&#xe803;",x.DOWNLOAD="&#xe808;",x.EDIT="&#xe809;",x.FEEDBACK="&#xe80a;",x.MODIFY_PBK="&#xe80c;",x.SCHEDULED="&#xe80d;",x.SEARCH="&#xe80e;",x.SHARE="&#xe80f1;",x.TOC="&#xe810;",x.WRITE_UGC="&#xe811;",x.TRASH="&#xe812;",x.EXTLINK="&#xe814;",x.CALENDAR="&#xe815;",x.BOOK="&#xe817;",x.DOWNLOAD_PLAIN="&#xe818;",x.CHECK="&#xe819;",x.TOPICS="&#xe900;",x.EYE="\f06e",x.DISC="&#xe901;",x.CIRCLE="&#xe903;",x.SHARED="&#xe904;",x.SORT_UNSORTED="&#xe905;",x.SORT_UP="&#xe906;",x.SORT_DOWN="&#xe907;",x.WORKING="&#xe908;",x.CLOSE="&#xe909;",x.ZOOM_OUT="&#xe90a;",x.ZOOM_IN="&#xe90b;",x.ZOOM_REALSIZE="&#xe90c;",x.ZOOM_FULLSCREEN="&#xe90d;",x.ADMIN_RESTRICTED="&#xe90e;",x.ADMIN_THEME="&#xe911;",x.WARNING="&#xe913;",x.CONTEXT="&#xe914;",x.SEARCH_HOME="&#xe915;",x.STEPS="&#xe916;",x.HOME="&#xe80b;",x.TRANSLATE="&#xe924;",x.USER="&#xe813;",x.ADMIN="&#xe902;",x.ANALYTICS="&#xe929;",x.ADMIN_KHUB="&#xe90f;",x.ADMIN_USERS="&#xe910;",x.ADMIN_INTEGRATION="&#xe93c;",x.ADMIN_PORTAL="&#xe912;",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",p.ABW="&#xe900;",p.AUDIO="&#xe901;",p.AVI="&#xe902;",p.CHM="&#xe904;",p.CODE="&#xe905;",p.CSV="&#xe903;",p.DITA="&#xe906;",p.EPUB="&#xe907;",p.EXCEL="&#xe908;",p.FLAC="&#xe909;",p.GIF="&#xe90b;",p.GZIP="&#xe90c;",p.HTML="&#xe90d;",p.IMAGE="&#xe90e;",p.JPEG="&#xe90f;",p.JSON="&#xe910;",p.M4A="&#xe911;",p.MOV="&#xe912;",p.MP3="&#xe913;",p.MP4="&#xe914;",p.OGG="&#xe915;",p.PDF="&#xe916;",p.PNG="&#xe917;",p.POWERPOINT="&#xe918;",p.RAR="&#xe91a;",p.STP="&#xe91b;",p.TEXT="&#xe91c;",p.VIDEO="&#xe91e;",p.WAV="&#xe91f;",p.WMA="&#xe920;",p.WORD="&#xe921;",p.XML="&#xe922;",p.YAML="&#xe919;",p.ZIP="&#xe923;";const n=new Map([...["abw"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.AUDIO])),...["avi"].map((t=>[t,e.FtFileFormatIcons.AVI])),...["chm","xhs"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.CODE])),...["csv"].map((t=>[t,e.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,e.FtFileFormatIcons.DITA])),...["epub"].map((t=>[t,e.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,e.FtFileFormatIcons.EXCEL])),...["flac"].map((t=>[t,e.FtFileFormatIcons.FLAC])),...["gif"].map((t=>[t,e.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,e.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,e.FtFileFormatIcons.JPEG])),...["json"].map((t=>[t,e.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((t=>[t,e.FtFileFormatIcons.M4A])),...["mov","qt"].map((t=>[t,e.FtFileFormatIcons.MOV])),...["mp3"].map((t=>[t,e.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((t=>[t,e.FtFileFormatIcons.MP4])),...["ogg","oga"].map((t=>[t,e.FtFileFormatIcons.OGG])),...["pdf","ps"].map((t=>[t,e.FtFileFormatIcons.PDF])),...["png"].map((t=>[t,e.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,e.FtFileFormatIcons.POWERPOINT])),...["rar"].map((t=>[t,e.FtFileFormatIcons.RAR])),...["stp"].map((t=>[t,e.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.VIDEO])),...["wav"].map((t=>[t,e.FtFileFormatIcons.WAV])),...["wma"].map((t=>[t,e.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,e.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((t=>[t,e.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((t=>[t,e.FtFileFormatIcons.YAML])),...["zip"].map((t=>[t,e.FtFileFormatIcons.ZIP]))]),l=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const s={size:t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},m=a.css`
2
+ :host {
3
+ display: inline-block;
4
+ }
10
5
 
11
- :host, i.ft-icon {
12
- width: ${c.size};
13
- height: ${c.size};
14
- text-align: center;
15
- }
6
+ :host, i.ft-icon {
7
+ width: ${s.size};
8
+ height: ${s.size};
9
+ text-align: center;
10
+ }
16
11
 
17
- i.ft-icon {
18
- font-size: ${c.size};
19
- line-height: 1;
20
- font-weight: normal;
21
- text-transform: none;
22
- font-style: normal;
23
- font-variant: normal;
24
- speak: none;
25
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
26
- text-rendering: auto;
27
- -webkit-font-smoothing: antialiased;
28
- -moz-osx-font-smoothing: grayscale;
29
- vertical-align: ${c.verticalAlign};
30
- }
12
+ i.ft-icon {
13
+ font-size: ${s.size};
14
+ line-height: 1;
15
+ font-weight: normal;
16
+ text-transform: none;
17
+ font-style: normal;
18
+ font-variant: normal;
19
+ speak: none;
20
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
21
+ text-rendering: auto;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ vertical-align: ${s.verticalAlign};
25
+ }
31
26
 
32
- .ft-icon--fluid-topics {
33
- font-family: ${c.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
34
- }
27
+ .ft-icon--fluid-topics {
28
+ font-family: ${s.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
29
+ }
35
30
 
36
- .ft-icon--file-format {
37
- font-family: ${c.fileFormatFontFamily}, ft-mime, sans-serif;
38
- }
31
+ .ft-icon--file-format {
32
+ font-family: ${s.fileFormatFontFamily}, ft-mime, sans-serif;
33
+ }
39
34
 
40
- .ft-icon--material {
41
- font-family: ${c.materialFontFamily}, "Material Icons", sans-serif;
42
- }
43
- `,m([i.property()],d.prototype,"variant",void 0),m([i.property()],d.prototype,"value",void 0),m([i.state()],d.prototype,"resolvedIcon",void 0),m([i.query("slot")],d.prototype,"slottedContent",void 0),t.customElement("ft-icon")(d),e.FtIcon=d,e.FtIconCssVariables=c,e.resolveFileFormatIcon=function(t,a){var i,o,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[s,m]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(p=null!==(x=null!==(o=n.get(m))&&void 0!==o?o:n.get(a))&&void 0!==x?x:n.get(s))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
35
+ .ft-icon--material {
36
+ font-family: ${s.materialFontFamily}, "Material Icons", sans-serif;
37
+ }
38
+ `;var c;e.FtIconVariants=void 0,(c=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",c.file_format="file-format",c.material="material";var d=function(e,t,a,i){for(var o,x=arguments.length,p=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,n=e.length-1;n>=0;n--)(o=e[n])&&(p=(x<3?o(p):x>3?o(t,a,p):o(t,a))||p);return x>3&&p&&Object.defineProperty(t,a,p),p};class f extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics,this.resolvedIcon=a.nothing}render(){const e="material"!==this.variant||this.value;return a.html`
39
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
40
+ ${o.unsafeHTML(this.resolvedIcon)}
41
+ <slot ?hidden=${e}></slot>
42
+ </i>
43
+ `}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=e.FtIcons[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||a.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}f.elementDefinitions={},f.styles=m,d([i.property()],f.prototype,"variant",void 0),d([i.property()],f.prototype,"value",void 0),d([i.state()],f.prototype,"resolvedIcon",void 0),d([i.query("slot")],f.prototype,"slottedContent",void 0),t.customElement("ft-icon")(f),e.FtIcon=f,e.FtIconCssVariables=s,e.resolveFileFormatIcon=function(t,a){var i,o,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[s,m]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(p=null!==(x=null!==(o=n.get(m))&&void 0!==o?o:n.get(a))&&void 0!==x?x:n.get(s))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},e.styles=m,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
@@ -85,57 +85,57 @@ const ct=2;
85
85
  * Copyright 2017 Google LLC
86
86
  * SPDX-License-Identifier: BSD-3-Clause
87
87
  */
88
- 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=W,t.type!==ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===B)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;t.FtIcons=void 0,(dt=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",dt.THIN_ARROW_RIGHT="&#xe957;",dt.MY_COLLECTIONS="&#xe955;",dt.OFFLINE_SETTINGS="&#xe954;",dt.MY_LIBRARY="&#xe959;",dt.RATE_PLAIN="&#xe952;",dt.RATE="&#xe953;",dt.FEEDBACK_PLAIN="&#xe951;",dt.STAR_PLAIN="&#xe94b;",dt.STAR="&#xe94c;",dt.THUMBS_DOWN_PLAIN="&#xe94d;",dt.THUMBS_DOWN="&#xe94e;",dt.THUMBS_UP_PLAIN="&#xe94f;",dt.THUMBS_UP="&#xe950;",dt.PAUSE="&#xe949;",dt.PLAY="&#xe94a;",dt.RELATIVES_PLAIN="&#xe947;",dt.RELATIVES="&#xe948;",dt.SHORTCUT_MENU="&#xe946;",dt.PRINT="&#xe944;",dt.DEFAULT_ROLES="&#xe945;",dt.ACCOUNT_SETTINGS="&#xe943;",dt.ONLINE="&#xe941;",dt.OFFLINE="&#xe816;",dt.UPLOAD="&#xe940;",dt.BOOK_PLAIN="&#xe93f;",dt.SYNC="&#xe93d;",dt.SHARED_PBK="&#xe931;",dt.COLLECTIONS="&#xe92a;",dt.SEARCH_IN_PUBLICATION="&#xe92f;",dt.BOOKS="&#xe806;",dt.LOCKER="&#xe93b;",dt.ARROW_DOWN="&#xe92b;",dt.ARROW_LEFT="&#xe92c;",dt.ARROW_RIGHT="&#xe92d;",dt.ARROW_UP="&#xe92e;",dt.SAVE="&#xe93a;",dt.MAILS_AND_NOTIFICATIONS="&#xe939;",dt.DOT="&#xe936;",dt.MINUS="&#xe937;",dt.PLUS="&#xe938;",dt.FILTERS="&#xe935;",dt.STRIPE_ARROW_RIGHT="&#xe934;",dt.STRIPE_ARROW_LEFT="&#xe933;",dt.ATTACHMENTS="&#xe932;",dt.ADD_BOOKMARK="&#xe804;",dt.BOOKMARK="&#xe805;",dt.EXPORT="&#xe80f;",dt.MENU="&#xe807;",dt.TAG="&#xe93e;",dt.TAG_PLAIN="&#xe942;",dt.COPY_TO_CLIPBOARD="&#xe930;",dt.COLUMNS="&#xe928;",dt.ARTICLE="&#xe927;",dt.CLOSE_PLAIN="&#xe925;",dt.CHECK_PLAIN="&#xe926;",dt.LOGOUT="&#xe923;",dt.SIGN_IN="&#xe922;",dt.THIN_ARROW="&#xe921;",dt.TRIANGLE_BOTTOM="&#xe91d;",dt.TRIANGLE_LEFT="&#xe91e;",dt.TRIANGLE_RIGHT="&#xe91f;",dt.TRIANGLE_TOP="&#xe920;",dt.FACET_HAS_DESCENDANT="&#xe91c;",dt.MINUS_PLAIN="&#xe91a;",dt.PLUS_PLAIN="&#xe91b;",dt.INFO="&#xe919;",dt.ICON_EXPAND="&#xe917;",dt.ICON_COLLAPSE="&#xe918;",dt.ADD_TO_PBK="&#xe800;",dt.ALERT="&#xe801;",dt.ADD_ALERT="&#xe802;",dt.BACK_TO_SEARCH="&#xe803;",dt.DOWNLOAD="&#xe808;",dt.EDIT="&#xe809;",dt.FEEDBACK="&#xe80a;",dt.MODIFY_PBK="&#xe80c;",dt.SCHEDULED="&#xe80d;",dt.SEARCH="&#xe80e;",dt.SHARE="&#xe80f1;",dt.TOC="&#xe810;",dt.WRITE_UGC="&#xe811;",dt.TRASH="&#xe812;",dt.EXTLINK="&#xe814;",dt.CALENDAR="&#xe815;",dt.BOOK="&#xe817;",dt.DOWNLOAD_PLAIN="&#xe818;",dt.CHECK="&#xe819;",dt.TOPICS="&#xe900;",dt.EYE="\f06e",dt.DISC="&#xe901;",dt.CIRCLE="&#xe903;",dt.SHARED="&#xe904;",dt.SORT_UNSORTED="&#xe905;",dt.SORT_UP="&#xe906;",dt.SORT_DOWN="&#xe907;",dt.WORKING="&#xe908;",dt.CLOSE="&#xe909;",dt.ZOOM_OUT="&#xe90a;",dt.ZOOM_IN="&#xe90b;",dt.ZOOM_REALSIZE="&#xe90c;",dt.ZOOM_FULLSCREEN="&#xe90d;",dt.ADMIN_RESTRICTED="&#xe90e;",dt.ADMIN_THEME="&#xe911;",dt.WARNING="&#xe913;",dt.CONTEXT="&#xe914;",dt.SEARCH_HOME="&#xe915;",dt.STEPS="&#xe916;",dt.HOME="&#xe80b;",dt.TRANSLATE="&#xe924;",dt.USER="&#xe813;",dt.ADMIN="&#xe902;",dt.ANALYTICS="&#xe929;",dt.ADMIN_KHUB="&#xe90f;",dt.ADMIN_USERS="&#xe910;",dt.ADMIN_INTEGRATION="&#xe93c;",dt.ADMIN_PORTAL="&#xe912;",t.FtFileFormatIcons=void 0,(ut=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",ut.ABW="&#xe900;",ut.AUDIO="&#xe901;",ut.AVI="&#xe902;",ut.CHM="&#xe904;",ut.CODE="&#xe905;",ut.CSV="&#xe903;",ut.DITA="&#xe906;",ut.EPUB="&#xe907;",ut.EXCEL="&#xe908;",ut.FLAC="&#xe909;",ut.GIF="&#xe90b;",ut.GZIP="&#xe90c;",ut.HTML="&#xe90d;",ut.IMAGE="&#xe90e;",ut.JPEG="&#xe90f;",ut.JSON="&#xe910;",ut.M4A="&#xe911;",ut.MOV="&#xe912;",ut.MP3="&#xe913;",ut.MP4="&#xe914;",ut.OGG="&#xe915;",ut.PDF="&#xe916;",ut.PNG="&#xe917;",ut.POWERPOINT="&#xe918;",ut.RAR="&#xe91a;",ut.STP="&#xe91b;",ut.TEXT="&#xe91c;",ut.VIDEO="&#xe91e;",ut.WAV="&#xe91f;",ut.WMA="&#xe920;",ut.WORD="&#xe921;",ut.XML="&#xe922;",ut.YAML="&#xe919;",ut.ZIP="&#xe923;";const xt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),ft=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var vt,mt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};t.FtIconVariants=void 0,(vt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",vt.file_format="file-format",vt.material="material";const bt={size:ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ot.extend("--ft-icon-fluid-topics-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ot.extend("--ft-icon-file-format-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ot.extend("--ft-icon-material-font-family",ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ot.create("--ft-icon-vertical-align","UNKNOWN","unset")};class gt extends lt{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics,this.resolvedIcon=W}render(){const t="material"!==this.variant||this.value;return _`
89
- <i class="ft-icon ${"ft-icon--"+this.variant}">
90
- ${ht(this.resolvedIcon)}
91
- <slot ?hidden=${t}></slot>
92
- </i>
93
- `}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s;break;default:this.resolvedIcon=this.value||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}var wt;gt.elementDefinitions={},gt.styles=c`
94
- :host {
95
- display: inline-block;
96
- }
88
+ 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=W,t.type!==ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===B)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;t.FtIcons=void 0,(dt=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",dt.THIN_ARROW_RIGHT="&#xe957;",dt.MY_COLLECTIONS="&#xe955;",dt.OFFLINE_SETTINGS="&#xe954;",dt.MY_LIBRARY="&#xe959;",dt.RATE_PLAIN="&#xe952;",dt.RATE="&#xe953;",dt.FEEDBACK_PLAIN="&#xe951;",dt.STAR_PLAIN="&#xe94b;",dt.STAR="&#xe94c;",dt.THUMBS_DOWN_PLAIN="&#xe94d;",dt.THUMBS_DOWN="&#xe94e;",dt.THUMBS_UP_PLAIN="&#xe94f;",dt.THUMBS_UP="&#xe950;",dt.PAUSE="&#xe949;",dt.PLAY="&#xe94a;",dt.RELATIVES_PLAIN="&#xe947;",dt.RELATIVES="&#xe948;",dt.SHORTCUT_MENU="&#xe946;",dt.PRINT="&#xe944;",dt.DEFAULT_ROLES="&#xe945;",dt.ACCOUNT_SETTINGS="&#xe943;",dt.ONLINE="&#xe941;",dt.OFFLINE="&#xe816;",dt.UPLOAD="&#xe940;",dt.BOOK_PLAIN="&#xe93f;",dt.SYNC="&#xe93d;",dt.SHARED_PBK="&#xe931;",dt.COLLECTIONS="&#xe92a;",dt.SEARCH_IN_PUBLICATION="&#xe92f;",dt.BOOKS="&#xe806;",dt.LOCKER="&#xe93b;",dt.ARROW_DOWN="&#xe92b;",dt.ARROW_LEFT="&#xe92c;",dt.ARROW_RIGHT="&#xe92d;",dt.ARROW_UP="&#xe92e;",dt.SAVE="&#xe93a;",dt.MAILS_AND_NOTIFICATIONS="&#xe939;",dt.DOT="&#xe936;",dt.MINUS="&#xe937;",dt.PLUS="&#xe938;",dt.FILTERS="&#xe935;",dt.STRIPE_ARROW_RIGHT="&#xe934;",dt.STRIPE_ARROW_LEFT="&#xe933;",dt.ATTACHMENTS="&#xe932;",dt.ADD_BOOKMARK="&#xe804;",dt.BOOKMARK="&#xe805;",dt.EXPORT="&#xe80f;",dt.MENU="&#xe807;",dt.TAG="&#xe93e;",dt.TAG_PLAIN="&#xe942;",dt.COPY_TO_CLIPBOARD="&#xe930;",dt.COLUMNS="&#xe928;",dt.ARTICLE="&#xe927;",dt.CLOSE_PLAIN="&#xe925;",dt.CHECK_PLAIN="&#xe926;",dt.LOGOUT="&#xe923;",dt.SIGN_IN="&#xe922;",dt.THIN_ARROW="&#xe921;",dt.TRIANGLE_BOTTOM="&#xe91d;",dt.TRIANGLE_LEFT="&#xe91e;",dt.TRIANGLE_RIGHT="&#xe91f;",dt.TRIANGLE_TOP="&#xe920;",dt.FACET_HAS_DESCENDANT="&#xe91c;",dt.MINUS_PLAIN="&#xe91a;",dt.PLUS_PLAIN="&#xe91b;",dt.INFO="&#xe919;",dt.ICON_EXPAND="&#xe917;",dt.ICON_COLLAPSE="&#xe918;",dt.ADD_TO_PBK="&#xe800;",dt.ALERT="&#xe801;",dt.ADD_ALERT="&#xe802;",dt.BACK_TO_SEARCH="&#xe803;",dt.DOWNLOAD="&#xe808;",dt.EDIT="&#xe809;",dt.FEEDBACK="&#xe80a;",dt.MODIFY_PBK="&#xe80c;",dt.SCHEDULED="&#xe80d;",dt.SEARCH="&#xe80e;",dt.SHARE="&#xe80f1;",dt.TOC="&#xe810;",dt.WRITE_UGC="&#xe811;",dt.TRASH="&#xe812;",dt.EXTLINK="&#xe814;",dt.CALENDAR="&#xe815;",dt.BOOK="&#xe817;",dt.DOWNLOAD_PLAIN="&#xe818;",dt.CHECK="&#xe819;",dt.TOPICS="&#xe900;",dt.EYE="\f06e",dt.DISC="&#xe901;",dt.CIRCLE="&#xe903;",dt.SHARED="&#xe904;",dt.SORT_UNSORTED="&#xe905;",dt.SORT_UP="&#xe906;",dt.SORT_DOWN="&#xe907;",dt.WORKING="&#xe908;",dt.CLOSE="&#xe909;",dt.ZOOM_OUT="&#xe90a;",dt.ZOOM_IN="&#xe90b;",dt.ZOOM_REALSIZE="&#xe90c;",dt.ZOOM_FULLSCREEN="&#xe90d;",dt.ADMIN_RESTRICTED="&#xe90e;",dt.ADMIN_THEME="&#xe911;",dt.WARNING="&#xe913;",dt.CONTEXT="&#xe914;",dt.SEARCH_HOME="&#xe915;",dt.STEPS="&#xe916;",dt.HOME="&#xe80b;",dt.TRANSLATE="&#xe924;",dt.USER="&#xe813;",dt.ADMIN="&#xe902;",dt.ANALYTICS="&#xe929;",dt.ADMIN_KHUB="&#xe90f;",dt.ADMIN_USERS="&#xe910;",dt.ADMIN_INTEGRATION="&#xe93c;",dt.ADMIN_PORTAL="&#xe912;",t.FtFileFormatIcons=void 0,(ut=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",ut.ABW="&#xe900;",ut.AUDIO="&#xe901;",ut.AVI="&#xe902;",ut.CHM="&#xe904;",ut.CODE="&#xe905;",ut.CSV="&#xe903;",ut.DITA="&#xe906;",ut.EPUB="&#xe907;",ut.EXCEL="&#xe908;",ut.FLAC="&#xe909;",ut.GIF="&#xe90b;",ut.GZIP="&#xe90c;",ut.HTML="&#xe90d;",ut.IMAGE="&#xe90e;",ut.JPEG="&#xe90f;",ut.JSON="&#xe910;",ut.M4A="&#xe911;",ut.MOV="&#xe912;",ut.MP3="&#xe913;",ut.MP4="&#xe914;",ut.OGG="&#xe915;",ut.PDF="&#xe916;",ut.PNG="&#xe917;",ut.POWERPOINT="&#xe918;",ut.RAR="&#xe91a;",ut.STP="&#xe91b;",ut.TEXT="&#xe91c;",ut.VIDEO="&#xe91e;",ut.WAV="&#xe91f;",ut.WMA="&#xe920;",ut.WORD="&#xe921;",ut.XML="&#xe922;",ut.YAML="&#xe919;",ut.ZIP="&#xe923;";const xt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),ft=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const vt={size:ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ot.extend("--ft-icon-fluid-topics-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ot.extend("--ft-icon-file-format-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ot.extend("--ft-icon-material-font-family",ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ot.create("--ft-icon-vertical-align","UNKNOWN","unset")},mt=c`
89
+ :host {
90
+ display: inline-block;
91
+ }
97
92
 
98
- :host, i.ft-icon {
99
- width: ${bt.size};
100
- height: ${bt.size};
101
- text-align: center;
102
- }
93
+ :host, i.ft-icon {
94
+ width: ${vt.size};
95
+ height: ${vt.size};
96
+ text-align: center;
97
+ }
103
98
 
104
- i.ft-icon {
105
- font-size: ${bt.size};
106
- line-height: 1;
107
- font-weight: normal;
108
- text-transform: none;
109
- font-style: normal;
110
- font-variant: normal;
111
- speak: none;
112
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
113
- text-rendering: auto;
114
- -webkit-font-smoothing: antialiased;
115
- -moz-osx-font-smoothing: grayscale;
116
- vertical-align: ${bt.verticalAlign};
117
- }
99
+ i.ft-icon {
100
+ font-size: ${vt.size};
101
+ line-height: 1;
102
+ font-weight: normal;
103
+ text-transform: none;
104
+ font-style: normal;
105
+ font-variant: normal;
106
+ speak: none;
107
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
108
+ text-rendering: auto;
109
+ -webkit-font-smoothing: antialiased;
110
+ -moz-osx-font-smoothing: grayscale;
111
+ vertical-align: ${vt.verticalAlign};
112
+ }
118
113
 
119
- .ft-icon--fluid-topics {
120
- font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
121
- }
114
+ .ft-icon--fluid-topics {
115
+ font-family: ${vt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
116
+ }
122
117
 
123
- .ft-icon--file-format {
124
- font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
125
- }
118
+ .ft-icon--file-format {
119
+ font-family: ${vt.fileFormatFontFamily}, ft-mime, sans-serif;
120
+ }
126
121
 
127
- .ft-icon--material {
128
- font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
129
- }
130
- `,mt([i()],gt.prototype,"variant",void 0),mt([i()],gt.prototype,"value",void 0),mt([function(t){return i({...t,state:!0})}
122
+ .ft-icon--material {
123
+ font-family: ${vt.materialFontFamily}, "Material Icons", sans-serif;
124
+ }
125
+ `;var bt;t.FtIconVariants=void 0,(bt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",bt.file_format="file-format",bt.material="material";var gt,wt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class yt extends lt{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics,this.resolvedIcon=W}render(){const t="material"!==this.variant||this.value;return _`
126
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
127
+ ${ht(this.resolvedIcon)}
128
+ <slot ?hidden=${t}></slot>
129
+ </i>
130
+ `}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s;break;default:this.resolvedIcon=this.value||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}yt.elementDefinitions={},yt.styles=mt,wt([i()],yt.prototype,"variant",void 0),wt([i()],yt.prototype,"value",void 0),wt([function(t){return i({...t,state:!0})}
131
131
  /**
132
132
  * @license
133
133
  * Copyright 2017 Google LLC
134
134
  * SPDX-License-Identifier: BSD-3-Clause
135
- */()],gt.prototype,"resolvedIcon",void 0),mt([
135
+ */()],yt.prototype,"resolvedIcon",void 0),wt([
136
136
  /**
137
137
  * @license
138
138
  * Copyright 2017 Google LLC
139
139
  * SPDX-License-Identifier: BSD-3-Clause
140
140
  */
141
- function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={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;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],gt.prototype,"slottedContent",void 0),(wt="ft-icon",t=>{window.customElements.get(wt)||window.customElements.define(wt,t)})(gt),t.FtIcon=gt,t.FtIconCssVariables=bt,t.resolveFileFormatIcon=function(e,i){var s,o,n,r;e=(null!=e?e:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[a,l]=((null!==(s=ft.get(e))&&void 0!==s?s:e)+"/").split("/");return null!==(r=null!==(n=null!==(o=xt.get(l))&&void 0!==o?o:xt.get(i))&&void 0!==n?n:xt.get(a))&&void 0!==r?r:t.FtFileFormatIcons.UNKNOWN},Object.defineProperty(t,"i",{value:!0})}({});
141
+ function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={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;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],yt.prototype,"slottedContent",void 0),(gt="ft-icon",t=>{window.customElements.get(gt)||window.customElements.define(gt,t)})(yt),t.FtIcon=yt,t.FtIconCssVariables=vt,t.resolveFileFormatIcon=function(e,i){var s,o,n,r;e=(null!=e?e:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[a,l]=((null!==(s=ft.get(e))&&void 0!==s?s:e)+"/").split("/");return null!==(r=null!==(n=null!==(o=xt.get(l))&&void 0!==o?o:xt.get(i))&&void 0!==n?n:xt.get(a))&&void 0!==r?r:t.FtFileFormatIcons.UNKNOWN},t.styles=mt,Object.defineProperty(t,"i",{value:!0})}({});
@@ -0,0 +1,10 @@
1
+ export declare enum FtIconVariants {
2
+ fluid_topics = "fluid-topics",
3
+ file_format = "file-format",
4
+ material = "material"
5
+ }
6
+ export interface FtIconProperties {
7
+ variant?: FtIconVariants;
8
+ value?: string;
9
+ }
10
+ //# sourceMappingURL=ft-icon.properties.d.ts.map
@@ -0,0 +1,7 @@
1
+ export var FtIconVariants;
2
+ (function (FtIconVariants) {
3
+ FtIconVariants["fluid_topics"] = "fluid-topics";
4
+ FtIconVariants["file_format"] = "file-format";
5
+ FtIconVariants["material"] = "material";
6
+ })(FtIconVariants || (FtIconVariants = {}));
7
+ //# sourceMappingURL=ft-icon.properties.js.map
package/build/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from "./ft-icon.css";
2
+ export * from "./ft-icon.properties";
1
3
  export * from "./ft-icon";
2
4
  export * from "./icons";
3
5
  //# sourceMappingURL=index.d.ts.map
package/build/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { customElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtIcon } from "./ft-icon";
3
+ export * from "./ft-icon.css";
4
+ export * from "./ft-icon.properties";
3
5
  export * from "./ft-icon";
4
6
  export * from "./icons";
5
7
  customElement("ft-icon")(FtIcon);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-icon",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Typography components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.12",
22
+ "@fluid-topics/ft-wc-utils": "0.3.14",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
25
+ "gitHead": "46cc9dd160b2f3189a2e581a8237e962f1ae464d"
26
26
  }