@fluid-topics/ft-copy-block 1.1.24 → 1.1.26

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.
@@ -545,7 +545,7 @@ const Ko=Symbol.for(""),zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Bo=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:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ne(r,t),s={x:o,y:e},p=await ge(t,c),f=pe(ae(i)),d=ce(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=ie(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=ie(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...t,[d]:h,[f]:y});return{...g,data:{x:g.x-o,y:g.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="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(qe||(qe={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(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"].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,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};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:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ne(r,t),s={x:o,y:e},p=await ge(t,c),f=pe(ae(i)),d=ce(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=ie(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=ie(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...t,[d]:h,[f]:y});return{...g,data:{x:g.x-o,y:g.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="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(qe||(qe={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(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,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};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
  ${n.unsafeHTML(this.resolvedIcon)}
551
551
  <slot ?hidden=${o}></slot>
@@ -845,7 +845,7 @@ const Ko=Symbol.for(""),zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Bo=t=>({_$li
845
845
  `,gr=e.css`
846
846
  `,ur=o.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class br{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=ur.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?br.build(t):null!==(o=br.API)&&void 0!==o?o:br.API=br.build()}static await(t){return new Promise((o=>{let e=br.get(t);if(e)o(e);else{const r=ur.subscribe((()=>{e=br.get(t),e&&(r(),o(e))}))}}))}}var mr;const xr=Symbol("clearAfterUnitTest");class Or{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=ur.getState().uiLocale,ur.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ur.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}mr=xr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Or((async(t,o)=>(await br.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Or((async(t,o)=>(await br.await()).getCustomMessageContext(t,o))));const vr=window.FluidTopicsI18nService,Nr=window.FluidTopicsCustomI18nService;var Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>br.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
847
847
  <slot></slot>
848
- `}update(t){super.update(t),t.has("baseUrl")&&ur.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ur.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ur.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&ur.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&ur.actions.noCustom(this.noCustom),t.has("editorMode")&&ur.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&ur.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&ur.actions.session(this.session),t.has("availableUiLocales")&&ur.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}wr.elementDefinitions={},wr.styles=gr,Sr([r.property()],wr.prototype,"baseUrl",void 0),Sr([r.property()],wr.prototype,"apiIntegrationIdentifier",void 0),Sr([r.property()],wr.prototype,"uiLocale",void 0),Sr([o.jsonProperty(null)],wr.prototype,"availableUiLocales",void 0),Sr([o.jsonProperty(null)],wr.prototype,"metadataConfiguration",void 0),Sr([r.property({type:Boolean})],wr.prototype,"editorMode",void 0),Sr([r.property({type:Boolean})],wr.prototype,"noCustom",void 0),Sr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wr.prototype,"noCustomComponent",void 0),Sr([r.property({type:Boolean})],wr.prototype,"withManualResources",void 0),Sr([o.jsonProperty([])],wr.prototype,"messageContexts",void 0),Sr([o.jsonProperty(void 0)],wr.prototype,"session",void 0),Sr([r.property({type:Object})],wr.prototype,"apiProvider",void 0);class Cr{async listMySearches(){var t;return(null===(t=ur.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await br.await()).listMySearches(ur.getState().session.profile.userId):[]}}const $r=new o.CacheRegistry;class Ir{async listMyBookmarks(){return $r.get("bookmarks",(async()=>(await br.await()).listMyBookmarks(ur.getState().session.profile.userId)))}clearCache(){$r.clear("bookmarks")}}const kr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ur.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ir,ur.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ur.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){kr.actions.savedSearches(void 0)}clearMyBookmarks(){kr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cr,o=await t.listMySearches();kr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;kr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(wr);var Ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Rr=Symbol("i18nProperties"),Wr=Symbol("i18nUnsubs");function Lr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Nr:vr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var o;null===(o=this[Rr])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[Rr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Rr]&&new Set([...this[Rr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Wr].has(t)||this[Wr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[Wr].forEach((t=>t())),this[Wr].clear()}}return o=Wr,Ur([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Er extends(Lr(o.FtLitElement)){}class Zr extends(Lr(o.FtLitElementRedux)){}var Kr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zr extends Zr{constructor(){super(),this.editorMode=!1,this.addStore(ur)}render(){return this.key&&this.context?e.html`
848
+ `}update(t){super.update(t),t.has("baseUrl")&&(ur.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&ur.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ur.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&ur.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&ur.actions.noCustom(this.noCustom),t.has("editorMode")&&ur.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&ur.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&ur.actions.session(this.session),t.has("availableUiLocales")&&ur.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}wr.elementDefinitions={},wr.styles=gr,Sr([r.property()],wr.prototype,"baseUrl",void 0),Sr([r.property()],wr.prototype,"apiIntegrationIdentifier",void 0),Sr([r.property()],wr.prototype,"uiLocale",void 0),Sr([o.jsonProperty(null)],wr.prototype,"availableUiLocales",void 0),Sr([o.jsonProperty(null)],wr.prototype,"metadataConfiguration",void 0),Sr([r.property({type:Boolean})],wr.prototype,"editorMode",void 0),Sr([r.property({type:Boolean})],wr.prototype,"noCustom",void 0),Sr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wr.prototype,"noCustomComponent",void 0),Sr([r.property({type:Boolean})],wr.prototype,"withManualResources",void 0),Sr([o.jsonProperty([])],wr.prototype,"messageContexts",void 0),Sr([o.jsonProperty(void 0)],wr.prototype,"session",void 0),Sr([r.property({type:Object})],wr.prototype,"apiProvider",void 0);class Cr{async listMySearches(){var t;return(null===(t=ur.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await br.await()).listMySearches(ur.getState().session.profile.userId):[]}}const $r=new o.CacheRegistry;class Ir{async listMyBookmarks(){return $r.get("bookmarks",(async()=>(await br.await()).listMyBookmarks(ur.getState().session.profile.userId)))}clearCache(){$r.clear("bookmarks")}}const kr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ur.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ir,ur.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ur.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){kr.actions.savedSearches(void 0)}clearMyBookmarks(){kr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cr,o=await t.listMySearches();kr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;kr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(wr);var Ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Rr=Symbol("i18nProperties"),Wr=Symbol("i18nUnsubs");function Lr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Nr:vr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var o;null===(o=this[Rr])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[Rr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Rr]&&new Set([...this[Rr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Wr].has(t)||this[Wr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[Wr].forEach((t=>t())),this[Wr].clear()}}return o=Wr,Ur([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Er extends(Lr(o.FtLitElement)){}class Zr extends(Lr(o.FtLitElementRedux)){}var Kr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zr extends Zr{constructor(){super(),this.editorMode=!1,this.addStore(ur)}render(){return this.key&&this.context?e.html`
849
849
  <span class="ft-i18n">
850
850
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
851
851
  </span>
@@ -675,7 +675,7 @@ const za=Symbol.for(""),Za=t=>{if(t?.r===za)return t?._$litStatic$},Ma=t=>({_$li
675
675
  * Copyright 2017 Google LLC
676
676
  * SPDX-License-Identifier: BSD-3-Clause
677
677
  */
678
- class es extends ja{constructor(t){if(super(t),this.et=rt,t.type!==La)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}es.directiveName="unsafeHTML",es.resultType=1;const os=Wa(es);var rs,is,ns;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(rs||(rs={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.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,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.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,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.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,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.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,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ss extends Zo{constructor(){super(...arguments),this.resolvedIcon=ae}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return ie`
678
+ class es extends ja{constructor(t){if(super(t),this.et=rt,t.type!==La)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}es.directiveName="unsafeHTML",es.resultType=1;const os=Wa(es);var rs,is,ns;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(rs||(rs={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.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,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.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,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.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,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.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,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ss extends Zo{constructor(){super(...arguments),this.resolvedIcon=ae}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return ie`
679
679
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
680
680
  ${os(this.resolvedIcon)}
681
681
  <slot ?hidden=${e}></slot>
@@ -975,7 +975,7 @@ class es extends ja{constructor(t){if(super(t),this.et=rt,t.type!==La)throw Erro
975
975
  `,vs=wt`
976
976
  `,xs=Mi.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class Os{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=xs.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Os.build(t):null!==(e=Os.API)&&void 0!==e?e:Os.API=Os.build()}static await(t){return new Promise((e=>{let o=Os.get(t);if(o)e(o);else{const r=xs.subscribe((()=>{o=Os.get(t),o&&(r(),e(o))}))}}))}}var ws;const Ss=Symbol("clearAfterUnitTest");class Ns{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[ws]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=xs.getState().uiLocale,xs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=xs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};W(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Do(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}ws=Ss,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ns((async(t,e)=>(await Os.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ns((async(t,e)=>(await Os.await()).getCustomMessageContext(t,e))));const Cs=window.FluidTopicsI18nService,$s=window.FluidTopicsCustomI18nService;var Es=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rs extends Zo{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Os.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return ie`
977
977
  <slot></slot>
978
- `}update(t){super.update(t),t.has("baseUrl")&&xs.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&xs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&xs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&xs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&xs.actions.noCustom(this.noCustom),t.has("editorMode")&&xs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&xs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&xs.actions.session(this.session),t.has("availableUiLocales")&&xs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Cs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Rs.elementDefinitions={},Rs.styles=vs,Es([R()],Rs.prototype,"baseUrl",void 0),Es([R()],Rs.prototype,"apiIntegrationIdentifier",void 0),Es([R()],Rs.prototype,"uiLocale",void 0),Es([A(null)],Rs.prototype,"availableUiLocales",void 0),Es([A(null)],Rs.prototype,"metadataConfiguration",void 0),Es([R({type:Boolean})],Rs.prototype,"editorMode",void 0),Es([R({type:Boolean})],Rs.prototype,"noCustom",void 0),Es([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Rs.prototype,"noCustomComponent",void 0),Es([R({type:Boolean})],Rs.prototype,"withManualResources",void 0),Es([A([])],Rs.prototype,"messageContexts",void 0),Es([A(void 0)],Rs.prototype,"session",void 0),Es([R({type:Object})],Rs.prototype,"apiProvider",void 0);class ks{async listMySearches(){var t;return(null===(t=xs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Os.await()).listMySearches(xs.getState().session.profile.userId):[]}}const Us=new r;class Is{async listMyBookmarks(){return Us.get("bookmarks",(async()=>(await Os.await()).listMyBookmarks(xs.getState().session.profile.userId)))}clearCache(){Us.clear("bookmarks")}}const Ls=Mi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=xs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Is,xs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=xs.getState();W(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ls.actions.savedSearches(void 0)}clearMyBookmarks(){Ls.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ks,e=await t.listMySearches();Ls.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ls.actions.bookmarks(e)}}},j("ft-app-context")(Rs);var Ws=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const js=Symbol("i18nProperties"),As=Symbol("i18nUnsubs");function Fs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?$s:Cs}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[js])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[js])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[js]&&new Set([...this[js].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[As].has(t)||this[As].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[As].forEach((t=>t())),this[As].clear()}}return e=As,Ws([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ks extends(Fs(Zo)){}class zs extends(Fs(Xo)){}var Zs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ms extends zs{constructor(){super(),this.editorMode=!1,this.addStore(xs)}render(){return this.key&&this.context?ie`
978
+ `}update(t){super.update(t),t.has("baseUrl")&&(xs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&xs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&xs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&xs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&xs.actions.noCustom(this.noCustom),t.has("editorMode")&&xs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&xs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&xs.actions.session(this.session),t.has("availableUiLocales")&&xs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Cs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Rs.elementDefinitions={},Rs.styles=vs,Es([R()],Rs.prototype,"baseUrl",void 0),Es([R()],Rs.prototype,"apiIntegrationIdentifier",void 0),Es([R()],Rs.prototype,"uiLocale",void 0),Es([A(null)],Rs.prototype,"availableUiLocales",void 0),Es([A(null)],Rs.prototype,"metadataConfiguration",void 0),Es([R({type:Boolean})],Rs.prototype,"editorMode",void 0),Es([R({type:Boolean})],Rs.prototype,"noCustom",void 0),Es([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Rs.prototype,"noCustomComponent",void 0),Es([R({type:Boolean})],Rs.prototype,"withManualResources",void 0),Es([A([])],Rs.prototype,"messageContexts",void 0),Es([A(void 0)],Rs.prototype,"session",void 0),Es([R({type:Object})],Rs.prototype,"apiProvider",void 0);class ks{async listMySearches(){var t;return(null===(t=xs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Os.await()).listMySearches(xs.getState().session.profile.userId):[]}}const Us=new r;class Is{async listMyBookmarks(){return Us.get("bookmarks",(async()=>(await Os.await()).listMyBookmarks(xs.getState().session.profile.userId)))}clearCache(){Us.clear("bookmarks")}}const Ls=Mi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=xs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Is,xs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=xs.getState();W(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ls.actions.savedSearches(void 0)}clearMyBookmarks(){Ls.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ks,e=await t.listMySearches();Ls.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ls.actions.bookmarks(e)}}},j("ft-app-context")(Rs);var Ws=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const js=Symbol("i18nProperties"),As=Symbol("i18nUnsubs");function Fs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?$s:Cs}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[js])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[js])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[js]&&new Set([...this[js].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[As].has(t)||this[As].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[As].forEach((t=>t())),this[As].clear()}}return e=As,Ws([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ks extends(Fs(Zo)){}class zs extends(Fs(Xo)){}var Zs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ms extends zs{constructor(){super(),this.editorMode=!1,this.addStore(xs)}render(){return this.key&&this.context?ie`
979
979
  <span class="ft-i18n">
980
980
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
981
981
  </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-copy-block",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "Copy block",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-i18n": "1.1.24",
23
- "@fluid-topics/ft-wc-utils": "1.1.24",
22
+ "@fluid-topics/ft-i18n": "1.1.26",
23
+ "@fluid-topics/ft-wc-utils": "1.1.26",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "e645c69187d4f7a42d254a22be5a23144a3ea5d0"
26
+ "gitHead": "6734976f5a7f6b986917a085be0c38ca3ae562a0"
27
27
  }