@fluid-topics/ft-icon 1.1.69 → 1.1.71

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,4 +1,4 @@
1
- !function(e,t,x,a,i){var o,n;e.FtIcons=void 0,(o=e.FtIcons||(e.FtIcons={})).THUMBS_DOWN="",o.THUMBS_DOWN_PLAIN="",o.THUMBS_UP="",o.THUMBS_UP_PLAIN="",o.STAR="",o.STAR_PLAIN="",o.DESKTOP="",o.LIFE_RING="",o.GLOBE="",o.PIGGY_BANK="",o.TABLET_LANDSCAPE="",o.TABLET_PORTRAIT="",o.MOBILE_LANDSCAPE="",o.MOBILE_PORTRAIT="",o.ARROW_RIGHT_TO_LINE="",o.THIN_ARROW_UP="",o.CONTEXTUAL="",o.CHART_SIMPLE="",o.BARS_PROGRESS="",o.LINE_CHART="",o.STACKED_CHART="",o.CHART_BAR_NORMALIZED="",o.BOOK_OPEN_GEAR="",o.BOOK_OPEN_GEAR_SLASH="",o.DIAGRAM_SUNBURST="",o.DIAGRAM_SANKEY="",o.UNSTRUCTURED_DOC="",o.RESET="",o.THIN_ARROW_LEFT="",o.THIN_ARROW_RIGHT="",o.MY_COLLECTIONS="",o.OFFLINE_SETTINGS="",o.MY_LIBRARY="",o.RATE_PLAIN="",o.RATE="",o.FEEDBACK_PLAIN="",o.PAUSE="",o.PLAY="",o.RELATIVES_PLAIN="",o.RELATIVES="",o.SHORTCUT_MENU="",o.PRINT="",o.DEFAULT_ROLES="",o.ACCOUNT_SETTINGS="",o.ONLINE="",o.OFFLINE="",o.UPLOAD="",o.BOOK_PLAIN="",o.SYNC="",o.SHARED_PBK="",o.COLLECTIONS="",o.SEARCH_IN_PUBLICATION="",o.BOOKS="",o.LOCKER="",o.ARROW_DOWN="",o.ARROW_LEFT="",o.ARROW_RIGHT="",o.ARROW_UP="",o.SAVE="",o.MAILS_AND_NOTIFICATIONS="",o.DOT="",o.MINUS="",o.PLUS="",o.FILTERS="",o.STRIPE_ARROW_RIGHT="",o.STRIPE_ARROW_LEFT="",o.ATTACHMENTS="",o.ADD_BOOKMARK="",o.BOOKMARK="",o.EXPORT="",o.MENU="",o.TAG="",o.TAG_PLAIN="",o.COPY_TO_CLIPBOARD="",o.COLUMNS="",o.ARTICLE="",o.CLOSE="",o.OCTAGON_XMARK="",o.CLOSE_PLAIN="",o.CHECK_PLAIN="",o.LOGOUT="",o.SIGN_IN="",o.THIN_ARROW="",o.TRIANGLE_BOTTOM="",o.TRIANGLE_LEFT="",o.TRIANGLE_RIGHT="",o.TRIANGLE_TOP="",o.FACET_HAS_DESCENDANT="",o.MINUS_PLAIN="",o.PLUS_PLAIN="",o.INFO="",o.ICON_EXPAND="",o.ICON_COLLAPSE="",o.ADD_TO_PBK="",o.ALERT="",o.ADD_ALERT="",o.BACK_TO_SEARCH="",o.DOWNLOAD="",o.EDIT="",o.FEEDBACK="",o.MODIFY_PBK="",o.SCHEDULED="",o.SEARCH="",o.SHARE="󨃱",o.TOC="",o.WRITE_UGC="",o.TRASH="",o.EXTLINK="",o.EXTLINK_LIGHT="",o.CALENDAR="",o.BOOK="",o.DOWNLOAD_PLAIN="",o.CHECK="",o.TOPICS="",o.EYE="",o.EYE_SLASH="",o.DISC="",o.CIRCLE="",o.SHARED="",o.SORT_UNSORTED="",o.SORT_UP="",o.SORT_DOWN="",o.WORKING="",o.ZOOM_OUT="",o.ZOOM_IN="",o.ZOOM_REALSIZE="",o.ZOOM_FULLSCREEN="",o.ADMIN_RESTRICTED="",o.ADMIN_THEME="",o.WARNING="",o.CONTEXT="",o.SEARCH_HOME="",o.STEPS="",o.HOME="",o.TRANSLATE="",o.USER="",o.ADMIN="",o.ANALYTICS="",o.ADMIN_KHUB="",o.ADMIN_USERS="",o.ADMIN_INTEGRATION="",o.ADMIN_PORTAL="",o.COMMENT_QUESTION="",o.COMMENT_QUESTION_PLAIN="",o.MESSAGE_BOT="",o.PIP="",o.PIP_WIDE="",o.EXPAND_WIDE="",o.X_MARK="",o.CLONE="",o.CLONE_LINK_SIMPLE="",o.CONSUMER="",o.HOURGLASS_HALF="",o.CLOCK_THREE="",o.CALENDAR_DAY="",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="",o.WAND_MAGIC_SPARKLES="",o.PAPER_PLANE="",e.FtFileFormatIcons=void 0,(n=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="",n.ABW="",n.AUDIO="",n.AVI="",n.CHM="",n.CODE="",n.CSV="",n.DITA="",n.EPUB="",n.EXCEL="",n.FLAC="",n.GIF="",n.GZIP="",n.HTML="",n.IMAGE="",n.JPEG="",n.JSON="",n.M4A="",n.MOV="",n.MP3="",n.MP4="",n.OGG="",n.PDF="",n.PNG="",n.POWERPOINT="",n.RAR="",n.STP="",n.TEXT="",n.VIDEO="",n.WAV="",n.WMA="",n.WORD="",n.XML="",n.YAML="",n.ZIP="";const p=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","ico"].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={[e.FtFileFormatIcons.ABW]:"#91ABC6",[e.FtFileFormatIcons.AUDIO]:"#1795E3",[e.FtFileFormatIcons.AVI]:"#E63324",[e.FtFileFormatIcons.CHM]:"#71C3EB",[e.FtFileFormatIcons.CODE]:"#71C3EB",[e.FtFileFormatIcons.CSV]:"#1F7345",[e.FtFileFormatIcons.DITA]:"#71C3EB",[e.FtFileFormatIcons.EPUB]:"#85B926",[e.FtFileFormatIcons.EXCEL]:"#1F7345",[e.FtFileFormatIcons.FLAC]:"#1795E3",[e.FtFileFormatIcons.GIF]:"#59B031",[e.FtFileFormatIcons.GZIP]:"#F8AB36",[e.FtFileFormatIcons.HTML]:"#71C3EB",[e.FtFileFormatIcons.IMAGE]:"#59B031",[e.FtFileFormatIcons.JPEG]:"#59B031",[e.FtFileFormatIcons.JSON]:"#71C3EB",[e.FtFileFormatIcons.M4A]:"#1795E3",[e.FtFileFormatIcons.MOV]:"#E63324",[e.FtFileFormatIcons.MP3]:"#1795E3",[e.FtFileFormatIcons.MP4]:"#E63324",[e.FtFileFormatIcons.OGG]:"#1795E3",[e.FtFileFormatIcons.PDF]:"#E44948",[e.FtFileFormatIcons.PNG]:"#59B031",[e.FtFileFormatIcons.POWERPOINT]:"#B54A2B",[e.FtFileFormatIcons.RAR]:"#F8AB36",[e.FtFileFormatIcons.STP]:"#3764B1",[e.FtFileFormatIcons.TEXT]:"#3162AB",[e.FtFileFormatIcons.UNKNOWN]:"#999999",[e.FtFileFormatIcons.VIDEO]:"#E63324",[e.FtFileFormatIcons.WAV]:"#1795E3",[e.FtFileFormatIcons.WMA]:"#1795E3",[e.FtFileFormatIcons.WORD]:"#3162AB",[e.FtFileFormatIcons.XML]:"#71C3EB",[e.FtFileFormatIcons.YAML]:"#71C3EB",[e.FtFileFormatIcons.ZIP]:"#F8AB36"},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")},m=x.css`
1
+ "use strict";(()=>{var g=Object.create;var S=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var _=(e,p)=>()=>(p||e((p={exports:{}}).exports,p),p.exports);var y=(e,p,i,x)=>{if(p&&typeof p=="object"||typeof p=="function")for(let l of W(p))!K.call(e,l)&&l!==i&&S(e,l,{get:()=>p[l],enumerable:!(x=H(p,l))||x.enumerable});return e};var f=(e,p,i)=>(i=e!=null?g(w(e)):{},y(p||!e||!e.__esModule?S(i,"default",{value:e,enumerable:!0}):i,e));var T=_((X,n)=>{n.exports=ftGlobals.wcUtils});var v=_((z,P)=>{P.exports=ftGlobals.lit});var D=_((Y,M)=>{M.exports=ftGlobals.litDecorators});var u=_((j,h)=>{h.exports=ftGlobals.litUnsafeHTML});var B=f(T());var N=f(v()),O=f(D()),G=f(T()),s=f(u());var R;(function(e){e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.STAR="",e.STAR_PLAIN="",e.DESKTOP="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.ARROW_RIGHT_TO_LINE="",e.THIN_ARROW_UP="",e.CONTEXTUAL="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_NORMALIZED="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.UNSTRUCTURED_DOC="",e.RESET="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.MY_COLLECTIONS="",e.OFFLINE_SETTINGS="",e.MY_LIBRARY="",e.RATE_PLAIN="",e.RATE="",e.FEEDBACK_PLAIN="",e.PAUSE="",e.PLAY="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.SHORTCUT_MENU="",e.PRINT="",e.DEFAULT_ROLES="",e.ACCOUNT_SETTINGS="",e.ONLINE="",e.OFFLINE="",e.UPLOAD="",e.BOOK_PLAIN="",e.SYNC="",e.SHARED_PBK="",e.COLLECTIONS="",e.SEARCH_IN_PUBLICATION="",e.BOOKS="",e.LOCKER="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SAVE="",e.MAILS_AND_NOTIFICATIONS="",e.DOT="",e.MINUS="",e.PLUS="",e.FILTERS="",e.STRIPE_ARROW_RIGHT="",e.STRIPE_ARROW_LEFT="",e.ATTACHMENTS="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.EXPORT="",e.MENU="",e.TAG="",e.TAG_PLAIN="",e.COPY_TO_CLIPBOARD="",e.COLUMNS="",e.ARTICLE="",e.CLOSE="",e.OCTAGON_XMARK="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.LOGOUT="",e.SIGN_IN="",e.THIN_ARROW="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.FACET_HAS_DESCENDANT="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.INFO="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.SHARE="󨃱",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.EXTLINK="",e.EXTLINK_LIGHT="",e.CALENDAR="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.TOPICS="",e.EYE="",e.EYE_SLASH="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN_THEME="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.HOME="",e.TRANSLATE="",e.USER="",e.ADMIN="",e.ANALYTICS="",e.ADMIN_KHUB="",e.ADMIN_USERS="",e.ADMIN_INTEGRATION="",e.ADMIN_PORTAL="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.PIP="",e.PIP_WIDE="",e.EXPAND_WIDE="",e.X_MARK="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CONSUMER="",e.HOURGLASS_HALF="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE=""})(R||(R={}));var a;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(a||(a={}));var C=new Map([...["abw"].map(e=>[e,a.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,a.AUDIO]),...["avi"].map(e=>[e,a.AVI]),...["chm","xhs"].map(e=>[e,a.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,a.CODE]),...["csv"].map(e=>[e,a.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,a.DITA]),...["epub"].map(e=>[e,a.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,a.EXCEL]),...["flac"].map(e=>[e,a.FLAC]),...["gif"].map(e=>[e,a.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,a.GZIP]),...["html","htm","xhtml"].map(e=>[e,a.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,a.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,a.JPEG]),...["json"].map(e=>[e,a.JSON]),...["m4a","m4p"].map(e=>[e,a.M4A]),...["mov","qt"].map(e=>[e,a.MOV]),...["mp3"].map(e=>[e,a.MP3]),...["mp4","m4v"].map(e=>[e,a.MP4]),...["ogg","oga"].map(e=>[e,a.OGG]),...["pdf","ps"].map(e=>[e,a.PDF]),...["png"].map(e=>[e,a.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,a.POWERPOINT]),...["rar"].map(e=>[e,a.RAR]),...["stp"].map(e=>[e,a.STP]),...["txt","rtf","md","mdown"].map(e=>[e,a.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,a.VIDEO]),...["wav"].map(e=>[e,a.WAV]),...["wma"].map(e=>[e,a.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,a.WORD]),...["xml","xsl","rdf"].map(e=>[e,a.XML]),...["yaml","yml","x-yaml"].map(e=>[e,a.YAML]),...["zip"].map(e=>[e,a.ZIP])]),c=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"]]);function Z(e,p){var i,x,l,m;e=(e??"").toLowerCase(),p=(p??"").toLowerCase();let[o,d]=(((i=c.get(e))!==null&&i!==void 0?i:e)+"/").split("/");return(m=(l=(x=C.get(d))!==null&&x!==void 0?x:C.get(p))!==null&&l!==void 0?l:C.get(o))!==null&&m!==void 0?m:a.UNKNOWN}var $={[a.ABW]:"#91ABC6",[a.AUDIO]:"#1795E3",[a.AVI]:"#E63324",[a.CHM]:"#71C3EB",[a.CODE]:"#71C3EB",[a.CSV]:"#1F7345",[a.DITA]:"#71C3EB",[a.EPUB]:"#85B926",[a.EXCEL]:"#1F7345",[a.FLAC]:"#1795E3",[a.GIF]:"#59B031",[a.GZIP]:"#F8AB36",[a.HTML]:"#71C3EB",[a.IMAGE]:"#59B031",[a.JPEG]:"#59B031",[a.JSON]:"#71C3EB",[a.M4A]:"#1795E3",[a.MOV]:"#E63324",[a.MP3]:"#1795E3",[a.MP4]:"#E63324",[a.OGG]:"#1795E3",[a.PDF]:"#E44948",[a.PNG]:"#59B031",[a.POWERPOINT]:"#B54A2B",[a.RAR]:"#F8AB36",[a.STP]:"#3764B1",[a.TEXT]:"#3162AB",[a.UNKNOWN]:"#999999",[a.VIDEO]:"#E63324",[a.WAV]:"#1795E3",[a.WMA]:"#1795E3",[a.WORD]:"#3162AB",[a.XML]:"#71C3EB",[a.YAML]:"#71C3EB",[a.ZIP]:"#F8AB36"};var b=f(v()),r=f(T()),E={size:r.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",r.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",r.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.FtCssVariableFactory.extend("--ft-icon-material-font-family","",r.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},U=b.css`
2
2
  :host, i.ft-icon {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -7,14 +7,14 @@
7
7
  }
8
8
 
9
9
  :host {
10
- width: ${c.size};
11
- height: ${c.size};
10
+ width: ${E.size};
11
+ height: ${E.size};
12
12
  }
13
13
 
14
14
  i.ft-icon {
15
15
  width: 100%;
16
16
  height: 100%;
17
- font-size: ${c.size};
17
+ font-size: ${E.size};
18
18
  line-height: 1;
19
19
  font-weight: normal;
20
20
  text-transform: none;
@@ -25,30 +25,30 @@
25
25
  text-rendering: auto;
26
26
  -webkit-font-smoothing: antialiased;
27
27
  -moz-osx-font-smoothing: grayscale;
28
- vertical-align: ${c.verticalAlign};
28
+ vertical-align: ${E.verticalAlign};
29
29
  }
30
30
 
31
31
  i.ft-icon.ft-icon--fluid-topics {
32
- font-family: ${c.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
32
+ font-family: ${E.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
33
33
 
34
34
  /* Ugly fix because font is broken */
35
- font-size: calc(0.75 * ${c.size});
36
- line-height: ${c.size};
35
+ font-size: calc(0.75 * ${E.size});
36
+ line-height: ${E.size};
37
37
  position: relative;
38
38
  top: -4%;
39
39
  justify-content: center;
40
40
  }
41
41
 
42
42
  .ft-icon--file-format {
43
- font-family: ${c.fileFormatFontFamily}, ft-mime, sans-serif;
43
+ font-family: ${E.fileFormatFontFamily}, ft-mime, sans-serif;
44
44
  }
45
45
 
46
46
  .ft-icon--material {
47
- font-family: ${c.materialFontFamily}, "Material Icons", sans-serif;
47
+ font-family: ${E.materialFontFamily}, "Material Icons", sans-serif;
48
48
  }
49
- `;var f;e.FtIconVariants=void 0,(f=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",f.file_format="file-format",f.material="material";var d=function(e,t,x,a){for(var i,o=arguments.length,n=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,x):a,p=e.length-1;p>=0;p--)(i=e[p])&&(n=(o<3?i(n):o>3?i(t,x,n):i(t,x))||n);return o>3&&n&&Object.defineProperty(t,x,n),n};class r extends t.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=x.nothing}render(){const t=this.variant&&Object.values(e.FtIconVariants).includes(this.variant)?this.variant:e.FtIconVariants.fluid_topics,a=t!==e.FtIconVariants.material||!!this.value;return x.html`
50
- <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
51
- ${i.unsafeHTML(this.resolvedIcon)}
52
- <slot ?hidden=${a}></slot>
49
+ `;var A;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(A||(A={}));var L=function(e,p,i,x){var l=arguments.length,m=l<3?p:x===null?x=Object.getOwnPropertyDescriptor(p,i):x,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(e,p,i,x);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(m=(l<3?o(m):l>3?o(p,i,m):o(p,i))||m);return l>3&&m&&Object.defineProperty(p,i,m),m},t=class extends G.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=N.nothing}render(){let p=this.variant&&Object.values(A).includes(this.variant)?this.variant:A.fluid_topics,i=p!==A.material||!!this.value;return N.html`
50
+ <i class="ft-icon ft-icon--${p}" part="icon icon-${p}">
51
+ ${(0,s.unsafeHTML)(this.resolvedIcon)}
52
+ <slot ?hidden=${i}></slot>
53
53
  </i>
54
- `}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,a;let i=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case e.FtIconVariants.material:this.resolvedIcon=this.value||x.nothing;break;default:this.resolvedIcon=null!==(a=e.FtIcons[i.replace("-","_").toUpperCase()])&&void 0!==a?a:i}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>this.resolveIcon()))}}r.elementDefinitions={},r.styles=m,d([a.property()],r.prototype,"variant",void 0),d([a.property()],r.prototype,"value",void 0),d([a.state()],r.prototype,"resolvedIcon",void 0),d([a.query("slot")],r.prototype,"slottedContent",void 0),t.customElement("ft-icon")(r),e.FtIcon=r,e.FtIconCssVariables=c,e.fileFormatColors=s,e.resolveFileFormatIcon=function(t,x){var a,i,o,n;t=(null!=t?t:"").toLowerCase(),x=(null!=x?x:"").toLowerCase();const[s,c]=((null!==(a=l.get(t))&&void 0!==a?a:t)+"/").split("/");return null!==(n=null!==(o=null!==(i=p.get(c))&&void 0!==i?i:p.get(x))&&void 0!==o?o:p.get(s))&&void 0!==n?n:e.FtFileFormatIcons.UNKNOWN},e.styles=m}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
54
+ `}get textContent(){var p,i;return(i=(p=this.slottedContent)===null||p===void 0?void 0:p.assignedNodes().map(x=>x.textContent).join("").trim())!==null&&i!==void 0?i:""}update(p){super.update(p),["value","variant"].some(i=>p.has(i))&&this.resolveIcon()}resolveIcon(){var p,i;let x=this.value||this.textContent;switch(this.variant){case A.file_format:this.resolvedIcon=(p=a[x.replace("-","_").toUpperCase()])!==null&&p!==void 0?p:x;break;case A.material:this.resolvedIcon=this.value||N.nothing;break;default:this.resolvedIcon=(i=R[x.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:x;break}}firstUpdated(p){super.firstUpdated(p),setTimeout(()=>this.resolveIcon())}};t.elementDefinitions={};t.styles=U;L([(0,O.property)()],t.prototype,"variant",void 0);L([(0,O.property)()],t.prototype,"value",void 0);L([(0,O.state)()],t.prototype,"resolvedIcon",void 0);L([(0,O.query)("slot")],t.prototype,"slottedContent",void 0);(0,B.customElement)("ft-icon")(t);})();