@fluid-topics/ft-icon 0.3.9 → 0.3.12

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.
@@ -1,3 +1,4 @@
1
+ import { PropertyValues } from "lit";
1
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
3
  export declare enum FtIconVariants {
3
4
  fluid_topics = "fluid-topics",
@@ -16,11 +17,15 @@ export declare const FtIconCssVariables: {
16
17
  };
17
18
  export declare class FtIcon extends FtLitElement implements FtIconProperties {
18
19
  static elementDefinitions: ElementDefinitionsMap;
19
- getStyles(): import("lit").CSSResult;
20
+ static styles: import("lit").CSSResult;
20
21
  variant: FtIconVariants;
22
+ value?: string;
23
+ private resolvedIcon;
21
24
  private slottedContent?;
22
- protected getTemplate(): import("lit-html").TemplateResult<1>;
25
+ protected render(): import("lit-html").TemplateResult<1>;
23
26
  get textContent(): string;
24
- private getIcon;
27
+ protected update(changedProperties: PropertyValues): void;
28
+ private resolveIcon;
29
+ protected firstUpdated(_changedProperties: PropertyValues): void;
25
30
  }
26
31
  //# sourceMappingURL=ft-icon.d.ts.map
package/build/ft-icon.js CHANGED
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { css, html, nothing } from "lit";
8
- import { property, query } from "lit/decorators.js";
8
+ import { property, query, state } from "lit/decorators.js";
9
9
  import { FtCssVariableFactory, FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
11
11
  import { FtFileFormatIcons, FtIcons } from "./icons";
@@ -26,53 +26,14 @@ export class FtIcon extends FtLitElement {
26
26
  constructor() {
27
27
  super(...arguments);
28
28
  this.variant = FtIconVariants.fluid_topics;
29
+ this.resolvedIcon = nothing;
29
30
  }
30
- //language=css
31
- getStyles() {
32
- return css `
33
- :host {
34
- display: inline-block;
35
- }
36
-
37
- :host, i.ft-icon {
38
- width: ${FtIconCssVariables.size};
39
- height: ${FtIconCssVariables.size};
40
- text-align: center;
41
- }
42
-
43
- i.ft-icon {
44
- font-size: ${FtIconCssVariables.size};
45
- line-height: 1;
46
- font-weight: normal;
47
- text-transform: none;
48
- font-style: normal;
49
- font-variant: normal;
50
- speak: none;
51
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
52
- text-rendering: auto;
53
- -webkit-font-smoothing: antialiased;
54
- -moz-osx-font-smoothing: grayscale;
55
- vertical-align: ${FtIconCssVariables.verticalAlign};
56
- }
57
-
58
- .ft-icon--fluid-topics {
59
- font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
60
- }
61
-
62
- .ft-icon--file-format {
63
- font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
64
- }
65
-
66
- .ft-icon--material {
67
- font-family: ${FtIconCssVariables.materialFontFamily}, "Material Icons", sans-serif;
68
- }
69
- `;
70
- }
71
- getTemplate() {
31
+ render() {
32
+ const slotHidden = this.variant !== "material" || this.value;
72
33
  return html `
73
34
  <i class="ft-icon ${"ft-icon--" + this.variant}">
74
- ${unsafeHTML(this.getIcon())}
75
- <slot @slotchange=${() => this.requestUpdate()} ?hidden=${this.variant !== "material"}></slot>
35
+ ${unsafeHTML(this.resolvedIcon)}
36
+ <slot ?hidden=${slotHidden}></slot>
76
37
  </i>
77
38
  `;
78
39
  }
@@ -80,22 +41,82 @@ export class FtIcon extends FtLitElement {
80
41
  var _a, _b;
81
42
  return (_b = (_a = this.slottedContent) === null || _a === void 0 ? void 0 : _a.assignedNodes().map(n => n.textContent).join("").trim()) !== null && _b !== void 0 ? _b : "";
82
43
  }
83
- getIcon() {
84
- var _a, _b;
85
- let content = this.textContent;
86
- if (this.variant === FtIconVariants.file_format) {
87
- return (_a = FtFileFormatIcons[content.toUpperCase()]) !== null && _a !== void 0 ? _a : content;
44
+ update(changedProperties) {
45
+ super.update(changedProperties);
46
+ if (["value", "variant"].some(p => changedProperties.has(p))) {
47
+ this.resolveIcon();
88
48
  }
89
- if (this.variant === FtIconVariants.fluid_topics) {
90
- return (_b = FtIcons[content.toUpperCase()]) !== null && _b !== void 0 ? _b : content;
49
+ }
50
+ resolveIcon() {
51
+ var _a, _b;
52
+ let content = this.value || this.textContent;
53
+ switch (this.variant) {
54
+ case FtIconVariants.file_format:
55
+ this.resolvedIcon = (_a = FtFileFormatIcons[content.toUpperCase()]) !== null && _a !== void 0 ? _a : content;
56
+ break;
57
+ case FtIconVariants.fluid_topics:
58
+ this.resolvedIcon = (_b = FtIcons[content.toUpperCase()]) !== null && _b !== void 0 ? _b : content;
59
+ break;
60
+ default:
61
+ this.resolvedIcon = this.value || nothing;
91
62
  }
92
- return nothing;
63
+ }
64
+ firstUpdated(_changedProperties) {
65
+ super.firstUpdated(_changedProperties);
66
+ setTimeout(() => {
67
+ this.resolveIcon();
68
+ });
93
69
  }
94
70
  }
95
71
  FtIcon.elementDefinitions = {};
72
+ //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
+ `;
96
111
  __decorate([
97
112
  property()
98
113
  ], FtIcon.prototype, "variant", void 0);
114
+ __decorate([
115
+ property()
116
+ ], FtIcon.prototype, "value", void 0);
117
+ __decorate([
118
+ state()
119
+ ], FtIcon.prototype, "resolvedIcon", void 0);
99
120
  __decorate([
100
121
  query("slot")
101
122
  ], FtIcon.prototype, "slottedContent", 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 m,s=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,(m=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",m.file_format="file-format",m.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 f extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics}getStyles(){return a.css`
2
- :host {
3
- display: inline-block;
4
- }
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
+ }
5
10
 
6
- :host, i.ft-icon {
7
- width: ${c.size};
8
- height: ${c.size};
9
- text-align: center;
10
- }
11
+ :host, i.ft-icon {
12
+ width: ${c.size};
13
+ height: ${c.size};
14
+ text-align: center;
15
+ }
11
16
 
12
- i.ft-icon {
13
- font-size: ${c.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: ${c.verticalAlign};
25
- }
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
+ }
26
31
 
27
- .ft-icon--fluid-topics {
28
- font-family: ${c.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
29
- }
32
+ .ft-icon--fluid-topics {
33
+ font-family: ${c.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
34
+ }
30
35
 
31
- .ft-icon--file-format {
32
- font-family: ${c.fileFormatFontFamily}, ft-mime, sans-serif;
33
- }
36
+ .ft-icon--file-format {
37
+ font-family: ${c.fileFormatFontFamily}, ft-mime, sans-serif;
38
+ }
34
39
 
35
- .ft-icon--material {
36
- font-family: ${c.materialFontFamily}, "Material Icons", sans-serif;
37
- }
38
- `}getTemplate(){return a.html`
39
- <i class="ft-icon ${"ft-icon--"+this.variant}">
40
- ${o.unsafeHTML(this.getIcon())}
41
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></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:""}getIcon(){var t,i;let o=this.textContent;return this.variant===e.FtIconVariants.file_format?null!==(t=e.FtFileFormatIcons[o.toUpperCase()])&&void 0!==t?t:o:this.variant===e.FtIconVariants.fluid_topics?null!==(i=e.FtIcons[o.toUpperCase()])&&void 0!==i?i:o:a.nothing}}f.elementDefinitions={},s([i.property()],f.prototype,"variant",void 0),s([i.query("slot")],f.prototype,"slottedContent",void 0),t.customElement("ft-icon")(f),e.FtIcon=f,e.FtIconCssVariables=c,e.resolveFileFormatIcon=function(t,a){var i,o,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[m,s]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(p=null!==(x=null!==(o=n.get(s))&&void 0!==o?o:n.get(a))&&void 0!==x?x:n.get(m))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
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);
@@ -85,49 +85,54 @@ 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}getStyles(){return c`
89
- :host {
90
- display: inline-block;
91
- }
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
+ }
92
97
 
93
- :host, i.ft-icon {
94
- width: ${bt.size};
95
- height: ${bt.size};
96
- text-align: center;
97
- }
98
+ :host, i.ft-icon {
99
+ width: ${bt.size};
100
+ height: ${bt.size};
101
+ text-align: center;
102
+ }
98
103
 
99
- i.ft-icon {
100
- font-size: ${bt.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: ${bt.verticalAlign};
112
- }
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
+ }
113
118
 
114
- .ft-icon--fluid-topics {
115
- font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
116
- }
119
+ .ft-icon--fluid-topics {
120
+ font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
121
+ }
117
122
 
118
- .ft-icon--file-format {
119
- font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
120
- }
123
+ .ft-icon--file-format {
124
+ font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
125
+ }
121
126
 
122
- .ft-icon--material {
123
- font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
124
- }
125
- `}getTemplate(){return _`
126
- <i class="ft-icon ${"ft-icon--"+this.variant}">
127
- ${ht(this.getIcon())}
128
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></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:""}getIcon(){var e,i;let s=this.textContent;return this.variant===t.FtIconVariants.file_format?null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s:this.variant===t.FtIconVariants.fluid_topics?null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s:W}}var wt;gt.elementDefinitions={},mt([i()],gt.prototype,"variant",void 0),mt([
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})}
131
+ /**
132
+ * @license
133
+ * Copyright 2017 Google LLC
134
+ * SPDX-License-Identifier: BSD-3-Clause
135
+ */()],gt.prototype,"resolvedIcon",void 0),mt([
131
136
  /**
132
137
  * @license
133
138
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-icon",
3
- "version": "0.3.9",
3
+ "version": "0.3.12",
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.9",
22
+ "@fluid-topics/ft-wc-utils": "0.3.12",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "b326dc3ac2a2e625407370a2fc240df938e0d09f"
25
+ "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
26
26
  }