@fluid-topics/ft-reader-feedback 2.1.24 → 2.2.0

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,109 +1,109 @@
1
- "use strict";(()=>{var Hu=Object.create;var rs=Object.defineProperty;var ju=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var zu=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var mr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ku=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Vu(t))!Wu.call(e,n)&&n!==r&&rs(e,n,{get:()=>t[n],enumerable:!(i=ju(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Hu(zu(e)):{},Ku(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e));var b=mr((xp,is)=>{is.exports=ftGlobals.wcUtils});var N=mr((Sp,ns)=>{ns.exports=ftGlobals.lit});var H=mr((Ap,os)=>{os.exports=ftGlobals.litDecorators});var be=mr((uf,wa)=>{wa.exports=ftGlobals.litClassMap});var Ic=mr(($y,Pc)=>{Pc.exports=ftGlobals.litUnsafeHTML});var Zo=mr((wx,lu)=>{lu.exports=ftGlobals.litRepeat});var Bu=f(b());var Mu=f(N()),Qt=f(H()),Et=f(b());var _i=f(b()),as=f(H());var ss;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(ss||(ss={}));var Oe;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Oe||(Oe={}));var Gu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Un=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},$n=Symbol("registerInterval"),qu=(0,_i.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[$n]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[$n]):this.dispatchEvent(new Un)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=$n,Gu([(0,as.state)()],r.prototype,"stateManager",void 0),r}),gr=class extends qu(_i.FtLitElementRedux){};var it=f(N()),nt=f(H()),Kr=f(b());var ls;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ls||(ls={}));var cs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cs||(cs={}));var us;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(us||(us={}));var ds;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ds||(ds={}));var ps;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ps||(ps={}));var fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(fs||(fs={}));var hs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(hs||(hs={}));var ms;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ms||(ms={}));var gs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(gs||(gs={}));var vs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(vs||(vs={}));var ys;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ys||(ys={}));var bs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(bs||(bs={}));var xs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(xs||(xs={}));var Ss;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ss||(Ss={}));var Y;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Y||(Y={}));var As;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(As||(As={}));var Es;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Es||(Es={}));var ws;(function(e){e.ASC="ASC",e.DESC="DESC"})(ws||(ws={}));var Cs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cs||(Cs={}));var _s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_s||(_s={}));var Ts;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ts||(Ts={}));var Os;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Os||(Os={}));var Rs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Rs||(Rs={}));var Ls;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ls||(Ls={}));var ks;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ks||(ks={}));var Ps;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ps||(Ps={}));var Is;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Is||(Is={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(st||(st={}));var zt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(zt||(zt={}));var Ds;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ds||(Ds={}));var Ns;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ns||(Ns={}));var Ms;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ms||(Ms={}));var $s;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})($s||($s={}));var Us;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Us||(Us={}));var Fs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fs||(Fs={}));var Bs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Bs||(Bs={}));var Hs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Hs||(Hs={}));var js;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(js||(js={}));var Vs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Vs||(Vs={}));var zs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(zs||(zs={}));var Ws;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ws||(Ws={}));var Yu={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN,st.BEHAVIOR_DATA_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(Yu[e]??[]).some(r=>Ks(r,t))}function Gs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Ks(i,t))}var Wn=globalThis,qs=e=>e,Ti=Wn.trustedTypes,Ys=Ti?Ti.createPolicy("lit-html",{createHTML:e=>e}):void 0,ea="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,ra="?"+Re,Xu=`<${ra}>`,Ye=document,Oi=()=>Ye.createComment(""),Xr=e=>e===null||typeof e!="object"&&typeof e!="function",Kn=Array.isArray,Zu=e=>Kn(e)||typeof e?.[Symbol.iterator]=="function",Fn=`[
2
- \f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Zs=/>/g,Ge=RegExp(`>|${Fn}(?:([^\\s"'>=/]+)(${Fn}*=${Fn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Qs=/"/g,ia=/^(?:script|style|textarea|title)$/i,Gn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),na=Gn(1),oa=Gn(2),sa=Gn(3),Zr=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),ta=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function aa(e,t){if(!Kn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(t):t}var Ju=(e,t)=>{let r=e.length-1,i=[],n,o=t===2?"<svg>":t===3?"<math>":"",s=Yr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===Yr?u[1]==="!--"?s=Xs:u[1]!==void 0?s=Zs:u[2]!==void 0?(ia.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ge):u[3]!==void 0&&(s=Ge):s===Ge?u[0]===">"?(s=n??Yr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?Ge:u[3]==='"'?Qs:Js):s===Qs||s===Js?s=Ge:s===Xs||s===Zs?s=Yr:(s=Ge,n=void 0);let h=s===Ge&&e[a+1].startsWith("/>")?" ":"";o+=s===Yr?l+Xu:d>=0?(i.push(c),l.slice(0,d)+ea+l.slice(d)+Re+h):l+Re+(d===-2?a:h)}return[aa(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Jr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=Ju(t,r);if(this.el=e.createElement(c,i),qe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=qe.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ea)){let p=u[s++],h=n.getAttribute(d).split(Re),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Hn:m[1]==="?"?jn:m[1]==="@"?Vn:yr}),n.removeAttribute(d)}else d.startsWith(Re)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(ia.test(n.tagName)){let d=n.textContent.split(Re),p=d.length-1;if(p>0){n.textContent=Ti?Ti.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],Oi()),qe.nextNode(),l.push({type:2,index:++o});n.append(d[p],Oi())}}}else if(n.nodeType===8)if(n.data===ra)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Re,d+1))!==-1;)l.push({type:7,index:o}),d+=Re.length-1}o++}}static createElement(t,r){let i=Ye.createElement("template");return i.innerHTML=t,i}};function vr(e,t,r=e,i){if(t===Zr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=Xr(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=vr(e,n._$AS(e,t.values),n,i)),t}var Bn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??Ye).importNode(r,!0);qe.currentNode=n;let o=qe.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Ri(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new zn(o,this,t)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Ri=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=vr(this,t,r),Xr(t)?t===at||t==null||t===""?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==Zr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==at&&Xr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ye.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Jr.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Bn(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ta.get(t.strings);return r===void 0&&ta.set(t.strings,r=new Jr(t)),r}k(t){Kn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of t)n===r.length?r.push(i=new e(this.O(Oi()),this.O(Oi()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=qs(t).nextSibling;qs(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,o){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=at}_$AI(t,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)t=vr(this,t,r,0),s=!Xr(t)||t!==this._$AH&&t!==Zr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=vr(this,a[i+l],r,l),c===Zr&&(c=this._$AH[l]),s||=!Xr(c)||c!==this._$AH[l],c===at?t=at:t!==at&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(t)}j(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Hn=class extends yr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}},jn=class extends yr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},Vn=class extends yr{constructor(t,r,i,n,o){super(t,r,i,n,o),this.type=5}_$AI(t,r=this){if((t=vr(this,t,r,0)??at)===Zr)return;let i=this._$AH,n=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==at&&(i===at||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},zn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){vr(this,t)}};var Qu=Wn.litHtmlPolyfillSupport;Qu?.(Jr,Ri),(Wn.litHtmlVersions??=[]).push("3.3.3");var ca=Symbol.for(""),td=e=>{if(e?.r===ca)return e?._$litStatic$},qn=e=>({_$litStatic$:e,r:ca});var la=new Map,Yn=e=>(t,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(o=r[c],(n=td(o))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(t[i]),u){let d=s.join("$$lit$$");(t=la.get(d))===void 0&&(s.raw=s,la.set(d,t=s)),r=a}return e(t,...r)},Xn=Yn(na),zp=Yn(oa),Wp=Yn(sa);var Zn=f(H()),Sa=f(b());var gt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(gt||(gt={}));var Kt=f(N()),y=f(b()),ua=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),ye=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),w={fontFamily:ye,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Le={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit")},ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit")},br={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit")},xr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit")},Sr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit")},$t={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit")},Ar={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit")},Er={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase")},Ct={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase")},da=Kt.css`
1
+ "use strict";(()=>{var td=Object.create;var ls=Object.defineProperty;var rd=Object.getOwnPropertyDescriptor;var id=Object.getOwnPropertyNames;var nd=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var ur=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var sd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of id(e))!od.call(t,n)&&n!==r&&ls(t,n,{get:()=>e[n],enumerable:!(i=rd(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?td(nd(t)):{},sd(e||!t||!t.__esModule?ls(r,"default",{value:t,enumerable:!0}):r,t));var y=ur((Wp,cs)=>{cs.exports=ftGlobals.wcUtils});var N=ur((Kp,us)=>{us.exports=ftGlobals.lit});var H=ur((Gp,ds)=>{ds.exports=ftGlobals.litDecorators});var bt=ur((Nf,ka)=>{ka.exports=ftGlobals.litClassMap});var Wc=ur((Hv,jc)=>{jc.exports=ftGlobals.litUnsafeHTML});var is=ur((Rx,xu)=>{xu.exports=ftGlobals.litRepeat});var Ju=d(y());var qu=d(N()),Qe=d(H()),we=d(y());var Ei=d(y()),fs=d(H());var ps;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ps||(ps={}));var Tt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Tt||(Tt={}));var ad=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},qn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Gn=Symbol("registerInterval"),ld=(0,Ei.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Gn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Gn]):this.dispatchEvent(new qn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Gn,ad([(0,fs.state)()],r.prototype,"stateManager",void 0),r}),dr=class extends ld(Ei.FtLitElementRedux){};var se=d(N()),ae=d(H()),Ur=d(y());var hs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(hs||(hs={}));var ms;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ms||(ms={}));var gs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(gs||(gs={}));var ys;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ys||(ys={}));var vs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(vs||(vs={}));var bs;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(bs||(bs={}));var xs;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(xs||(xs={}));var Ss;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ss||(Ss={}));var Es;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Es||(Es={}));var _s;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(_s||(_s={}));var As;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(As||(As={}));var ws;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ws||(ws={}));var Cs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cs||(Cs={}));var Ts;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ts||(Ts={}));var X;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(X||(X={}));var Os;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Os||(Os={}));var Rs;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Rs||(Rs={}));var ks;(function(t){t.ASC="ASC",t.DESC="DESC"})(ks||(ks={}));var Ls;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ls||(Ls={}));var Ds;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ds||(Ds={}));var Ps;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ps||(Ps={}));var Is;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Is||(Is={}));var Ns;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ns||(Ns={}));var Ms;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ms||(Ms={}));var $s;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($s||($s={}));var Us;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Us||(Us={}));var Fs;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fs||(Fs={}));var le;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(le||(le={}));var We;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(We||(We={}));var Bs;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Bs||(Bs={}));var Vs;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Vs||(Vs={}));var Hs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Hs||(Hs={}));var zs;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(zs||(zs={}));var js;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(js||(js={}));var Ws;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ws||(Ws={}));var Ks;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ks||(Ks={}));var Gs;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Gs||(Gs={}));var qs;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(qs||(qs={}));var Ys;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ys||(Ys={}));var Xs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Xs||(Xs={}));var Zs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Zs||(Zs={}));var cd={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN,le.BEHAVIOR_DATA_USER],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function Js(t,e){return t===e||(cd[t]??[]).some(r=>Js(r,e))}function Qs(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Js(i,e))}var to=globalThis,ea=t=>t,_i=to.trustedTypes,ta=_i?_i.createPolicy("lit-html",{createHTML:t=>t}):void 0,aa="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,la="?"+Ot,ud=`<${la}>`,Wt=document,Ai=()=>Wt.createComment(""),zr=t=>t===null||typeof t!="object"&&typeof t!="function",ro=Array.isArray,dd=t=>ro(t)||typeof t?.[Symbol.iterator]=="function",Yn=`[
2
+ \f\r]`,Hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ra=/-->/g,ia=/>/g,zt=RegExp(`>|${Yn}(?:([^\\s"'>=/]+)(${Yn}*=${Yn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),na=/'/g,oa=/"/g,ca=/^(?:script|style|textarea|title)$/i,io=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ua=io(1),da=io(2),pa=io(3),jr=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),sa=new WeakMap,jt=Wt.createTreeWalker(Wt,129);function fa(t,e){if(!ro(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ta!==void 0?ta.createHTML(e):e}var pd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=Hr;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===Hr?u[1]==="!--"?s=ra:u[1]!==void 0?s=ia:u[2]!==void 0?(ca.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=zt):u[3]!==void 0&&(s=zt):s===zt?u[0]===">"?(s=n??Hr,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?zt:u[3]==='"'?oa:na):s===oa||s===na?s=zt:s===ra||s===ia?s=Hr:(s=zt,n=void 0);let g=s===zt&&t[a+1].startsWith("/>")?" ":"";o+=s===Hr?l+ud:p>=0?(i.push(c),l.slice(0,p)+aa+l.slice(p)+Ot+g):l+Ot+(p===-2?a:g)}return[fa(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Wr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=pd(e,r);if(this.el=t.createElement(c,i),jt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=jt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(aa)){let f=u[s++],g=n.getAttribute(p).split(Ot),b=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:b[2],strings:g,ctor:b[1]==="."?Zn:b[1]==="?"?Jn:b[1]==="@"?Qn:fr}),n.removeAttribute(p)}else p.startsWith(Ot)&&(l.push({type:6,index:o}),n.removeAttribute(p));if(ca.test(n.tagName)){let p=n.textContent.split(Ot),f=p.length-1;if(f>0){n.textContent=_i?_i.emptyScript:"";for(let g=0;g<f;g++)n.append(p[g],Ai()),jt.nextNode(),l.push({type:2,index:++o});n.append(p[f],Ai())}}}else if(n.nodeType===8)if(n.data===la)l.push({type:2,index:o});else{let p=-1;for(;(p=n.data.indexOf(Ot,p+1))!==-1;)l.push({type:7,index:o}),p+=Ot.length-1}o++}}static createElement(e,r){let i=Wt.createElement("template");return i.innerHTML=e,i}};function pr(t,e,r=t,i){if(e===jr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=zr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=pr(t,n._$AS(t,e.values),n,i)),e}var Xn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Wt).importNode(r,!0);jt.currentNode=n;let o=jt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new wi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new eo(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=jt.nextNode(),s++)}return jt.currentNode=Wt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},wi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=pr(this,e,r),zr(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==jr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):dd(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ce&&zr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Wt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Wr.createElement(fa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Xn(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=sa.get(e.strings);return r===void 0&&sa.set(e.strings,r=new Wr(e)),r}k(e){ro(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Ai()),this.O(Ai()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ea(e).nextSibling;ea(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},fr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=pr(this,e,r,0),s=!zr(e)||e!==this._$AH&&e!==jr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=pr(this,a[i+l],r,l),c===jr&&(c=this._$AH[l]),s||=!zr(c)||c!==this._$AH[l],c===ce?e=ce:e!==ce&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zn=class extends fr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},Jn=class extends fr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},Qn=class extends fr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=pr(this,e,r,0)??ce)===jr)return;let i=this._$AH,n=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ce&&(i===ce||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},eo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pr(this,e)}};var fd=to.litHtmlPolyfillSupport;fd?.(Wr,wi),(to.litHtmlVersions??=[]).push("3.3.3");var ma=Symbol.for(""),hd=t=>{if(t?.r===ma)return t?._$litStatic$},no=t=>({_$litStatic$:t,r:ma});var ha=new Map,oo=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=hd(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=ha.get(p))===void 0&&(s.raw=s,ha.set(p,e=s)),r=a}return t(e,...r)},so=oo(ua),gf=oo(da),yf=oo(pa);var ao=d(H()),Ta=d(y());var ye;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ye||(ye={}));var Ge=d(N()),m=d(y()),ga=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),vt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),E={fontFamily:vt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Rt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ga),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ga),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},hr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},mr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},gr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},$e={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},yr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},vr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},Te={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ya=Ge.css`
4
4
  .ft-typography--title {
5
- font-family: ${Le.fontFamily};
6
- font-size: ${Le.fontSize};
7
- font-weight: ${Le.fontWeight};
8
- letter-spacing: ${Le.letterSpacing};
9
- line-height: ${Le.lineHeight};
10
- text-transform: ${Le.textTransform};
11
- }
12
- `,pa=Kt.css`
5
+ font-family: ${Rt.fontFamily};
6
+ font-size: ${Rt.fontSize};
7
+ font-weight: ${Rt.fontWeight};
8
+ letter-spacing: ${Rt.letterSpacing};
9
+ line-height: ${Rt.lineHeight};
10
+ text-transform: ${Rt.textTransform};
11
+ }
12
+ `,va=Ge.css`
13
13
  .ft-typography--title-dense {
14
- font-family: ${ke.fontFamily};
15
- font-size: ${ke.fontSize};
16
- font-weight: ${ke.fontWeight};
17
- letter-spacing: ${ke.letterSpacing};
18
- line-height: ${ke.lineHeight};
19
- text-transform: ${ke.textTransform};
20
- }
21
- `,fa=Kt.css`
14
+ font-family: ${kt.fontFamily};
15
+ font-size: ${kt.fontSize};
16
+ font-weight: ${kt.fontWeight};
17
+ letter-spacing: ${kt.letterSpacing};
18
+ line-height: ${kt.lineHeight};
19
+ text-transform: ${kt.textTransform};
20
+ }
21
+ `,ba=Ge.css`
22
22
  .ft-typography--subtitle1 {
23
- font-family: ${br.fontFamily};
24
- font-size: ${br.fontSize};
25
- font-weight: ${br.fontWeight};
26
- letter-spacing: ${br.letterSpacing};
27
- line-height: ${br.lineHeight};
28
- text-transform: ${br.textTransform};
29
- }
30
- `,ha=Kt.css`
23
+ font-family: ${hr.fontFamily};
24
+ font-size: ${hr.fontSize};
25
+ font-weight: ${hr.fontWeight};
26
+ letter-spacing: ${hr.letterSpacing};
27
+ line-height: ${hr.lineHeight};
28
+ text-transform: ${hr.textTransform};
29
+ }
30
+ `,xa=Ge.css`
31
31
  .ft-typography--subtitle2 {
32
- font-family: ${xr.fontFamily};
33
- font-size: ${xr.fontSize};
34
- font-weight: ${xr.fontWeight};
35
- letter-spacing: ${xr.letterSpacing};
36
- line-height: ${xr.lineHeight};
37
- text-transform: ${xr.textTransform};
32
+ font-family: ${mr.fontFamily};
33
+ font-size: ${mr.fontSize};
34
+ font-weight: ${mr.fontWeight};
35
+ letter-spacing: ${mr.letterSpacing};
36
+ line-height: ${mr.lineHeight};
37
+ text-transform: ${mr.textTransform};
38
38
  }
39
39
 
40
- `,wr=Kt.css`
40
+ `,br=Ge.css`
41
41
  .ft-typography--body1 {
42
- font-family: ${Wt.fontFamily};
43
- font-size: ${Wt.fontSize};
44
- font-weight: ${Wt.fontWeight};
45
- letter-spacing: ${Wt.letterSpacing};
46
- line-height: ${Wt.lineHeight};
47
- text-transform: ${Wt.textTransform};
48
- }
49
- `,ma=Kt.css`
42
+ font-family: ${Ke.fontFamily};
43
+ font-size: ${Ke.fontSize};
44
+ font-weight: ${Ke.fontWeight};
45
+ letter-spacing: ${Ke.letterSpacing};
46
+ line-height: ${Ke.lineHeight};
47
+ text-transform: ${Ke.textTransform};
48
+ }
49
+ `,Sa=Ge.css`
50
50
  .ft-typography--body2 {
51
- font-family: ${Sr.fontFamily};
52
- font-size: ${Sr.fontSize};
53
- font-weight: ${Sr.fontWeight};
54
- letter-spacing: ${Sr.letterSpacing};
55
- line-height: ${Sr.lineHeight};
56
- text-transform: ${Sr.textTransform};
57
- }
58
- `,Li=Kt.css`
51
+ font-family: ${gr.fontFamily};
52
+ font-size: ${gr.fontSize};
53
+ font-weight: ${gr.fontWeight};
54
+ letter-spacing: ${gr.letterSpacing};
55
+ line-height: ${gr.lineHeight};
56
+ text-transform: ${gr.textTransform};
57
+ }
58
+ `,Ci=Ge.css`
59
59
  .ft-typography--caption {
60
- font-family: ${$t.fontFamily};
61
- font-size: ${$t.fontSize};
62
- font-weight: ${$t.fontWeight};
63
- letter-spacing: ${$t.letterSpacing};
64
- line-height: ${$t.lineHeight};
65
- text-transform: ${$t.textTransform};
66
- }
67
- `,ga=Kt.css`
60
+ font-family: ${$e.fontFamily};
61
+ font-size: ${$e.fontSize};
62
+ font-weight: ${$e.fontWeight};
63
+ letter-spacing: ${$e.letterSpacing};
64
+ line-height: ${$e.lineHeight};
65
+ text-transform: ${$e.textTransform};
66
+ }
67
+ `,Ea=Ge.css`
68
68
  .ft-typography--breadcrumb {
69
- font-family: ${Ar.fontFamily};
70
- font-size: ${Ar.fontSize};
71
- font-weight: ${Ar.fontWeight};
72
- letter-spacing: ${Ar.letterSpacing};
73
- line-height: ${Ar.lineHeight};
74
- text-transform: ${Ar.textTransform};
75
- }
76
- `,va=Kt.css`
69
+ font-family: ${yr.fontFamily};
70
+ font-size: ${yr.fontSize};
71
+ font-weight: ${yr.fontWeight};
72
+ letter-spacing: ${yr.letterSpacing};
73
+ line-height: ${yr.lineHeight};
74
+ text-transform: ${yr.textTransform};
75
+ }
76
+ `,_a=Ge.css`
77
77
  .ft-typography--overline {
78
- font-family: ${Er.fontFamily};
79
- font-size: ${Er.fontSize};
80
- font-weight: ${Er.fontWeight};
81
- letter-spacing: ${Er.letterSpacing};
82
- line-height: ${Er.lineHeight};
83
- text-transform: ${Er.textTransform};
84
- }
85
- `,ya=Kt.css`
78
+ font-family: ${vr.fontFamily};
79
+ font-size: ${vr.fontSize};
80
+ font-weight: ${vr.fontWeight};
81
+ letter-spacing: ${vr.letterSpacing};
82
+ line-height: ${vr.lineHeight};
83
+ text-transform: ${vr.textTransform};
84
+ }
85
+ `,Aa=Ge.css`
86
86
  .ft-typography--button {
87
- font-family: ${Ct.fontFamily};
88
- font-size: ${Ct.fontSize};
89
- font-weight: ${Ct.fontWeight};
90
- letter-spacing: ${Ct.letterSpacing};
91
- line-height: ${Ct.lineHeight};
92
- text-transform: ${Ct.textTransform};
93
- }
94
- `,ba=Kt.css`
87
+ font-family: ${Te.fontFamily};
88
+ font-size: ${Te.fontSize};
89
+ font-weight: ${Te.fontWeight};
90
+ letter-spacing: ${Te.letterSpacing};
91
+ line-height: ${Te.lineHeight};
92
+ text-transform: ${Te.textTransform};
93
+ }
94
+ `,wa=Ge.css`
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
98
- `;var xa=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Q=class extends Sa.FtLitElement{constructor(){super(...arguments),this.variant=gt.body1}render(){return this.element?Xn`
99
- <${qn(this.element)}
98
+ `;var Ca=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},re=class extends Ta.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?so`
99
+ <${no(this.element)}
100
100
  part="text"
101
101
  class="ft-typography ft-typography--${this.variant}">
102
102
  <slot></slot>
103
- </${qn(this.element)}>
104
- `:Xn`
103
+ </${no(this.element)}>
104
+ `:so`
105
105
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};Q.styles=[da,pa,fa,ha,wr,ma,Li,ga,va,ya,ba];xa([(0,Zn.property)()],Q.prototype,"element",void 0);xa([(0,Zn.property)()],Q.prototype,"variant",void 0);var Ea=f(b());var Aa={"ft-typography":Q};(0,Ea.customElements)(Aa);var vn=f(N()),pe=f(H()),Hc=f(be()),we=f(b());var Vr=f(N()),Dt=f(H()),zr=f(b());var Pa=f(N()),vt=f(H()),Ia=f(be()),Qr=f(b());var La=f(N()),ct=f(b()),Ca=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorContent),lt={color:Ca,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ca),opacityContentOnSurfacePressed:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ct.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},_a=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorPrimary),Ta={color:_a,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",_a)},Oa=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorSecondary),Ra={color:Oa,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oa)},ka=La.css`
106
+ `}};re.styles=[ya,va,ba,xa,br,Sa,Ci,Ea,_a,Aa,wa];Ca([(0,ao.property)()],re.prototype,"element",void 0);Ca([(0,ao.property)()],re.prototype,"variant",void 0);var Ra=d(y());var Oa={"ft-typography":re};(0,Ra.customElements)(Oa);var On=d(N()),pt=d(H()),Qc=d(bt()),wt=d(y());var Nr=d(N()),Me=d(H()),Mr=d(y());var Ua=d(N()),ve=d(H()),Fa=d(bt()),Kr=d(y());var Ma=d(N()),de=d(y()),La=de.FtCssVariableFactory.extend("--ft-ripple-color","",de.designSystemVariables.colorContent),ue={color:La,backgroundColor:de.FtCssVariableFactory.extend("--ft-ripple-background-color","",La),opacityContentOnSurfacePressed:de.FtCssVariableFactory.external(de.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:de.FtCssVariableFactory.external(de.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:de.FtCssVariableFactory.external(de.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:de.FtCssVariableFactory.external(de.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:de.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Da=de.FtCssVariableFactory.extend("--ft-ripple-color","",de.designSystemVariables.colorPrimary),Pa={color:Da,backgroundColor:de.FtCssVariableFactory.extend("--ft-ripple-background-color","",Da)},Ia=de.FtCssVariableFactory.extend("--ft-ripple-color","",de.designSystemVariables.colorSecondary),Na={color:Ia,backgroundColor:de.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ia)},$a=Ma.css`
107
107
  :host {
108
108
  display: contents;
109
109
  }
@@ -116,7 +116,7 @@
116
116
 
117
117
  .ft-ripple:not(.ft-ripple--unbounded) {
118
118
  overflow: hidden;
119
- border-radius: ${lt.borderRadius};
119
+ border-radius: ${ue.borderRadius};
120
120
  }
121
121
 
122
122
  .ft-ripple .ft-ripple--background,
@@ -150,27 +150,27 @@
150
150
  }
151
151
 
152
152
  .ft-ripple .ft-ripple--background {
153
- background-color: ${lt.backgroundColor};
153
+ background-color: ${ue.backgroundColor};
154
154
  }
155
155
 
156
156
  .ft-ripple .ft-ripple--effect {
157
- background-color: ${lt.color};
157
+ background-color: ${ue.color};
158
158
  }
159
159
 
160
160
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
161
- background-color: ${Ra.backgroundColor};
161
+ background-color: ${Na.backgroundColor};
162
162
  }
163
163
 
164
164
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
165
- background-color: ${Ra.color};
165
+ background-color: ${Na.color};
166
166
  }
167
167
 
168
168
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
169
- background-color: ${Ta.backgroundColor};
169
+ background-color: ${Pa.backgroundColor};
170
170
  }
171
171
 
172
172
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
173
- background-color: ${Ta.color};
173
+ background-color: ${Pa.color};
174
174
  }
175
175
 
176
176
  .ft-ripple .ft-ripple--background {
@@ -200,33 +200,33 @@
200
200
  }
201
201
 
202
202
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
203
- opacity: ${lt.opacityContentOnSurfaceHover};
203
+ opacity: ${ue.opacityContentOnSurfaceHover};
204
204
  }
205
205
 
206
206
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
207
- opacity: ${lt.opacityContentOnSurfaceSelected};
207
+ opacity: ${ue.opacityContentOnSurfaceSelected};
208
208
  }
209
209
 
210
210
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
211
- opacity: ${lt.opacityContentOnSurfaceFocused};
211
+ opacity: ${ue.opacityContentOnSurfaceFocused};
212
212
  }
213
213
 
214
214
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
215
- opacity: ${lt.opacityContentOnSurfacePressed};
215
+ opacity: ${ue.opacityContentOnSurfacePressed};
216
216
  transform: translate(-50%, -50%) scale(1);
217
217
  }
218
- `;var Lt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},$=class extends Qr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Qr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Qr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:o}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Pa.html`
218
+ `;var De=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},U=class extends Kr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Kr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Kr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ua.html`
219
219
  <style>
220
220
  .ft-ripple .ft-ripple--effect {
221
221
  left: ${this.originX}px;
222
222
  top: ${this.originY}px;
223
223
  }
224
224
  </style>
225
- <div class="${(0,Ia.classMap)(t)}">
225
+ <div class="${(0,Fa.classMap)(e)}">
226
226
  <div class="ft-ripple--background"></div>
227
227
  <div class="ft-ripple--effect"></div>
228
228
  </div>
229
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=ka;Lt([(0,vt.property)({type:Boolean})],$.prototype,"primary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"secondary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"unbounded",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"activated",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"selected",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"disabled",void 0);Lt([(0,vt.state)()],$.prototype,"hovered",void 0);Lt([(0,vt.state)()],$.prototype,"focused",void 0);Lt([(0,vt.state)()],$.prototype,"pressed",void 0);Lt([(0,vt.state)()],$.prototype,"rippling",void 0);Lt([(0,vt.state)()],$.prototype,"originX",void 0);Lt([(0,vt.state)()],$.prototype,"originY",void 0);Lt([(0,vt.query)(".ft-ripple")],$.prototype,"ripple",void 0);Lt([(0,vt.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var Na=f(b());var Da={"ft-ripple":$};(0,Na.customElements)(Da);var Bc=f(be());var Tc=f(N()),Xt=f(H()),Yt=f(b());var Ma=f(N()),Pe=f(b()),ti={distance:Pe.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Pe.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Pe.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Pe.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Pe.designSystemVariables.borderRadiusS),maxWidth:Pe.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},$a=Ma.css`
229
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};U.elementDefinitions={};U.styles=$a;De([(0,ve.property)({type:Boolean})],U.prototype,"primary",void 0);De([(0,ve.property)({type:Boolean})],U.prototype,"secondary",void 0);De([(0,ve.property)({type:Boolean})],U.prototype,"unbounded",void 0);De([(0,ve.property)({type:Boolean})],U.prototype,"activated",void 0);De([(0,ve.property)({type:Boolean})],U.prototype,"selected",void 0);De([(0,ve.property)({type:Boolean})],U.prototype,"disabled",void 0);De([(0,ve.state)()],U.prototype,"hovered",void 0);De([(0,ve.state)()],U.prototype,"focused",void 0);De([(0,ve.state)()],U.prototype,"pressed",void 0);De([(0,ve.state)()],U.prototype,"rippling",void 0);De([(0,ve.state)()],U.prototype,"originX",void 0);De([(0,ve.state)()],U.prototype,"originY",void 0);De([(0,ve.query)(".ft-ripple")],U.prototype,"ripple",void 0);De([(0,ve.query)(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0);var Va=d(y());var Ba={"ft-ripple":U};(0,Va.customElements)(Ba);var Jc=d(bt());var Fc=d(N()),Xe=d(H()),Ye=d(y());var Ha=d(N()),Lt=d(y()),Gr={distance:Lt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Lt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Lt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Lt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Lt.designSystemVariables.borderRadiusS),maxWidth:Lt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},za=Ha.css`
230
230
  .ft-tooltip--container {
231
231
  display: block;
232
232
  }
@@ -244,28 +244,28 @@
244
244
  box-sizing: border-box;
245
245
  overflow: hidden;
246
246
  width: max-content;
247
- max-width: ${ti.maxWidth};
247
+ max-width: ${Gr.maxWidth};
248
248
  text-align: center;
249
- padding: ${ti.distance};
249
+ padding: ${Gr.distance};
250
250
  }
251
251
 
252
252
  .ft-tooltip--content {
253
253
  padding: 4px 8px;
254
- border-radius: ${ti.borderRadiusS};
255
- background-color: ${ti.backgroundColor};
256
- color: ${ti.color};
254
+ border-radius: ${Gr.borderRadiusS};
255
+ background-color: ${Gr.backgroundColor};
256
+ color: ${Gr.color};
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `;var Fa=["top","right","bottom","left"],Ua=["start","end"],Qn=Fa.reduce((e,t)=>e.concat(t,t+"-"+Ua[0],t+"-"+Ua[1]),[]),ei=Math.min,Ie=Math.max,ri=Math.round;var ce=e=>({x:e,y:e}),ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Ba(e,t,r){return Ie(e,ei(t,r))}function ki(e,t){return typeof e=="function"?e(t):e}function ii(e){return e.split("-")[0]}function De(e){return e.split("-")[1]}function to(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}function Pi(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ro(e){return to(Pi(e))}function Ha(e,t,r){r===void 0&&(r=!1);let i=De(e),n=ro(e),o=eo(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Jn(s)),[s,Jn(s)]}function ja(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Jn(e){let t=ii(e);return ed[t]+e.slice(t.length)}function rd(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function Va(e){return typeof e!="number"?rd(e):{top:e,right:e,bottom:e,left:e}}function Xe(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function za(e,t,r){let{reference:i,floating:n}=e,o=Pi(t),s=ro(t),a=eo(s),l=ii(t),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=De(t);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Wa(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ki(t,e),m=Va(h),x=a[p?d==="floating"?"reference":"floating":d],S=Xe(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(O))&&await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1},dt=Xe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:O,strategy:l}):A);return{top:(S.top-dt.top+m.top)/L.y,bottom:(dt.bottom-S.bottom+m.bottom)/L.y,left:(S.left-dt.left+m.left)/L.x,right:(dt.right-S.right+m.right)/L.x}}var id=50,Ka=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Wa},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=za(c,i,l),p=i,h=0,m={};for(let g=0;g<o.length;g++){let x=o[g];if(!x)continue;let{name:S,fn:A}=x,{x:O,y:L,data:dt,reset:ot}=await A({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=O??u,d=L??d,m[S]={...m[S],...dt},ot&&h<id&&(h++,typeof ot=="object"&&(ot.placement&&(p=ot.placement),ot.rects&&(c=ot.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):ot.rects),{x:u,y:d}=za(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function nd(e,t,r){return(e?[...r.filter(n=>De(n)===e),...r.filter(n=>De(n)!==e)]:r.filter(n=>ii(n)===n)).filter(n=>e?De(n)===e||(t?ja(n)!==n:!1):!0)}var Ga=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Qn,autoAlignment:h=!0,...m}=ki(e,t),g=d!==void 0||p===Qn?nd(d||null,h,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=g[x];if(S==null)return{};if(a!==S)return{reset:{placement:g[0]}};let A=await l.detectOverflow(t,m),O=Ha(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[A[ii(S)],A[O[0]],A[O[1]]],dt=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:S,overflows:L}],ot=g[x+1];if(ot)return{data:{index:x+1,overflows:dt},reset:{placement:ot}};let _e=dt.map(Nt=>{let Vt=De(Nt.placement);return[Nt.placement,Vt&&u?Nt.overflows.slice(0,2).reduce((Mt,Ke)=>Mt+Ke,0):Nt.overflows[0],Nt.overflows]}).sort((Nt,Vt)=>Nt[1]-Vt[1]),Te=((n=_e.filter(Nt=>Nt[2].slice(0,De(Nt[0])?2:3).every(Vt=>Vt<=0))[0])==null?void 0:n[0])||_e[0][0];return Te!==a?{data:{index:x+1,overflows:dt},reset:{placement:Te}}:{}}}};var qa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:O,y:L}=A;return{x:O,y:L}}},...c}=ki(e,t),u={x:r,y:i},d=await o.detectOverflow(t,c),p=Pi(n),h=to(p),m=u[h],g=u[p],x=(A,O)=>Ba(O+d[A==="y"?"top":"left"],O,O-d[A==="y"?"bottom":"right"]);s&&(m=x(h,m)),a&&(g=x(p,g));let S=l.fn({...t,[h]:m,[p]:g});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[h]:s,[p]:a}}}}}};function Di(){return typeof window<"u"}function Je(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Di()?e instanceof Node||e instanceof kt(e).Node:!1}function ee(e){return Di()?e instanceof Element||e instanceof kt(e).Element:!1}function Se(e){return Di()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Ya(e){return!Di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}function ni(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function Za(e){return/^(table|td|th)$/.test(Je(e))}function oi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var od=/transform|translate|scale|rotate|perspective|filter/,sd=/paint|layout|strict|content/,Ze=e=>!!e&&e!=="none",io;function Cr(e){let t=ee(e)?re(e):e;return Ze(t.transform)||Ze(t.translate)||Ze(t.scale)||Ze(t.rotate)||Ze(t.perspective)||!Ni()&&(Ze(t.backdropFilter)||Ze(t.filter))||od.test(t.willChange||"")||sd.test(t.contain||"")}function Ja(e){let t=Ne(e);for(;Se(t)&&!_r(t);){if(Cr(t))return t;if(oi(t))return null;t=Ne(t)}return null}function Ni(){return io==null&&(io=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),io}function _r(e){return/^(html|body|#document)$/.test(Je(e))}function re(e){return kt(e).getComputedStyle(e)}function si(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Je(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ya(e)&&e.host||xe(e);return Ya(t)?t.host:t}function Qa(e){let t=Ne(e);return _r(t)?(e.ownerDocument||e).body:Se(t)&&ni(t)?t:Qa(t)}function Ii(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Qa(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),s=kt(n);if(o){let a=Mi(s);return t.concat(s,s.visualViewport||[],ni(n)?n:[],a&&r?Ii(a):[])}else return t.concat(n,Ii(n,[],r))}function Mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=re(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Se(e),o=n?e.offsetWidth:r,s=n?e.offsetHeight:i,a=ri(r)!==o||ri(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function il(e){return ee(e)?e:e.contextElement}function Tr(e){let t=il(e);if(!Se(t))return ce(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:o}=rl(t),s=(o?ri(r.width):r.width)/i,a=(o?ri(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var ad=ce(0);function nl(e){let t=kt(e);return!Ni()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===kt(e)}function ai(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=il(e),s=ce(1);t&&(i?ee(i)&&(s=Tr(i)):s=Tr(e));let a=ld(o,r,i)?nl(o):ce(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=kt(o),h=ee(i)?kt(i):i,m=p,g=Mi(m);for(;g&&h!==m;){let x=Tr(g),S=g.getBoundingClientRect(),A=re(g),O=S.left+(g.clientLeft+parseFloat(A.paddingLeft))*x.x,L=S.top+(g.clientTop+parseFloat(A.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=O,c+=L,m=kt(g),g=Mi(m)}}return Xe({width:u,height:d,x:l,y:c})}function $i(e,t){let r=si(e).scrollLeft;return t?t.left+r:ai(xe(e)).left+r}function ol(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-$i(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function cd(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,o=n==="fixed",s=xe(i),a=t?oi(t.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=ce(1),u=ce(0),d=Se(i);if((d||!o)&&((Je(i)!=="body"||ni(s))&&(l=si(i)),d)){let h=ai(i);c=Tr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?ol(s,l):ce(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function ud(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function dd(e){let t=si(e),r=e.ownerDocument.body,i=Ie(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Ie(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+$i(e),s=-t.scrollTop;return re(r).direction==="rtl"&&(o+=Ie(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var pd=25;function fd(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=kt(e),o=xe(e),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Ni()||t==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if($i(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(o.clientWidth-h.clientWidth-g),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;S<=pd&&(a-=S)}return{width:a,height:l,x:c,y:u}}function hd(e,t){let r=ai(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,o=Tr(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function tl(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=fd(e,r,t);else if(t==="document")i=dd(xe(e));else if(ee(t))i=hd(t,r);else{let n=nl(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xe(i)}function md(e,t){let r=t.get(e);if(r)return r;let i=Ii(e,[],!1).filter(a=>ee(a)&&Je(a)!=="body"),n=null,o=re(e).position==="fixed",s=o?Ne(e):e;for(;ee(s)&&!_r(s);){let a=re(s),l=Cr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Ne(s)}return t.set(e,i),i}function gd(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?oi(t)?[]:md(t,this._c):[].concat(r),i],a=tl(t,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=tl(t,s[p],n);l=Ie(h.top,l),c=ei(h.right,c),u=ei(h.bottom,u),d=Ie(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vd(e){let{width:t,height:r}=rl(e);return{width:t,height:r}}function yd(e,t,r){let i=Se(t),n=xe(t),o=r==="fixed",s=ai(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=ce(0);if((i||!o)&&((Je(t)!=="body"||ni(n))&&(a=si(t)),i)){let p=ai(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=$i(n));let c=n&&!i&&!o?ol(n,a):ce(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function no(e){return re(e).position==="static"}function el(e,t){if(!Se(e)||re(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return xe(e)===r&&(r=r.ownerDocument.body),r}function sl(e,t){let r=kt(e);if(oi(e))return r;if(!Se(e)){let n=Ne(e);for(;n&&!_r(n);){if(ee(n)&&!no(n))return n;n=Ne(n)}return r}let i=el(e,t);for(;i&&Za(i)&&no(i);)i=el(i,t);return i&&_r(i)&&no(i)&&!Cr(i)?r:i||Ja(e)||r}var bd=async function(e){let t=this.getOffsetParent||sl,r=this.getDimensions,i=await r(e.floating);return{reference:yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function xd(e){return re(e).direction==="rtl"}var Ui={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:xe,getClippingRect:gd,getOffsetParent:sl,getElementRects:bd,getClientRects:ud,getDimensions:vd,getScale:Tr,isElement:ee,isRTL:xd};var al=Ga,ll=qa;var cl=(e,t,r)=>{let i=new Map,n=r??{},o={...Ui,...n.platform,_c:i};return Ka(e,t,{...n,platform:o})};function ul(e){return Sd(e)}function oo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sd(e){for(let t=e;t;t=oo(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=oo(e);t;t=oo(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Cr(r)||t.tagName==="BODY"))return t}return null}async function dl(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},cl(e,t,{strategy:i.strategy,platform:{...Ui,getOffsetParent:n=>Ui.getOffsetParent(n,ul)},middleware:[ll({crossAxis:!0}),al({allowedPlacements:[i.placement]})]})}var jr=f(b());var Po=f(H());var pl=f(H(),1);var so=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function fl(e,t){return(0,pl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return li(e);try{return JSON.parse(r)}catch{return li(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ci,...t??{}})}function Ad(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Or(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Or(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(e);if(r=o.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Or(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Or(e,t){try{return Ad(e,t)}catch{return!1}}function ci(e,t){return!Or(e,t)}function li(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fi(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var hl=f(H(),1);var ao=e=>{let t=e??{};return(r,i)=>{var n;let o={hasChanged:ci,attribute:!1,...t};(0,hl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Bi=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Qe=f(H(),1);var Hi=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gl=f(N(),1);var ji=globalThis,Ed=ji.ShadowRoot&&(ji.ShadyCSS===void 0||ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var ml=(e,t)=>{if(Ed)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=ji.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Vi=class extends gl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return ml(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){so(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function vl(e,t,...r){var i;let n=e.querySelector(t);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Lr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Sl,yl=Symbol("constructorPrototype"),bl=Symbol("constructorName"),Al=Symbol("exportpartsDebouncer"),xl=Symbol("dynamicDependenciesLoaded"),Rr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Rr.eventName="exportparts-updated";var ue=class extends Vi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sl]=new Hi(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Al].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[bl]=this.constructor.name,this[yl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bl]&&Object.setPrototypeOf(this,this[yl])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[xl]||(r[xl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Rr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Rr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Rr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=vl(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(x=>x.trim());for(let x of g)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Sl=Al;Lr([(0,Qe.property)()],ue.prototype,"exportpartsPrefix",void 0);Lr([fl([])],ue.prototype,"exportpartsPrefixes",void 0);Lr([(0,Qe.property)({reflect:!0})],ue.prototype,"exportparts",void 0);Lr([(0,Qe.property)()],ue.prototype,"customStylesheet",void 0);Lr([(0,Qe.property)()],ue.prototype,"elementToFocus",void 0);Lr([(0,Qe.state)()],ue.prototype,"useAdoptedStyleSheets",void 0);function zi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ui=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),tr=Symbol("internalStores"),wd=Fi(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[tr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[tr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[tr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[tr].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Me].has(s.store):this[Me].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Me].set(s,a.subscribe(()=>this.updateFromStores())),this[ui].set(s,[]),zi(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[ui].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Me].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Me].has(s)&&this[Me].get(s)(),this[Me].delete(s),(a=this[ui].get(s))===null||a===void 0||a.forEach(l=>l()),this[ui].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Me,r=tr,i=ui,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),El=class extends wd(ue){};function Gt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ae(e){return!!e&&!!e[W]}function ie(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Pd})(e)||Array.isArray(e)||!!e[Ll]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ll])||vo(e)||yo(e))}function er(e,t,r){r===void 0&&(r=!1),Ir(e)===0?(r?Object.keys:Pr)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,n){return t(n,i,e)}))}function Ir(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vo(e)?2:yo(e)?3:0}function kr(e,t){return Ir(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return Ir(e)===2?e.get(t):e[t]}function kl(e,t,r){var i=Ir(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Pl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vo(e){return Ld&&e instanceof Map}function yo(e){return kd&&e instanceof Set}function $e(e){return e.o||e.t}function bo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nl(e);delete t[W];for(var r=Pr(t),i=0;i<r.length;i++){var n=r[i],o=t[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function xo(e,t){return t===void 0&&(t=!1),So(e)||Ae(e)||!ie(e)||(Ir(e)>1&&(e.set=e.add=e.clear=e.delete=_d),Object.freeze(e),t&&er(e,(function(r,i){return xo(i,!0)}),!0)),e}function _d(){Gt(2)}function So(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function de(e){var t=go[e];return t||Gt(18,e),t}function Td(e,t){go[e]||(go[e]=t)}function fo(){return pi}function lo(e,t){t&&(de("Patches"),e.u=[],e.s=[],e.v=t)}function Wi(e){ho(e),e.p.forEach(Od),e.p=null}function ho(e){e===pi&&(pi=e.l)}function wl(e){return pi={p:[],l:pi,h:e,m:!0,_:0}}function Od(e){var t=e[W];t.i===0||t.i===1?t.j():t.g=!0}function co(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||de("ES5").S(t,e,i),i?(r[W].P&&(Wi(t),Gt(4)),ie(e)&&(e=Ki(t,e),t.l||Gi(t,e)),t.u&&de("Patches").M(r[W].t,e,t.u,t.s)):e=Ki(t,r,[]),Wi(t),t.u&&t.v(t.u,t.s),e!==Dl?e:void 0}function Ki(e,t,r){if(So(t))return t;var i=t[W];if(!i)return er(t,(function(a,l){return Cl(e,i,t,a,l,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Gi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=bo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),er(o,(function(a,l){return Cl(e,i,n,a,l,r,s)})),Gi(e,n,!1),r&&e.u&&de("Patches").N(i,r,e.u,e.s)}return i.o}function Cl(e,t,r,i,n,o,s){if(Ae(n)){var a=Ki(e,n,o&&t&&t.i!==3&&!kr(t.R,i)?o.concat(i):void 0);if(kl(r,i,a),!Ae(a))return;e.m=!1}else s&&r.add(n);if(ie(n)&&!So(n)){if(!e.h.D&&e._<1)return;Ki(e,n),t&&t.A.l||Gi(e,n)}}function Gi(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&xo(t,r)}function uo(e,t){var r=e[W];return(r?$e(r):e)[t]}function _l(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Ue(e){e.P||(e.P=!0,e.l&&Ue(e.l))}function po(e){e.o||(e.o=bo(e.t))}function mo(e,t,r){var i=vo(t)?de("MapSet").F(t,r):yo(t)?de("MapSet").T(t,r):e.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:fo(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=fi;s&&(l=[a],c=di);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):de("ES5").J(t,r);return(r?r.A:fo()).p.push(i),i}function Rd(e){return Ae(e)||Gt(22,e),(function t(r){if(!ie(r))return r;var i,n=r[W],o=Ir(r);if(n){if(!n.P&&(n.i<4||!de("ES5").K(n)))return n.t;n.I=!0,i=Tl(r,o),n.I=!1}else i=Tl(r,o);return er(i,(function(s,a){n&&Cd(n.t,s)===a||kl(i,s,t(a))})),o===3?new Set(i):i})(e)}function Tl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bo(e)}function Il(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[W];return fi.get(c,s)},set:function(c){var u=this[W];fi.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][W];if(!l.P)switch(l.i){case 5:i(l)&&Ue(l);break;case 4:r(l)&&Ue(l)}}}function r(s){for(var a=s.t,l=s.k,c=Pr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==W){var p=a[d];if(p===void 0&&!kr(a,d))return!0;var h=l[d],m=h&&h[W];if(m?m.t!==p:!Pl(h,p))return!0}}var g=!!a[W];return c.length!==Pr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify($e(s)))}var o={};Td("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,e(m,!0));return h}var g=Nl(p);delete g[W];for(var x=Pr(g),S=0;S<x.length;S++){var A=x[S];g[A]=e(A,d||!!g[A].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(l,s),u={i:l?5:4,A:a?a.A:fo(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,W,{value:u,writable:!0}),c},S:function(s,a,l){l?Ae(a)&&a[W].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[W];if(d){var p=d.t,h=d.k,m=d.R,g=d.i;if(g===4)er(h,(function(L){L!==W&&(p[L]!==void 0||kr(p,L)?m[L]||c(h[L]):(m[L]=!0,Ue(d)))})),er(p,(function(L){h[L]!==void 0||kr(h,L)||(m[L]=!1,Ue(d))}));else if(g===5){if(i(d)&&(Ue(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var S=p.length;S<h.length;S++)m[S]=!0;for(var A=Math.min(h.length,p.length),O=0;O<A;O++)h.hasOwnProperty(O)||(m[O]=!0),m[O]===void 0&&c(h[O])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ol,pi,Ao=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ld=typeof Map<"u",kd=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dl=Ao?Symbol.for("immer-nothing"):((Ol={})["immer-nothing"]=!0,Ol),Ll=Ao?Symbol.for("immer-draftable"):"__$immer_draftable",W=Ao?Symbol.for("immer-state"):"__$immer_state";var Pd=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(e){var t={};return Pr(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},go={},fi={get:function(e,t){if(t===W)return e;var r=$e(e);if(!kr(r,t))return(function(n,o,s){var a,l=_l(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(e,r,t);var i=r[t];return e.I||!ie(i)?i:i===uo(e.t,t)?(po(e),e.o[t]=mo(e.A.h,i,e)):i},has:function(e,t){return t in $e(e)},ownKeys:function(e){return Reflect.ownKeys($e(e))},set:function(e,t,r){var i=_l($e(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=uo($e(e),t),o=n?.[W];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Pl(r,n)&&(r!==void 0||kr(e.t,t)))return!0;po(e),Ue(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return uo(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,po(e),Ue(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=$e(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},di={};er(fi,(function(e,t){di[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),di.deleteProperty=function(e,t){return di.set.call(this,e,t,void 0)},di.set=function(e,t,r){return fi.set.call(this,e[0],t,r,e[0])};var Id=(function(){function e(r){var i=this;this.O=Rl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var x=this;g===void 0&&(g=a);for(var S=arguments.length,A=Array(S>1?S-1:0),O=1;O<S;O++)A[O-1]=arguments[O];return l.produce(g,(function(L){var dt;return(dt=o).call.apply(dt,[x,L].concat(A))}))}}var c;if(typeof o!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),ie(n)){var u=wl(i),d=mo(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?Wi(u):ho(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return lo(u,s),co(g,u)}),(function(g){throw Wi(u),g})):(lo(u,s),co(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Dl&&(c=void 0),i.D&&xo(c,!0),s){var h=[],m=[];de("Patches").M(n,c,h,m),s(h,m)}return c}Gt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ie(r)||Gt(8),Ae(r)&&(r=Rd(r));var i=wl(this),n=mo(this,r,void 0);return n[W].C=!0,ho(i),n},t.finishDraft=function(r,i){var n=r&&r[W],o=n.A;return lo(o,i),co(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Rl&&Gt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=de("Patches").$;return Ae(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},e})(),Ut=new Id,Dd=Ut.produce,bh=Ut.produceWithPatches.bind(Ut),xh=Ut.setAutoFreeze.bind(Ut),Sh=Ut.setUseProxies.bind(Ut),Ah=Ut.applyPatches.bind(Ut),Eh=Ut.createDraft.bind(Ut),wh=Ut.finishDraft.bind(Ut),qi=Dd;function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function Ml(e,t){if(rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(rr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $l(e){var t=Ml(e,"string");return rr(t)=="symbol"?t:t+""}function Ul(e,t,r){return(t=$l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(r),!0).forEach(function(i){Ul(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function At(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yi={INIT:"@@redux/INIT"+wo(),REPLACE:"@@redux/REPLACE"+wo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wo()}};function Nd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Co(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(At(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(At(1));return r(Co)(e,t)}if(typeof e!="function")throw new Error(At(2));var n=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(At(3));return o}function d(g){if(typeof g!="function")throw new Error(At(4));if(l)throw new Error(At(5));var x=!0;return c(),a.push(g),function(){if(x){if(l)throw new Error(At(6));x=!1,c();var A=a.indexOf(g);a.splice(A,1),s=null}}}function p(g){if(!Nd(g))throw new Error(At(7));if(typeof g.type>"u")throw new Error(At(8));if(l)throw new Error(At(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var x=s=a,S=0;S<x.length;S++){var A=x[S];A()}return g}function h(g){if(typeof g!="function")throw new Error(At(10));n=g,p({type:Yi.REPLACE})}function m(){var g,x=d;return g={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(At(11));function O(){A.next&&A.next(u())}O();var L=x(O);return{unsubscribe:L}}},g[Bl]=function(){return this},g}return p({type:Yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:h},i[Bl]=m,i}function Md(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Yi.INIT});if(typeof i>"u")throw new Error(At(12));if(typeof r(void 0,{type:Yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(At(13))})}function Hl(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var o=Object.keys(r),s,a;try{Md(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var g=o[m],x=r[g],S=c[g],A=x(S,u);if(typeof A>"u"){var O=u&&u.type;throw new Error(At(14))}h[g]=A,p=p||A!==S}return p=p||o.length!==Object.keys(c).length,p?h:c}}function Dr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function jl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(At(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Dr.apply(void 0,a)(n.dispatch),Eo(Eo({},n),{},{dispatch:o})}}}function Vl(e){var t=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,e):s(a)}}};return t}var zl=Vl();zl.withExtraArgument=Vl;var _o=zl;var Yl=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),$d=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Ud=Object.defineProperty,Fd=Object.defineProperties,Bd=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,Hd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable,Kl=function(e,t,r){return t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Fe=function(e,t){for(var r in t||(t={}))Hd.call(t,r)&&Kl(e,r,t[r]);if(Wl)for(var i=0,n=Wl(t);i<n.length;i++){var r=n[i];jd.call(t,r)&&Kl(e,r,t[r])}return e},To=function(e,t){return Fd(e,Bd(t))},Vd=function(e,t,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var zd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Dr:Dr.apply(null,arguments)},jh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var o=t.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Fe(Fe({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}var Kd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nr([void 0],r.concat(this))))},t})(Array),Gd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nr([void 0],r.concat(this))))},t})(Array);function Lo(e){return ie(e)?qi(e,function(){}):e}function qd(e){return typeof e=="boolean"}function Yd(){return function(t){return Xd(t)}}function Xd(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Kd;if(r&&(qd(r)?c.push(_o):c.push(_o.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var Oo=!0;function Xl(e){var t=Yd(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?t():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Wd(n))h=Hl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(t),!Oo&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oo&&m.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=jl.apply(void 0,m),x=Dr;l&&(x=zd(Fe({trace:!Oo},typeof l=="object"&&l)));var S=new Gd(g),A=S;Array.isArray(p)?A=Nr([g],p):typeof p=="function"&&(A=p(S));var O=x.apply(void 0,A);return Co(h,u,O)}function Zl(e){var t={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return e(n),[t,r,i]}function Zd(e){return typeof e=="function"}function Jd(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?Zl(t):[t,r,i],o=n[0],s=n[1],a=n[2],l;if(Zd(e))l=function(){return Lo(e())};else{var c=Lo(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Nr([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Ae(m)){var x=m,S=g(x,p);return S===void 0?m:S}else{if(ie(m))return qi(m,function(A){return g(A,p)});var S=g(m,p);if(S===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return m},d)}return u.getInitialState=l,u}function Qd(e,t){return e+"/"+t}function Jl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Lo(e.initialState),i=e.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(u){var d=i[u],p=Qd(t,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?Be(p,m):Be(p)});function l(){var u=typeof e.extraReducers=="function"?Zl(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,g=u[2],x=g===void 0?void 0:g,S=Fe(Fe({},p),s);return Jd(r,function(A){for(var O in S)A.addCase(O,S[O]);for(var L=0,dt=m;L<dt.length;L++){var ot=dt[L];A.addMatcher(ot.matcher,ot.reducer)}x&&A.addDefaultCase(x)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ep=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=tp[Math.random()*64|0];return t},rp=["name","message","stack","code"],Ro=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Gl=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),ip=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=rp;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},Kh=(function(){function e(t,r,i){var n=Be(t+"/fulfilled",function(u,d,p,h){return{payload:u,meta:To(Fe({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:To(Fe({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||ip)(u||"Rejected"),meta:To(Fe({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=i?.idGenerator?i.idGenerator(u):ep(),g=new l,x,S=!1;function A(L){x=L,g.abort()}var O=(function(){return Vd(this,null,function(){var L,dt,ot,_e,Mn,Te,Nt;return $d(this,function(Vt){switch(Vt.label){case 0:return Vt.trys.push([0,4,,5]),_e=(L=i?.condition)==null?void 0:L.call(i,u,{getState:p,extra:h}),op(_e)?[4,_e]:[3,2];case 1:_e=Vt.sent(),Vt.label=2;case 2:if(_e===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Mn=new Promise(function(Mt,Ke){return g.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(dt=i?.getPendingMeta)==null?void 0:dt.call(i,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([Mn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:g.signal,abort:A,rejectWithValue:function(Mt,Ke){return new Ro(Mt,Ke)},fulfillWithValue:function(Mt,Ke){return new Gl(Mt,Ke)}})).then(function(Mt){if(Mt instanceof Ro)throw Mt;return Mt instanceof Gl?n(Mt.payload,m,u,Mt.meta):n(Mt,m,u)})])];case 3:return ot=Vt.sent(),[3,5];case 4:return Te=Vt.sent(),ot=Te instanceof Ro?s(null,m,u,Te.payload,Te.meta):s(Te,m,u),[3,5];case 5:return Nt=i&&!i.dispatchConditionRejection&&s.match(ot)&&ot.meta.condition,Nt||d(ot),[2,ot]}})})})();return Object.assign(O,{abort:A,requestId:m,arg:u,unwrap:function(){return O.then(np)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e})();function np(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function op(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ql="listener",tc="completed",ec="cancelled",Gh="task-"+ec,qh="task-"+tc,Yh=Ql+"-"+ec,Xh=Ql+"-"+tc;var ko="listenerMiddleware";var Zh=Be(ko+"/add"),Jh=Be(ko+"/removeAll"),Qh=Be(ko+"/remove");var ql,tm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ql||(ql=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},sp=function(e){return function(t){setTimeout(t,e)}},em=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10);Il();var ap=Fi(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Xi=class extends ap(Object){};window.ftReduxStores||(window.ftReduxStores={});var rc=class e extends Xi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,o=window.ftReduxStores[i];if(zi(o))return o;if(n==null)return;let s=Jl({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Xl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=li(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(s,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Bi;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Or(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zi=class{static format(t,r,i,n,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(t,r,i,n,!!o)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ji=f(b()),lp="ft-app-info",Mr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Mr.eventName="authentication-change";var hi=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};hi.eventName="ui-locale-changed";var cp={session:(e,t)=>{(0,Ji.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>E.dispatchEvent(new Mr(t.payload)),0))}},E=Ji.FtReduxStore.get({name:lp,reducers:cp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ic=f(b()),Qi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Rm=(0,ic.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Zi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qi([(0,Po.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Qi([(0,Po.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Qi([ao({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Qi([ao({store:E.name})],t.prototype,"uiLocale",void 0),t});var on=f(b());var Io=f(b());var ir=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=E.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var $r=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ir.await()}};var Ft=class extends $r{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Io.CacheRegistry,this.cache=t?n.commonCache:new Io.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends Ft{async listMySearches(){let{session:t}=E.getState();return Gs(t,st.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var en=class extends Ft{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var rn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var nn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var up="ft-user-assets",dp={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(zt).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;No(e,r,[...Do(e,r),n]),nc(e,r,1,i),oc(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;No(e,r,Do(e,r).map(n=>n.id===i.id?i:n)),oc(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;No(e,r,Do(e,r).filter(o=>o.id!==n)),nc(e,r,-1,i)}},sc={[zt.SEARCHES]:"savedSearches",[zt.BOOKMARKS]:"bookmarks",[zt.BOOKS]:void 0,[zt.COLLECTIONS]:void 0},Do=(e,t)=>{var r;let i=sc[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},No=(e,t,r)=>{let i=sc[t];i&&(e[i]=r)},nc=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===zt.BOOKMARKS&&i)){let o=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},oc=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},_t=on.FtReduxStore.get({name:up,reducers:dp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(zt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Mo=class{constructor(t=new rn,r=new nn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new tn,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=E.getState();(0,on.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),_t.actions.clearAssetCount(),_t.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_t.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_t.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();_t.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();_t.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&_t.getState().assetCounts.allAsset[t]!==r.count&&_t.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&_t.getState().assetCounts.bookmarkByMap[t]!==r.count&&_t.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(_t.getState().assetCounts.bookmarkByMap).length!==0;t===zt.BOOKMARKS&&r&&_t.actions.clearBookmarkCountByMap(),_t.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_t.actions.bookmarks(r)}}},pp=new Mo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=pp);var $o=class{addCommand(t,r=!1){E.commands.add(t,r)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new $o;var qt=f(b());var ac,Ur=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},fp=Symbol("clearAfterUnitTest"),sn=class extends(0,qt.withEventBus)(Ft){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ac]=()=>{this.defaultMessages={},this.cache=new qt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,qt.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let o=t.toLowerCase(),s=this.resolveContext(o);return new qt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof qt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ur({loadedContexts:t})),this.dispatchEvent(new Ur({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ur({loadedContexts:[t]})),this.dispatchEvent(new Ur({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,qt.delay)(0).then(()=>i()).catch(()=>null)))}};ac=fp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Fr=window.FluidTopicsI18nService,an=window.FluidTopicsCustomI18nService;var lc=f(b()),Uo=class{highlightHtml(t,r,i){(0,lc.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Uo;var cc=f(b());var Fo=class{isDate(t){var r,i,n,o;return(o=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(t,r){var i,n,o,s;if(t==null)return"";try{return cc.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Fo;var uc=f(b());var mi=class{static get(t,r){var i,n,o,s;let a=E.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Bo=class{urlToSearchRequest(t){return mi.get().parse(t)}searchRequestToUrl(t){return mi.get().serialize(t)}};window.FluidTopicsUrlService=new Bo;var Ee=f(b());var nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};nr.eventName="change";var Ho=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},dc=new Ho;var ln=class e extends Ee.WithEventBus{static build(){return new e(window.history,dc,()=>window.location,!1)}constructor(t,r,i,n){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ee.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new nr(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(t){this.addEventListener(nr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(nr.eventName,t)}currentItem(){return(0,Ee.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ee.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ee.deepCopy)(r.find(i=>t(i)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ee.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ln.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Br=class{constructor(){this.storeListeners=[]}store(t,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(t,i),window.dispatchEvent(new StorageEvent("storage",{key:t,newValue:i,storageArea:window.localStorage}))}get(t){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(t))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(t,r){let i=n=>{n.key===t()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(t=>window.removeEventListener("storage",t)),this.storeListeners.length=0}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var pc=f(N());var fc=pc.css`
261
- `;var gc=f(N()),Pt=f(H()),ar=f(b());var or=f(b());function hc(e,t){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var cn=class extends $r{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var jo=class e extends or.FtStateManager{static build(t){return new e(E,t)}constructor(t,r){super(),this.store=t,this.cache=new or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new or.Debouncer,this.reloadDebouncer=new or.Debouncer(500),this.apiProvider=r??(()=>ir.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Mr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>hc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new hi(i)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},mc=jo.build();var sr=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new sr(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var yt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},X=class extends ar.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=mc,this.contextRoot=new gi}render(){return gc.html`
260
+ `;var Wa=["top","right","bottom","left"],ja=["start","end"],co=Wa.reduce((t,e)=>t.concat(e,e+"-"+ja[0],e+"-"+ja[1]),[]),qr=Math.min,Dt=Math.max,Yr=Math.round;var ct=t=>({x:t,y:t}),md={left:"right",right:"left",bottom:"top",top:"bottom"};function Ka(t,e,r){return Dt(t,qr(e,r))}function Ti(t,e){return typeof t=="function"?t(e):t}function Xr(t){return t.split("-")[0]}function Pt(t){return t.split("-")[1]}function uo(t){return t==="x"?"y":"x"}function po(t){return t==="y"?"height":"width"}function Oi(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function fo(t){return uo(Oi(t))}function Ga(t,e,r){r===void 0&&(r=!1);let i=Pt(t),n=fo(t),o=po(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=lo(s)),[s,lo(s)]}function qa(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function lo(t){let e=Xr(t);return md[e]+t.slice(e.length)}function gd(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Ya(t){return typeof t!="number"?gd(t):{top:t,right:t,bottom:t,left:t}}function Kt(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Xa(t,e,r){let{reference:i,floating:n}=t,o=Oi(e),s=fo(e),a=po(s),l=Xr(e),c=o==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:p};break;case"left":g={x:i.x-n.width,y:p};break;default:g={x:i.x,y:i.y}}let b=Pt(e);return b&&(g[s]+=f*(b==="end"?1:-1)*(r&&c?-1:1)),g}async function Za(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:g=0}=Ti(e,t),b=Ya(g),v=a[f?p==="floating"?"reference":"floating":p],T=Kt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(v)))==null||r?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),$=p==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),R=await(o.isElement==null?void 0:o.isElement(x))&&await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1},D=Kt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:$,offsetParent:x,strategy:l}):$);return{top:(T.top-D.top+b.top)/R.y,bottom:(D.bottom-T.bottom+b.bottom)/R.y,left:(T.left-D.left+b.left)/R.x,right:(D.right-T.right+b.right)/R.x}}var yd=50,Ja=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Za},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=Xa(c,i,l),f=i,g=0,b={};for(let C=0;C<o.length;C++){let v=o[C];if(!v)continue;let{name:T,fn:$}=v,{x,y:R,data:D,reset:ee}=await $({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:b,rects:c,platform:a,elements:{reference:t,floating:e}});u=x??u,p=R??p,b[T]={...b[T],...D},ee&&g<yd&&(g++,typeof ee=="object"&&(ee.placement&&(f=ee.placement),ee.rects&&(c=ee.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):ee.rects),{x:u,y:p}=Xa(c,f,l)),C=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:b}};function vd(t,e,r){return(t?[...r.filter(n=>Pt(n)===t),...r.filter(n=>Pt(n)!==t)]:r.filter(n=>Xr(n)===n)).filter(n=>t?Pt(n)===t||(e?qa(n)!==n:!1):!0)}var Qa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=co,autoAlignment:g=!0,...b}=Ti(t,e),C=p!==void 0||f===co?vd(p||null,g,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,T=C[v];if(T==null)return{};if(a!==T)return{reset:{placement:C[0]}};let $=await l.detectOverflow(e,b),x=Ga(T,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),R=[$[Xr(T)],$[x[0]],$[x[1]]],D=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:R}],ee=C[v+1];if(ee)return{data:{index:v+1,overflows:D},reset:{placement:ee}};let j=D.map(je=>{let Ht=Pt(je.placement);return[je.placement,Ht&&u?je.overflows.slice(0,2).reduce((Qu,ed)=>Qu+ed,0):je.overflows[0],je.overflows]}).sort((je,Ht)=>je[1]-Ht[1]),Vr=((n=j.filter(je=>je[2].slice(0,Pt(je[0])?2:3).every(Ht=>Ht<=0))[0])==null?void 0:n[0])||j[0][0];return Vr!==a?{data:{index:v+1,overflows:D},reset:{placement:Vr}}:{}}}};var el=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:$=>{let{x,y:R}=$;return{x,y:R}}},...c}=Ti(t,e),u={x:r,y:i},p=await o.detectOverflow(e,c),f=Oi(n),g=uo(f),b=u[g],C=u[f],v=($,x)=>Ka(x+p[$==="y"?"top":"left"],x,x-p[$==="y"?"bottom":"right"]);s&&(b=v(g,b)),a&&(C=v(f,C));let T=l.fn({...e,[g]:b,[f]:C});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[g]:s,[f]:a}}}}}};function ki(){return typeof window<"u"}function qt(t){return rl(t)?(t.nodeName||"").toLowerCase():"#document"}function Pe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xt(t){var e;return(e=(rl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function rl(t){return ki()?t instanceof Node||t instanceof Pe(t).Node:!1}function tt(t){return ki()?t instanceof Element||t instanceof Pe(t).Element:!1}function St(t){return ki()?t instanceof HTMLElement||t instanceof Pe(t).HTMLElement:!1}function tl(t){return!ki()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pe(t).ShadowRoot}function Zr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function il(t){return/^(table|td|th)$/.test(qt(t))}function Jr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var bd=/transform|translate|scale|rotate|perspective|filter/,xd=/paint|layout|strict|content/,Gt=t=>!!t&&t!=="none",ho;function xr(t){let e=tt(t)?rt(t):t;return Gt(e.transform)||Gt(e.translate)||Gt(e.scale)||Gt(e.rotate)||Gt(e.perspective)||!Li()&&(Gt(e.backdropFilter)||Gt(e.filter))||bd.test(e.willChange||"")||xd.test(e.contain||"")}function nl(t){let e=It(t);for(;St(e)&&!Sr(e);){if(xr(e))return e;if(Jr(e))return null;e=It(e)}return null}function Li(){return ho==null&&(ho=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ho}function Sr(t){return/^(html|body|#document)$/.test(qt(t))}function rt(t){return Pe(t).getComputedStyle(t)}function Qr(t){return tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function It(t){if(qt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||tl(t)&&t.host||xt(t);return tl(e)?e.host:e}function ol(t){let e=It(t);return Sr(e)?(t.ownerDocument||t).body:St(e)&&Zr(e)?e:ol(e)}function Ri(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ol(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Pe(n);if(o){let a=Di(s);return e.concat(s,s.visualViewport||[],Zr(n)?n:[],a&&r?Ri(a):[])}else return e.concat(n,Ri(n,[],r))}function Di(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ll(t){let e=rt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=St(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Yr(r)!==o||Yr(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function cl(t){return tt(t)?t:t.contextElement}function Er(t){let e=cl(t);if(!St(e))return ct(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=ll(e),s=(o?Yr(r.width):r.width)/i,a=(o?Yr(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Sd=ct(0);function ul(t){let e=Pe(t);return!Li()||!e.visualViewport?Sd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ed(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Pe(t)}function ei(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=cl(t),s=ct(1);e&&(i?tt(i)&&(s=Er(i)):s=Er(t));let a=Ed(o,r,i)?ul(o):ct(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,p=n.height/s.y;if(o&&i){let f=Pe(o),g=tt(i)?Pe(i):i,b=f,C=Di(b);for(;C&&g!==b;){let v=Er(C),T=C.getBoundingClientRect(),$=rt(C),x=T.left+(C.clientLeft+parseFloat($.paddingLeft))*v.x,R=T.top+(C.clientTop+parseFloat($.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,p*=v.y,l+=x,c+=R,b=Pe(C),C=Di(b)}}return Kt({width:u,height:p,x:l,y:c})}function Pi(t,e){let r=Qr(t).scrollLeft;return e?e.left+r:ei(xt(t)).left+r}function dl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Pi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function _d(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=xt(i),a=e?Jr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=ct(1),u=ct(0),p=St(i);if((p||!o)&&((qt(i)!=="body"||Zr(s))&&(l=Qr(i)),p)){let g=ei(i);c=Er(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let f=s&&!p&&!o?dl(s,l):ct(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Ad(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function wd(t){let e=Qr(t),r=t.ownerDocument.body,i=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Pi(t),s=-e.scrollTop;return rt(r).direction==="rtl"&&(o+=Dt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var Cd=25;function Td(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Pe(t),o=xt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let f=!Li()||e==="fixed";i?f||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,u=s.offsetTop))}if(Pi(o)<=0){let f=o.ownerDocument,g=f.body,b=getComputedStyle(g),C=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(o.clientWidth-g.clientWidth-C),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?v/2:v;T<=Cd&&(a-=T)}return{width:a,height:l,x:c,y:u}}function Od(t,e){let r=ei(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Er(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function sl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Td(t,r,e);else if(e==="document")i=wd(xt(t));else if(tt(e))i=Od(e,r);else{let n=ul(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Kt(i)}function Rd(t,e){let r=e.get(t);if(r)return r;let i=Ri(t,[],!1).filter(a=>tt(a)&&qt(a)!=="body"),n=null,o=rt(t).position==="fixed",s=o?It(t):t;for(;tt(s)&&!Sr(s);){let a=rt(s),l=xr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):n=a,s=It(s)}return e.set(t,i),i}function kd(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Jr(e)?[]:Rd(e,this._c):[].concat(r),i],a=sl(e,s[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let g=sl(e,s[f],n);l=Dt(g.top,l),c=qr(g.right,c),u=qr(g.bottom,u),p=Dt(g.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Ld(t){let{width:e,height:r}=ll(t);return{width:e,height:r}}function Dd(t,e,r){let i=St(e),n=xt(e),o=r==="fixed",s=ei(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=ct(0);if((i||!o)&&((qt(e)!=="body"||Zr(n))&&(a=Qr(e)),i)){let f=ei(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Pi(n));let c=n&&!i&&!o?dl(n,a):ct(0),u=s.left+a.scrollLeft-l.x-c.x,p=s.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:s.width,height:s.height}}function mo(t){return rt(t).position==="static"}function al(t,e){if(!St(t)||rt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return xt(t)===r&&(r=r.ownerDocument.body),r}function pl(t,e){let r=Pe(t);if(Jr(t))return r;if(!St(t)){let n=It(t);for(;n&&!Sr(n);){if(tt(n)&&!mo(n))return n;n=It(n)}return r}let i=al(t,e);for(;i&&il(i)&&mo(i);)i=al(i,e);return i&&Sr(i)&&mo(i)&&!xr(i)?r:i||nl(t)||r}var Pd=async function(t){let e=this.getOffsetParent||pl,r=this.getDimensions,i=await r(t.floating);return{reference:Dd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Id(t){return rt(t).direction==="rtl"}var Ii={convertOffsetParentRelativeRectToViewportRelativeRect:_d,getDocumentElement:xt,getClippingRect:kd,getOffsetParent:pl,getElementRects:Pd,getClientRects:Ad,getDimensions:Ld,getScale:Er,isElement:tt,isRTL:Id};var fl=Qa,hl=el;var ml=(t,e,r)=>{let i=new Map,n=r??{},o={...Ii,...n.platform,_c:i};return Ja(t,e,{...n,platform:o})};function gl(t){return Nd(t)}function go(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Nd(t){for(let e=t;e;e=go(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=go(t);e;e=go(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||xr(r)||e.tagName==="BODY"))return e}return null}async function yl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ml(t,e,{strategy:i.strategy,platform:{...Ii,getOffsetParent:n=>Ii.getOffsetParent(n,gl)},middleware:[hl({crossAxis:!0}),fl({allowedPlacements:[i.placement]})]})}var Ir=d(y());var Uo=d(H());var vl=d(H(),1);var yo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function bl(t,e){return(0,vl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return ti(t);try{return JSON.parse(r)}catch{return ti(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ri,...e??{}})}function Md(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!_r(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!_r(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!_r(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function _r(t,e){try{return Md(t,e)}catch{return!1}}function ri(t,e){return!_r(t,e)}function ti(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ni(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var xl=d(H(),1);var vo=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:ri,attribute:!1,...e};(0,xl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Mi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Yt=d(H(),1);var $i=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var El=d(N(),1);var Ui=globalThis,$d=Ui.ShadowRoot&&(Ui.ShadyCSS===void 0||Ui.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Sl=(t,e)=>{if($d)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ui.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Fi=class extends El.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Sl(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){yo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function _l(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var wr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Tl,Al=Symbol("constructorPrototype"),wl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),Cl=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var ut=class extends Fi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tl]=new $i(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ol].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[wl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Cl]||(r[Cl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=_l(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],b=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],C=[...g,...b].filter(l).map(v=>v.trim());for(let v of C)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Tl=Ol;wr([(0,Yt.property)()],ut.prototype,"exportpartsPrefix",void 0);wr([bl([])],ut.prototype,"exportpartsPrefixes",void 0);wr([(0,Yt.property)({reflect:!0})],ut.prototype,"exportparts",void 0);wr([(0,Yt.property)()],ut.prototype,"customStylesheet",void 0);wr([(0,Yt.property)()],ut.prototype,"elementToFocus",void 0);wr([(0,Yt.state)()],ut.prototype,"useAdoptedStyleSheets",void 0);function Bi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ii=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Xt=Symbol("internalStores"),Ud=Ni(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Xt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Xt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Xt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Xt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Nt].has(s.store):this[Nt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Nt].set(s,a.subscribe(()=>this.updateFromStores())),this[ii].set(s,[]),Bi(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let p=f=>this[u](f);a.addEventListener(c.eventName,p),this[ii].get(s).push(()=>a.removeEventListener(c.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Nt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Nt].has(s)&&this[Nt].get(s)(),this[Nt].delete(s),(a=this[ii].get(s))===null||a===void 0||a.forEach(l=>l()),this[ii].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Nt,r=Xt,i=ii,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Rl=class extends Ud(ut){};function be(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Fd=typeof Symbol=="function"&&Symbol.observable||"@@observable",kl=Fd,bo=()=>Math.random().toString(36).substring(7).split("").join("."),Bd={INIT:`@@redux/INIT${bo()}`,REPLACE:`@@redux/REPLACE${bo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bo()}`},Vi=Bd;function Hi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function xo(t,e,r){if(typeof t!="function")throw new Error(be(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(be(1));return r(xo)(t,e)}let i=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,T)=>{s.set(T,v)}))}function u(){if(l)throw new Error(be(3));return n}function p(v){if(typeof v!="function")throw new Error(be(4));if(l)throw new Error(be(5));let T=!0;c();let $=a++;return s.set($,v),function(){if(T){if(l)throw new Error(be(6));T=!1,c(),s.delete($),o=null}}}function f(v){if(!Hi(v))throw new Error(be(7));if(typeof v.type>"u")throw new Error(be(8));if(typeof v.type!="string")throw new Error(be(17));if(l)throw new Error(be(9));try{l=!0,n=i(n,v)}finally{l=!1}return(o=s).forEach($=>{$()}),v}function g(v){if(typeof v!="function")throw new Error(be(10));i=v,f({type:Vi.REPLACE})}function b(){let v=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(be(11));function $(){let R=T;R.next&&R.next(u())}return $(),{unsubscribe:v($)}},[kl](){return this}}}return f({type:Vi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:g,[kl]:b}}function Vd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Vi.INIT})>"u")throw new Error(be(12));if(typeof r(void 0,{type:Vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function Ll(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,o;try{Vd(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],g=r[f],b=a[f],C=g(b,l);if(typeof C>"u"){let v=l&&l.type;throw new Error(be(14))}u[f]=C,c=c||C!==b}return c=c||i.length!==Object.keys(a).length,c?u:a}}function ni(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Dl(...t){return e=>(r,i)=>{let n=e(r,i),o=()=>{throw new Error(be(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=ni(...a)(n.dispatch),{...n,dispatch:o}}}function Pl(t){return Hi(t)&&"type"in t&&typeof t.type=="string"}var Hl=Symbol.for("immer-nothing"),Il=Symbol.for("immer-draftable"),Ae=Symbol.for("immer-state");function it(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ue=Object,Tr=Ue.getPrototypeOf,Ki="constructor",Ji="prototype",Ao="configurable",Gi="enumerable",ji="writable",oi="value",dt=t=>!!t&&!!t[Ae];function Fe(t){return t?zl(t)||en(t)||!!t[Il]||!!t[Ki]?.[Il]||tn(t)||rn(t):!1}var Hd=Ue[Ji][Ki].toString(),Nl=new WeakMap;function zl(t){if(!t||!Do(t))return!1;let e=Tr(t);if(e===null||e===Ue[Ji])return!0;let r=Ue.hasOwnProperty.call(e,Ki)&&e[Ki];if(r===Object)return!0;if(!Cr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===Hd}function Qi(t,e,r=!0){li(t)===0?(r?Reflect.ownKeys(t):Ue.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function li(t){let e=t[Ae];return e?e.type_:en(t)?1:tn(t)?2:rn(t)?3:0}var So=(t,e,r=li(t))=>r===2?t.has(e):Ue[Ji].hasOwnProperty.call(t,e),wo=(t,e,r=li(t))=>r===2?t.get(e):t[e],qi=(t,e,r,i=li(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function zd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var en=Array.isArray,tn=t=>t instanceof Map,rn=t=>t instanceof Set,Do=t=>typeof t=="object",Cr=t=>typeof t=="function",Eo=t=>typeof t=="boolean";function jd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Et=t=>t.copy_||t.base_;var Po=t=>t.modified_?t.copy_:t.base_;function Co(t,e){if(tn(t))return new Map(t);if(rn(t))return new Set(t);if(en(t))return Array[Ji].slice.call(t);let r=zl(t);if(e===!0||e==="class_only"&&!r){let i=Ue.getOwnPropertyDescriptors(t);delete i[Ae];let n=Reflect.ownKeys(i);for(let o=0;o<n.length;o++){let s=n[o],a=i[s];a[ji]===!1&&(a[ji]=!0,a[Ao]=!0),(a.get||a.set)&&(i[s]={[Ao]:!0,[ji]:!0,[Gi]:a[Gi],[oi]:t[s]})}return Ue.create(Tr(t),i)}else{let i=Tr(t);if(i!==null&&r)return{...t};let n=Ue.create(i);return Ue.assign(n,t)}}function Io(t,e=!1){return nn(t)||dt(t)||!Fe(t)||(li(t)>1&&Ue.defineProperties(t,{set:zi,add:zi,clear:zi,delete:zi}),Ue.freeze(t),e&&Qi(t,(r,i)=>{Io(i,!0)},!1)),t}function Wd(){it(2)}var zi={[oi]:Wd};function nn(t){return t===null||!Do(t)?!0:Ue.isFrozen(t)}var Yi="MapSet",To="Patches",Ml="ArrayMethods",jl={};function Zt(t){let e=jl[t];return e||it(0,t),e}var $l=t=>!!jl[t];var si,Wl=()=>si,Kd=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$l(Yi)?Zt(Yi):void 0,arrayMethodsPlugin_:$l(Ml)?Zt(Ml):void 0});function Ul(t,e){e&&(t.patchPlugin_=Zt(To),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Oo(t){Ro(t),t.drafts_.forEach(Gd),t.drafts_=null}function Ro(t){t===si&&(si=t.parent_)}var Fl=t=>si=Kd(si,t);function Gd(t){let e=t[Ae];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Bl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ae].modified_&&(Oo(e),it(4)),Fe(t)&&(t=Vl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ae].base_,t,e)}else t=Vl(e,r);return qd(e,t,!0),Oo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Hl?t:void 0}function Vl(t,e){if(nn(e))return e;let r=e[Ae];if(!r)return Xi(e,t.handledSet_,t);if(!on(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ql(r,t)}return r.copy_}function qd(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Io(e,r)}function Kl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var on=(t,e)=>t.scope_===e,Yd=[];function Gl(t,e,r,i){let n=Et(t),o=t.type_;if(i!==void 0&&wo(n,i,o)===e){qi(n,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Qi(n,(l,c)=>{if(dt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??Yd;for(let a of s)qi(n,a,r,o)}function Xd(t,e,r){t.callbacks_.push(function(n){let o=e;if(!o||!on(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Po(o);Gl(t,o.draft_??o,s,r),ql(o,n)})}function ql(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Kl(t)}}function Zd(t,e,r){let{scope_:i}=t;if(dt(r)){let n=r[Ae];on(n,i)&&n.callbacks_.push(function(){Wi(t);let s=Po(n);Gl(t,r,s,e)})}else Fe(r)&&t.callbacks_.push(function(){let o=Et(t);t.type_===3?o.has(r)&&Xi(r,i.handledSet_,i):wo(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Xi(wo(t.copy_,e,t.type_),i.handledSet_,i)})}function Xi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||dt(t)||e.has(t)||!Fe(t)||nn(t)||(e.add(t),Qi(t,(i,n)=>{if(dt(n)){let o=n[Ae];if(on(o,r)){let s=Po(o);qi(t,i,s,t.type_),Kl(o)}}else Fe(n)&&Xi(n,e,r)})),t}function Jd(t,e){let r=en(t),i={type_:r?1:0,scope_:e?e.scope_:Wl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,o=Zi;r&&(n=[i],o=ai);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return i.draft_=a,i.revoke_=s,[a,i]}var Zi={get(t,e){if(e===Ae)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Et(t);if(!So(n,e,t.type_))return ep(t,n,e);let o=n[e];if(t.finalized_||!Fe(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&jd(e))return o;if(o===_o(t.base_,e)||Qd(t,e,o)){Wi(t);let s=t.type_===1?+e:e,a=Lo(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in Et(t)},ownKeys(t){return Reflect.ownKeys(Et(t))},set(t,e,r){let i=Yl(Et(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=_o(Et(t),e),o=n?.[Ae];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(zd(r,n)&&(r!==void 0||So(t.base_,e,t.type_)))return!0;Wi(t),ko(t)}return t.copy_[e]===r&&(r!==void 0||So(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Zd(t,e,r)),!0},deleteProperty(t,e){return Wi(t),_o(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ko(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Et(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[ji]:!0,[Ao]:t.type_!==1||e!=="length",[Gi]:i[Gi],[oi]:r[e]}},defineProperty(){it(11)},getPrototypeOf(t){return Tr(t.base_)},setPrototypeOf(){it(12)}},ai={};for(let t in Zi){let e=Zi[t];ai[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ai.deleteProperty=function(t,e){return ai.set.call(this,t,e,void 0)};ai.set=function(t,e,r){return Zi.set.call(this,t[0],e,r,t[0])};function _o(t,e){let r=t[Ae];return(r?Et(r):t)[e]}function Qd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Fe(r)||r[Ae]?!1:t.baseRefs_.has(r)}function ep(t,e,r){let i=Yl(e,r);return i?oi in i?i[oi]:i.get?.call(t.draft_):void 0}function Yl(t,e){if(!(e in t))return;let r=Tr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Tr(r)}}function ko(t){t.modified_||(t.modified_=!0,t.parent_&&ko(t.parent_))}function Wi(t){t.copy_||(t.assigned_=new Map,t.copy_=Co(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var tp=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Cr(e)&&!Cr(r)){let o=r;r=e;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}Cr(r)||it(6),i!==void 0&&!Cr(i)&&it(7);let n;if(Fe(e)){let o=Fl(this),s=Lo(o,e,void 0),a=!0;try{n=r(s),a=!1}finally{a?Oo(o):Ro(o)}return Ul(o,i),Bl(n,o)}else if(!e||!Do(e)){if(n=r(e),n===void 0&&(n=e),n===Hl&&(n=void 0),this.autoFreeze_&&Io(n,!0),i){let o=[],s=[];Zt(To).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),i(o,s)}return n}else it(1,e)},this.produceWithPatches=(e,r)=>{if(Cr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,n;return[this.produce(e,r,(s,a)=>{i=s,n=a}),i,n]},Eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Fe(t)||it(8),dt(t)&&(t=Xl(t));let e=Fl(this),r=Lo(e,t,void 0);return r[Ae].isManual_=!0,Ro(e),r}finishDraft(t,e){let r=t&&t[Ae];(!r||!r.isManual_)&&it(9);let{scope_:i}=r;return Ul(i,e),Bl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Zt(To).applyPatches_;return dt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Lo(t,e,r,i){let[n,o]=tn(e)?Zt(Yi).proxyMap_(e,r):rn(e)?Zt(Yi).proxySet_(e,r):Jd(e,r);return(r?.scope_??Wl()).drafts_.push(n),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?Xd(r,o,i):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Xl(t){return dt(t)||it(10,t),Zl(t)}function Zl(t){if(!Fe(t)||nn(t))return t;let e=t[Ae],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Co(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Co(t,!0);return Qi(r,(n,o)=>{qi(r,n,Zl(o))},i),e&&(e.finalized_=!1),r}var rp=new tp,No=rp.produce;function Jl(t){return({dispatch:r,getState:i})=>n=>o=>typeof o=="function"?o(r,i,t):n(o)}var Ql=Jl(),ec=Jl;var ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ni:ni.apply(null,arguments)},Zh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},np=t=>t&&typeof t.match=="function";function Mt(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(_t(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Pl(i)&&i.type===t,r}var oc=class ci extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ci.prototype)}static get[Symbol.species](){return ci}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ci(...e[0].concat(this)):new ci(...e.concat(this))}};function tc(t){return Fe(t)?No(t,()=>{}):t}function sn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function op(t){return typeof t=="boolean"}var sp=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new oc;return r&&(op(r)?s.push(Ql):s.push(ec(r.extraArgument))),s},ap="RTK_autoBatch";var rc=t=>e=>{setTimeout(e,t)},lp=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=t(n),s=setTimeout(n,e)},cp=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?lp(window.requestAnimationFrame,100):rc(10):t.type==="callback"?t.queueNotification:rc(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[ap],o=!n,o&&(s||(s=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},up=t=>function(r){let{autoBatch:i=!0}=r??{},n=new oc(t);return i&&n.push(cp(typeof i=="object"?i:void 0)),n};function sc(t){let e=sp(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Hi(r))l=Ll(r);else throw new Error(_t(1));let c;typeof i=="function"?c=i(e):c=e();let u=ni;n&&(u=ip({trace:!1,...typeof n=="object"&&n}));let p=Dl(...c),f=up(p),g=typeof a=="function"?a(f):f(),b=u(...g);return xo(l,s,b)}function ac(t){let e={},r=[],i,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(_t(28));if(a in e)throw new Error(_t(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase(o){return i=o,n}};return t(n),[e,r,i]}function dp(t){return typeof t=="function"}function pp(t,e){let[r,i,n]=ac(e),o;if(dp(t))o=()=>tc(t());else{let a=tc(t);o=()=>a}function s(a=o(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(dt(u)){let g=p(u,l);return g===void 0?u:g}else{if(Fe(u))return No(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=o,s}var fp=(t,e)=>np(t)?t.match(e):t(e);function hp(...t){return e=>t.some(r=>fp(r,e))}var mp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gp=(t=21)=>{let e="",r=t;for(;r--;)e+=mp[Math.random()*64|0];return e},yp=["name","message","stack","code"],Mo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},ic=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},vp=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of yp)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},nc="External signal was aborted",bp=(()=>{function t(e,r,i){let n=Mt(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Mt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=Mt(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||vp)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let g=i?.idGenerator?i.idGenerator(l):gp(),b=new AbortController,C,v;function T(x){v=x,b.abort()}c&&(c.aborted?T(nc):c.addEventListener("abort",()=>T(nc),{once:!0}));let $=(async function(){let x;try{let D=i?.condition?.(l,{getState:p,extra:f});if(Sp(D)&&(D=await D),D===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ee=new Promise((j,te)=>{C=()=>{te({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",C,{once:!0})});u(o(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:p,extra:f}))),x=await Promise.race([ee,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:g,signal:b.signal,abort:T,rejectWithValue:((j,te)=>new Mo(j,te)),fulfillWithValue:((j,te)=>new ic(j,te))})).then(j=>{if(j instanceof Mo)throw j;return j instanceof ic?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(D){x=D instanceof Mo?s(null,g,l,D.payload,D.meta):s(D,g,l)}finally{C&&b.signal.removeEventListener("abort",C)}return i&&!i.dispatchConditionRejection&&s.match(x)&&x.meta.condition||u(x),x})();return Object.assign($,{abort:T,requestId:g,arg:l,unwrap(){return $.then(xp)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:hp(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function xp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Sp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var lc=Symbol.for("rtk-slice-createasyncthunk"),Qh={[lc]:bp};function Ep(t,e){return`${t}/${e}`}function _p({creators:t}={}){let e=t?.asyncThunk?.[lc];return function(i){let{name:n,reducerPath:o=n}=i;if(!n)throw new Error(_t(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(wp()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,R){let D=typeof x=="string"?x:x.type;if(!D)throw new Error(_t(12));if(D in l.sliceCaseReducersByType)throw new Error(_t(13));return l.sliceCaseReducersByType[D]=R,c},addMatcher(x,R){return l.sliceMatchers.push({matcher:x,reducer:R}),c},exposeAction(x,R){return l.actionCreators[x]=R,c},exposeCaseReducer(x,R){return l.sliceCaseReducersByName[x]=R,c}};a.forEach(x=>{let R=s[x],D={reducerName:x,type:Ep(n,x),createNotation:typeof i.reducers=="function"};Tp(R)?Rp(D,R,c,e):Cp(D,R,c)});function u(){let[x={},R=[],D=void 0]=typeof i.extraReducers=="function"?ac(i.extraReducers):[i.extraReducers],ee={...x,...l.sliceCaseReducersByType};return pp(i.initialState,j=>{for(let te in ee)j.addCase(te,ee[te]);for(let te of l.sliceMatchers)j.addMatcher(te.matcher,te.reducer);for(let te of R)j.addMatcher(te.matcher,te.reducer);D&&j.addDefaultCase(D)})}let p=x=>x,f=new Map,g=new WeakMap,b;function C(x,R){return b||(b=u()),b(x,R)}function v(){return b||(b=u()),b.getInitialState()}function T(x,R=!1){function D(j){let te=j[x];return typeof te>"u"&&R&&(te=sn(g,D,v)),te}function ee(j=p){let te=sn(f,R,()=>new WeakMap);return sn(te,j,()=>{let Vr={};for(let[je,Ht]of Object.entries(i.selectors??{}))Vr[je]=Ap(Ht,j,()=>sn(g,j,v),R);return Vr})}return{reducerPath:x,getSelectors:ee,get selectors(){return ee(D)},selectSlice:D}}let $={name:n,reducer:C,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...T(o),injectInto(x,{reducerPath:R,...D}={}){let ee=R??o;return x.inject({reducerPath:ee,reducer:C},D),{...$,...T(ee,!0)}}};return $}}function Ap(t,e,r,i){function n(o,...s){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return n.unwrapped=t,n}var cc=_p();function wp(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Cp({type:t,reducerName:e,createNotation:r},i,n){let o,s;if("reducer"in i){if(r&&!Op(i))throw new Error(_t(17));o=i.reducer,s=i.prepare}else o=i;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?Mt(t,s):Mt(t))}function Tp(t){return t._reducerDefinitionType==="asyncThunk"}function Op(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Rp({type:t,reducerName:e},r,i,n){if(!n)throw new Error(_t(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,o,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:s||an,pending:a||an,rejected:l||an,settled:c||an})}function an(){}var uc="listener",dc="completed",pc="cancelled",em=`task-${pc}`,tm=`task-${dc}`,rm=`${uc}-${pc}`,im=`${uc}-${dc}`;var{assign:fc}=Object;var $o="listenerMiddleware";var kp=fc(Mt(`${$o}/add`),{withTypes:()=>kp}),nm=Mt(`${$o}/removeAll`),Lp=fc(Mt(`${$o}/remove`),{withTypes:()=>Lp});function _t(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Dp=Ni(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),ln=class extends Dp(Object){};window.ftReduxStores||(window.ftReduxStores={});var hc=class t extends ln{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Bi(o))return o;if(n==null)return;let s=cc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=sc({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=ti(s.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Mi,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let p=c(...u.map(n));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];_r(f,u)||this.setState({[p]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var cn=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var un=d(y()),Pp="ft-app-info",Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Or.eventName="authentication-change";var ui=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ui.eventName="ui-locale-changed";var Ip={session:(t,e)=>{(0,un.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new Or(e.payload)),0))}},S=un.FtReduxStore.get({name:Pp,reducers:Ip,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var mc=d(y()),dn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Im=(0,mc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>cn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return dn([(0,Uo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),dn([(0,Uo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),dn([vo({store:S.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),dn([vo({store:S.name})],e.prototype,"uiLocale",void 0),e});var gn=d(y());var Fo=d(y());var Jt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=S.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Rr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Jt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Jt.await()}};var Be=class extends Rr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Fo.CacheRegistry,this.cache=e?n.commonCache:new Fo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var pn=class extends Be{async listMySearches(){let{session:e}=S.getState();return Qs(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var fn=class extends Be{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var hn=class extends Be{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var mn=class extends Be{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var Np="ft-user-assets",Mp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(We).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Vo(t,r,[...Bo(t,r),n]),gc(t,r,1,i),yc(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Vo(t,r,Bo(t,r).map(n=>n.id===i.id?i:n)),yc(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Vo(t,r,Bo(t,r).filter(o=>o.id!==n)),gc(t,r,-1,i)}},vc={[We.SEARCHES]:"savedSearches",[We.BOOKMARKS]:"bookmarks",[We.BOOKS]:void 0,[We.COLLECTIONS]:void 0},Bo=(t,e)=>{var r;let i=vc[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Vo=(t,e,r)=>{let i=vc[e];i&&(t[i]=r)},gc=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===We.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},yc=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Oe=gn.FtReduxStore.get({name:Np,reducers:Mp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(We).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ho=class{constructor(e=new hn,r=new mn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fn,this.savedSearchesService=new pn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,gn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Oe.getState().assetCounts.allAsset[e]!==r.count&&Oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Oe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;e===We.BOOKMARKS&&r&&Oe.actions.clearBookmarkCountByMap(),Oe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oe.actions.bookmarks(r)}}},$p=new Ho;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$p);var zo=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new zo;var qe=d(y());var bc,kr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Up=Symbol("clearAfterUnitTest"),yn=class extends(0,qe.withEventBus)(Be){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[bc]=()=>{this.defaultMessages={},this.cache=new qe.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,qe.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new qe.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof qe.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new kr({loadedContexts:e})),this.dispatchEvent(new kr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new kr({loadedContexts:[e]})),this.dispatchEvent(new kr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,qe.delay)(0).then(()=>i()).catch(()=>null)))}};bc=Up;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Lr=window.FluidTopicsI18nService,vn=window.FluidTopicsCustomI18nService;var xc=d(y()),jo=class{highlightHtml(e,r,i){(0,xc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new jo;var Sc=d(y());var Wo=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Sc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Wo;var Ec=d(y());var di=class{static get(e,r){var i,n,o,s;let a=S.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Ec.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Ko=class{urlToSearchRequest(e){return di.get().parse(e)}searchRequestToUrl(e){return di.get().serialize(e)}};window.FluidTopicsUrlService=new Ko;var At=d(y());var Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qt.eventName="change";var Go=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},_c=new Go;var bn=class t extends At.WithEventBus{static build(){return new t(window.history,_c,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,At.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qt.eventName,e)}currentItem(){return(0,At.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,At.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,At.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,At.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Dr=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var Ac=d(N());var wc=Ac.css`
261
+ `;var Oc=d(N()),Ie=d(H()),rr=d(y());var er=d(y());function Cc(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var xn=class extends Rr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var qo=class t extends er.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new er.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new xn,this.cleanSessionDebouncer=new er.Debouncer,this.reloadDebouncer=new er.Debouncer(500),this.apiProvider=r??(()=>Jt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Cc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ui(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Tc=qo.build();var tr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var pi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new tr(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var xe=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Z=class extends rr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Tc,this.contextRoot=new pi}render(){return Oc.html`
262
262
  <slot></slot>
263
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Fr.addContext(i)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=fc;yt([(0,Pt.property)()],X.prototype,"baseUrl",void 0);yt([(0,Pt.property)()],X.prototype,"tenantId",void 0);yt([(0,Pt.property)()],X.prototype,"apiIntegrationIdentifier",void 0);yt([(0,Pt.property)()],X.prototype,"apiIntegrationAppVersion",void 0);yt([(0,Pt.property)()],X.prototype,"uiLocale",void 0);yt([(0,ar.jsonProperty)(null)],X.prototype,"availableUiLocales",void 0);yt([(0,ar.jsonProperty)(null)],X.prototype,"metadataConfiguration",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"editorMode",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"noCustom",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,Pt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],X.prototype,"noCustomComponent",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"withManualResources",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"navigatorOnline",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"forcedOffline",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"authenticationRequired",void 0);yt([(0,ar.jsonProperty)([])],X.prototype,"messageContexts",void 0);yt([(0,ar.jsonProperty)(void 0)],X.prototype,"session",void 0);var yc=f(b());var vc={"ft-app-context":X};(0,yc.customElements)(vc);var bc=f(H());var Vo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Hr=new Vo;var gp=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},yi=Symbol("i18nAttributes"),xc=Symbol("i18nListAttributes"),bi=Symbol("i18nProperties"),un=Symbol("i18nContexts"),vi=Symbol("i18nUnsubs"),He=(0,jr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?an:Fr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Hr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[yi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[xc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[bi])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[un].set(l,{isCustomContext:a}),this[vi].has(l)||this[vi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[un].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[un].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vi].forEach(o=>o()),this[vi].clear()}}return t=un,r=vi,gp([(0,bc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),dn=class extends He(jr.FtLitElement){},pn=class extends He(jr.FtLitElementRedux){};var Sc=f(b());var zo=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Hr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},vp=new zo;var Ac=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Sc.hasChanged,converter:Hr,...t}),r[yi]=(n=r[yi])!==null&&n!==void 0?n:new Map,r[yi].set(i,e??{})};var je=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?an:Fr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var fn=(e,t)=>(r,i)=>{var n,o;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};r[bi]=(o=r[bi])!==null&&o!==void 0?o:new Map,r[bi].set(i,s)};var Ec=f(N());var wc=Ec.css`
264
- `;var hn=f(N()),mn=f(H()),gn=f(b());var xi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ne=class extends pn{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":hn.nothing:hn.html`
263
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Lr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Z.elementDefinitions={};Z.styles=wc;xe([(0,Ie.property)()],Z.prototype,"baseUrl",void 0);xe([(0,Ie.property)()],Z.prototype,"tenantId",void 0);xe([(0,Ie.property)()],Z.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ie.property)()],Z.prototype,"apiIntegrationAppVersion",void 0);xe([(0,Ie.property)()],Z.prototype,"uiLocale",void 0);xe([(0,rr.jsonProperty)(null)],Z.prototype,"availableUiLocales",void 0);xe([(0,rr.jsonProperty)(null)],Z.prototype,"metadataConfiguration",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"editorMode",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"noCustom",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Z.prototype,"noCustomComponent",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"withManualResources",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"navigatorOnline",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"forcedOffline",void 0);xe([(0,Ie.property)({type:Boolean})],Z.prototype,"authenticationRequired",void 0);xe([(0,rr.jsonProperty)([])],Z.prototype,"messageContexts",void 0);xe([(0,rr.jsonProperty)(void 0)],Z.prototype,"session",void 0);var kc=d(y());var Rc={"ft-app-context":Z};(0,kc.customElements)(Rc);var Lc=d(H());var Yo=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Pr=new Yo;var Vp=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},hi=Symbol("i18nAttributes"),Dc=Symbol("i18nListAttributes"),mi=Symbol("i18nProperties"),Sn=Symbol("i18nContexts"),fi=Symbol("i18nUnsubs"),$t=(0,Ir.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?vn:Lr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:p}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Pr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&o(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[hi])===null||s===void 0||s.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Dc])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(g=>c(u,p,g))})}updateI18nProperties(o){var s;(s=this[mi])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Sn].set(l,{isCustomContext:a}),this[fi].has(l)||this[fi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Sn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Sn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fi].forEach(o=>o()),this[fi].clear()}}return e=Sn,r=fi,Vp([(0,Lc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),En=class extends $t(Ir.FtLitElement){},_n=class extends $t(Ir.FtLitElementRedux){};var Pc=d(y());var Xo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Hp=new Xo;var Ic=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Pc.hasChanged,converter:Pr,...e}),r[hi]=(n=r[hi])!==null&&n!==void 0?n:new Map,r[hi].set(i,t??{})};var Ut=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?vn:Lr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var An=(t,e)=>(r,i)=>{var n,o;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[mi]=(o=r[mi])!==null&&o!==void 0?o:new Map,r[mi].set(i,s)};var Nc=d(N());var Mc=Nc.css`
264
+ `;var wn=d(N()),Cn=d(H()),Tn=d(y());var gi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},nt=class extends _n{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wn.nothing:wn.html`
265
265
  <span class="ft-i18n">
266
266
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
267
267
  </span>
268
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ne.elementDefinitions={};ne.styles=wc;xi([(0,gn.redux)()],ne.prototype,"editorMode",void 0);xi([(0,mn.property)()],ne.prototype,"context",void 0);xi([(0,mn.property)()],ne.prototype,"key",void 0);xi([(0,gn.jsonProperty)([])],ne.prototype,"args",void 0);xi([(0,mn.property)()],ne.prototype,"defaultMessage",void 0);var _c=f(b());var Cc={"ft-i18n":ne};(0,_c.customElements)(Cc);var oe=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},tt=class extends dn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Yt.Debouncer,this.revealDebouncer=new Yt.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Tc.html`
268
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};nt.elementDefinitions={};nt.styles=Mc;gi([(0,Tn.redux)()],nt.prototype,"editorMode",void 0);gi([(0,Cn.property)()],nt.prototype,"context",void 0);gi([(0,Cn.property)()],nt.prototype,"key",void 0);gi([(0,Tn.jsonProperty)([])],nt.prototype,"args",void 0);gi([(0,Cn.property)()],nt.prototype,"defaultMessage",void 0);var Uc=d(y());var $c={"ft-i18n":nt};(0,Uc.customElements)($c);var ot=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends En{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ye.Debouncer,this.revealDebouncer=new Ye.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Fc.html`
269
269
  <div part="container"
270
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
271
  <slot part="slot"></slot>
@@ -274,13 +274,13 @@
274
274
  popover="manual">
275
275
  <div part="tooltip-content" class="ft-tooltip--content">
276
276
  <slot name="text"></slot>
277
- <ft-typography variant="${gt.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
277
+ <ft-typography variant="${ye.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
278
278
  ${(r=this.text)===null||r===void 0?void 0:r.message}
279
279
  </ft-typography>
280
280
  </div>
281
281
  </div>
282
282
  </div>
283
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let 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";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&dl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Yt.designSystemVariables.transitionDuration}, left ${Yt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Yt.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};tt.elementDefinitions={"ft-typography":Q};tt.styles=$a;oe([Ac()],tt.prototype,"text",void 0);oe([(0,Xt.property)({type:Boolean})],tt.prototype,"manual",void 0);oe([(0,Xt.property)({type:Boolean})],tt.prototype,"inline",void 0);oe([(0,Yt.numberProperty)()],tt.prototype,"delay",void 0);oe([(0,Xt.property)()],tt.prototype,"position",void 0);oe([(0,Yt.jsonProperty)([])],tt.prototype,"ignoreMatchingElements",void 0);oe([(0,Xt.queryAssignedNodes)()],tt.prototype,"slotNodes",void 0);oe([(0,Xt.query)(".ft-tooltip--container")],tt.prototype,"container",void 0);oe([(0,Xt.query)(".ft-tooltip")],tt.prototype,"tooltip",void 0);oe([(0,Xt.query)(".ft-tooltip--content")],tt.prototype,"tooltipContent",void 0);oe([(0,Xt.state)()],tt.prototype,"visible",void 0);var Rc=f(b());var Oc={"ft-tooltip":tt};(0,Rc.customElements)(Oc);var Lc=f(N()),se=f(b()),Tt={size:se.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:se.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:se.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:se.FtCssVariableFactory.extend("--ft-icon-material-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:se.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},kc=[Lc.css`
283
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&yl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ye.designSystemVariables.transitionDuration}, left ${Ye.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Ye.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ie.elementDefinitions={"ft-typography":re};ie.styles=za;ot([Ic()],ie.prototype,"text",void 0);ot([(0,Xe.property)({type:Boolean})],ie.prototype,"manual",void 0);ot([(0,Xe.property)({type:Boolean})],ie.prototype,"inline",void 0);ot([(0,Ye.numberProperty)()],ie.prototype,"delay",void 0);ot([(0,Xe.property)()],ie.prototype,"position",void 0);ot([(0,Ye.jsonProperty)([])],ie.prototype,"ignoreMatchingElements",void 0);ot([(0,Xe.queryAssignedNodes)()],ie.prototype,"slotNodes",void 0);ot([(0,Xe.query)(".ft-tooltip--container")],ie.prototype,"container",void 0);ot([(0,Xe.query)(".ft-tooltip")],ie.prototype,"tooltip",void 0);ot([(0,Xe.query)(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);ot([(0,Xe.state)()],ie.prototype,"visible",void 0);var Vc=d(y());var Bc={"ft-tooltip":ie};(0,Vc.customElements)(Bc);var Hc=d(N()),st=d(y()),Re={size:st.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:st.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",st.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:st.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",st.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:st.FtCssVariableFactory.extend("--ft-icon-material-font-family","",st.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:st.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},zc=[Hc.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -289,14 +289,14 @@
289
289
  }
290
290
 
291
291
  :host {
292
- width: ${Tt.size};
293
- height: ${Tt.size};
292
+ width: ${Re.size};
293
+ height: ${Re.size};
294
294
  }
295
295
 
296
296
  i.ft-icon {
297
297
  width: 100%;
298
298
  height: 100%;
299
- font-size: ${Tt.size};
299
+ font-size: ${Re.size};
300
300
  line-height: 1;
301
301
  font-weight: normal;
302
302
  text-transform: none;
@@ -307,33 +307,33 @@
307
307
  text-rendering: auto;
308
308
  -webkit-font-smoothing: antialiased;
309
309
  -moz-osx-font-smoothing: grayscale;
310
- vertical-align: ${Tt.verticalAlign};
310
+ vertical-align: ${Re.verticalAlign};
311
311
  }
312
312
 
313
313
  i.ft-icon.ft-icon--fluid-topics {
314
- font-family: ${Tt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
314
+ font-family: ${Re.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
315
315
 
316
316
  /* Ugly fix because font is broken */
317
- font-size: calc(0.75 * ${Tt.size});
318
- line-height: ${Tt.size};
317
+ font-size: calc(0.75 * ${Re.size});
318
+ line-height: ${Re.size};
319
319
  position: relative;
320
320
  top: -4%;
321
321
  justify-content: center;
322
322
  }
323
323
 
324
324
  .ft-icon--file-format {
325
- font-family: ${Tt.fileFormatFontFamily}, ft-mime, sans-serif;
325
+ font-family: ${Re.fileFormatFontFamily}, ft-mime, sans-serif;
326
326
  }
327
327
 
328
328
  .ft-icon--material {
329
- font-family: ${Tt.materialFontFamily}, "Material Icons", sans-serif;
329
+ font-family: ${Re.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,se.noTextSelect];var It;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(It||(It={}));var Si=f(N()),Ve=f(H()),Dc=f(b()),Nc=f(Ic());var lr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(lr||(lr={}));var v;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(v||(v={}));var Uy=new Map([...["abw"].map(e=>[e,v.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,v.AUDIO]),...["avi"].map(e=>[e,v.AVI]),...["chm","xhs"].map(e=>[e,v.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,v.CODE]),...["csv"].map(e=>[e,v.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,v.DITA]),...["epub"].map(e=>[e,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,v.EXCEL]),...["flac"].map(e=>[e,v.FLAC]),...["gif"].map(e=>[e,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,v.GZIP]),...["html","htm","xhtml"].map(e=>[e,v.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,v.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,v.JPEG]),...["json"].map(e=>[e,v.JSON]),...["m4a","m4p"].map(e=>[e,v.M4A]),...["mov","qt"].map(e=>[e,v.MOV]),...["mp3"].map(e=>[e,v.MP3]),...["mp4","m4v"].map(e=>[e,v.MP4]),...["ogg","oga"].map(e=>[e,v.OGG]),...["pdf","ps"].map(e=>[e,v.PDF]),...["png"].map(e=>[e,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,v.POWERPOINT]),...["rar"].map(e=>[e,v.RAR]),...["stp"].map(e=>[e,v.STP]),...["txt","rtf","md","mdown"].map(e=>[e,v.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,v.VIDEO]),...["wav"].map(e=>[e,v.WAV]),...["wma"].map(e=>[e,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,v.WORD]),...["xml","xsl","rdf"].map(e=>[e,v.XML]),...["yaml","yml","x-yaml"].map(e=>[e,v.YAML]),...["zip"].map(e=>[e,v.ZIP])]);var Fy={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Ai=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},et=class extends Dc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Si.nothing}render(){let t=this.variant&&Object.values(It).includes(this.variant)?this.variant:It.fluid_topics,r=t!==It.material||!!this.value;return Si.html`
332
- <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
333
- ${(0,Nc.unsafeHTML)(this.resolvedIcon)}
331
+ `,st.noTextSelect];var Ne;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ne||(Ne={}));var yi=d(N()),Ft=d(H()),Kc=d(y()),Gc=d(Wc());var ir;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",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="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ir||(ir={}));var h;(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;"})(h||(h={}));var zv=new Map([...["abw"].map(t=>[t,h.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,h.AUDIO]),...["avi"].map(t=>[t,h.AVI]),...["chm","xhs"].map(t=>[t,h.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,h.CODE]),...["csv"].map(t=>[t,h.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,h.DITA]),...["epub"].map(t=>[t,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,h.EXCEL]),...["flac"].map(t=>[t,h.FLAC]),...["gif"].map(t=>[t,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,h.GZIP]),...["html","htm","xhtml"].map(t=>[t,h.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,h.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,h.JPEG]),...["json"].map(t=>[t,h.JSON]),...["m4a","m4p"].map(t=>[t,h.M4A]),...["mov","qt"].map(t=>[t,h.MOV]),...["mp3"].map(t=>[t,h.MP3]),...["mp4","m4v"].map(t=>[t,h.MP4]),...["ogg","oga"].map(t=>[t,h.OGG]),...["pdf","ps"].map(t=>[t,h.PDF]),...["png"].map(t=>[t,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,h.POWERPOINT]),...["rar"].map(t=>[t,h.RAR]),...["stp"].map(t=>[t,h.STP]),...["txt","rtf","md","mdown"].map(t=>[t,h.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,h.VIDEO]),...["wav"].map(t=>[t,h.WAV]),...["wma"].map(t=>[t,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,h.WORD]),...["xml","xsl","rdf"].map(t=>[t,h.XML]),...["yaml","yml","x-yaml"].map(t=>[t,h.YAML]),...["zip"].map(t=>[t,h.ZIP])]);var jv={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var vi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ne=class extends Kc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=yi.nothing}render(){let e=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,r=e!==Ne.material||!!this.value;return yi.html`
332
+ <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
333
+ ${(0,Gc.unsafeHTML)(this.resolvedIcon)}
334
334
  <slot ?hidden=${r}></slot>
335
335
  </i>
336
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case It.file_format:this.resolvedIcon=(t=v[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case It.material:this.resolvedIcon=this.value||Si.nothing;break;default:this.resolvedIcon=(r=lr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};et.elementDefinitions={};et.styles=kc;Ai([(0,Ve.property)()],et.prototype,"variant",void 0);Ai([(0,Ve.property)()],et.prototype,"value",void 0);Ai([(0,Ve.property)({reflect:!0,attribute:"aria-hidden"})],et.prototype,"ariaHidden",void 0);Ai([(0,Ve.state)()],et.prototype,"resolvedIcon",void 0);Ai([(0,Ve.query)("slot")],et.prototype,"slottedContent",void 0);var $c=f(b());var Mc={"ft-icon":et};(0,$c.customElements)(Mc);var Uc=f(N()),Ot=f(b());var Z=f(b());var J={textColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceHigh),backgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-background-color","",Z.designSystemVariables.colorSurface),selectedTextColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",Z.designSystemVariables.colorPrimary),selectedBackgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",Z.designSystemVariables.colorPrimary),borderColor:Z.FtCssVariableFactory.extend("--ft-switch-border-color","",Z.designSystemVariables.colorOutline),borderRadius:Z.FtCssVariableFactory.extend("--ft-switch-border-radius","",Z.designSystemVariables.borderRadiusL),fontSize:Z.FtCssVariableFactory.extend("--ft-switch-font-size","",Ct.fontSize),iconSize:Z.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),rippleColor:Z.FtCssVariableFactory.extend("--ft-switch-ripple-color","",Z.designSystemVariables.colorPrimary),outlineColor:Z.FtCssVariableFactory.extend("--ft-switch-outline-color","",Z.designSystemVariables.colorPrimary)};var pt={borderRadiusLeft:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ot.designSystemVariables.borderRadiusL),borderRadiusRight:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ot.designSystemVariables.borderRadiusL),borderWidthLeft:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Fc=Uc.css`
336
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(e=h[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ne.material:this.resolvedIcon=this.value||yi.nothing;break;default:this.resolvedIcon=(r=ir[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ne.elementDefinitions={};ne.styles=zc;vi([(0,Ft.property)()],ne.prototype,"variant",void 0);vi([(0,Ft.property)()],ne.prototype,"value",void 0);vi([(0,Ft.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);vi([(0,Ft.state)()],ne.prototype,"resolvedIcon",void 0);vi([(0,Ft.query)("slot")],ne.prototype,"slottedContent",void 0);var Yc=d(y());var qc={"ft-icon":ne};(0,Yc.customElements)(qc);var Xc=d(N()),ke=d(y());var J=d(y());var Q={textColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceHigh),backgroundColor:J.FtCssVariableFactory.extend("--ft-switch-background-color","",J.designSystemVariables.colorSurface),selectedTextColor:J.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",J.designSystemVariables.colorPrimary),selectedBackgroundColor:J.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",J.designSystemVariables.colorPrimary),borderColor:J.FtCssVariableFactory.extend("--ft-switch-border-color","",J.designSystemVariables.colorOutline),borderRadius:J.FtCssVariableFactory.extend("--ft-switch-border-radius","",J.designSystemVariables.borderRadiusL),fontSize:J.FtCssVariableFactory.extend("--ft-switch-font-size","",Te.fontSize),iconSize:J.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceMedium),rippleColor:J.FtCssVariableFactory.extend("--ft-switch-ripple-color","",J.designSystemVariables.colorPrimary),outlineColor:J.FtCssVariableFactory.extend("--ft-switch-outline-color","",J.designSystemVariables.colorPrimary)};var fe={borderRadiusLeft:ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",ke.designSystemVariables.borderRadiusL),borderRadiusRight:ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",ke.designSystemVariables.borderRadiusL),borderWidthLeft:ke.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:ke.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:ke.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Zc=Xc.css`
337
337
  .ft-switch-option {
338
338
  position: relative;
339
339
  display: inline-block;
@@ -347,20 +347,20 @@
347
347
  }
348
348
 
349
349
  .ft-switch-option--content {
350
- --switch-option-internal-line-height: calc(${J.fontSize} + 2px);
351
- --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${J.iconSize});
350
+ --switch-option-internal-line-height: calc(${Q.fontSize} + 2px);
351
+ --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${Q.iconSize});
352
352
 
353
353
  border-style: solid;
354
- border-color: ${J.borderColor};
355
- border-width: ${pt.borderWidthVertical} ${pt.borderWidthRight} ${pt.borderWidthVertical} ${pt.borderWidthLeft};
356
- border-radius: ${pt.borderRadiusLeft} ${pt.borderRadiusRight} ${pt.borderRadiusRight} ${pt.borderRadiusLeft};
354
+ border-color: ${Q.borderColor};
355
+ border-width: ${fe.borderWidthVertical} ${fe.borderWidthRight} ${fe.borderWidthVertical} ${fe.borderWidthLeft};
356
+ border-radius: ${fe.borderRadiusLeft} ${fe.borderRadiusRight} ${fe.borderRadiusRight} ${fe.borderRadiusLeft};
357
357
  display: flex;
358
358
  align-items: center;
359
359
  justify-content: center;
360
360
  overflow: hidden;
361
- ${(0,Ot.setVariable)(Tt.size,J.iconSize)};
361
+ ${(0,ke.setVariable)(Re.size,Q.iconSize)};
362
362
  padding: var(--switch-internal-vertical-padding, 6px) var(--switch-internal-horizontal-padding, 8px);
363
- background-color: ${J.backgroundColor};
363
+ background-color: ${Q.backgroundColor};
364
364
  -webkit-mask-image: radial-gradient(white, black);
365
365
  }
366
366
 
@@ -369,32 +369,32 @@
369
369
  }
370
370
 
371
371
  .ft-switch-option--selected .ft-switch-option--content:before {
372
- background-color: ${J.selectedBackgroundColor};
373
- border-radius: ${pt.borderRadiusLeft} ${pt.borderRadiusRight} ${pt.borderRadiusRight} ${pt.borderRadiusLeft};
372
+ background-color: ${Q.selectedBackgroundColor};
373
+ border-radius: ${fe.borderRadiusLeft} ${fe.borderRadiusRight} ${fe.borderRadiusRight} ${fe.borderRadiusLeft};
374
374
  position: absolute;
375
375
  inset: 0;
376
376
  content: "";
377
377
  z-index: 1;
378
- opacity: ${Ot.designSystemVariables.opacityPrimaryOnSurfaceSelected};
378
+ opacity: ${ke.designSystemVariables.opacityPrimaryOnSurfaceSelected};
379
379
  }
380
380
 
381
381
  .ft-switch-option--label {
382
- color: ${J.textColor};
382
+ color: ${Q.textColor};
383
383
  overflow: hidden;
384
384
  white-space: nowrap;
385
385
  text-overflow: ellipsis;
386
386
  display: block;
387
387
  margin: 0 8px;
388
- ${(0,Ot.setVariable)(Ct.fontSize,J.fontSize)};
389
- ${(0,Ot.setVariable)(Ct.lineHeight,"var(--switch-option-internal-content-height)")}
388
+ ${(0,ke.setVariable)(Te.fontSize,Q.fontSize)};
389
+ ${(0,ke.setVariable)(Te.lineHeight,"var(--switch-option-internal-content-height)")}
390
390
  }
391
391
 
392
392
  .ft-switch-option--selected .ft-switch-option--label {
393
- color: ${J.selectedTextColor};
393
+ color: ${Q.selectedTextColor};
394
394
  }
395
395
 
396
396
  .ft-switch-option--focused {
397
- outline: 1px solid ${J.outlineColor};
397
+ outline: 1px solid ${Q.outlineColor};
398
398
  }
399
399
 
400
400
  .ft-switch-option--label[hidden] {
@@ -402,7 +402,7 @@
402
402
  }
403
403
 
404
404
  .ft-switch-option--ripple {
405
- ${(0,Ot.setVariable)(lt.color,J.rippleColor)};
405
+ ${(0,ke.setVariable)(ue.color,Q.rippleColor)};
406
406
  }
407
407
 
408
408
  ft-icon, ft-ripple, ft-typography {
@@ -415,20 +415,20 @@
415
415
 
416
416
  ft-icon {
417
417
  flex-shrink: 0;
418
- color: ${J.iconColor};
418
+ color: ${Q.iconColor};
419
419
  }
420
420
 
421
421
  .ft-switch-option--selected ft-icon {
422
- color: ${J.selectedTextColor};
422
+ color: ${Q.selectedTextColor};
423
423
  }
424
- `;var ae=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Wo=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Ko=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},rt=class extends zr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Ko(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Vr.html`
425
- <label part="label" for="input" class="${(0,Bc.classMap)(t)}"
424
+ `;var at=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Zo=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Jo=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},oe=class extends Mr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new Jo(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Nr.html`
425
+ <label part="label" for="input" class="${(0,Jc.classMap)(e)}"
426
426
  @click=${this.onChange}>
427
427
  <div class="ft-switch-option--content">
428
428
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
429
429
  <ft-typography part="text"
430
430
  variant="button"
431
- class="ft-switch-option--label ${zr.isSafari?"ft-safari-ellipsis-fix":""}"
431
+ class="ft-switch-option--label ${Mr.isSafari?"ft-safari-ellipsis-fix":""}"
432
432
  ?hidden=${!this.hasTextContent()}>
433
433
  <slot @slotchange=${this.onSlotchange}></slot>
434
434
  </ft-typography>
@@ -437,29 +437,29 @@
437
437
  </label>
438
438
  <input id="input" type="radio" class="ft-switch-option--input"
439
439
  .checked=${this.selected}>
440
- `)}addTooltip(t){return this.getLabel().trim().length===0?t:Vr.html`
440
+ `)}addTooltip(e){return this.getLabel().trim().length===0?e:Nr.html`
441
441
  <ft-tooltip part="tooltip"
442
442
  text="${this.getLabel()}"
443
443
  position="${this.tooltipPosition}">
444
- ${t}
444
+ ${e}
445
445
  </ft-tooltip>
446
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Wo(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?Vr.html`
446
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Zo(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?Nr.html`
447
447
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
448
- `:Vr.nothing}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};rt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-tooltip":tt,"ft-icon":et};rt.styles=[zr.safariEllipsisFix,Fc];ae([(0,Dt.property)()],rt.prototype,"value",void 0);ae([(0,Dt.property)()],rt.prototype,"icon",void 0);ae([(0,Dt.property)()],rt.prototype,"iconVariant",void 0);ae([(0,Dt.property)()],rt.prototype,"label",void 0);ae([(0,Dt.property)()],rt.prototype,"tooltipPosition",void 0);ae([(0,Dt.property)({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);ae([(0,Dt.property)({type:Boolean})],rt.prototype,"trailingIcon",void 0);ae([(0,Dt.property)({type:Boolean})],rt.prototype,"unselectable",void 0);ae([(0,Dt.query)(".ft-switch-option--content slot")],rt.prototype,"slottedContent",void 0);ae([(0,Dt.query)(".ft-switch-option--input")],rt.prototype,"input",void 0);ae([(0,Dt.state)()],rt.prototype,"isFocused",void 0);var cr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Go=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Rt=class extends we.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return vn.html`
449
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Hc.classMap)(t)}" role="radiogroup" aria-label="${this.label}">
448
+ `:Nr.nothing}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};oe.elementDefinitions={"ft-ripple":U,"ft-typography":re,"ft-tooltip":ie,"ft-icon":ne};oe.styles=[Mr.safariEllipsisFix,Zc];at([(0,Me.property)()],oe.prototype,"value",void 0);at([(0,Me.property)()],oe.prototype,"icon",void 0);at([(0,Me.property)()],oe.prototype,"iconVariant",void 0);at([(0,Me.property)()],oe.prototype,"label",void 0);at([(0,Me.property)()],oe.prototype,"tooltipPosition",void 0);at([(0,Me.property)({type:Boolean,reflect:!0})],oe.prototype,"selected",void 0);at([(0,Me.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);at([(0,Me.property)({type:Boolean})],oe.prototype,"unselectable",void 0);at([(0,Me.query)(".ft-switch-option--content slot")],oe.prototype,"slottedContent",void 0);at([(0,Me.query)(".ft-switch-option--input")],oe.prototype,"input",void 0);at([(0,Me.state)()],oe.prototype,"isFocused",void 0);var nr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Le=class extends wt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return On.html`
449
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Qc.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
450
450
  <slot @slotchange=${this.onSlotchange}
451
451
  @option-change=${this.onOptionChangeByScript}
452
452
  @option-change-by-user=${this.onOptionChangeByUser}
453
453
  ></slot>
454
454
  </div>
455
- `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.key==" "&&(r=this.options.indexOf(t.target)),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof rt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){var r;(r=t.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Go((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Rt.elementDefinitions={};Rt.styles=vn.css`
455
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof oe&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Qo((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Le.elementDefinitions={};Le.styles=On.css`
456
456
  :host {
457
457
  display: inline-block;
458
458
  }
459
459
 
460
460
  .ft-switch {
461
- border-radius: ${J.borderRadius};
462
- outline-color: ${J.outlineColor};
461
+ border-radius: ${Q.borderRadius};
462
+ outline-color: ${Q.outlineColor};
463
463
  }
464
464
 
465
465
  .ft-switch slot {
@@ -468,43 +468,43 @@
468
468
  }
469
469
 
470
470
  .ft-switch slot::slotted(ft-switch-option) {
471
- ${(0,we.setVariable)(pt.borderRadiusLeft,"0")};
472
- ${(0,we.setVariable)(pt.borderRadiusRight,"0")};
473
- ${(0,we.setVariable)(pt.borderWidthLeft,"0")};
471
+ ${(0,wt.setVariable)(fe.borderRadiusLeft,"0")};
472
+ ${(0,wt.setVariable)(fe.borderRadiusRight,"0")};
473
+ ${(0,wt.setVariable)(fe.borderWidthLeft,"0")};
474
474
  }
475
475
 
476
476
  .ft-switch slot::slotted(ft-switch-option:first-child) {
477
- ${(0,we.setVariable)(pt.borderRadiusLeft,J.borderRadius)};
478
- ${(0,we.setVariable)(pt.borderWidthLeft,"1px")};
477
+ ${(0,wt.setVariable)(fe.borderRadiusLeft,Q.borderRadius)};
478
+ ${(0,wt.setVariable)(fe.borderWidthLeft,"1px")};
479
479
  }
480
480
 
481
481
  .ft-switch slot::slotted(ft-switch-option:last-child) {
482
- ${(0,we.setVariable)(pt.borderRadiusRight,J.borderRadius)};
482
+ ${(0,wt.setVariable)(fe.borderRadiusRight,Q.borderRadius)};
483
483
  }
484
484
 
485
485
  .ft-switch--dense slot::slotted(ft-switch-option) {
486
486
  --switch-internal-vertical-padding: 2px;
487
487
  --switch-internal-horizontal-padding: 4px;
488
488
  }
489
- `;cr([(0,pe.property)({type:Boolean})],Rt.prototype,"dense",void 0);cr([(0,pe.property)({type:Boolean})],Rt.prototype,"unselectable",void 0);cr([(0,pe.property)()],Rt.prototype,"label",void 0);cr([(0,pe.query)(".ft-switch slot")],Rt.prototype,"slottedContent",void 0);cr([(0,pe.state)()],Rt.prototype,"selectedOption",void 0);cr([(0,pe.state)()],Rt.prototype,"displayFocusWhenUsingKeyboard",void 0);cr([(0,pe.query)(".ft-switch")],Rt.prototype,"ftSwitchDiv",void 0);var Vc=f(b());var jc={"ft-switch":Rt,"ft-switch-option":rt};(0,Vc.customElements)(jc);var Kc=f(N()),U=f(b());var zc=f(N()),V=f(b());var C={fontSize:V.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:V.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:V.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:V.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:V.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:V.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:V.FtCssVariableFactory.extend("--ft-input-label-border-color","",V.designSystemVariables.colorOutline),textColor:V.FtCssVariableFactory.extend("--ft-input-label-text-color","",V.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:V.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",V.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:V.FtCssVariableFactory.extend("--ft-input-label-background-color","",V.designSystemVariables.colorSurface),borderRadius:V.FtCssVariableFactory.extend("--ft-input-label-border-radius","",V.designSystemVariables.borderRadiusS),colorError:V.FtCssVariableFactory.external(V.designSystemVariables.colorError,"Design system")},Wc=zc.css`
489
+ `;nr([(0,pt.property)({type:Boolean})],Le.prototype,"dense",void 0);nr([(0,pt.property)({type:Boolean})],Le.prototype,"unselectable",void 0);nr([(0,pt.property)()],Le.prototype,"label",void 0);nr([(0,pt.query)(".ft-switch slot")],Le.prototype,"slottedContent",void 0);nr([(0,pt.state)()],Le.prototype,"selectedOption",void 0);nr([(0,pt.state)()],Le.prototype,"displayFocusWhenUsingKeyboard",void 0);nr([(0,pt.query)(".ft-switch")],Le.prototype,"ftSwitchDiv",void 0);var tu=d(y());var eu={"ft-switch":Le,"ft-switch-option":oe};(0,tu.customElements)(eu);var nu=d(N()),F=d(y());var ru=d(N()),W=d(y());var _={fontSize:W.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:W.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:W.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:W.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:W.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:W.FtCssVariableFactory.extend("--ft-input-label-border-color","",W.designSystemVariables.colorOutline),textColor:W.FtCssVariableFactory.extend("--ft-input-label-text-color","",W.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:W.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",W.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:W.FtCssVariableFactory.extend("--ft-input-label-background-color","",W.designSystemVariables.colorSurface),borderRadius:W.FtCssVariableFactory.extend("--ft-input-label-border-radius","",W.designSystemVariables.borderRadiusS),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},iu=ru.css`
490
490
  .ft-input-label {
491
491
  position: absolute;
492
492
  inset: 0;
493
493
  display: flex;
494
- background-color: ${C.backgroundColor};
495
- border-radius: ${C.borderRadius} ${C.borderRadius} 0 0;
494
+ background-color: ${_.backgroundColor};
495
+ border-radius: ${_.borderRadius} ${_.borderRadius} 0 0;
496
496
  }
497
497
 
498
498
  .ft-input-label--outlined {
499
- border-radius: ${C.borderRadius};
499
+ border-radius: ${_.borderRadius};
500
500
  }
501
501
 
502
502
  .ft-input-label {
503
- border-color: ${C.borderColor};
503
+ border-color: ${_.borderColor};
504
504
  }
505
505
 
506
506
  .ft-input-label.ft-input-label--in-error {
507
- border-color: ${C.colorError}
507
+ border-color: ${_.colorError}
508
508
  }
509
509
 
510
510
  .ft-input-label:before,
@@ -517,7 +517,7 @@
517
517
  }
518
518
 
519
519
  .ft-input-label:before {
520
- width: calc(${C.horizontalSpacing} - 4px);
520
+ width: calc(${_.horizontalSpacing} - 4px);
521
521
  flex-shrink: 0;
522
522
  }
523
523
 
@@ -533,20 +533,20 @@
533
533
  border-bottom-width: 1px;
534
534
  border-bottom-style: solid;
535
535
  border-color: inherit;
536
- color: ${C.textColor};
536
+ color: ${_.textColor};
537
537
  transition: font-size 250ms, line-height 250ms, color 250ms;
538
- max-width: calc(${C.labelMaxWidth} - 2 * (${C.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
538
+ max-width: calc(${_.labelMaxWidth} - 2 * (${_.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
539
539
  text-overflow: ellipsis;
540
- ${(0,V.setVariable)($t.fontSize,C.fontSize)};
541
- ${(0,V.setVariable)($t.lineHeight,C.fontSize)};
540
+ ${(0,W.setVariable)($e.fontSize,_.fontSize)};
541
+ ${(0,W.setVariable)($e.lineHeight,_.fontSize)};
542
542
  }
543
543
 
544
544
  .ft-input-label--in-error .ft-input-label--text {
545
- color: ${C.colorError}
545
+ color: ${_.colorError}
546
546
  }
547
547
 
548
548
  .ft-input-label--disabled .ft-input-label--text {
549
- color: ${C.disabledTextColor};
549
+ color: ${_.disabledTextColor};
550
550
  }
551
551
 
552
552
  .ft-input-label--hidden-text {
@@ -558,24 +558,24 @@
558
558
 
559
559
  .ft-input-label--floating-text {
560
560
  position: absolute;
561
- top: calc(50% - ${$t.lineHeight} / 2);
561
+ top: calc(50% - ${$e.lineHeight} / 2);
562
562
  transition: top 250ms;
563
563
  overflow: hidden;
564
564
  white-space: nowrap;
565
565
  text-overflow: ellipsis;
566
- padding: ${C.verticalSpacing} 4px;
567
- margin: calc(${C.verticalSpacing} * -1) 0;
566
+ padding: ${_.verticalSpacing} 4px;
567
+ margin: calc(${_.verticalSpacing} * -1) 0;
568
568
  max-width: 100%;
569
569
  box-sizing: border-box;
570
570
  }
571
571
 
572
572
  .ft-input-label--raised .ft-input-label--text {
573
- ${(0,V.setVariable)($t.fontSize,C.raisedFontSize)};
574
- ${(0,V.setVariable)($t.lineHeight,C.raisedFontSize)};
573
+ ${(0,W.setVariable)($e.fontSize,_.raisedFontSize)};
574
+ ${(0,W.setVariable)($e.lineHeight,_.raisedFontSize)};
575
575
  }
576
576
 
577
577
  .ft-input-label--raised .ft-input-label--floating-text {
578
- top: ${C.verticalSpacing};
578
+ top: ${_.verticalSpacing};
579
579
  }
580
580
 
581
581
  .ft-input-label--outlined .ft-input-label--text,
@@ -588,27 +588,27 @@
588
588
  .ft-input-label--outlined:before {
589
589
  border-left-width: 1px;
590
590
  border-left-style: solid;
591
- border-radius: ${C.borderRadius} 0 0 ${C.borderRadius};
591
+ border-radius: ${_.borderRadius} 0 0 ${_.borderRadius};
592
592
  }
593
593
 
594
594
  .ft-input-label--outlined:after {
595
595
  border-right-width: 1px;
596
596
  border-right-style: solid;
597
- border-radius: 0 ${C.borderRadius} ${C.borderRadius} 0;
597
+ border-radius: 0 ${_.borderRadius} ${_.borderRadius} 0;
598
598
  }
599
599
 
600
600
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
601
601
  padding: 2px 4px;
602
- z-index: ${C.raisedZIndex};
603
- background-color: ${C.backgroundColor};
604
- border-radius: ${C.borderRadius};
605
- top: calc((${$t.lineHeight} / -2) + 2px);
602
+ z-index: ${_.raisedZIndex};
603
+ background-color: ${_.backgroundColor};
604
+ border-radius: ${_.borderRadius};
605
+ top: calc((${$e.lineHeight} / -2) + 2px);
606
606
  }
607
607
 
608
608
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
609
609
  border-top: none;
610
610
  }
611
- `;var B={fontSize:U.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:U.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:U.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:U.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:U.FtCssVariableFactory.extend("--ft-text-area-helper-color","",U.designSystemVariables.colorOnSurfaceMedium),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:U.FtCssVariableFactory.external(U.designSystemVariables.borderRadiusS,"Design system"),colorError:U.FtCssVariableFactory.external(U.designSystemVariables.colorError,"Design system")},Gc=Kc.css`
611
+ `;var V={fontSize:F.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:F.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:F.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:F.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:F.FtCssVariableFactory.extend("--ft-text-area-helper-color","",F.designSystemVariables.colorOnSurfaceMedium),colorPrimary:F.FtCssVariableFactory.external(F.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:F.FtCssVariableFactory.external(F.designSystemVariables.borderRadiusS,"Design system"),colorError:F.FtCssVariableFactory.external(F.designSystemVariables.colorError,"Design system")},ou=nu.css`
612
612
  *:focus {
613
613
  outline: none;
614
614
  }
@@ -620,10 +620,10 @@
620
620
  }
621
621
 
622
622
  ft-input-label {
623
- ${(0,U.setVariable)(C.fontSize,B.fontSize)};
624
- ${(0,U.setVariable)(C.raisedFontSize,B.labelSize)};
625
- ${(0,U.setVariable)(C.verticalSpacing,B.verticalSpacing)};
626
- ${(0,U.setVariable)(C.horizontalSpacing,B.horizontalSpacing)};
623
+ ${(0,F.setVariable)(_.fontSize,V.fontSize)};
624
+ ${(0,F.setVariable)(_.raisedFontSize,V.labelSize)};
625
+ ${(0,F.setVariable)(_.verticalSpacing,V.verticalSpacing)};
626
+ ${(0,F.setVariable)(_.horizontalSpacing,V.horizontalSpacing)};
627
627
  }
628
628
 
629
629
  .ft-text-area--main-panel {
@@ -641,8 +641,8 @@
641
641
  }
642
642
 
643
643
  .ft-text-area--input-panel ft-ripple {
644
- ${(0,U.setVariable)(lt.opacityContentOnSurfaceHover,"0.08")};
645
- ${(0,U.setVariable)(lt.opacityContentOnSurfacePressed,"0.04")};
644
+ ${(0,F.setVariable)(ue.opacityContentOnSurfaceHover,"0.08")};
645
+ ${(0,F.setVariable)(ue.opacityContentOnSurfacePressed,"0.04")};
646
646
  }
647
647
 
648
648
  .ft-text-area--input {
@@ -654,12 +654,12 @@
654
654
  align-self: stretch;
655
655
  resize: none;
656
656
 
657
- ${(0,U.setVariable)(Wt.fontSize,B.fontSize)};
658
- ${(0,U.setVariable)(Wt.lineHeight,B.fontSize)};
659
- color: ${B.colorOnSurface};
657
+ ${(0,F.setVariable)(Ke.fontSize,V.fontSize)};
658
+ ${(0,F.setVariable)(Ke.lineHeight,V.fontSize)};
659
+ color: ${V.colorOnSurface};
660
660
 
661
- padding: 0 ${B.horizontalSpacing};
662
- margin: calc(${B.verticalSpacing} + ${B.labelSize} / 2) 0 ${B.verticalSpacing} 0;
661
+ padding: 0 ${V.horizontalSpacing};
662
+ margin: calc(${V.verticalSpacing} + ${V.labelSize} / 2) 0 ${V.verticalSpacing} 0;
663
663
 
664
664
  border: none;
665
665
  background: none;
@@ -668,7 +668,7 @@
668
668
  }
669
669
 
670
670
  .ft-text-area--disabled .ft-text-area--input {
671
- color: ${B.colorOnSurfaceDisabled};
671
+ color: ${V.colorOnSurfaceDisabled};
672
672
  }
673
673
 
674
674
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -676,39 +676,39 @@
676
676
  }
677
677
 
678
678
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
679
- ${(0,U.setVariable)(C.borderColor,B.colorPrimary)};
680
- ${(0,U.setVariable)(C.textColor,B.colorPrimary)};
679
+ ${(0,F.setVariable)(_.borderColor,V.colorPrimary)};
680
+ ${(0,F.setVariable)(_.textColor,V.colorPrimary)};
681
681
  }
682
682
 
683
683
  .ft-text-area--filled .ft-text-area--input-panel {
684
- border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
684
+ border-radius: ${V.borderRadiusS} ${V.borderRadiusS} 0 0;
685
685
  }
686
686
 
687
687
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
688
688
  align-self: stretch;
689
- margin-bottom: ${B.verticalSpacing};
690
- margin-top: calc(${B.labelSize} + 2 * ${B.verticalSpacing});
689
+ margin-bottom: ${V.verticalSpacing};
690
+ margin-top: calc(${V.labelSize} + 2 * ${V.verticalSpacing});
691
691
  }
692
692
 
693
693
  .ft-text-area--outlined .ft-text-area--input-panel {
694
- border-radius: ${B.borderRadiusS};
694
+ border-radius: ${V.borderRadiusS};
695
695
  }
696
696
 
697
697
  .ft-text-area--helper-text {
698
- padding: 0 12px 0 ${B.horizontalSpacing};
699
- color: ${B.helperColor};
698
+ padding: 0 12px 0 ${V.horizontalSpacing};
699
+ color: ${V.helperColor};
700
700
  }
701
701
 
702
702
  .ft-text-area--in-error .ft-text-area--input,
703
703
  .ft-text-area--in-error .ft-text-area--helper-text {
704
- color: ${B.colorError};
704
+ color: ${V.colorError};
705
705
  }
706
706
 
707
707
  ft-resizer {
708
708
  position: absolute;
709
709
  bottom: 0;
710
710
  }
711
- `;var An=f(N()),le=f(H()),ou=f(be()),he=f(b());var bn=f(N()),Bt=f(H()),xn=f(b());var Yc=f(N()),Wr=f(b()),qc={colorOutline:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.colorOnSurfaceMedium,"Design system")},Xc=Yc.css`
711
+ `;var Pn=d(N()),lt=d(H()),yu=d(bt()),ht=d(y());var kn=d(N()),Ve=d(H()),Ln=d(y());var au=d(N()),$r=d(y()),su={colorOutline:$r.FtCssVariableFactory.external($r.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:$r.FtCssVariableFactory.external($r.designSystemVariables.colorOnSurfaceMedium,"Design system")},lu=au.css`
712
712
  :host {
713
713
  display: block;
714
714
  }
@@ -719,18 +719,18 @@
719
719
 
720
720
  ft-icon {
721
721
  transform: rotate(-45deg);
722
- color: ${qc.colorOutline};
722
+ color: ${su.colorOutline};
723
723
  }
724
724
 
725
725
  .ft-resizer--dragging ft-icon,
726
726
  .ft-resizer:hover ft-icon,
727
727
  [role="button"][aria-pressed="true"] ft-icon{
728
- color: ${qc.colorOnSurfaceMedium};
728
+ color: ${su.colorOnSurfaceMedium};
729
729
  }
730
- `;var fe=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},yn=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},mt=class extends xn.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=It.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return bn.html`
730
+ `;var ft=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Rn=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},ge=class extends Ln.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ne.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return kn.html`
731
731
  <style>
732
732
  .ft-resizer {
733
- cursor: ${(0,bn.unsafeCSS)(this.cursor)}
733
+ cursor: ${(0,kn.unsafeCSS)(this.cursor)}
734
734
  }
735
735
  </style>
736
736
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -742,26 +742,26 @@
742
742
  @keydown=${this.initKeydownPress}>
743
743
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
744
744
  </div>
745
- `}initDragFromMouse(t){t.detail>0&&this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let r=t.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=t.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new yn(this.fixedWidth,this.fixedHeight)))}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new yn(i,n))}};mt.elementDefinitions={"ft-icon":et};mt.styles=[xn.noTextSelect,Xc];fe([(0,Bt.property)({type:Number})],mt.prototype,"initialWidth",void 0);fe([(0,Bt.property)({type:Number})],mt.prototype,"initialHeight",void 0);fe([(0,Bt.property)()],mt.prototype,"icon",void 0);fe([(0,Bt.property)()],mt.prototype,"iconVariant",void 0);fe([(0,Bt.property)()],mt.prototype,"cursor",void 0);fe([(0,Bt.property)()],mt.prototype,"ariaLabel",void 0);fe([(0,Bt.state)()],mt.prototype,"dragging",void 0);fe([(0,Bt.state)()],mt.prototype,"isAriaPressed",void 0);fe([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromMouse",null);fe([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromTouch",null);var Jc=f(b());var Zc={"ft-resizer":mt};(0,Jc.customElements)(Zc);var Sn=f(H());var qo=f(N()),Yo=f(H());function Qc(e,t,r){return e?t(e):r?.(e)}var eu=f(be()),ru=f(b()),tu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ur=class extends ru.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return qo.html`
746
- <div class="${(0,eu.classMap)(this.inputLabelClasses)}">
747
- ${Qc(this.text,()=>qo.html`
745
+ `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new Rn(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new Rn(i,n))}};ge.elementDefinitions={"ft-icon":ne};ge.styles=[Ln.noTextSelect,lu];ft([(0,Ve.property)({type:Number})],ge.prototype,"initialWidth",void 0);ft([(0,Ve.property)({type:Number})],ge.prototype,"initialHeight",void 0);ft([(0,Ve.property)()],ge.prototype,"icon",void 0);ft([(0,Ve.property)()],ge.prototype,"iconVariant",void 0);ft([(0,Ve.property)()],ge.prototype,"cursor",void 0);ft([(0,Ve.property)()],ge.prototype,"ariaLabel",void 0);ft([(0,Ve.state)()],ge.prototype,"dragging",void 0);ft([(0,Ve.state)()],ge.prototype,"isAriaPressed",void 0);ft([(0,Ve.eventOptions)({passive:!0})],ge.prototype,"initDragFromMouse",null);ft([(0,Ve.eventOptions)({passive:!0})],ge.prototype,"initDragFromTouch",null);var uu=d(y());var cu={"ft-resizer":ge};(0,uu.customElements)(cu);var Dn=d(H());var es=d(N()),ts=d(H());function du(t,e,r){return t?e(t):r?.(t)}var fu=d(bt()),hu=d(y()),pu=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},or=class extends hu.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return es.html`
746
+ <div class="${(0,fu.classMap)(this.inputLabelClasses)}">
747
+ ${du(this.text,()=>es.html`
748
748
  <div class="ft-input-label--text ft-typography--caption">
749
749
  <label class="ft-input-label--floating-text">${this.text}</label>
750
750
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
751
751
  </div>
752
752
  `)}
753
753
  </div>
754
- `}};ur.elementDefinitions={};tu([(0,Yo.property)({type:String})],ur.prototype,"text",void 0);tu([(0,Yo.property)({type:Boolean})],ur.prototype,"raised",void 0);var Xo=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Ht=class extends ur{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ht.elementDefinitions={};Ht.styles=[Li,Wc];Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"outlined",void 0);Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"error",void 0);Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"disabled",void 0);var nu=f(b());var iu={"ft-input-label":Ht};(0,nu.customElements)(iu);var Zt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ut=class extends(0,he.toFtFormComponent)(he.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return An.html`
754
+ `}};or.elementDefinitions={};pu([(0,ts.property)({type:String})],or.prototype,"text",void 0);pu([(0,ts.property)({type:Boolean})],or.prototype,"raised",void 0);var rs=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},He=class extends or{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};He.elementDefinitions={};He.styles=[Ci,iu];rs([(0,Dn.property)({type:Boolean})],He.prototype,"outlined",void 0);rs([(0,Dn.property)({type:Boolean})],He.prototype,"error",void 0);rs([(0,Dn.property)({type:Boolean})],He.prototype,"disabled",void 0);var gu=d(y());var mu={"ft-input-label":He};(0,gu.customElements)(mu);var Ze=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},pe=class extends(0,ht.toFtFormComponent)(ht.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Pn.html`
755
755
  <style>
756
756
  .ft-text-area--main-panel {
757
- height: calc(4 * ${B.verticalSpacing} + ${B.labelSize} + ${B.fontSize} + ${this.height}px);
757
+ height: calc(4 * ${V.verticalSpacing} + ${V.labelSize} + ${V.fontSize} + ${this.height}px);
758
758
  }
759
759
 
760
760
  ft-resizer {
761
761
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
762
762
  }
763
763
  </style>
764
- <div class="${(0,ou.classMap)(t)}">
764
+ <div class="${(0,yu.classMap)(e)}">
765
765
  <div class="ft-text-area--main-panel">
766
766
  <ft-input-label text="${this.label}"
767
767
  ?disabled=${this.disabled}
@@ -771,7 +771,7 @@
771
771
  aria-hidden="true"
772
772
  ></ft-input-label>
773
773
  <div class="ft-text-area--input-panel">
774
- ${this.outlined?null:An.html`
774
+ ${this.outlined?null:Pn.html`
775
775
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
776
776
  `}
777
777
  <textarea
@@ -791,12 +791,12 @@
791
791
  cursor="ns-resize"
792
792
  ariaLabel="Resize text area"></ft-resizer>
793
793
  </div>
794
- ${this.helper?An.html`
795
- <ft-typography class="ft-text-area--helper-text" variant="${gt.caption}">
794
+ ${this.helper?Pn.html`
795
+ <ft-typography class="ft-text-area--helper-text" variant="${ye.caption}">
796
796
  ${this.helper}
797
797
  </ft-typography>`:void 0}
798
798
  </div>
799
- `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&t.detail.height<this.maxHeight)&&(this.height=t.detail.height)}};ut.elementDefinitions={"ft-input-label":Ht,"ft-resizer":mt,"ft-ripple":$,"ft-typography":Q};ut.styles=[wr,Gc];Zt([(0,le.property)({type:String})],ut.prototype,"label",void 0);Zt([(0,le.property)({reflect:!0})],ut.prototype,"value",void 0);Zt([(0,le.property)({type:String})],ut.prototype,"helper",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"outlined",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"disabled",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"error",void 0);Zt([(0,he.numberProperty)({reflect:!0})],ut.prototype,"height",void 0);Zt([(0,he.numberProperty)()],ut.prototype,"maxHeight",void 0);Zt([(0,le.query)("textarea")],ut.prototype,"textarea",void 0);Zt([(0,le.state)()],ut.prototype,"focused",void 0);Zt([(0,he.ignoreComposingEvents)()],ut.prototype,"onKeyDown",null);Zt([(0,he.ignoreComposingEvents)()],ut.prototype,"liveUpdateValueFromInputField",null);var au=f(b());var su={"ft-text-area":ut};(0,au.customElements)(su);var Pu=f(Zo());var ve=f(b());var cu=f(N()),Ei=f(b()),dr={color:Ei.FtCssVariableFactory.extend("--ft-loader-color","",Ei.designSystemVariables.colorPrimary),size:Ei.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},uu=cu.css`
799
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};pe.elementDefinitions={"ft-input-label":He,"ft-resizer":ge,"ft-ripple":U,"ft-typography":re};pe.styles=[br,ou];Ze([(0,lt.property)({type:String})],pe.prototype,"label",void 0);Ze([(0,lt.property)({reflect:!0})],pe.prototype,"value",void 0);Ze([(0,lt.property)({type:String})],pe.prototype,"helper",void 0);Ze([(0,lt.property)({type:Boolean})],pe.prototype,"outlined",void 0);Ze([(0,lt.property)({type:Boolean})],pe.prototype,"disabled",void 0);Ze([(0,lt.property)({type:Boolean})],pe.prototype,"error",void 0);Ze([(0,ht.numberProperty)({reflect:!0})],pe.prototype,"height",void 0);Ze([(0,ht.numberProperty)()],pe.prototype,"maxHeight",void 0);Ze([(0,lt.query)("textarea")],pe.prototype,"textarea",void 0);Ze([(0,lt.state)()],pe.prototype,"focused",void 0);Ze([(0,ht.ignoreComposingEvents)()],pe.prototype,"onKeyDown",null);Ze([(0,ht.ignoreComposingEvents)()],pe.prototype,"liveUpdateValueFromInputField",null);var bu=d(y());var vu={"ft-text-area":pe};(0,bu.customElements)(vu);var ju=d(is());var yt=d(y());var Su=d(N()),bi=d(y()),sr={color:bi.FtCssVariableFactory.extend("--ft-loader-color","",bi.designSystemVariables.colorPrimary),size:bi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Eu=Su.css`
800
800
  :host {
801
801
  line-height: 0;
802
802
  }
@@ -805,8 +805,8 @@
805
805
  display: inline-block;
806
806
  position: relative;
807
807
 
808
- width: ${dr.size};
809
- height: ${dr.size};
808
+ width: ${sr.size};
809
+ height: ${sr.size};
810
810
  }
811
811
 
812
812
  .ft-loader div {
@@ -815,7 +815,7 @@
815
815
  width: 25%;
816
816
  height: 25%;
817
817
  border-radius: 50%;
818
- background: ${dr.color};
818
+ background: ${sr.color};
819
819
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
820
820
  }
821
821
 
@@ -862,17 +862,17 @@
862
862
  transform: translate(0, 0);
863
863
  }
864
864
  100% {
865
- transform: translate(calc(0.35 * ${dr.size}), 0);
865
+ transform: translate(calc(0.35 * ${sr.size}), 0);
866
866
  }
867
867
  }
868
- `;var du=f(N()),pu=f(b());var pr=class extends pu.FtLitElement{render(){return du.html`
868
+ `;var _u=d(N()),Au=d(y());var ar=class extends Au.FtLitElement{render(){return _u.html`
869
869
  <div class="ft-loader">
870
870
  <div></div>
871
871
  <div></div>
872
872
  <div></div>
873
873
  <div></div>
874
874
  </div>
875
- `}};pr.styles=uu;var hu=f(b());var fu={"ft-loader":pr};(0,hu.customElements)(fu);var ze=f(N()),En=f(be()),F=f(H());var me=e=>e??at;var vu=f(N()),R=f(b());var mu=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),j={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:mu,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ct.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",mu),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},gu=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),Jo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:gu,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gu)},ge={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yu=vu.css`
875
+ `}};ar.styles=Eu;var Cu=d(y());var wu={"ft-loader":ar};(0,Cu.customElements)(wu);var Bt=d(N()),In=d(bt()),B=d(H());var mt=t=>t??ce;var Ru=d(N()),O=d(y());var Tu=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),z={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:Tu,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",Te.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",Tu),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},Ou=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),ns={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:Ou,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ou)},gt={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ku=Ru.css`
876
876
  :host {
877
877
  display: inline-block;
878
878
  max-width: 100%;
@@ -883,7 +883,7 @@
883
883
  box-shadow: 0px 0px 0px transparent;
884
884
  border: 0px solid transparent;
885
885
  text-shadow: 0px 0px 0px transparent;
886
- font-size: ${j.fontSize};
886
+ font-size: ${z.fontSize};
887
887
  text-decoration: none;
888
888
  }
889
889
 
@@ -903,7 +903,7 @@
903
903
  }
904
904
 
905
905
  .ft-button:focus-visible {
906
- outline: 2px solid ${R.designSystemVariables.colorPrimary};
906
+ outline: 2px solid ${O.designSystemVariables.colorPrimary};
907
907
  outline-offset: 2px;
908
908
  }
909
909
 
@@ -917,31 +917,31 @@
917
917
  border: none;
918
918
  pointer-events: auto;
919
919
 
920
- --button-internal-line-height: max(calc(${j.fontSize} + 2px), ${j.iconSize});
921
- --button-internal-color: ${j.color};
922
- ${(0,R.setVariable)(Tt.size,j.iconSize)};
923
- ${(0,R.setVariable)(lt.color,j.rippleColor)};
924
- ${(0,R.setVariable)(lt.borderRadius,j.borderRadius)};
920
+ --button-internal-line-height: max(calc(${z.fontSize} + 2px), ${z.iconSize});
921
+ --button-internal-color: ${z.color};
922
+ ${(0,O.setVariable)(Re.size,z.iconSize)};
923
+ ${(0,O.setVariable)(ue.color,z.rippleColor)};
924
+ ${(0,O.setVariable)(ue.borderRadius,z.borderRadius)};
925
925
 
926
- border-radius: ${j.borderRadius};
927
- padding: ${j.verticalPadding} ${j.horizontalPadding};
928
- background-color: ${j.backgroundColor};
926
+ border-radius: ${z.borderRadius};
927
+ padding: ${z.verticalPadding} ${z.horizontalPadding};
928
+ background-color: ${z.backgroundColor};
929
929
  color: var(--button-internal-color);
930
930
  }
931
931
 
932
932
  .ft-button.ft-button--outlined {
933
933
  border: 1px solid var(--button-internal-color);
934
- padding: calc(${j.verticalPadding} - 1px) calc(${j.horizontalPadding} - 1px);
934
+ padding: calc(${z.verticalPadding} - 1px) calc(${z.horizontalPadding} - 1px);
935
935
  }
936
936
 
937
937
  .ft-button.ft-button--dense {
938
- padding: ${ge.verticalPadding} ${ge.horizontalPadding};
939
- border-radius: ${ge.borderRadius};
940
- ${(0,R.setVariable)(lt.borderRadius,ge.borderRadius)};
938
+ padding: ${gt.verticalPadding} ${gt.horizontalPadding};
939
+ border-radius: ${gt.borderRadius};
940
+ ${(0,O.setVariable)(ue.borderRadius,gt.borderRadius)};
941
941
  }
942
942
 
943
943
  .ft-button.ft-button--dense.ft-button--outlined {
944
- padding: calc(${ge.verticalPadding} - 1px) calc(${ge.horizontalPadding} - 1px);
944
+ padding: calc(${gt.verticalPadding} - 1px) calc(${gt.horizontalPadding} - 1px);
945
945
  }
946
946
 
947
947
  .ft-button:not([disabled]):hover {
@@ -949,22 +949,22 @@
949
949
  }
950
950
 
951
951
  .ft-button--round {
952
- border-radius: calc(var(--button-internal-line-height) / 2 + ${j.verticalPadding});
952
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${z.verticalPadding});
953
953
  }
954
954
 
955
955
  .ft-button--round.ft-button--dense {
956
- border-radius: calc(var(--button-internal-line-height) / 2 + ${ge.verticalPadding});
956
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${gt.verticalPadding});
957
957
  }
958
958
 
959
959
  .ft-button[disabled] {
960
960
  filter: grayscale(1);
961
- opacity: ${j.opacityDisabled};
961
+ opacity: ${z.opacityDisabled};
962
962
  }
963
963
 
964
964
  .ft-button.ft-button--primary {
965
- background-color: ${Jo.backgroundColor};
966
- --button-internal-color: ${Jo.color};
967
- ${(0,R.setVariable)(lt.color,Jo.rippleColor)};
965
+ background-color: ${ns.backgroundColor};
966
+ --button-internal-color: ${ns.color};
967
+ ${(0,O.setVariable)(ue.color,ns.rippleColor)};
968
968
  }
969
969
 
970
970
  .ft-button--label {
@@ -973,13 +973,13 @@
973
973
  white-space: nowrap;
974
974
  text-overflow: ellipsis;
975
975
  display: block;
976
- margin: 0 ${j.iconPadding};
977
- ${(0,R.setVariable)(Ct.fontSize,"1em")};
978
- ${(0,R.setVariable)(Ct.lineHeight,"var(--button-internal-line-height)")};
976
+ margin: 0 ${z.iconPadding};
977
+ ${(0,O.setVariable)(Te.fontSize,"1em")};
978
+ ${(0,O.setVariable)(Te.lineHeight,"var(--button-internal-line-height)")};
979
979
  }
980
980
 
981
981
  .ft-button--dense .ft-button--label {
982
- margin: 0 ${ge.iconPadding};
982
+ margin: 0 ${gt.iconPadding};
983
983
  }
984
984
 
985
985
  .ft-button--label.ft-button--label-no-text {
@@ -992,13 +992,13 @@
992
992
  }
993
993
 
994
994
  .ft-button--label[hidden] + [part="icon"] {
995
- margin: 0 calc(${j.horizontalPadding} * -1);
996
- padding: 0 ${j.verticalPadding};
995
+ margin: 0 calc(${z.horizontalPadding} * -1);
996
+ padding: 0 ${z.verticalPadding};
997
997
  }
998
998
 
999
999
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
1000
- margin: 0 calc(${ge.horizontalPadding} * -1);
1001
- padding: 0 ${ge.verticalPadding};
1000
+ margin: 0 calc(${gt.horizontalPadding} * -1);
1001
+ padding: 0 ${gt.verticalPadding};
1002
1002
  }
1003
1003
 
1004
1004
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -1006,51 +1006,51 @@
1006
1006
  }
1007
1007
 
1008
1008
  ft-loader {
1009
- ${(0,R.setVariable)(dr.size,j.iconSize)};
1010
- ${(0,R.setVariable)(dr.color,"var(--button-internal-color)")};
1009
+ ${(0,O.setVariable)(sr.size,z.iconSize)};
1010
+ ${(0,O.setVariable)(sr.color,"var(--button-internal-color)")};
1011
1011
  }
1012
- `;var z=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},I=class e extends(0,ve.toFtFormComponent)(ve.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ve.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=ze.html`
1012
+ `;var K=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},P=class t extends(0,yt.toFtFormComponent)(yt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":yt.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Bt.html`
1013
1013
  <ft-ripple part="ripple"
1014
1014
  ?disabled=${this.isDisabled()}
1015
1015
  ?activated=${this.activated}
1016
1016
  ></ft-ripple>
1017
1017
  <ft-typography part="label"
1018
- variant="${gt.button}"
1018
+ variant="${ye.button}"
1019
1019
  element="span"
1020
- class="${(0,En.classMap)(n)}">
1020
+ class="${(0,In.classMap)(n)}">
1021
1021
  <slot></slot>
1022
1022
  </ft-typography>
1023
1023
  ${this.resolveIcon()}
1024
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?ze.html`
1024
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Bt.html`
1025
1025
  <a href="${s}"
1026
- target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1026
+ target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1027
1027
  part="button"
1028
- class="${(0,En.classMap)(this.buttonClasses)}"
1029
- aria-label="${me((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
1028
+ class="${(0,In.classMap)(this.buttonClasses)}"
1029
+ aria-label="${mt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
1030
1030
  ?disabled=${this.isDisabled()}>
1031
1031
  ${o}
1032
1032
  </a>
1033
- `:ze.html`
1033
+ `:Bt.html`
1034
1034
  <button part="button"
1035
- class="${(0,En.classMap)(this.buttonClasses)}"
1036
- aria-label="${me((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
1037
- aria-haspopup="${me(this.ariaHasPopup)}"
1038
- aria-pressed="${me(this.ariaPressed)}"
1035
+ class="${(0,In.classMap)(this.buttonClasses)}"
1036
+ aria-label="${mt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
1037
+ aria-haspopup="${mt(this.ariaHasPopup)}"
1038
+ aria-pressed="${mt(this.ariaPressed)}"
1039
1039
  ?disabled=${this.isDisabled()}>
1040
1040
  ${o}
1041
1041
  </button>
1042
- `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?ze.html`
1042
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Bt.html`
1043
1043
  <ft-tooltip part="tooltip"
1044
1044
  text="${this.label}"
1045
1045
  position="${this.tooltipPosition}">
1046
- ${t}
1046
+ ${e}
1047
1047
  </ft-tooltip>
1048
- `:t}resolveIcon(){return this.loading?ze.html`
1049
- <ft-loader part="loader icon"></ft-loader> `:this.icon?ze.html`
1048
+ `:e}resolveIcon(){return this.loading?Bt.html`
1049
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Bt.html`
1050
1050
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1051
- `:ze.html`
1051
+ `:Bt.html`
1052
1052
  <slot part="icon" name="icon"></slot>
1053
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":$,"ft-tooltip":tt,"ft-icon":et,"ft-loader":pr,"ft-typography":Q};I.styles=[ve.safariEllipsisFix,yu,ve.noTextSelect];I.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:I.labelsObserver.unobserve(t.target)}});z([(0,F.property)({type:Boolean})],I.prototype,"primary",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"outlined",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"dense",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"round",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"disabled",void 0);z([(0,F.property)()],I.prototype,"icon",void 0);z([(0,F.property)()],I.prototype,"iconVariant",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);z([(0,F.property)()],I.prototype,"label",void 0);z([(0,F.property)()],I.prototype,"type",void 0);z([(0,F.property)()],I.prototype,"href",void 0);z([(0,F.property)()],I.prototype,"target",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"loading",void 0);z([(0,F.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);z([(0,F.property)()],I.prototype,"ariaHasPopup",void 0);z([(0,F.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);z([(0,F.property)()],I.prototype,"tooltipPosition",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"activated",void 0);z([(0,F.query)(".ft-button")],I.prototype,"button",void 0);z([(0,F.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);z([(0,F.state)()],I.prototype,"hasTextContent",void 0);z([(0,F.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);z([(0,F.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var xu=f(b());var bu={"ft-button":I};(0,xu.customElements)(bu);var M=je.build("integratedFeedbackComponent"),Su={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var wn=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},Cn=class extends CustomEvent{constructor(t){super("change",{detail:t})}},_n=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var Au=f(N()),_=f(b());var k={fontSize:_.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:_.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:_.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:_.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:_.FtCssVariableFactory.extend("--ft-text-field-helper-color","",_.designSystemVariables.colorOnSurfaceMedium),colorPrimary:_.FtCssVariableFactory.external(_.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:_.FtCssVariableFactory.external(_.designSystemVariables.borderRadiusS,"Design system"),colorError:_.FtCssVariableFactory.external(_.designSystemVariables.colorError,"Design system"),prefixColor:_.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",_.designSystemVariables.colorOnSurfaceMedium),iconColor:_.FtCssVariableFactory.extend("--ft-text-field-icon-color","",_.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:_.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:_.FtCssVariableFactory.extend("--ft-text-field-background-color","",_.designSystemVariables.colorSurface),colorOutline:_.FtCssVariableFactory.external(_.designSystemVariables.colorOutline,"Design system"),elevation02:_.FtCssVariableFactory.external(_.designSystemVariables.elevation02,"Design system"),suggestSize:_.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Eu=Au.css`
1053
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};P.elementDefinitions={"ft-ripple":U,"ft-tooltip":ie,"ft-icon":ne,"ft-loader":ar,"ft-typography":re};P.styles=[yt.safariEllipsisFix,ku,yt.noTextSelect];P.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:P.labelsObserver.unobserve(e.target)}});K([(0,B.property)({type:Boolean})],P.prototype,"primary",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"outlined",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"dense",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"round",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"disabled",void 0);K([(0,B.property)()],P.prototype,"icon",void 0);K([(0,B.property)()],P.prototype,"iconVariant",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"trailingIcon",void 0);K([(0,B.property)()],P.prototype,"label",void 0);K([(0,B.property)()],P.prototype,"type",void 0);K([(0,B.property)()],P.prototype,"href",void 0);K([(0,B.property)()],P.prototype,"target",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"loading",void 0);K([(0,B.property)({attribute:"aria-label"})],P.prototype,"ariaLabel",void 0);K([(0,B.property)()],P.prototype,"ariaHasPopup",void 0);K([(0,B.property)({attribute:"aria-pressed"})],P.prototype,"ariaPressed",void 0);K([(0,B.property)()],P.prototype,"tooltipPosition",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"hideTooltip",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"forceTooltip",void 0);K([(0,B.property)({type:Boolean})],P.prototype,"activated",void 0);K([(0,B.query)(".ft-button")],P.prototype,"button",void 0);K([(0,B.query)(".ft-button--label")],P.prototype,"labelContainer",void 0);K([(0,B.state)()],P.prototype,"hasTextContent",void 0);K([(0,B.query)(".ft-button--label slot")],P.prototype,"slottedContent",void 0);K([(0,B.query)("[part=tooltip]")],P.prototype,"tooltip",void 0);var Du=d(y());var Lu={"ft-button":P};(0,Du.customElements)(Lu);var M=Ut.build("integratedFeedbackComponent"),Pu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var Nn=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Mn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},$n=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var Iu=d(N()),A=d(y());var k={fontSize:A.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:A.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:A.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:A.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:A.FtCssVariableFactory.extend("--ft-text-field-helper-color","",A.designSystemVariables.colorOnSurfaceMedium),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:A.FtCssVariableFactory.external(A.designSystemVariables.borderRadiusS,"Design system"),colorError:A.FtCssVariableFactory.external(A.designSystemVariables.colorError,"Design system"),prefixColor:A.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",A.designSystemVariables.colorOnSurfaceMedium),iconColor:A.FtCssVariableFactory.extend("--ft-text-field-icon-color","",A.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:A.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:A.FtCssVariableFactory.extend("--ft-text-field-background-color","",A.designSystemVariables.colorSurface),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),suggestSize:A.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Nu=Iu.css`
1054
1054
  *:focus {
1055
1055
  outline: none;
1056
1056
  }
@@ -1064,11 +1064,11 @@
1064
1064
  }
1065
1065
 
1066
1066
  ft-input-label {
1067
- ${(0,_.setVariable)(C.fontSize,k.fontSize)};
1068
- ${(0,_.setVariable)(C.raisedFontSize,k.labelSize)};
1069
- ${(0,_.setVariable)(C.verticalSpacing,k.verticalSpacing)};
1070
- ${(0,_.setVariable)(C.horizontalSpacing,k.horizontalSpacing)};
1071
- ${(0,_.setVariable)(C.backgroundColor,k.backgroundColor)};
1067
+ ${(0,A.setVariable)(_.fontSize,k.fontSize)};
1068
+ ${(0,A.setVariable)(_.raisedFontSize,k.labelSize)};
1069
+ ${(0,A.setVariable)(_.verticalSpacing,k.verticalSpacing)};
1070
+ ${(0,A.setVariable)(_.horizontalSpacing,k.horizontalSpacing)};
1071
+ ${(0,A.setVariable)(_.backgroundColor,k.backgroundColor)};
1072
1072
  }
1073
1073
 
1074
1074
  .ft-text-field--main-panel {
@@ -1085,13 +1085,13 @@
1085
1085
  overflow: hidden;
1086
1086
  padding: 0 ${k.horizontalSpacing};
1087
1087
 
1088
- ${(0,_.setVariable)(Wt.fontSize,k.fontSize)};
1089
- ${(0,_.setVariable)(Wt.lineHeight,k.fontSize)};
1088
+ ${(0,A.setVariable)(Ke.fontSize,k.fontSize)};
1089
+ ${(0,A.setVariable)(Ke.lineHeight,k.fontSize)};
1090
1090
  }
1091
1091
 
1092
1092
  .ft-text-field--input-panel ft-ripple {
1093
- ${(0,_.setVariable)(lt.opacityContentOnSurfaceHover,"0.08")};
1094
- ${(0,_.setVariable)(lt.opacityContentOnSurfacePressed,"0.04")};
1093
+ ${(0,A.setVariable)(ue.opacityContentOnSurfaceHover,"0.08")};
1094
+ ${(0,A.setVariable)(ue.opacityContentOnSurfacePressed,"0.04")};
1095
1095
  }
1096
1096
 
1097
1097
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1147,8 +1147,8 @@
1147
1147
  }
1148
1148
 
1149
1149
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1150
- ${(0,_.setVariable)(C.borderColor,k.colorPrimary)};
1151
- ${(0,_.setVariable)(C.textColor,k.colorPrimary)};
1150
+ ${(0,A.setVariable)(_.borderColor,k.colorPrimary)};
1151
+ ${(0,A.setVariable)(_.textColor,k.colorPrimary)};
1152
1152
  }
1153
1153
 
1154
1154
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1203,13 +1203,13 @@
1203
1203
  }
1204
1204
 
1205
1205
  .ft-text-field--with-icon {
1206
- ${(0,_.setVariable)(C.labelMaxWidth,`calc(100% - ${Tt.size} - ${C.horizontalSpacing})`)};
1206
+ ${(0,A.setVariable)(_.labelMaxWidth,`calc(100% - ${Re.size} - ${_.horizontalSpacing})`)};
1207
1207
  }
1208
1208
 
1209
1209
  .ft-text-field--with-password ft-icon:hover {
1210
1210
  cursor: pointer;
1211
1211
  }
1212
- `;var ft=f(N()),P=f(H()),Ou=f(Zo()),Ru=f(be());var jt=f(b());var _u=f(b()),wi=f(N()),fr=f(H());var wu=f(N());var Cu=wu.css`
1212
+ `;var he=d(N()),L=d(H()),Bu=d(is()),Vu=d(bt());var ze=d(y());var Uu=d(y()),xi=d(N()),lr=d(H());var Mu=d(N());var $u=Mu.css`
1213
1213
  .ft-text-field-suggestion {
1214
1214
  position: relative;
1215
1215
  padding: 8px 16px;
@@ -1245,24 +1245,24 @@
1245
1245
  slot {
1246
1246
  pointer-events: none;
1247
1247
  }
1248
- `;var Tu=f(be()),Tn=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Qo=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Jt=class extends _u.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return wi.html`
1249
- <div class="${(0,Tu.classMap)(t)}"
1248
+ `;var Fu=d(bt()),Un=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},os=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Je=class extends Uu.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return xi.html`
1249
+ <div class="${(0,Fu.classMap)(e)}"
1250
1250
  tabindex="-1"
1251
1251
  @keydown=${this.onKeyDown}
1252
1252
  @click=${this.confirmSuggestion}>
1253
1253
  <ft-ripple></ft-ripple>
1254
- ${this.helper?wi.html`
1254
+ ${this.helper?xi.html`
1255
1255
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1256
1256
  ${this.helper}
1257
- </ft-typography>`:wi.nothing}
1257
+ </ft-typography>`:xi.nothing}
1258
1258
  <ft-typography part="label"
1259
1259
  variant="body1"
1260
1260
  class="ft-text-field-suggestion--label">
1261
1261
  <slot></slot>
1262
1262
  </ft-typography>
1263
1263
  </div>
1264
- `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Qo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Jt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-icon":et};Jt.styles=Cu;Tn([(0,fr.property)()],Jt.prototype,"value",void 0);Tn([(0,fr.property)()],Jt.prototype,"helper",void 0);Tn([(0,fr.query)(".ft-text-field-suggestion")],Jt.prototype,"container",void 0);Tn([(0,fr.queryAssignedNodes)()],Jt.prototype,"assignedNodes",void 0);var D=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},T=class extends(0,jt.toFtFormComponent)(jt.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=lr.EYE_SLASH,this.passwordRevealedIcon=lr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return ft.html`
1265
- <div class="${(0,Ru.classMap)(r)}">
1264
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new os(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};Je.elementDefinitions={"ft-ripple":U,"ft-typography":re,"ft-icon":ne};Je.styles=$u;Un([(0,lr.property)()],Je.prototype,"value",void 0);Un([(0,lr.property)()],Je.prototype,"helper",void 0);Un([(0,lr.query)(".ft-text-field-suggestion")],Je.prototype,"container",void 0);Un([(0,lr.queryAssignedNodes)()],Je.prototype,"assignedNodes",void 0);var I=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},w=class extends(0,ze.toFtFormComponent)(ze.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ir.EYE_SLASH,this.passwordRevealedIcon=ir.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return he.html`
1265
+ <div class="${(0,Vu.classMap)(r)}">
1266
1266
  <div class="ft-text-field--main-panel"
1267
1267
  @keydown=${this.handleKeyboardNavigation}
1268
1268
  @focusout=${this.onMainPanelBlur}>
@@ -1272,21 +1272,21 @@
1272
1272
  ?raised=${this.focused||this.value!=""}
1273
1273
  ?error=${!this.inputValid||this.error}></ft-input-label>
1274
1274
  <div class="ft-text-field--input-panel">
1275
- ${this.outlined?ft.nothing:ft.html`
1275
+ ${this.outlined?he.nothing:he.html`
1276
1276
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1277
1277
  `}
1278
- ${this.prefix?ft.html`
1278
+ ${this.prefix?he.html`
1279
1279
  <ft-typography class="ft-text-field--prefix" variant="body1">
1280
1280
  ${this.prefix}
1281
1281
  </ft-typography>
1282
- `:ft.nothing}
1282
+ `:he.nothing}
1283
1283
  <input type="${this.resolveInputType()}"
1284
- name="${me(this.name)}"
1285
- maxlength="${me(this.maxLength||void 0)}"
1284
+ name="${mt(this.name)}"
1285
+ maxlength="${mt(this.maxLength||void 0)}"
1286
1286
  aria-label="${this.label}"
1287
- aria-describedby="${me(this.helper?"helper":void 0)}"
1287
+ aria-describedby="${mt(this.helper?"helper":void 0)}"
1288
1288
  aria-invalid="${this.error}"
1289
- autocomplete="${me(this.autocomplete)}"
1289
+ autocomplete="${mt(this.autocomplete)}"
1290
1290
  class="ft-typography--body1 ft-text-field--input"
1291
1291
  part="input"
1292
1292
  ?disabled=${this.disabled}
@@ -1301,63 +1301,63 @@
1301
1301
  <div class="ft-text-field--suggestions"
1302
1302
  @suggestion-selected=${this.onSuggestionSelected}>
1303
1303
  ${this.renderSuggestions()}
1304
- ${o?ft.html`
1304
+ ${o?he.html`
1305
1305
  <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1306
1306
  ${this.value}
1307
1307
  </ft-text-field-suggestion>
1308
- `:ft.nothing}
1308
+ `:he.nothing}
1309
1309
  </div>
1310
1310
  </div>
1311
- ${s?ft.html`
1312
- <ft-typography class="ft-text-field--helper-text" variant="${gt.caption}" id="helper" role="alert">
1311
+ ${s?he.html`
1312
+ <ft-typography class="ft-text-field--helper-text" variant="${ye.caption}" id="helper" role="alert">
1313
1313
  ${s}
1314
1314
  </ft-typography>
1315
- `:ft.nothing}
1315
+ `:he.nothing}
1316
1316
  </div>
1317
- `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?ft.html`
1318
- ${(0,Ou.repeat)(this.providedSuggestions,t=>ft.html`
1319
- <ft-text-field-suggestion value="${t.value}" @click=${r=>this.onSuggestionClick(r,t.clickHandler)}>
1320
- ${t.icon?ft.html`
1321
- <ft-icon .value=${t.icon}></ft-icon>
1322
- `:ft.nothing}
1323
- ${t.label}
1317
+ `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?he.html`
1318
+ ${(0,Bu.repeat)(this.providedSuggestions,e=>he.html`
1319
+ <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1320
+ ${e.icon?he.html`
1321
+ <ft-icon .value=${e.icon}></ft-icon>
1322
+ `:he.nothing}
1323
+ ${e.label}
1324
1324
  </ft-text-field-suggestion>
1325
1325
  `)}
1326
- `:ft.html`
1326
+ `:he.html`
1327
1327
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1328
- `}onSuggestionClick(t,r){r&&(t.preventDefault(),r(t))}renderPasswordIcon(){return ft.html`
1328
+ `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return he.html`
1329
1329
  <ft-icon class="ft-text-field--icon"
1330
1330
  .variant=${this.iconVariant}
1331
1331
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1332
1332
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1333
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ft.html`
1333
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?he.html`
1334
1334
  <ft-icon class="ft-text-field--icon"
1335
1335
  .variant=${this.iconVariant}
1336
1336
  .value=${this.icon}
1337
- @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1338
- `:ft.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new wn(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Cn(t))):this.dispatchEvent(new _n(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,jt.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};T.elementDefinitions={"ft-input-label":Ht,"ft-ripple":$,"ft-typography":Q,"ft-icon":et,"ft-text-field-suggestion":Jt};T.styles=[wr,jt.noTextInputDefaultClearButton,Eu];D([(0,P.property)()],T.prototype,"label",void 0);D([(0,P.property)({noAccessor:!0})],T.prototype,"value",null);D([(0,P.state)()],T.prototype,"dispatchedValue",void 0);D([(0,P.property)()],T.prototype,"helper",void 0);D([(0,P.property)()],T.prototype,"suggestionsHelper",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"outlined",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"disabled",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"error",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"fixedMenuPosition",void 0);D([(0,P.property)()],T.prototype,"prefix",void 0);D([(0,P.property)()],T.prototype,"icon",void 0);D([(0,P.property)()],T.prototype,"name",void 0);D([(0,P.property)()],T.prototype,"type",void 0);D([(0,P.property)()],T.prototype,"passwordHiddenIcon",void 0);D([(0,P.property)()],T.prototype,"passwordRevealedIcon",void 0);D([(0,P.property)()],T.prototype,"iconVariant",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"filterSuggestions",void 0);D([(0,jt.numberProperty)()],T.prototype,"maxLength",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"password",void 0);D([(0,P.property)({type:String})],T.prototype,"autocomplete",void 0);D([(0,P.property)({attribute:!1})],T.prototype,"suggestionsProvider",void 0);D([(0,P.state)()],T.prototype,"focused",void 0);D([(0,P.state)()],T.prototype,"inputValid",void 0);D([(0,P.state)()],T.prototype,"hidePassword",void 0);D([(0,P.state)()],T.prototype,"hideSuggestions",void 0);D([(0,P.state)()],T.prototype,"visibleSuggestions",void 0);D([(0,P.state)()],T.prototype,"providedSuggestions",void 0);D([(0,P.query)(".ft-text-field--main-panel")],T.prototype,"mainPanel",void 0);D([(0,P.query)(".ft-text-field--input")],T.prototype,"input",void 0);D([(0,P.query)(".ft-text-field-suggestion--new-value")],T.prototype,"newValueSuggestion",void 0);D([(0,P.query)(".ft-text-field--suggestions")],T.prototype,"suggestionsContainer",void 0);D([(0,P.queryAll)("ft-text-field-suggestion")],T.prototype,"providedSuggestionsInDom",void 0);D([(0,P.queryAssignedElements)({selector:"ft-text-field-suggestion"})],T.prototype,"slottedSuggestions",void 0);D([(0,jt.ignoreComposingEvents)()],T.prototype,"handleInput",null);D([(0,jt.ignoreComposingEvents)()],T.prototype,"catchComposingEvents",null);var ku=f(b());var Lu={"ft-text-field":T,"ft-text-field-suggestion":Jt};(0,ku.customElements)(Lu);var On=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Rn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Ln=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},kn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Pn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var ht=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},K=class extends He(Kr.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(M,Su),this.addStore(E)}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:Y.NO_RATING}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Kr.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?it.nothing:it.html`
1337
+ @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1338
+ `:he.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Nn(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Mn(e))):this.dispatchEvent(new $n(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,ze.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};w.elementDefinitions={"ft-input-label":He,"ft-ripple":U,"ft-typography":re,"ft-icon":ne,"ft-text-field-suggestion":Je};w.styles=[br,ze.noTextInputDefaultClearButton,Nu];I([(0,L.property)()],w.prototype,"label",void 0);I([(0,L.property)({noAccessor:!0})],w.prototype,"value",null);I([(0,L.state)()],w.prototype,"dispatchedValue",void 0);I([(0,L.property)()],w.prototype,"helper",void 0);I([(0,L.property)()],w.prototype,"suggestionsHelper",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"outlined",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"disabled",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"error",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"fixedMenuPosition",void 0);I([(0,L.property)()],w.prototype,"prefix",void 0);I([(0,L.property)()],w.prototype,"icon",void 0);I([(0,L.property)()],w.prototype,"name",void 0);I([(0,L.property)()],w.prototype,"type",void 0);I([(0,L.property)()],w.prototype,"passwordHiddenIcon",void 0);I([(0,L.property)()],w.prototype,"passwordRevealedIcon",void 0);I([(0,L.property)()],w.prototype,"iconVariant",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"filterSuggestions",void 0);I([(0,ze.numberProperty)()],w.prototype,"maxLength",void 0);I([(0,L.property)({type:Boolean})],w.prototype,"password",void 0);I([(0,L.property)({type:String})],w.prototype,"autocomplete",void 0);I([(0,L.property)({attribute:!1})],w.prototype,"suggestionsProvider",void 0);I([(0,L.state)()],w.prototype,"focused",void 0);I([(0,L.state)()],w.prototype,"inputValid",void 0);I([(0,L.state)()],w.prototype,"hidePassword",void 0);I([(0,L.state)()],w.prototype,"hideSuggestions",void 0);I([(0,L.state)()],w.prototype,"visibleSuggestions",void 0);I([(0,L.state)()],w.prototype,"providedSuggestions",void 0);I([(0,L.query)(".ft-text-field--main-panel")],w.prototype,"mainPanel",void 0);I([(0,L.query)(".ft-text-field--input")],w.prototype,"input",void 0);I([(0,L.query)(".ft-text-field-suggestion--new-value")],w.prototype,"newValueSuggestion",void 0);I([(0,L.query)(".ft-text-field--suggestions")],w.prototype,"suggestionsContainer",void 0);I([(0,L.queryAll)("ft-text-field-suggestion")],w.prototype,"providedSuggestionsInDom",void 0);I([(0,L.queryAssignedElements)({selector:"ft-text-field-suggestion"})],w.prototype,"slottedSuggestions",void 0);I([(0,ze.ignoreComposingEvents)()],w.prototype,"handleInput",null);I([(0,ze.ignoreComposingEvents)()],w.prototype,"catchComposingEvents",null);var zu=d(y());var Hu={"ft-text-field":w,"ft-text-field-suggestion":Je};(0,zu.customElements)(Hu);var Fn=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Bn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Vn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Hn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},zn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var me=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},G=class extends $t(Ur.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(M,Pu),this.addStore(S)}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:X.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:X.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Ur.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?se.nothing:se.html`
1339
1339
  <div part="container">
1340
- ${this.hideTitle?it.nothing:it.html`
1341
- <ft-typography variant="${gt.title}" part="main-title">
1340
+ ${this.hideTitle?se.nothing:se.html`
1341
+ <ft-typography variant="${ye.title}" part="main-title">
1342
1342
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1343
1343
  </ft-typography>
1344
1344
  `}
1345
1345
  ${this.renderRatingSection()}
1346
1346
  ${this.renderFeedbackSection()}
1347
1347
  </div>
1348
- `}renderRatingSection(){var t;return this.canRateThisContent?it.html`
1348
+ `}renderRatingSection(){var e;return this.canRateThisContent?se.html`
1349
1349
  <div part="rating-container">
1350
- <ft-typography variant="${gt.title_dense}" part="section-title">
1351
- ${this.i18n(((t=this.ratingSummary)===null||t===void 0?void 0:t.type)===Y.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1350
+ <ft-typography variant="${ye.title_dense}" part="section-title">
1351
+ ${this.i18n(((e=this.ratingSummary)===null||e===void 0?void 0:e.type)===X.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1352
1352
  </ft-typography>
1353
1353
  ${this.renderRating()}
1354
- <ft-typography variant="${gt.caption}" part="rating-date">
1354
+ <ft-typography variant="${ye.caption}" part="rating-date">
1355
1355
  ${this.renderRatingDate()}
1356
1356
  </ft-typography>
1357
1357
  </div>
1358
- `:it.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return M.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return M.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?M.messages.ratedToday():M.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case Y.STARS:return it.html`
1358
+ `:se.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return M.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return M.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?M.messages.ratedToday():M.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case X.STARS:return se.html`
1359
1359
  <div part="rating rating-stars">
1360
- ${(0,Pu.repeat)(new Array(5),(t,r)=>r,(t,r)=>{let i=this.ratingTypeOfDoneRatingOfThisContent===Y.STARS&&this.ratingValue>r,n=r+1;return it.html`
1360
+ ${(0,ju.repeat)(new Array(5),(e,r)=>r,(e,r)=>{let i=this.ratingTypeOfDoneRatingOfThisContent===X.STARS&&this.ratingValue>r,n=r+1;return se.html`
1361
1361
  <ft-button round part="rating-stars-${n}"
1362
1362
  label="${M.messages.starsRating(n)}"
1363
1363
  tooltipPosition="top"
@@ -1368,7 +1368,7 @@
1368
1368
  ></ft-button>
1369
1369
  `})}
1370
1370
  </div>
1371
- `;case Y.LIKE:{let t=this.ratingTypeOfDoneRatingOfThisContent===Y.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Y.LIKE&&this.ratingValue===1;return it.html`
1371
+ `;case X.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===X.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===X.LIKE&&this.ratingValue===1;return se.html`
1372
1372
  <ft-switch unselectable
1373
1373
  @change=${i=>this.rate(i.detail)}
1374
1374
  part="rating rating-like"
@@ -1381,14 +1381,14 @@
1381
1381
  ${M.messages.like()}
1382
1382
  </ft-switch-option>
1383
1383
  <ft-switch-option .value=${0}
1384
- ?selected=${t}
1384
+ ?selected=${e}
1385
1385
  .iconVariant=${this.iconVariant}
1386
- icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}"
1386
+ icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
1387
1387
  role="radio">
1388
1388
  ${M.messages.dislike()}
1389
1389
  </ft-switch-option>
1390
1390
  </ft-switch>
1391
- `}case Y.DICHOTOMOUS:{let t=this.ratingTypeOfDoneRatingOfThisContent===Y.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Y.DICHOTOMOUS&&this.ratingValue===1;return it.html`
1391
+ `}case X.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===X.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===X.DICHOTOMOUS&&this.ratingValue===1;return se.html`
1392
1392
  <ft-switch unselectable
1393
1393
  @change=${i=>this.rate(i.detail)}
1394
1394
  part="rating rating-dichotomous">
@@ -1397,35 +1397,35 @@
1397
1397
  ${M.messages.dichotomousYes()}
1398
1398
  </ft-switch-option>
1399
1399
  <ft-switch-option .value=${0}
1400
- ?selected=${t}>
1400
+ ?selected=${e}>
1401
1401
  ${M.messages.dichotomousNo()}
1402
1402
  </ft-switch-option>
1403
1403
  </ft-switch>
1404
- `}}return it.nothing}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,o;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),a=it.html`
1404
+ `}}return se.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,o;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),a=se.html`
1405
1405
  <ft-button primary
1406
1406
  type="submit" name="submit"
1407
1407
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1408
1408
  part="send-feedback">
1409
1409
  ${M.messages.okButton()}
1410
1410
  </ft-button>
1411
- `;s&&(a=it.html`
1411
+ `;s&&(a=se.html`
1412
1412
  <a part="send-feedback-link" href="${s}">
1413
1413
  ${a}
1414
1414
  </a>
1415
- `);let l=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?it.html`
1415
+ `);let l=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?se.html`
1416
1416
  <ft-button outlined
1417
1417
  type="button" name="more-options"
1418
1418
  @click=${this.onOpenMoreDetails}
1419
1419
  part="more-options">
1420
1420
  ${M.messages.moreOptionsButton()}
1421
1421
  </ft-button>
1422
- `:it.nothing;return it.html`
1422
+ `:se.nothing;return se.html`
1423
1423
  <form part="feedback-container" autocomplete="on"
1424
1424
  @submit=${c=>this.onFormSubmitEvent(c,!!s)}>
1425
- <ft-typography variant="${gt.title_dense}" part="section-title">
1425
+ <ft-typography variant="${ye.title_dense}" part="section-title">
1426
1426
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1427
1427
  </ft-typography>
1428
- ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?it.html`
1428
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?se.html`
1429
1429
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1430
1430
  part="feedback-from-input"
1431
1431
  label="${M.messages.feedbackfromEmail()}"
@@ -1433,7 +1433,7 @@
1433
1433
  ?error=${this.from&&!this.validFromEmail()}
1434
1434
  helper="${this.from&&!this.validFromEmail()?M.messages.feedbackfromEmailInvalid():""}"
1435
1435
  ></ft-text-field>
1436
- `:it.nothing}
1436
+ `:se.nothing}
1437
1437
  <ft-text-area outlined
1438
1438
  part="feedback-input"
1439
1439
  label="${M.messages.feedbackInputLabel()}"
@@ -1444,7 +1444,7 @@
1444
1444
  ${a}
1445
1445
  </div>
1446
1446
  </form>
1447
- `}return it.nothing}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new On({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};K.elementDefinitions={"ft-button":I,"ft-typography":Q,"ft-switch":Rt,"ft-switch-option":rt,"ft-text-area":ut,"ft-text-field":T};ht([(0,nt.property)({type:Boolean})],K.prototype,"hideTitle",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"withMoreOptionsButton",void 0);ht([(0,nt.property)()],K.prototype,"iconVariant",void 0);ht([(0,nt.property)()],K.prototype,"emptyStarIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledStarIcon",void 0);ht([(0,nt.property)()],K.prototype,"emptyLikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledLikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"emptyDislikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledDislikeIcon",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"canAccessFeedback",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"canRateThisContent",void 0);ht([(0,nt.property)({attribute:!1})],K.prototype,"i18nProperties",void 0);ht([(0,nt.property)({attribute:!1})],K.prototype,"ratingSummary",void 0);ht([(0,nt.property)()],K.prototype,"configuration",void 0);ht([(0,nt.property)()],K.prototype,"feedbackMailLinkBuilder",void 0);ht([(0,Kr.redux)({store:E.name})],K.prototype,"session",void 0);ht([(0,nt.query)("[part='feedback-input']")],K.prototype,"feedbackInput",void 0);ht([(0,nt.state)()],K.prototype,"from",void 0);ht([(0,nt.state)()],K.prototype,"feedbackMessage",void 0);var Ce=f(b()),Iu=f(N());function Du(e){return Iu.css`
1447
+ `}return se.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Fn({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};G.elementDefinitions={"ft-button":P,"ft-typography":re,"ft-switch":Le,"ft-switch-option":oe,"ft-text-area":pe,"ft-text-field":w};me([(0,ae.property)({type:Boolean})],G.prototype,"hideTitle",void 0);me([(0,ae.property)({type:Boolean})],G.prototype,"withMoreOptionsButton",void 0);me([(0,ae.property)()],G.prototype,"iconVariant",void 0);me([(0,ae.property)()],G.prototype,"emptyStarIcon",void 0);me([(0,ae.property)()],G.prototype,"filledStarIcon",void 0);me([(0,ae.property)()],G.prototype,"emptyLikeIcon",void 0);me([(0,ae.property)()],G.prototype,"filledLikeIcon",void 0);me([(0,ae.property)()],G.prototype,"emptyDislikeIcon",void 0);me([(0,ae.property)()],G.prototype,"filledDislikeIcon",void 0);me([(0,ae.property)({type:Boolean})],G.prototype,"canAccessFeedback",void 0);me([(0,ae.property)({type:Boolean})],G.prototype,"canRateThisContent",void 0);me([(0,ae.property)({attribute:!1})],G.prototype,"i18nProperties",void 0);me([(0,ae.property)({attribute:!1})],G.prototype,"ratingSummary",void 0);me([(0,ae.property)()],G.prototype,"configuration",void 0);me([(0,ae.property)()],G.prototype,"feedbackMailLinkBuilder",void 0);me([(0,Ur.redux)({store:S.name})],G.prototype,"session",void 0);me([(0,ae.query)("[part='feedback-input']")],G.prototype,"feedbackInput",void 0);me([(0,ae.state)()],G.prototype,"from",void 0);me([(0,ae.state)()],G.prototype,"feedbackMessage",void 0);var Ct=d(y()),Wu=d(N());function Ku(t){return Wu.css`
1448
1448
  [part="container"] {
1449
1449
  box-sizing: border-box;
1450
1450
  display: flex;
@@ -1457,7 +1457,7 @@
1457
1457
  flex-direction: row;
1458
1458
  align-items: center;
1459
1459
  margin-left: -6px;
1460
- ${(0,Ce.setVariable)(j.backgroundColor,e.starsBackgroundColor)}
1460
+ ${(0,Ct.setVariable)(z.backgroundColor,t.starsBackgroundColor)}
1461
1461
  }
1462
1462
 
1463
1463
  [part="rating-container"],
@@ -1471,14 +1471,14 @@
1471
1471
  }
1472
1472
 
1473
1473
  [part="rating-container"] {
1474
- ${(0,Ce.setVariable)(j.color,e.emptyRatingColor)};
1475
- ${(0,Ce.setVariable)(j.rippleColor,e.filledRatingColor)};
1476
- ${(0,Ce.setVariable)(J.textColor,e.emptyRatingColor)};
1477
- ${(0,Ce.setVariable)(J.selectedTextColor,e.filledRatingColor)};
1474
+ ${(0,Ct.setVariable)(z.color,t.emptyRatingColor)};
1475
+ ${(0,Ct.setVariable)(z.rippleColor,t.filledRatingColor)};
1476
+ ${(0,Ct.setVariable)(Q.textColor,t.emptyRatingColor)};
1477
+ ${(0,Ct.setVariable)(Q.selectedTextColor,t.filledRatingColor)};
1478
1478
  }
1479
1479
 
1480
1480
  [part="rating-container"] .rating-stars--active {
1481
- ${(0,Ce.setVariable)(j.color,e.filledRatingColor)};
1481
+ ${(0,Ct.setVariable)(z.color,t.filledRatingColor)};
1482
1482
  }
1483
1483
 
1484
1484
  [part="feedback-container"] {
@@ -1486,32 +1486,32 @@
1486
1486
  }
1487
1487
 
1488
1488
  [part="rating-date"] {
1489
- color: ${e.ratedDateColor};
1489
+ color: ${t.ratedDateColor};
1490
1490
  }
1491
1491
 
1492
1492
  [part="feedback-container"] ft-text-area {
1493
- min-width: ${e.feedbackInputMinWidth};
1493
+ min-width: ${t.feedbackInputMinWidth};
1494
1494
  }
1495
1495
 
1496
1496
 
1497
1497
  [part="send-feedback"],
1498
1498
  [part="send-feedback-link"] {
1499
- ${(0,Ce.setVariable)(j.color,e.sendFeedbackColor)};
1500
- ${(0,Ce.setVariable)(j.backgroundColor,e.sendFeedbackBackgroundColor)};
1499
+ ${(0,Ct.setVariable)(z.color,t.sendFeedbackColor)};
1500
+ ${(0,Ct.setVariable)(z.backgroundColor,t.sendFeedbackBackgroundColor)};
1501
1501
  }
1502
1502
 
1503
1503
  [part="buttons-container"] {
1504
1504
  align-self: flex-end;
1505
1505
  }
1506
- `}var bt=f(b());var Nu={feedbackInputMinWidth:bt.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:bt.FtCssVariableFactory.external(bt.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",bt.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",bt.designSystemVariables.colorPrimary),filledRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",bt.designSystemVariables.colorPrimary),emptyRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",bt.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:bt.FtCssVariableFactory.external(Le.fontSize,"Typography"),sectionTitleFontSize:bt.FtCssVariableFactory.external(ke.fontSize,"Typography"),starsBackgroundColor:bt.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",bt.designSystemVariables.colorSurface)};var hr=class extends K{};hr.styles=Du(Nu);var Gr=je.fromGwt("server");var qr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,o){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1506
+ `}var Se=d(y());var Gu={feedbackInputMinWidth:Se.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Se.FtCssVariableFactory.external(Se.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Se.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",Se.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:Se.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",Se.designSystemVariables.colorPrimary),filledRatingColor:Se.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",Se.designSystemVariables.colorPrimary),emptyRatingColor:Se.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",Se.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:Se.FtCssVariableFactory.external(Rt.fontSize,"Typography"),sectionTitleFontSize:Se.FtCssVariableFactory.external(kt.fontSize,"Typography"),starsBackgroundColor:Se.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",Se.designSystemVariables.colorSurface)};var cr=class extends G{};cr.styles=Ku(Gu);var Fr=Ut.fromGwt("server");var Br=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,o){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1507
1507
  ${this.bodyMetadata}
1508
1508
  ${this.url}
1509
1509
  _________________________________________________________________
1510
1510
 
1511
- ${t??""}
1511
+ ${e??""}
1512
1512
 
1513
1513
  _________________________________________________________________
1514
- ${Gr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var We=je.build("inDesignerFeedbackComponent"),In={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var xt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},G=class extends He(gr){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.RATING,{session:this.session}))&&this.configuredRatingType!=Y.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}constructor(t=new Br){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:M.properties.mapFeedbackMainTitle(),ratingSectionTitle:M.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Et.Debouncer(500),this.addStore(E)}render(){return Mu.html`
1514
+ ${Fr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var Vt=Ut.build("inDesignerFeedbackComponent"),jn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ee=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},q=class extends $t(dr){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Tt.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Tt.RATING,{session:this.session}))&&this.configuredRatingType!=X.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:X.NO_RATING}constructor(e=new Dr){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ne.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Br,this.i18nProperties={feedbackMainTitle:M.properties.mapFeedbackMainTitle(),ratingSectionTitle:M.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new we.Debouncer(500),this.addStore(S)}render(){return qu.html`
1515
1515
  <ft-reader-feedback
1516
1516
  ?hideTitle=${this.hideTitle}
1517
1517
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1527,13 +1527,13 @@ ${Gr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1527
1527
  .i18nProperties=${this.i18nProperties}
1528
1528
  .ratingSummary=${this.ratingSummary}
1529
1529
  .configuration=${this.configuration}
1530
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1530
+ .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1531
1531
  @rate=${this.rate}
1532
1532
  @send-feedback=${this.sendFeedback}
1533
1533
  @mailer-feedback=${this.onMailerFeedbackSent}
1534
1534
  @open-more-options=${this.openMoreOptions}
1535
1535
  ></ft-reader-feedback>
1536
- `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),t.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,In),["map","configuration","session","mailSubject"].some(a=>t.has(a))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(a=>t.has(a))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Pn)}openMoreOptions(){var t,r,i;this.dispatchEvent(new Ln({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Y.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};G.elementDefinitions={"ft-reader-feedback":hr};G.storedRatingIfAuthenticated=(e,t)=>{var r,i;return!((r=t.session)===null||r===void 0)&&r.sessionAuthenticated?e.mapRating:(i=t.ratingSummary)!==null&&i!==void 0?i:e.mapRating};xt([(0,Et.redux)({store:E.name})],G.prototype,"session",void 0);xt([(0,Et.redux)({store:"reader"})],G.prototype,"map",void 0);xt([(0,Et.redux)({store:E.name})],G.prototype,"editorMode",void 0);xt([(0,Et.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],G.prototype,"configuration",void 0);xt([(0,Et.redux)({store:"reader",selector:G.storedRatingIfAuthenticated})],G.prototype,"ratingSummary",void 0);xt([(0,Qt.property)({type:Boolean})],G.prototype,"hideTitle",void 0);xt([(0,Qt.property)({type:Boolean})],G.prototype,"withMoreOptionsButton",void 0);xt([(0,Qt.property)()],G.prototype,"iconVariant",void 0);xt([(0,Qt.property)()],G.prototype,"emptyStarIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledStarIcon",void 0);xt([(0,Qt.property)()],G.prototype,"emptyLikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledLikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"emptyDislikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledDislikeIcon",void 0);xt([(0,Qt.query)("ft-reader-feedback")],G.prototype,"readerFeedback",void 0);xt([fn(Gr.properties["mail.map_feedback.subject"](e=>{var t,r;return[(r=(t=e.map)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:""]}))],G.prototype,"mailSubject",void 0);xt([(0,Et.reduxEventListener)({eventName:"rating-changed"})],G.prototype,"fetchRatingSummary",null);var Uu=f(N()),te=f(H()),wt=f(b());var Ci=f(H()),$u=f(b());var Dn=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},es=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ts=Symbol("registerInterval"),yp=(0,$u.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[ts]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ts]):this.dispatchEvent(new es)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ts,Dn([(0,Ci.state)()],r.prototype,"tocNode",void 0),Dn([(0,Ci.state)()],r.prototype,"disableContextInteractions",void 0),Dn([(0,Ci.state)()],r.prototype,"headingLevelsShift",void 0),Dn([(0,Ci.state)()],r.prototype,"headingStartLevel",void 0),r}),Nn=class extends yp(gr){};var St=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},q=class extends He(Nn){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.FEEDBACK,{session:this.session})}get canRateThisContent(){var t,r;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.RATING,{session:this.session}))&&((r=this.tocNode)===null||r===void 0?void 0:r.hasRating)&&this.configuredRatingType!=Y.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}constructor(t=new Br){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:M.properties.topicFeedbackMainTitle(),ratingSectionTitle:M.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new wt.Debouncer(500),this.addStore(E)}render(){return Uu.html`
1536
+ `}willUpdate(e){var r,i,n,o,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Vt,jn),["map","configuration","session","mailSubject"].some(a=>e.has(a))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(a=>e.has(a))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,o;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new we.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new we.FtNotificationEvent({type:"info",message:Vt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new we.FtNotificationEvent({type:"info",message:Vt.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new we.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new we.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zn)}openMoreOptions(){var e,r,i;this.dispatchEvent(new Vn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||X.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};q.elementDefinitions={"ft-reader-feedback":cr};q.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};Ee([(0,we.redux)({store:S.name})],q.prototype,"session",void 0);Ee([(0,we.redux)({store:"reader"})],q.prototype,"map",void 0);Ee([(0,we.redux)({store:S.name})],q.prototype,"editorMode",void 0);Ee([(0,we.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],q.prototype,"configuration",void 0);Ee([(0,we.redux)({store:"reader",selector:q.storedRatingIfAuthenticated})],q.prototype,"ratingSummary",void 0);Ee([(0,Qe.property)({type:Boolean})],q.prototype,"hideTitle",void 0);Ee([(0,Qe.property)({type:Boolean})],q.prototype,"withMoreOptionsButton",void 0);Ee([(0,Qe.property)()],q.prototype,"iconVariant",void 0);Ee([(0,Qe.property)()],q.prototype,"emptyStarIcon",void 0);Ee([(0,Qe.property)()],q.prototype,"filledStarIcon",void 0);Ee([(0,Qe.property)()],q.prototype,"emptyLikeIcon",void 0);Ee([(0,Qe.property)()],q.prototype,"filledLikeIcon",void 0);Ee([(0,Qe.property)()],q.prototype,"emptyDislikeIcon",void 0);Ee([(0,Qe.property)()],q.prototype,"filledDislikeIcon",void 0);Ee([(0,Qe.query)("ft-reader-feedback")],q.prototype,"readerFeedback",void 0);Ee([An(Fr.properties["mail.map_feedback.subject"](t=>{var e,r;return[(r=(e=t.map)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:""]}))],q.prototype,"mailSubject",void 0);Ee([(0,we.reduxEventListener)({eventName:"rating-changed"})],q.prototype,"fetchRatingSummary",null);var Xu=d(N()),et=d(H()),Ce=d(y());var Si=d(H()),Yu=d(y());var Wn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},as=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ss=Symbol("registerInterval"),zp=(0,Yu.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[ss]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ss]):this.dispatchEvent(new as)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ss,Wn([(0,Si.state)()],r.prototype,"tocNode",void 0),Wn([(0,Si.state)()],r.prototype,"disableContextInteractions",void 0),Wn([(0,Si.state)()],r.prototype,"headingLevelsShift",void 0),Wn([(0,Si.state)()],r.prototype,"headingStartLevel",void 0),r}),Kn=class extends zp(dr){};var _e=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Y=class extends $t(Kn){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Tt.FEEDBACK,{session:this.session})}get canRateThisContent(){var e,r;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Tt.RATING,{session:this.session}))&&((r=this.tocNode)===null||r===void 0?void 0:r.hasRating)&&this.configuredRatingType!=X.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:X.NO_RATING}constructor(e=new Dr){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ne.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Br,this.i18nProperties={feedbackMainTitle:M.properties.topicFeedbackMainTitle(),ratingSectionTitle:M.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new Ce.Debouncer(500),this.addStore(S)}render(){return Xu.html`
1537
1537
  <ft-reader-feedback
1538
1538
  ?hideTitle=${this.hideTitle}
1539
1539
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1549,13 +1549,13 @@ ${Gr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1549
1549
  .i18nProperties=${this.i18nProperties}
1550
1550
  .ratingSummary=${this.ratingSummary}
1551
1551
  .configuration=${this.configuration}
1552
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1552
+ .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1553
1553
  @rate=${this.rate}
1554
1554
  @send-feedback=${this.sendFeedback}
1555
1555
  @mailer-feedback=${this.onMailerFeedbackSent}
1556
1556
  @open-more-options=${this.openMoreOptions}
1557
1557
  ></ft-reader-feedback>
1558
- `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),["tocNode","user"].some(a=>t.has(a))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,In),["map","tocNode","configuration","user","mailSubject"].some(a=>t.has(a))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(a=>t.has(a))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new kn(t))}openMoreOptions(){var t,r,i,n,o,s,a,l;this.dispatchEvent(new Rn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((o=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(a=this.ratingSummary)===null||a===void 0?void 0:a.type:Y.NO_RATING)||Y.NO_RATING,ratingValue:(l=this.ratingSummary)===null||l===void 0?void 0:l.rating}))}};q.elementDefinitions={"ft-reader-feedback":hr};q.storedRatingIfAuthenticated=(e,t)=>{var r,i,n,o;let s=e.topicsRating[(i=(r=t.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=t.session)===null||n===void 0)&&n.sessionAuthenticated?s:(o=t.ratingSummary)!==null&&o!==void 0?o:s};St([(0,wt.redux)({store:E.name})],q.prototype,"session",void 0);St([(0,wt.redux)({store:"reader"})],q.prototype,"map",void 0);St([(0,wt.redux)({store:E.name})],q.prototype,"editorMode",void 0);St([(0,wt.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],q.prototype,"configuration",void 0);St([(0,wt.redux)({store:"reader",selector:q.storedRatingIfAuthenticated})],q.prototype,"ratingSummary",void 0);St([(0,te.property)({type:Boolean})],q.prototype,"hideTitle",void 0);St([(0,te.property)({type:Boolean})],q.prototype,"withMoreOptionsButton",void 0);St([(0,te.property)()],q.prototype,"iconVariant",void 0);St([(0,te.property)()],q.prototype,"emptyStarIcon",void 0);St([(0,te.property)()],q.prototype,"filledStarIcon",void 0);St([(0,te.property)()],q.prototype,"emptyLikeIcon",void 0);St([(0,te.property)()],q.prototype,"filledLikeIcon",void 0);St([(0,te.property)()],q.prototype,"emptyDislikeIcon",void 0);St([(0,te.property)()],q.prototype,"filledDislikeIcon",void 0);St([(0,te.query)("ft-reader-feedback")],q.prototype,"readerFeedback",void 0);St([fn(Gr.properties["mail.feedback.subject"](e=>{var t,r,i,n;return[(r=(t=e.tocNode)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:"",(n=(i=e.map)===null||i===void 0?void 0:i.title)!==null&&n!==void 0?n:""]}))],q.prototype,"mailSubject",void 0);St([(0,wt.reduxEventListener)({eventName:"rating-changed"})],q.prototype,"fetchRatingSummary",null);var Fu={"ft-reader-map-feedback":G,"ft-reader-topic-feedback":q};(0,Bu.customElements)(Fu);})();
1558
+ `}willUpdate(e){var r,i,n,o,s;super.willUpdate(e),["tocNode","user"].some(a=>e.has(a))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Vt,jn),["map","tocNode","configuration","user","mailSubject"].some(a=>e.has(a))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(a=>e.has(a))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Ce.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new Ce.FtNotificationEvent({type:"info",message:Vt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ce.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ce.FtNotificationEvent({type:"info",message:Vt.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ce.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Hn(e))}openMoreOptions(){var e,r,i,n,o,s,a,l;this.dispatchEvent(new Bn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((o=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(a=this.ratingSummary)===null||a===void 0?void 0:a.type:X.NO_RATING)||X.NO_RATING,ratingValue:(l=this.ratingSummary)===null||l===void 0?void 0:l.rating}))}};Y.elementDefinitions={"ft-reader-feedback":cr};Y.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,o;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(o=e.ratingSummary)!==null&&o!==void 0?o:s};_e([(0,Ce.redux)({store:S.name})],Y.prototype,"session",void 0);_e([(0,Ce.redux)({store:"reader"})],Y.prototype,"map",void 0);_e([(0,Ce.redux)({store:S.name})],Y.prototype,"editorMode",void 0);_e([(0,Ce.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Y.prototype,"configuration",void 0);_e([(0,Ce.redux)({store:"reader",selector:Y.storedRatingIfAuthenticated})],Y.prototype,"ratingSummary",void 0);_e([(0,et.property)({type:Boolean})],Y.prototype,"hideTitle",void 0);_e([(0,et.property)({type:Boolean})],Y.prototype,"withMoreOptionsButton",void 0);_e([(0,et.property)()],Y.prototype,"iconVariant",void 0);_e([(0,et.property)()],Y.prototype,"emptyStarIcon",void 0);_e([(0,et.property)()],Y.prototype,"filledStarIcon",void 0);_e([(0,et.property)()],Y.prototype,"emptyLikeIcon",void 0);_e([(0,et.property)()],Y.prototype,"filledLikeIcon",void 0);_e([(0,et.property)()],Y.prototype,"emptyDislikeIcon",void 0);_e([(0,et.property)()],Y.prototype,"filledDislikeIcon",void 0);_e([(0,et.query)("ft-reader-feedback")],Y.prototype,"readerFeedback",void 0);_e([An(Fr.properties["mail.feedback.subject"](t=>{var e,r,i,n;return[(r=(e=t.tocNode)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:"",(n=(i=t.map)===null||i===void 0?void 0:i.title)!==null&&n!==void 0?n:""]}))],Y.prototype,"mailSubject",void 0);_e([(0,Ce.reduxEventListener)({eventName:"rating-changed"})],Y.prototype,"fetchRatingSummary",null);var Zu={"ft-reader-map-feedback":q,"ft-reader-topic-feedback":Y};(0,Ju.customElements)(Zu);})();
1559
1559
  /*! Bundled license information:
1560
1560
 
1561
1561
  lit-html/lit-html.js: