@fluid-topics/ft-copy-block 1.1.60 → 1.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-copy-block.light.js +1 -1
- package/build/ft-copy-block.min.js +153 -154
- package/package.json +4 -4
|
@@ -545,7 +545,7 @@ const zo=Symbol.for(""),Ko=t=>{if(t?.r===zo)return t?._$litStatic$},Fo=t=>({_$li
|
|
|
545
545
|
</div>
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,o,e){return _e(t,o,{platform:{...Ye,getOffsetParent:t=>Ye.getOffsetParent(t,Ve)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:e,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ae(r,t),s={x:o,y:e},p=await ye(t,c),f=pe(ne(i)),d=ce(f);let h=s[d],g=s[f];if(a){const t="y"===d?"bottom":"right";h=ie(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";g=ie(g+p["y"===f?"top":"left"],g,g-p[t])}const y=l.fn({...t,[d]:h,[f]:g});return{...y,data:{x:y.x-o,y:y.y-e}}}}),be({allowedPlacements:[e]})]});var r}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}or.elementDefinitions={"ft-typography":Go},or.styles=Vo,tr([r.property()],or.prototype,"text",void 0),tr([r.property({type:Boolean})],or.prototype,"manual",void 0),tr([r.property({type:Boolean})],or.prototype,"inline",void 0),tr([r.property({type:Number})],or.prototype,"delay",void 0),tr([r.property()],or.prototype,"position",void 0),tr([r.queryAssignedNodes()],or.prototype,"slotNodes",void 0),tr([r.query(".ft-tooltip--container")],or.prototype,"container",void 0),tr([r.query(".ft-tooltip")],or.prototype,"tooltip",void 0),tr([r.query(".ft-tooltip--content")],or.prototype,"tooltipContent",void 0),tr([r.state()],or.prototype,"visible",void 0),tr([r.eventOptions({passive:!0})],or.prototype,"onTouch",null),tr([r.eventOptions({passive:!0})],or.prototype,"onHover",null),tr([r.eventOptions({passive:!0})],or.prototype,"onOut",null),tr([r.eventOptions({passive:!0})],or.prototype,"onClick",null),o.customElement("ft-tooltip")(or),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE="",t.OCTAGON_XMARK="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CONSUMER="",t.HOURGLASS_HALF="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES=""}(qe||(qe={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Je||(Je={})),new Map([...["abw"].map((t=>[t,Je.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,Je.AUDIO])),...["avi"].map((t=>[t,Je.AVI])),...["chm","xhs"].map((t=>[t,Je.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,Je.CODE])),...["csv"].map((t=>[t,Je.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Je.DITA])),...["epub"].map((t=>[t,Je.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Je.EXCEL])),...["flac"].map((t=>[t,Je.FLAC])),...["gif"].map((t=>[t,Je.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Je.GZIP])),...["html","htm","xhtml"].map((t=>[t,Je.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,Je.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Je.JPEG])),...["json"].map((t=>[t,Je.JSON])),...["m4a","m4p"].map((t=>[t,Je.M4A])),...["mov","qt"].map((t=>[t,Je.MOV])),...["mp3"].map((t=>[t,Je.MP3])),...["mp4","m4v"].map((t=>[t,Je.MP4])),...["ogg","oga"].map((t=>[t,Je.OGG])),...["pdf","ps"].map((t=>[t,Je.PDF])),...["png"].map((t=>[t,Je.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Je.POWERPOINT])),...["rar"].map((t=>[t,Je.RAR])),...["stp"].map((t=>[t,Je.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Je.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,Je.VIDEO])),...["wav"].map((t=>[t,Je.WAV])),...["wma"].map((t=>[t,Je.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Je.WORD])),...["xml","xsl","rdf"].map((t=>[t,Je.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Je.YAML])),...["zip"].map((t=>[t,Je.ZIP]))]),Je.ABW,Je.AUDIO,Je.AVI,Je.CHM,Je.CODE,Je.CSV,Je.DITA,Je.EPUB,Je.EXCEL,Je.FLAC,Je.GIF,Je.GZIP,Je.HTML,Je.IMAGE,Je.JPEG,Je.JSON,Je.M4A,Je.MOV,Je.MP3,Je.MP4,Je.OGG,Je.PDF,Je.PNG,Je.POWERPOINT,Je.RAR,Je.STP,Je.TEXT,Je.UNKNOWN,Je.VIDEO,Je.WAV,Je.WMA,Je.WORD,Je.XML,Je.YAML,Je.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qe||(Qe={}));var er=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class rr extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Qe).includes(this.variant)?this.variant:Qe.fluid_topics,o=t!==Qe.material||!!this.value;return e.html`
|
|
548
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,o,e){return _e(t,o,{platform:{...Ye,getOffsetParent:t=>Ye.getOffsetParent(t,Ve)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:e,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ae(r,t),s={x:o,y:e},p=await ye(t,c),f=pe(ne(i)),d=ce(f);let h=s[d],g=s[f];if(a){const t="y"===d?"bottom":"right";h=ie(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";g=ie(g+p["y"===f?"top":"left"],g,g-p[t])}const y=l.fn({...t,[d]:h,[f]:g});return{...y,data:{x:y.x-o,y:y.y-e}}}}),be({allowedPlacements:[e]})]});var r}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}or.elementDefinitions={"ft-typography":Go},or.styles=Vo,tr([r.property()],or.prototype,"text",void 0),tr([r.property({type:Boolean})],or.prototype,"manual",void 0),tr([r.property({type:Boolean})],or.prototype,"inline",void 0),tr([r.property({type:Number})],or.prototype,"delay",void 0),tr([r.property()],or.prototype,"position",void 0),tr([r.queryAssignedNodes()],or.prototype,"slotNodes",void 0),tr([r.query(".ft-tooltip--container")],or.prototype,"container",void 0),tr([r.query(".ft-tooltip")],or.prototype,"tooltip",void 0),tr([r.query(".ft-tooltip--content")],or.prototype,"tooltipContent",void 0),tr([r.state()],or.prototype,"visible",void 0),tr([r.eventOptions({passive:!0})],or.prototype,"onTouch",null),tr([r.eventOptions({passive:!0})],or.prototype,"onHover",null),tr([r.eventOptions({passive:!0})],or.prototype,"onOut",null),tr([r.eventOptions({passive:!0})],or.prototype,"onClick",null),o.customElement("ft-tooltip")(or),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE="",t.OCTAGON_XMARK="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CONSUMER="",t.HOURGLASS_HALF="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE=""}(qe||(qe={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Je||(Je={})),new Map([...["abw"].map((t=>[t,Je.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,Je.AUDIO])),...["avi"].map((t=>[t,Je.AVI])),...["chm","xhs"].map((t=>[t,Je.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,Je.CODE])),...["csv"].map((t=>[t,Je.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Je.DITA])),...["epub"].map((t=>[t,Je.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Je.EXCEL])),...["flac"].map((t=>[t,Je.FLAC])),...["gif"].map((t=>[t,Je.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Je.GZIP])),...["html","htm","xhtml"].map((t=>[t,Je.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,Je.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Je.JPEG])),...["json"].map((t=>[t,Je.JSON])),...["m4a","m4p"].map((t=>[t,Je.M4A])),...["mov","qt"].map((t=>[t,Je.MOV])),...["mp3"].map((t=>[t,Je.MP3])),...["mp4","m4v"].map((t=>[t,Je.MP4])),...["ogg","oga"].map((t=>[t,Je.OGG])),...["pdf","ps"].map((t=>[t,Je.PDF])),...["png"].map((t=>[t,Je.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Je.POWERPOINT])),...["rar"].map((t=>[t,Je.RAR])),...["stp"].map((t=>[t,Je.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Je.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,Je.VIDEO])),...["wav"].map((t=>[t,Je.WAV])),...["wma"].map((t=>[t,Je.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Je.WORD])),...["xml","xsl","rdf"].map((t=>[t,Je.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Je.YAML])),...["zip"].map((t=>[t,Je.ZIP]))]),Je.ABW,Je.AUDIO,Je.AVI,Je.CHM,Je.CODE,Je.CSV,Je.DITA,Je.EPUB,Je.EXCEL,Je.FLAC,Je.GIF,Je.GZIP,Je.HTML,Je.IMAGE,Je.JPEG,Je.JSON,Je.M4A,Je.MOV,Je.MP3,Je.MP4,Je.OGG,Je.PDF,Je.PNG,Je.POWERPOINT,Je.RAR,Je.STP,Je.TEXT,Je.UNKNOWN,Je.VIDEO,Je.WAV,Je.WMA,Je.WORD,Je.XML,Je.YAML,Je.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qe||(Qe={}));var er=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class rr extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Qe).includes(this.variant)?this.variant:Qe.fluid_topics,o=t!==Qe.material||!!this.value;return e.html`
|
|
549
549
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
550
550
|
${a.unsafeHTML(this.resolvedIcon)}
|
|
551
551
|
<slot ?hidden=${o}></slot>
|