@fluid-topics/ft-reader-feedback 2.1.23 → 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.
- package/build/ft-reader-feedback.light.js +398 -400
- package/build/ft-reader-feedback.min.js +327 -329
- package/package.json +6 -6
|
@@ -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 D=mr((Sp,ns)=>{ns.exports=ftGlobals.lit});var B=mr((Ap,os)=>{os.exports=ftGlobals.litDecorators});var ye=mr((uf,wa)=>{wa.exports=ftGlobals.litClassMap});var Ic=mr(($y,kc)=>{kc.exports=ftGlobals.litUnsafeHTML});var Xo=mr((wx,lu)=>{lu.exports=ftGlobals.litRepeat});var Bu=f(b());var Mu=f(D()),te=f(B()),Et=f(b());var Ci=f(b()),as=f(B());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 Te;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Te||(Te={}));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},$n=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Mn=Symbol("registerInterval"),qu=(0,Ci.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[Mn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Mn]):this.dispatchEvent(new $n)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Mn,Gu([(0,as.state)()],r.prototype,"stateManager",void 0),r}),gr=class extends qu(Ci.FtLitElementRedux){};var it=f(D()),nt=f(B()),Wr=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 q;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(q||(q={}));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 Ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ps||(Ps={}));var ks;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ks||(ks={}));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 zn=globalThis,qs=e=>e,_i=zn.trustedTypes,Ys=_i?_i.createPolicy("lit-html",{createHTML:e=>e}):void 0,ea="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,ra="?"+Oe,Xu=`<${ra}>`,Ye=document,Ti=()=>Ye.createComment(""),Yr=e=>e===null||typeof e!="object"&&typeof e!="function",Wn=Array.isArray,Zu=e=>Wn(e)||typeof e?.[Symbol.iterator]=="function",Un=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Qs=/"/g,ia=/^(?:script|style|textarea|title)$/i,Kn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),na=Kn(1),oa=Kn(2),sa=Kn(3),Xr=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),ta=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function aa(e,t){if(!Wn(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=qr;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===qr?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??qr,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=qr:(s=Ge,n=void 0);let h=s===Ge&&e[a+1].startsWith("/>")?" ":"";o+=s===qr?l+Xu:d>=0?(i.push(c),l.slice(0,d)+ea+l.slice(d)+Oe+h):l+Oe+(d===-2?a:h)}return[aa(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Zr=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(Oe),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Bn:m[1]==="?"?Hn:m[1]==="@"?jn:yr}),n.removeAttribute(d)}else d.startsWith(Oe)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(ia.test(n.tagName)){let d=n.textContent.split(Oe),p=d.length-1;if(p>0){n.textContent=_i?_i.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],Ti()),qe.nextNode(),l.push({type:2,index:++o});n.append(d[p],Ti())}}}else if(n.nodeType===8)if(n.data===ra)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Oe,d+1))!==-1;)l.push({type:7,index:o}),d+=Oe.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===Xr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=Yr(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 Fn=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 Oi(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new Vn(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++}},Oi=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),Yr(t)?t===at||t==null||t===""?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==Xr&&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&&Yr(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=Zr.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Fn(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 Zr(t)),r}k(t){Wn(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(Ti()),this.O(Ti()),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=!Yr(t)||t!==this._$AH&&t!==Xr,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===Xr&&(c=this._$AH[l]),s||=!Yr(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??"")}},Bn=class extends yr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}},Hn=class extends yr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},jn=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)===Xr)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)}},Vn=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=zn.litHtmlPolyfillSupport;Qu?.(Zr,Oi),(zn.litHtmlVersions??=[]).push("3.3.3");var ca=Symbol.for(""),td=e=>{if(e?.r===ca)return e?._$litStatic$},Gn=e=>({_$litStatic$:e,r:ca});var la=new Map,qn=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)},Yn=qn(na),zp=qn(oa),Wp=qn(sa);var Xn=f(B()),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(D()),y=f(b()),ua=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),ve=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),w={fontFamily:ve,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")},Re={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")},Le={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","",ve),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","",ve),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","",ve),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","",ve),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","",ve),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","",ve),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","",ve),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","",ve),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: ${
|
|
6
|
-
font-size: ${
|
|
7
|
-
font-weight: ${
|
|
8
|
-
letter-spacing: ${
|
|
9
|
-
line-height: ${
|
|
10
|
-
text-transform: ${
|
|
11
|
-
}
|
|
12
|
-
`,
|
|
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: ${
|
|
15
|
-
font-size: ${
|
|
16
|
-
font-weight: ${
|
|
17
|
-
letter-spacing: ${
|
|
18
|
-
line-height: ${
|
|
19
|
-
text-transform: ${
|
|
20
|
-
}
|
|
21
|
-
`,
|
|
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: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
font-weight: ${
|
|
26
|
-
letter-spacing: ${
|
|
27
|
-
line-height: ${
|
|
28
|
-
text-transform: ${
|
|
29
|
-
}
|
|
30
|
-
`,
|
|
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: ${
|
|
33
|
-
font-size: ${
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
36
|
-
line-height: ${
|
|
37
|
-
text-transform: ${
|
|
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
|
-
`,
|
|
40
|
+
`,br=Ge.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
48
|
-
}
|
|
49
|
-
`,
|
|
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: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
57
|
-
}
|
|
58
|
-
`,
|
|
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: ${$
|
|
61
|
-
font-size: ${$
|
|
62
|
-
font-weight: ${$
|
|
63
|
-
letter-spacing: ${$
|
|
64
|
-
line-height: ${$
|
|
65
|
-
text-transform: ${$
|
|
66
|
-
}
|
|
67
|
-
`,
|
|
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: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
75
|
-
}
|
|
76
|
-
`,
|
|
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: ${
|
|
79
|
-
font-size: ${
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
83
|
-
text-transform: ${
|
|
84
|
-
}
|
|
85
|
-
`,
|
|
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: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
93
|
-
}
|
|
94
|
-
`,
|
|
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
|
|
99
|
-
<${
|
|
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
|
-
</${
|
|
104
|
-
`:
|
|
103
|
+
</${no(this.element)}>
|
|
104
|
+
`:so`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};
|
|
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: ${
|
|
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: ${
|
|
153
|
+
background-color: ${ue.backgroundColor};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ft-ripple .ft-ripple--effect {
|
|
157
|
-
background-color: ${
|
|
157
|
+
background-color: ${ue.color};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
161
|
-
background-color: ${
|
|
161
|
+
background-color: ${Na.backgroundColor};
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
165
|
-
background-color: ${
|
|
165
|
+
background-color: ${Na.color};
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
169
|
-
background-color: ${
|
|
169
|
+
background-color: ${Pa.backgroundColor};
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
173
|
-
background-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: ${
|
|
203
|
+
opacity: ${ue.opacityContentOnSurfaceHover};
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
207
|
-
opacity: ${
|
|
207
|
+
opacity: ${ue.opacityContentOnSurfaceSelected};
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
211
|
-
opacity: ${
|
|
211
|
+
opacity: ${ue.opacityContentOnSurfaceFocused};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
215
|
-
opacity: ${
|
|
215
|
+
opacity: ${ue.opacityContentOnSurfacePressed};
|
|
216
216
|
transform: translate(-50%, -50%) scale(1);
|
|
217
217
|
}
|
|
218
|
-
`;var
|
|
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,
|
|
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(
|
|
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: ${
|
|
247
|
+
max-width: ${Gr.maxWidth};
|
|
248
248
|
text-align: center;
|
|
249
|
-
padding: ${
|
|
249
|
+
padding: ${Gr.distance};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-tooltip--content {
|
|
253
253
|
padding: 4px 8px;
|
|
254
|
-
border-radius: ${
|
|
255
|
-
background-color: ${
|
|
256
|
-
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"],Jn=Fa.reduce((e,t)=>e.concat(t,t+"-"+Ua[0],t+"-"+Ua[1]),[]),ti=Math.min,ke=Math.max,ei=Math.round;var de=e=>({x:e,y:e}),ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Ba(e,t,r){return ke(e,ti(t,r))}function Li(e,t){return typeof e=="function"?e(t):e}function ri(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function to(e){return e==="y"?"height":"width"}function Pi(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function eo(e){return Qn(Pi(e))}function Ha(e,t,r){r===void 0&&(r=!1);let i=Ie(e),n=eo(e),o=to(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Zn(s)),[s,Zn(s)]}function ja(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Zn(e){let t=ri(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=eo(t),a=to(s),l=ri(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=Ie(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}=Li(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=>Ie(n)===e),...r.filter(n=>Ie(n)!==e)]:r.filter(n=>ri(n)===n)).filter(n=>e?Ie(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=Jn,autoAlignment:h=!0,...m}=Li(e,t),g=d!==void 0||p===Jn?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[ri(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 Ce=dt.map(Nt=>{let Vt=Ie(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]),_e=((n=Ce.filter(Nt=>Nt[2].slice(0,Ie(Nt[0])?2:3).every(Vt=>Vt<=0))[0])==null?void 0:n[0])||Ce[0][0];return _e!==a?{data:{index:x+1,overflows:dt},reset:{placement:_e}}:{}}}};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}=Li(e,t),u={x:r,y:i},d=await o.detectOverflow(t,c),p=Pi(n),h=Qn(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 Ii(){return typeof window<"u"}function Je(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Ii()?e instanceof Node||e instanceof Pt(e).Node:!1}function re(e){return Ii()?e instanceof Element||e instanceof Pt(e).Element:!1}function xe(e){return Ii()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function Ya(e){return!Ii()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}function ii(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=ie(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 ni(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",ro;function Cr(e){let t=re(e)?ie(e):e;return Ze(t.transform)||Ze(t.translate)||Ze(t.scale)||Ze(t.rotate)||Ze(t.perspective)||!Di()&&(Ze(t.backdropFilter)||Ze(t.filter))||od.test(t.willChange||"")||sd.test(t.contain||"")}function Ja(e){let t=De(e);for(;xe(t)&&!_r(t);){if(Cr(t))return t;if(ni(t))return null;t=De(t)}return null}function Di(){return ro==null&&(ro=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ro}function _r(e){return/^(html|body|#document)$/.test(Je(e))}function ie(e){return Pt(e).getComputedStyle(e)}function oi(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if(Je(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ya(e)&&e.host||be(e);return Ya(t)?t.host:t}function Qa(e){let t=De(e);return _r(t)?(e.ownerDocument||e).body:xe(t)&&ii(t)?t:Qa(t)}function ki(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=Pt(n);if(o){let a=Ni(s);return t.concat(s,s.visualViewport||[],ii(n)?n:[],a&&r?ki(a):[])}else return t.concat(n,ki(n,[],r))}function Ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=ie(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=xe(e),o=n?e.offsetWidth:r,s=n?e.offsetHeight:i,a=ei(r)!==o||ei(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function il(e){return re(e)?e:e.contextElement}function Tr(e){let t=il(e);if(!xe(t))return de(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:o}=rl(t),s=(o?ei(r.width):r.width)/i,a=(o?ei(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var ad=de(0);function nl(e){let t=Pt(e);return!Di()||!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===Pt(e)}function si(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=il(e),s=de(1);t&&(i?re(i)&&(s=Tr(i)):s=Tr(e));let a=ld(o,r,i)?nl(o):de(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=Pt(o),h=re(i)?Pt(i):i,m=p,g=Ni(m);for(;g&&h!==m;){let x=Tr(g),S=g.getBoundingClientRect(),A=ie(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=Pt(g),g=Ni(m)}}return Xe({width:u,height:d,x:l,y:c})}function Mi(e,t){let r=oi(e).scrollLeft;return t?t.left+r:si(be(e)).left+r}function ol(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Mi(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=be(i),a=t?ni(t.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=de(1),u=de(0),d=xe(i);if((d||!o)&&((Je(i)!=="body"||ii(s))&&(l=oi(i)),d)){let h=si(i);c=Tr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?ol(s,l):de(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=oi(e),r=e.ownerDocument.body,i=ke(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=ke(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+Mi(e),s=-t.scrollTop;return ie(r).direction==="rtl"&&(o+=ke(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=Pt(e),o=be(e),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Di()||t==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Mi(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=si(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(be(e));else if(re(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=ki(e,[],!1).filter(a=>re(a)&&Je(a)!=="body"),n=null,o=ie(e).position==="fixed",s=o?De(e):e;for(;re(s)&&!_r(s);){let a=ie(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=De(s)}return t.set(e,i),i}function gd(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?ni(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=ke(h.top,l),c=ti(h.right,c),u=ti(h.bottom,u),d=ke(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=xe(t),n=be(t),o=r==="fixed",s=si(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=de(0);if((i||!o)&&((Je(t)!=="body"||ii(n))&&(a=oi(t)),i)){let p=si(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Mi(n));let c=n&&!i&&!o?ol(n,a):de(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 io(e){return ie(e).position==="static"}function el(e,t){if(!xe(e)||ie(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return be(e)===r&&(r=r.ownerDocument.body),r}function sl(e,t){let r=Pt(e);if(ni(e))return r;if(!xe(e)){let n=De(e);for(;n&&!_r(n);){if(re(n)&&!io(n))return n;n=De(n)}return r}let i=el(e,t);for(;i&&Za(i)&&io(i);)i=el(i,t);return i&&_r(i)&&io(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 ie(e).direction==="rtl"}var $i={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:be,getClippingRect:gd,getOffsetParent:sl,getElementRects:bd,getClientRects:ud,getDimensions:vd,getScale:Tr,isElement:re,isRTL:xd};var al=Ga,ll=qa;var cl=(e,t,r)=>{let i=new Map,n=r??{},o={...$i,...n.platform,_c:i};return Ka(e,t,{...n,platform:o})};function ul(e){return Sd(e)}function no(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sd(e){for(let t=e;t;t=no(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=no(e);t;t=no(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:{...$i,getOffsetParent:n=>$i.getOffsetParent(n,ul)},middleware:[ll({crossAxis:!0}),al({allowedPlacements:[i.placement]})]})}var Hr=f(b());var Po=f(B());var pl=f(B(),1);var oo=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 ai(e);try{return JSON.parse(r)}catch{return ai(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:li,...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(!Ui(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(!Ui(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(!Ui(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ui(e,t){try{return Ad(e,t)}catch{return!1}}function li(e,t){return!Ui(e,t)}function ai(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(B(),1);var so=e=>{let t=e??{};return(r,i)=>{var n;let o={hasChanged:li,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(B(),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(D(),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){oo(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 Rr=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"),Or=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Or.eventName="exportparts-updated";var pe=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(Or.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Or.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 Or)})}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;Rr([(0,Qe.property)()],pe.prototype,"exportpartsPrefix",void 0);Rr([fl([])],pe.prototype,"exportpartsPrefixes",void 0);Rr([(0,Qe.property)({reflect:!0})],pe.prototype,"exportparts",void 0);Rr([(0,Qe.property)()],pe.prototype,"customStylesheet",void 0);Rr([(0,Qe.property)()],pe.prototype,"elementToFocus",void 0);Rr([(0,Qe.state)()],pe.prototype,"useAdoptedStyleSheets",void 0);function zi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ci=Symbol("internalReduxEventsUnsubscribers"),Ne=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[Ne].has(s.store):this[Ne].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Ne].set(s,a.subscribe(()=>this.updateFromStores())),this[ci].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[ci].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ne].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Ne].has(s)&&this[Ne].get(s)(),this[Ne].delete(s),(a=this[ci].get(s))===null||a===void 0||a.forEach(l=>l()),this[ci].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ne,r=tr,i=ci,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),El=class extends wd(pe){};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 Se(e){return!!e&&!!e[z]}function ne(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)===kd})(e)||Array.isArray(e)||!!e[Ll]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ll])||go(e)||vo(e))}function er(e,t,r){r===void 0&&(r=!1),kr(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 kr(e){var t=e[z];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:go(e)?2:vo(e)?3:0}function Lr(e,t){return kr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return kr(e)===2?e.get(t):e[t]}function Pl(e,t,r){var i=kr(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function kl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function go(e){return Ld&&e instanceof Map}function vo(e){return Pd&&e instanceof Set}function Me(e){return e.o||e.t}function yo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nl(e);delete t[z];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 bo(e,t){return t===void 0&&(t=!1),xo(e)||Se(e)||!ne(e)||(kr(e)>1&&(e.set=e.add=e.clear=e.delete=_d),Object.freeze(e),t&&er(e,(function(r,i){return bo(i,!0)}),!0)),e}function _d(){Gt(2)}function xo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fe(e){var t=mo[e];return t||Gt(18,e),t}function Td(e,t){mo[e]||(mo[e]=t)}function po(){return di}function ao(e,t){t&&(fe("Patches"),e.u=[],e.s=[],e.v=t)}function Wi(e){fo(e),e.p.forEach(Od),e.p=null}function fo(e){e===di&&(di=e.l)}function wl(e){return di={p:[],l:di,h:e,m:!0,_:0}}function Od(e){var t=e[z];t.i===0||t.i===1?t.j():t.g=!0}function lo(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||fe("ES5").S(t,e,i),i?(r[z].P&&(Wi(t),Gt(4)),ne(e)&&(e=Ki(t,e),t.l||Gi(t,e)),t.u&&fe("Patches").M(r[z].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(xo(t))return t;var i=t[z];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=yo(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&&fe("Patches").N(i,r,e.u,e.s)}return i.o}function Cl(e,t,r,i,n,o,s){if(Se(n)){var a=Ki(e,n,o&&t&&t.i!==3&&!Lr(t.R,i)?o.concat(i):void 0);if(Pl(r,i,a),!Se(a))return;e.m=!1}else s&&r.add(n);if(ne(n)&&!xo(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&&bo(t,r)}function co(e,t){var r=e[z];return(r?Me(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 $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function uo(e){e.o||(e.o=yo(e.t))}function ho(e,t,r){var i=go(t)?fe("MapSet").F(t,r):vo(t)?fe("MapSet").T(t,r):e.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:po(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=pi;s&&(l=[a],c=ui);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):fe("ES5").J(t,r);return(r?r.A:po()).p.push(i),i}function Rd(e){return Se(e)||Gt(22,e),(function t(r){if(!ne(r))return r;var i,n=r[z],o=kr(r);if(n){if(!n.P&&(n.i<4||!fe("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||Pl(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 yo(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[z];return pi.get(c,s)},set:function(c){var u=this[z];pi.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][z];if(!l.P)switch(l.i){case 5:i(l)&&$e(l);break;case 4:r(l)&&$e(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!==z){var p=a[d];if(p===void 0&&!Lr(a,d))return!0;var h=l[d],m=h&&h[z];if(m?m.t!==p:!kl(h,p))return!0}}var g=!!a[z];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(Me(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[z];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:po(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,z,{value:u,writable:!0}),c},S:function(s,a,l){l?Se(a)&&a[z].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[z];if(d){var p=d.t,h=d.k,m=d.R,g=d.i;if(g===4)er(h,(function(L){L!==z&&(p[L]!==void 0||Lr(p,L)?m[L]||c(h[L]):(m[L]=!0,$e(d)))})),er(p,(function(L){h[L]!==void 0||Lr(h,L)||(m[L]=!1,$e(d))}));else if(g===5){if(i(d)&&($e(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,di,So=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ld=typeof Map<"u",Pd=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dl=So?Symbol.for("immer-nothing"):((Ol={})["immer-nothing"]=!0,Ol),Ll=So?Symbol.for("immer-draftable"):"__$immer_draftable",z=So?Symbol.for("immer-state"):"__$immer_state";var kd=""+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},mo={},pi={get:function(e,t){if(t===z)return e;var r=Me(e);if(!Lr(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||!ne(i)?i:i===co(e.t,t)?(uo(e),e.o[t]=ho(e.A.h,i,e)):i},has:function(e,t){return t in Me(e)},ownKeys:function(e){return Reflect.ownKeys(Me(e))},set:function(e,t,r){var i=_l(Me(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=co(Me(e),t),o=n?.[z];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(kl(r,n)&&(r!==void 0||Lr(e.t,t)))return!0;uo(e),$e(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 co(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,uo(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Me(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)}},ui={};er(pi,(function(e,t){ui[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ui.deleteProperty=function(e,t){return ui.set.call(this,e,t,void 0)},ui.set=function(e,t,r){return pi.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),ne(n)){var u=wl(i),d=ho(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?Wi(u):fo(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return ao(u,s),lo(g,u)}),(function(g){throw Wi(u),g})):(ao(u,s),lo(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Dl&&(c=void 0),i.D&&bo(c,!0),s){var h=[],m=[];fe("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){ne(r)||Gt(8),Se(r)&&(r=Rd(r));var i=wl(this),n=ho(this,r,void 0);return n[z].C=!0,fo(i),n},t.finishDraft=function(r,i){var n=r&&r[z],o=n.A;return ao(o,i),lo(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=fe("Patches").$;return Se(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 Ao(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"})(),Eo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yi={INIT:"@@redux/INIT"+Eo(),REPLACE:"@@redux/REPLACE"+Eo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Eo()}};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 wo(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(wo)(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 Ir(){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=Ir.apply(void 0,a)(n.dispatch),Ao(Ao({},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 Co=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}}},Dr=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},Ue=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},_o=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"?Ir:Ir.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 Fe(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 Ue(Ue({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,Dr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Dr([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,Dr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Dr([void 0],r.concat(this))))},t})(Array);function Ro(e){return ne(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(Co):c.push(Co.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var To=!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),!To&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!To&&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=Ir;l&&(x=zd(Ue({trace:!To},typeof l=="object"&&l)));var S=new Gd(g),A=S;Array.isArray(p)?A=Dr([g],p):typeof p=="function"&&(A=p(S));var O=x.apply(void 0,A);return wo(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 Ro(e())};else{var c=Ro(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Dr([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(Se(m)){var x=m,S=g(x,p);return S===void 0?m:S}else{if(ne(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:Ro(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?Fe(p,m):Fe(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=Ue(Ue({},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"],Oo=(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=Fe(t+"/fulfilled",function(u,d,p,h){return{payload:u,meta:_o(Ue({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Fe(t+"/pending",function(u,d,p){return{payload:void 0,meta:_o(Ue({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Fe(t+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||ip)(u||"Rejected"),meta:_o(Ue({},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,Ce,Nn,_e,Nt;return $d(this,function(Vt){switch(Vt.label){case 0:return Vt.trys.push([0,4,,5]),Ce=(L=i?.condition)==null?void 0:L.call(i,u,{getState:p,extra:h}),op(Ce)?[4,Ce]:[3,2];case 1:Ce=Vt.sent(),Vt.label=2;case 2:if(Ce===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Nn=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([Nn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:g.signal,abort:A,rejectWithValue:function(Mt,Ke){return new Oo(Mt,Ke)},fulfillWithValue:function(Mt,Ke){return new Gl(Mt,Ke)}})).then(function(Mt){if(Mt instanceof Oo)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 _e=Vt.sent(),ot=_e instanceof Oo?s(null,m,u,_e.payload,_e.meta):s(_e,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 Lo="listenerMiddleware";var Zh=Fe(Lo+"/add"),Jh=Fe(Lo+"/removeAll"),Qh=Fe(Lo+"/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=ai(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=>{this.setState({[l]: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",Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Nr.eventName="authentication-change";var fi=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};fi.eventName="ui-locale-changed";var cp={session:(e,t)=>{(0,Ji.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>E.dispatchEvent(new Nr(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([so({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([so({store:E.name})],t.prototype,"uiLocale",void 0),t});var on=f(b());var ko=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 Mr=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 Mr{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 ko.CacheRegistry,this.cache=t?n.commonCache:new ko.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;Do(e,r,[...Io(e,r),n]),nc(e,r,1,i),oc(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Do(e,r,Io(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;Do(e,r,Io(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},Io=(e,t)=>{var r;let i=sc[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Do=(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:[]}}),No=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 No;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=pp);var Mo=class{addCommand(t,r=!1){E.commands.add(t,r)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Mo;var qt=f(b());var ac,$r=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 $r({loadedContexts:t})),this.dispatchEvent(new $r({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new $r({loadedContexts:[t]})),this.dispatchEvent(new $r({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 Ur=window.FluidTopicsI18nService,an=window.FluidTopicsCustomI18nService;var lc=f(b()),$o=class{highlightHtml(t,r,i){(0,lc.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new $o;var cc=f(b());var Uo=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 Uo;var uc=f(b());var hi=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 Fo=class{urlToSearchRequest(t){return hi.get().parse(t)}searchRequestToUrl(t){return hi.get().serialize(t)}};window.FluidTopicsUrlService=new Fo;var Ae=f(b());var nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};nr.eventName="change";var Bo=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 Bo;var ln=class e extends Ae.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,Ae.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,Ae.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,Ae.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ae.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,Ae.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 Fr=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(D());var fc=pc.css`
|
|
261
|
-
`;var
|
|
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(
|
|
264
|
-
`;var
|
|
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(
|
|
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="${
|
|
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(
|
|
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: ${
|
|
293
|
-
height: ${
|
|
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: ${
|
|
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: ${
|
|
310
|
+
vertical-align: ${Re.verticalAlign};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
i.ft-icon.ft-icon--fluid-topics {
|
|
314
|
-
font-family: ${
|
|
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 * ${
|
|
318
|
-
line-height: ${
|
|
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: ${
|
|
325
|
+
font-family: ${Re.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
.ft-icon--material {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${Re.materialFontFamily}, "Material Icons", sans-serif;
|
|
330
330
|
}
|
|
331
|
-
`,
|
|
332
|
-
<i class="ft-icon ft-icon--${
|
|
333
|
-
${(0,
|
|
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="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ir||(ir={}));var h;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(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
|
|
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(${
|
|
351
|
-
--switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${
|
|
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: ${
|
|
355
|
-
border-width: ${
|
|
356
|
-
border-radius: ${
|
|
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,
|
|
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: ${
|
|
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: ${
|
|
373
|
-
border-radius: ${
|
|
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: ${
|
|
378
|
+
opacity: ${ke.designSystemVariables.opacityPrimaryOnSurfaceSelected};
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.ft-switch-option--label {
|
|
382
|
-
color: ${
|
|
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,
|
|
389
|
-
${(0,
|
|
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: ${
|
|
393
|
+
color: ${Q.selectedTextColor};
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
.ft-switch-option--focused {
|
|
397
|
-
outline: 1px solid ${
|
|
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,
|
|
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: ${
|
|
418
|
+
color: ${Q.iconColor};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-switch-option--selected ft-icon {
|
|
422
|
-
color: ${
|
|
422
|
+
color: ${Q.selectedTextColor};
|
|
423
423
|
}
|
|
424
|
-
`;var
|
|
425
|
-
<label part="label" for="input" class="${(0,
|
|
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 ${
|
|
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(
|
|
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
|
-
${
|
|
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
|
|
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
|
-
`:
|
|
449
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,
|
|
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(
|
|
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: ${
|
|
462
|
-
outline-color: ${
|
|
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,
|
|
472
|
-
${(0,
|
|
473
|
-
${(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,
|
|
478
|
-
${(0,
|
|
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,
|
|
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
|
-
`;
|
|
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: ${
|
|
495
|
-
border-radius: ${
|
|
494
|
+
background-color: ${_.backgroundColor};
|
|
495
|
+
border-radius: ${_.borderRadius} ${_.borderRadius} 0 0;
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-input-label--outlined {
|
|
499
|
-
border-radius: ${
|
|
499
|
+
border-radius: ${_.borderRadius};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.ft-input-label {
|
|
503
|
-
border-color: ${
|
|
503
|
+
border-color: ${_.borderColor};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
.ft-input-label.ft-input-label--in-error {
|
|
507
|
-
border-color: ${
|
|
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(${
|
|
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: ${
|
|
536
|
+
color: ${_.textColor};
|
|
537
537
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
538
|
-
max-width: calc(${
|
|
538
|
+
max-width: calc(${_.labelMaxWidth} - 2 * (${_.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
539
539
|
text-overflow: ellipsis;
|
|
540
|
-
${(0,
|
|
541
|
-
${(0,
|
|
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: ${
|
|
545
|
+
color: ${_.colorError}
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-input-label--disabled .ft-input-label--text {
|
|
549
|
-
color: ${
|
|
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% - ${$
|
|
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: ${
|
|
567
|
-
margin: calc(${
|
|
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,
|
|
574
|
-
${(0,
|
|
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: ${
|
|
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: ${
|
|
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 ${
|
|
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: ${
|
|
603
|
-
background-color: ${
|
|
604
|
-
border-radius: ${
|
|
605
|
-
top: calc((${$
|
|
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
|
|
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,
|
|
624
|
-
${(0,
|
|
625
|
-
${(0,
|
|
626
|
-
${(0,
|
|
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,
|
|
645
|
-
${(0,
|
|
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,
|
|
658
|
-
${(0,
|
|
659
|
-
color: ${
|
|
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 ${
|
|
662
|
-
margin: calc(${
|
|
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: ${
|
|
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,
|
|
680
|
-
${(0,
|
|
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: ${
|
|
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: ${
|
|
690
|
-
margin-top: calc(${
|
|
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: ${
|
|
694
|
+
border-radius: ${V.borderRadiusS};
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
.ft-text-area--helper-text {
|
|
698
|
-
padding: 0 12px 0 ${
|
|
699
|
-
color: ${
|
|
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: ${
|
|
704
|
+
color: ${V.colorError};
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
ft-resizer {
|
|
708
708
|
position: absolute;
|
|
709
709
|
bottom: 0;
|
|
710
710
|
}
|
|
711
|
-
`;var
|
|
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: ${
|
|
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: ${
|
|
728
|
+
color: ${su.colorOnSurfaceMedium};
|
|
729
729
|
}
|
|
730
|
-
`;var
|
|
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,
|
|
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(
|
|
746
|
-
<div class="${(0,
|
|
747
|
-
${
|
|
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
|
-
`}};
|
|
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 * ${
|
|
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,
|
|
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:
|
|
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?
|
|
795
|
-
<ft-typography class="ft-text-area--helper-text" variant="${
|
|
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(
|
|
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: ${
|
|
809
|
-
height: ${
|
|
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: ${
|
|
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 * ${
|
|
865
|
+
transform: translate(calc(0.35 * ${sr.size}), 0);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
|
-
`;var
|
|
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
|
-
`}};
|
|
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: ${
|
|
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 ${
|
|
906
|
+
outline: 2px solid ${O.designSystemVariables.colorPrimary};
|
|
907
907
|
outline-offset: 2px;
|
|
908
908
|
}
|
|
909
909
|
|
|
@@ -917,32 +917,31 @@
|
|
|
917
917
|
border: none;
|
|
918
918
|
pointer-events: auto;
|
|
919
919
|
|
|
920
|
-
--button-internal-line-height: max(calc(${
|
|
921
|
-
--button-internal-color: ${
|
|
922
|
-
${(0,
|
|
923
|
-
${(0,
|
|
924
|
-
${(0,
|
|
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: ${
|
|
927
|
-
padding: ${
|
|
928
|
-
background-color: ${
|
|
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(${
|
|
934
|
+
padding: calc(${z.verticalPadding} - 1px) calc(${z.horizontalPadding} - 1px);
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
.ft-button.ft-button--dense {
|
|
938
|
-
padding: ${
|
|
939
|
-
border-radius: ${
|
|
940
|
-
|
|
941
|
-
${(0,R.setVariable)(lt.borderRadius,ue.borderRadius)};
|
|
938
|
+
padding: ${gt.verticalPadding} ${gt.horizontalPadding};
|
|
939
|
+
border-radius: ${gt.borderRadius};
|
|
940
|
+
${(0,O.setVariable)(ue.borderRadius,gt.borderRadius)};
|
|
942
941
|
}
|
|
943
942
|
|
|
944
943
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
945
|
-
padding: calc(${
|
|
944
|
+
padding: calc(${gt.verticalPadding} - 1px) calc(${gt.horizontalPadding} - 1px);
|
|
946
945
|
}
|
|
947
946
|
|
|
948
947
|
.ft-button:not([disabled]):hover {
|
|
@@ -950,22 +949,22 @@
|
|
|
950
949
|
}
|
|
951
950
|
|
|
952
951
|
.ft-button--round {
|
|
953
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
952
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${z.verticalPadding});
|
|
954
953
|
}
|
|
955
954
|
|
|
956
955
|
.ft-button--round.ft-button--dense {
|
|
957
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
956
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${gt.verticalPadding});
|
|
958
957
|
}
|
|
959
958
|
|
|
960
959
|
.ft-button[disabled] {
|
|
961
960
|
filter: grayscale(1);
|
|
962
|
-
opacity: ${
|
|
961
|
+
opacity: ${z.opacityDisabled};
|
|
963
962
|
}
|
|
964
963
|
|
|
965
964
|
.ft-button.ft-button--primary {
|
|
966
|
-
background-color: ${
|
|
967
|
-
--button-internal-color: ${
|
|
968
|
-
${(0,
|
|
965
|
+
background-color: ${ns.backgroundColor};
|
|
966
|
+
--button-internal-color: ${ns.color};
|
|
967
|
+
${(0,O.setVariable)(ue.color,ns.rippleColor)};
|
|
969
968
|
}
|
|
970
969
|
|
|
971
970
|
.ft-button--label {
|
|
@@ -974,17 +973,17 @@
|
|
|
974
973
|
white-space: nowrap;
|
|
975
974
|
text-overflow: ellipsis;
|
|
976
975
|
display: block;
|
|
977
|
-
margin: 0 ${
|
|
978
|
-
${(0,
|
|
979
|
-
${(0,
|
|
976
|
+
margin: 0 ${z.iconPadding};
|
|
977
|
+
${(0,O.setVariable)(Te.fontSize,"1em")};
|
|
978
|
+
${(0,O.setVariable)(Te.lineHeight,"var(--button-internal-line-height)")};
|
|
980
979
|
}
|
|
981
980
|
|
|
982
981
|
.ft-button--dense .ft-button--label {
|
|
983
|
-
margin: 0 ${
|
|
982
|
+
margin: 0 ${gt.iconPadding};
|
|
984
983
|
}
|
|
985
984
|
|
|
986
|
-
.ft-button--label
|
|
987
|
-
|
|
985
|
+
.ft-button--label.ft-button--label-no-text {
|
|
986
|
+
margin: 0;
|
|
988
987
|
}
|
|
989
988
|
|
|
990
989
|
[part="icon"] {
|
|
@@ -993,13 +992,13 @@
|
|
|
993
992
|
}
|
|
994
993
|
|
|
995
994
|
.ft-button--label[hidden] + [part="icon"] {
|
|
996
|
-
margin: 0 calc(${
|
|
997
|
-
padding: 0 ${
|
|
995
|
+
margin: 0 calc(${z.horizontalPadding} * -1);
|
|
996
|
+
padding: 0 ${z.verticalPadding};
|
|
998
997
|
}
|
|
999
998
|
|
|
1000
999
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
1001
|
-
margin: 0 calc(${
|
|
1002
|
-
padding: 0 ${
|
|
1000
|
+
margin: 0 calc(${gt.horizontalPadding} * -1);
|
|
1001
|
+
padding: 0 ${gt.verticalPadding};
|
|
1003
1002
|
}
|
|
1004
1003
|
|
|
1005
1004
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -1007,52 +1006,51 @@
|
|
|
1007
1006
|
}
|
|
1008
1007
|
|
|
1009
1008
|
ft-loader {
|
|
1010
|
-
${(0,
|
|
1011
|
-
${(0,
|
|
1009
|
+
${(0,O.setVariable)(sr.size,z.iconSize)};
|
|
1010
|
+
${(0,O.setVariable)(sr.color,"var(--button-internal-color)")};
|
|
1012
1011
|
}
|
|
1013
|
-
`;var
|
|
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`
|
|
1014
1013
|
<ft-ripple part="ripple"
|
|
1015
1014
|
?disabled=${this.isDisabled()}
|
|
1016
1015
|
?activated=${this.activated}
|
|
1017
1016
|
></ft-ripple>
|
|
1018
1017
|
<ft-typography part="label"
|
|
1019
|
-
variant="${
|
|
1018
|
+
variant="${ye.button}"
|
|
1020
1019
|
element="span"
|
|
1021
|
-
class="
|
|
1022
|
-
|
|
1023
|
-
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1020
|
+
class="${(0,In.classMap)(n)}">
|
|
1021
|
+
<slot></slot>
|
|
1024
1022
|
</ft-typography>
|
|
1025
1023
|
${this.resolveIcon()}
|
|
1026
|
-
`,
|
|
1027
|
-
<a href="${
|
|
1028
|
-
target="${(
|
|
1024
|
+
`,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Bt.html`
|
|
1025
|
+
<a href="${s}"
|
|
1026
|
+
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
1029
1027
|
part="button"
|
|
1030
|
-
class="${(0,
|
|
1031
|
-
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.
|
|
1028
|
+
class="${(0,In.classMap)(this.buttonClasses)}"
|
|
1029
|
+
aria-label="${mt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
1032
1030
|
?disabled=${this.isDisabled()}>
|
|
1033
|
-
${
|
|
1031
|
+
${o}
|
|
1034
1032
|
</a>
|
|
1035
|
-
`:
|
|
1033
|
+
`:Bt.html`
|
|
1036
1034
|
<button part="button"
|
|
1037
|
-
class="${(0,
|
|
1038
|
-
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.
|
|
1039
|
-
aria-haspopup="${
|
|
1040
|
-
aria-pressed="${
|
|
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)}"
|
|
1041
1039
|
?disabled=${this.isDisabled()}>
|
|
1042
|
-
${
|
|
1040
|
+
${o}
|
|
1043
1041
|
</button>
|
|
1044
|
-
`)}addTooltipIfNeeded(
|
|
1042
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Bt.html`
|
|
1045
1043
|
<ft-tooltip part="tooltip"
|
|
1046
|
-
text="${this.
|
|
1044
|
+
text="${this.label}"
|
|
1047
1045
|
position="${this.tooltipPosition}">
|
|
1048
|
-
${
|
|
1046
|
+
${e}
|
|
1049
1047
|
</ft-tooltip>
|
|
1050
|
-
`:
|
|
1051
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1048
|
+
`:e}resolveIcon(){return this.loading?Bt.html`
|
|
1049
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Bt.html`
|
|
1052
1050
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
1053
|
-
`:
|
|
1051
|
+
`:Bt.html`
|
|
1054
1052
|
<slot part="icon" name="icon"></slot>
|
|
1055
|
-
`}focus(){var
|
|
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`
|
|
1056
1054
|
*:focus {
|
|
1057
1055
|
outline: none;
|
|
1058
1056
|
}
|
|
@@ -1062,21 +1060,21 @@
|
|
|
1062
1060
|
flex-direction: column;
|
|
1063
1061
|
align-items: stretch;
|
|
1064
1062
|
position: relative;
|
|
1065
|
-
--text-field-internal-suggest-size: ${
|
|
1063
|
+
--text-field-internal-suggest-size: ${k.suggestSize};
|
|
1066
1064
|
}
|
|
1067
1065
|
|
|
1068
1066
|
ft-input-label {
|
|
1069
|
-
${(0,
|
|
1070
|
-
${(0,
|
|
1071
|
-
${(0,
|
|
1072
|
-
${(0,
|
|
1073
|
-
${(0,
|
|
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)};
|
|
1074
1072
|
}
|
|
1075
1073
|
|
|
1076
1074
|
.ft-text-field--main-panel {
|
|
1077
1075
|
position: relative;
|
|
1078
1076
|
display: flex;
|
|
1079
|
-
height: calc(4 * ${
|
|
1077
|
+
height: calc(4 * ${k.verticalSpacing} + ${k.labelSize} + ${k.fontSize});
|
|
1080
1078
|
}
|
|
1081
1079
|
|
|
1082
1080
|
.ft-text-field--input-panel {
|
|
@@ -1085,24 +1083,24 @@
|
|
|
1085
1083
|
display: flex;
|
|
1086
1084
|
align-items: center;
|
|
1087
1085
|
overflow: hidden;
|
|
1088
|
-
padding: 0 ${
|
|
1086
|
+
padding: 0 ${k.horizontalSpacing};
|
|
1089
1087
|
|
|
1090
|
-
${(0,
|
|
1091
|
-
${(0,
|
|
1088
|
+
${(0,A.setVariable)(Ke.fontSize,k.fontSize)};
|
|
1089
|
+
${(0,A.setVariable)(Ke.lineHeight,k.fontSize)};
|
|
1092
1090
|
}
|
|
1093
1091
|
|
|
1094
1092
|
.ft-text-field--input-panel ft-ripple {
|
|
1095
|
-
${(0,
|
|
1096
|
-
${(0,
|
|
1093
|
+
${(0,A.setVariable)(ue.opacityContentOnSurfaceHover,"0.08")};
|
|
1094
|
+
${(0,A.setVariable)(ue.opacityContentOnSurfacePressed,"0.04")};
|
|
1097
1095
|
}
|
|
1098
1096
|
|
|
1099
1097
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1100
1098
|
align-items: flex-end;
|
|
1101
|
-
padding: 0 ${
|
|
1099
|
+
padding: 0 ${k.horizontalSpacing} ${k.verticalSpacing} ${k.horizontalSpacing};
|
|
1102
1100
|
}
|
|
1103
1101
|
|
|
1104
1102
|
.ft-text-field--prefix {
|
|
1105
|
-
color: ${
|
|
1103
|
+
color: ${k.prefixColor};
|
|
1106
1104
|
margin-right: 2px;
|
|
1107
1105
|
flex-shrink: 1;
|
|
1108
1106
|
overflow: hidden;
|
|
@@ -1121,22 +1119,22 @@
|
|
|
1121
1119
|
flex-shrink: 1;
|
|
1122
1120
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1123
1121
|
|
|
1124
|
-
color: ${
|
|
1125
|
-
padding: calc(2 * ${
|
|
1122
|
+
color: ${k.colorOnSurface};
|
|
1123
|
+
padding: calc(2 * ${k.verticalSpacing}) 0;
|
|
1126
1124
|
border: none;
|
|
1127
1125
|
background: none;
|
|
1128
1126
|
|
|
1129
1127
|
&:-webkit-autofill,
|
|
1130
1128
|
&:-webkit-autofill:hover,
|
|
1131
1129
|
&:-webkit-autofill:focus {
|
|
1132
|
-
-webkit-text-fill-color: ${
|
|
1130
|
+
-webkit-text-fill-color: ${k.colorOnSurface};
|
|
1133
1131
|
transition: background-color 50000000s ease-in-out 100000s;
|
|
1134
1132
|
}
|
|
1135
1133
|
}
|
|
1136
1134
|
|
|
1137
1135
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1138
1136
|
padding-bottom: 0;
|
|
1139
|
-
padding-top: calc(${
|
|
1137
|
+
padding-top: calc(${k.labelSize} + 2 * ${k.verticalSpacing});
|
|
1140
1138
|
}
|
|
1141
1139
|
|
|
1142
1140
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1145,37 +1143,37 @@
|
|
|
1145
1143
|
}
|
|
1146
1144
|
|
|
1147
1145
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1148
|
-
color: ${
|
|
1146
|
+
color: ${k.colorOnSurfaceDisabled};
|
|
1149
1147
|
}
|
|
1150
1148
|
|
|
1151
1149
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1152
|
-
${(0,
|
|
1153
|
-
${(0,
|
|
1150
|
+
${(0,A.setVariable)(_.borderColor,k.colorPrimary)};
|
|
1151
|
+
${(0,A.setVariable)(_.textColor,k.colorPrimary)};
|
|
1154
1152
|
}
|
|
1155
1153
|
|
|
1156
1154
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1157
|
-
border-radius: ${
|
|
1155
|
+
border-radius: ${k.borderRadiusS} ${k.borderRadiusS} 0 0;
|
|
1158
1156
|
}
|
|
1159
1157
|
|
|
1160
1158
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1161
|
-
border-radius: ${
|
|
1159
|
+
border-radius: ${k.borderRadiusS};
|
|
1162
1160
|
}
|
|
1163
1161
|
|
|
1164
1162
|
.ft-text-field--helper-text {
|
|
1165
|
-
padding: 0 12px 0 ${
|
|
1166
|
-
color: ${
|
|
1163
|
+
padding: 0 12px 0 ${k.horizontalSpacing};
|
|
1164
|
+
color: ${k.helperColor};
|
|
1167
1165
|
}
|
|
1168
1166
|
|
|
1169
1167
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1170
1168
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1171
1169
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1172
|
-
color: ${
|
|
1170
|
+
color: ${k.colorError};
|
|
1173
1171
|
}
|
|
1174
1172
|
|
|
1175
1173
|
.ft-text-field--icon {
|
|
1176
1174
|
align-self: center;
|
|
1177
1175
|
margin-left: 8px;
|
|
1178
|
-
color: ${
|
|
1176
|
+
color: ${k.iconColor};
|
|
1179
1177
|
}
|
|
1180
1178
|
|
|
1181
1179
|
.ft-text-field--container {
|
|
@@ -1186,11 +1184,11 @@
|
|
|
1186
1184
|
display: none;
|
|
1187
1185
|
flex-direction: column;
|
|
1188
1186
|
position: absolute;
|
|
1189
|
-
z-index: ${
|
|
1190
|
-
background: ${
|
|
1191
|
-
border: 1px solid ${
|
|
1192
|
-
border-radius: 0 0 ${
|
|
1193
|
-
box-shadow: ${
|
|
1187
|
+
z-index: ${k.floatingZIndex};
|
|
1188
|
+
background: ${k.backgroundColor};
|
|
1189
|
+
border: 1px solid ${k.colorOutline};
|
|
1190
|
+
border-radius: 0 0 ${k.borderRadiusS} ${k.borderRadiusS};
|
|
1191
|
+
box-shadow: ${k.elevation02};
|
|
1194
1192
|
outline: none;
|
|
1195
1193
|
max-height: var(--text-field-internal-suggest-size);
|
|
1196
1194
|
overflow-y: auto;
|
|
@@ -1205,13 +1203,13 @@
|
|
|
1205
1203
|
}
|
|
1206
1204
|
|
|
1207
1205
|
.ft-text-field--with-icon {
|
|
1208
|
-
${(0,
|
|
1206
|
+
${(0,A.setVariable)(_.labelMaxWidth,`calc(100% - ${Re.size} - ${_.horizontalSpacing})`)};
|
|
1209
1207
|
}
|
|
1210
1208
|
|
|
1211
1209
|
.ft-text-field--with-password ft-icon:hover {
|
|
1212
1210
|
cursor: pointer;
|
|
1213
1211
|
}
|
|
1214
|
-
`;var
|
|
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`
|
|
1215
1213
|
.ft-text-field-suggestion {
|
|
1216
1214
|
position: relative;
|
|
1217
1215
|
padding: 8px 16px;
|
|
@@ -1241,30 +1239,30 @@
|
|
|
1241
1239
|
}
|
|
1242
1240
|
|
|
1243
1241
|
.ft-text-field-suggestion--helper-text {
|
|
1244
|
-
color: ${
|
|
1242
|
+
color: ${k.helperColor};
|
|
1245
1243
|
}
|
|
1246
1244
|
|
|
1247
1245
|
slot {
|
|
1248
1246
|
pointer-events: none;
|
|
1249
1247
|
}
|
|
1250
|
-
`;var
|
|
1251
|
-
<div class="${(0,
|
|
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)}"
|
|
1252
1250
|
tabindex="-1"
|
|
1253
1251
|
@keydown=${this.onKeyDown}
|
|
1254
1252
|
@click=${this.confirmSuggestion}>
|
|
1255
1253
|
<ft-ripple></ft-ripple>
|
|
1256
|
-
${this.helper?
|
|
1254
|
+
${this.helper?xi.html`
|
|
1257
1255
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
1258
1256
|
${this.helper}
|
|
1259
|
-
</ft-typography>`:
|
|
1257
|
+
</ft-typography>`:xi.nothing}
|
|
1260
1258
|
<ft-typography part="label"
|
|
1261
1259
|
variant="body1"
|
|
1262
1260
|
class="ft-text-field-suggestion--label">
|
|
1263
1261
|
<slot></slot>
|
|
1264
1262
|
</ft-typography>
|
|
1265
1263
|
</div>
|
|
1266
|
-
`}focus(
|
|
1267
|
-
<div class="${(0,
|
|
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)}">
|
|
1268
1266
|
<div class="ft-text-field--main-panel"
|
|
1269
1267
|
@keydown=${this.handleKeyboardNavigation}
|
|
1270
1268
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1274,21 +1272,21 @@
|
|
|
1274
1272
|
?raised=${this.focused||this.value!=""}
|
|
1275
1273
|
?error=${!this.inputValid||this.error}></ft-input-label>
|
|
1276
1274
|
<div class="ft-text-field--input-panel">
|
|
1277
|
-
${this.outlined?
|
|
1275
|
+
${this.outlined?he.nothing:he.html`
|
|
1278
1276
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1279
1277
|
`}
|
|
1280
|
-
${this.prefix?
|
|
1278
|
+
${this.prefix?he.html`
|
|
1281
1279
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1282
1280
|
${this.prefix}
|
|
1283
1281
|
</ft-typography>
|
|
1284
|
-
`:
|
|
1282
|
+
`:he.nothing}
|
|
1285
1283
|
<input type="${this.resolveInputType()}"
|
|
1286
|
-
name="${
|
|
1287
|
-
maxlength="${
|
|
1284
|
+
name="${mt(this.name)}"
|
|
1285
|
+
maxlength="${mt(this.maxLength||void 0)}"
|
|
1288
1286
|
aria-label="${this.label}"
|
|
1289
|
-
aria-describedby="${
|
|
1287
|
+
aria-describedby="${mt(this.helper?"helper":void 0)}"
|
|
1290
1288
|
aria-invalid="${this.error}"
|
|
1291
|
-
autocomplete="${
|
|
1289
|
+
autocomplete="${mt(this.autocomplete)}"
|
|
1292
1290
|
class="ft-typography--body1 ft-text-field--input"
|
|
1293
1291
|
part="input"
|
|
1294
1292
|
?disabled=${this.disabled}
|
|
@@ -1303,65 +1301,65 @@
|
|
|
1303
1301
|
<div class="ft-text-field--suggestions"
|
|
1304
1302
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1305
1303
|
${this.renderSuggestions()}
|
|
1306
|
-
${o?
|
|
1304
|
+
${o?he.html`
|
|
1307
1305
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1308
1306
|
${this.value}
|
|
1309
1307
|
</ft-text-field-suggestion>
|
|
1310
|
-
`:
|
|
1308
|
+
`:he.nothing}
|
|
1311
1309
|
</div>
|
|
1312
1310
|
</div>
|
|
1313
|
-
${s?
|
|
1314
|
-
<ft-typography class="ft-text-field--helper-text" variant="${
|
|
1311
|
+
${s?he.html`
|
|
1312
|
+
<ft-typography class="ft-text-field--helper-text" variant="${ye.caption}" id="helper" role="alert">
|
|
1315
1313
|
${s}
|
|
1316
1314
|
</ft-typography>
|
|
1317
|
-
`:
|
|
1315
|
+
`:he.nothing}
|
|
1318
1316
|
</div>
|
|
1319
|
-
`}resolveInputType(){var
|
|
1320
|
-
${(0,
|
|
1321
|
-
<ft-text-field-suggestion value="${
|
|
1322
|
-
${
|
|
1323
|
-
<ft-icon .value=${
|
|
1324
|
-
`:
|
|
1325
|
-
${
|
|
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}
|
|
1326
1324
|
</ft-text-field-suggestion>
|
|
1327
1325
|
`)}
|
|
1328
|
-
`:
|
|
1326
|
+
`:he.html`
|
|
1329
1327
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1330
|
-
`}onSuggestionClick(
|
|
1328
|
+
`}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return he.html`
|
|
1331
1329
|
<ft-icon class="ft-text-field--icon"
|
|
1332
1330
|
.variant=${this.iconVariant}
|
|
1333
1331
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1334
1332
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1335
|
-
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?
|
|
1333
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?he.html`
|
|
1336
1334
|
<ft-icon class="ft-text-field--icon"
|
|
1337
1335
|
.variant=${this.iconVariant}
|
|
1338
1336
|
.value=${this.icon}
|
|
1339
|
-
@click=${()=>{var
|
|
1340
|
-
`:
|
|
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`
|
|
1341
1339
|
<div part="container">
|
|
1342
|
-
${this.hideTitle?
|
|
1343
|
-
<ft-typography variant="${
|
|
1340
|
+
${this.hideTitle?se.nothing:se.html`
|
|
1341
|
+
<ft-typography variant="${ye.title}" part="main-title">
|
|
1344
1342
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1345
1343
|
</ft-typography>
|
|
1346
1344
|
`}
|
|
1347
1345
|
${this.renderRatingSection()}
|
|
1348
1346
|
${this.renderFeedbackSection()}
|
|
1349
1347
|
</div>
|
|
1350
|
-
`}renderRatingSection(){var
|
|
1348
|
+
`}renderRatingSection(){var e;return this.canRateThisContent?se.html`
|
|
1351
1349
|
<div part="rating-container">
|
|
1352
|
-
<ft-typography variant="${
|
|
1353
|
-
${this.i18n(((
|
|
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)}
|
|
1354
1352
|
</ft-typography>
|
|
1355
1353
|
${this.renderRating()}
|
|
1356
|
-
<ft-typography variant="${
|
|
1354
|
+
<ft-typography variant="${ye.caption}" part="rating-date">
|
|
1357
1355
|
${this.renderRatingDate()}
|
|
1358
1356
|
</ft-typography>
|
|
1359
1357
|
</div>
|
|
1360
|
-
`:
|
|
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`
|
|
1361
1359
|
<div part="rating rating-stars">
|
|
1362
|
-
${(0,
|
|
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`
|
|
1363
1361
|
<ft-button round part="rating-stars-${n}"
|
|
1364
|
-
label="${
|
|
1362
|
+
label="${M.messages.starsRating(n)}"
|
|
1365
1363
|
tooltipPosition="top"
|
|
1366
1364
|
.iconVariant=${this.iconVariant}
|
|
1367
1365
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1370,7 +1368,7 @@
|
|
|
1370
1368
|
></ft-button>
|
|
1371
1369
|
`})}
|
|
1372
1370
|
</div>
|
|
1373
|
-
`;case
|
|
1371
|
+
`;case X.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===X.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===X.LIKE&&this.ratingValue===1;return se.html`
|
|
1374
1372
|
<ft-switch unselectable
|
|
1375
1373
|
@change=${i=>this.rate(i.detail)}
|
|
1376
1374
|
part="rating rating-like"
|
|
@@ -1380,65 +1378,65 @@
|
|
|
1380
1378
|
.iconVariant=${this.iconVariant}
|
|
1381
1379
|
icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
|
|
1382
1380
|
role="radio">
|
|
1383
|
-
${
|
|
1381
|
+
${M.messages.like()}
|
|
1384
1382
|
</ft-switch-option>
|
|
1385
1383
|
<ft-switch-option .value=${0}
|
|
1386
|
-
?selected=${
|
|
1384
|
+
?selected=${e}
|
|
1387
1385
|
.iconVariant=${this.iconVariant}
|
|
1388
|
-
icon="${
|
|
1386
|
+
icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
|
|
1389
1387
|
role="radio">
|
|
1390
|
-
${
|
|
1388
|
+
${M.messages.dislike()}
|
|
1391
1389
|
</ft-switch-option>
|
|
1392
1390
|
</ft-switch>
|
|
1393
|
-
`}case
|
|
1391
|
+
`}case X.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===X.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===X.DICHOTOMOUS&&this.ratingValue===1;return se.html`
|
|
1394
1392
|
<ft-switch unselectable
|
|
1395
1393
|
@change=${i=>this.rate(i.detail)}
|
|
1396
1394
|
part="rating rating-dichotomous">
|
|
1397
1395
|
<ft-switch-option .value=${1}
|
|
1398
1396
|
?selected=${r}>
|
|
1399
|
-
${
|
|
1397
|
+
${M.messages.dichotomousYes()}
|
|
1400
1398
|
</ft-switch-option>
|
|
1401
1399
|
<ft-switch-option .value=${0}
|
|
1402
|
-
?selected=${
|
|
1403
|
-
${
|
|
1400
|
+
?selected=${e}>
|
|
1401
|
+
${M.messages.dichotomousNo()}
|
|
1404
1402
|
</ft-switch-option>
|
|
1405
1403
|
</ft-switch>
|
|
1406
|
-
`}}return
|
|
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`
|
|
1407
1405
|
<ft-button primary
|
|
1408
1406
|
type="submit" name="submit"
|
|
1409
1407
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1410
1408
|
part="send-feedback">
|
|
1411
|
-
${
|
|
1409
|
+
${M.messages.okButton()}
|
|
1412
1410
|
</ft-button>
|
|
1413
|
-
`;s&&(a=
|
|
1411
|
+
`;s&&(a=se.html`
|
|
1414
1412
|
<a part="send-feedback-link" href="${s}">
|
|
1415
1413
|
${a}
|
|
1416
1414
|
</a>
|
|
1417
|
-
`);let l=this.withMoreOptionsButton&&(!((
|
|
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`
|
|
1418
1416
|
<ft-button outlined
|
|
1419
1417
|
type="button" name="more-options"
|
|
1420
1418
|
@click=${this.onOpenMoreDetails}
|
|
1421
1419
|
part="more-options">
|
|
1422
|
-
${
|
|
1420
|
+
${M.messages.moreOptionsButton()}
|
|
1423
1421
|
</ft-button>
|
|
1424
|
-
`:
|
|
1422
|
+
`:se.nothing;return se.html`
|
|
1425
1423
|
<form part="feedback-container" autocomplete="on"
|
|
1426
1424
|
@submit=${c=>this.onFormSubmitEvent(c,!!s)}>
|
|
1427
|
-
<ft-typography variant="${
|
|
1425
|
+
<ft-typography variant="${ye.title_dense}" part="section-title">
|
|
1428
1426
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1429
1427
|
</ft-typography>
|
|
1430
|
-
${((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)?
|
|
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`
|
|
1431
1429
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1432
1430
|
part="feedback-from-input"
|
|
1433
|
-
label="${
|
|
1431
|
+
label="${M.messages.feedbackfromEmail()}"
|
|
1434
1432
|
@change=${c=>this.from=c.detail.trim()}
|
|
1435
1433
|
?error=${this.from&&!this.validFromEmail()}
|
|
1436
|
-
helper="${this.from&&!this.validFromEmail()?
|
|
1434
|
+
helper="${this.from&&!this.validFromEmail()?M.messages.feedbackfromEmailInvalid():""}"
|
|
1437
1435
|
></ft-text-field>
|
|
1438
|
-
`:
|
|
1436
|
+
`:se.nothing}
|
|
1439
1437
|
<ft-text-area outlined
|
|
1440
1438
|
part="feedback-input"
|
|
1441
|
-
label="${
|
|
1439
|
+
label="${M.messages.feedbackInputLabel()}"
|
|
1442
1440
|
@live-change=${c=>this.feedbackMessage=c.detail.trim()}
|
|
1443
1441
|
></ft-text-area>
|
|
1444
1442
|
<div part="buttons-container">
|
|
@@ -1446,7 +1444,7 @@
|
|
|
1446
1444
|
${a}
|
|
1447
1445
|
</div>
|
|
1448
1446
|
</form>
|
|
1449
|
-
`}return
|
|
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`
|
|
1450
1448
|
[part="container"] {
|
|
1451
1449
|
box-sizing: border-box;
|
|
1452
1450
|
display: flex;
|
|
@@ -1459,7 +1457,7 @@
|
|
|
1459
1457
|
flex-direction: row;
|
|
1460
1458
|
align-items: center;
|
|
1461
1459
|
margin-left: -6px;
|
|
1462
|
-
${(0,
|
|
1460
|
+
${(0,Ct.setVariable)(z.backgroundColor,t.starsBackgroundColor)}
|
|
1463
1461
|
}
|
|
1464
1462
|
|
|
1465
1463
|
[part="rating-container"],
|
|
@@ -1473,14 +1471,14 @@
|
|
|
1473
1471
|
}
|
|
1474
1472
|
|
|
1475
1473
|
[part="rating-container"] {
|
|
1476
|
-
${(0,
|
|
1477
|
-
${(0,
|
|
1478
|
-
${(0,
|
|
1479
|
-
${(0,
|
|
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)};
|
|
1480
1478
|
}
|
|
1481
1479
|
|
|
1482
1480
|
[part="rating-container"] .rating-stars--active {
|
|
1483
|
-
${(0,
|
|
1481
|
+
${(0,Ct.setVariable)(z.color,t.filledRatingColor)};
|
|
1484
1482
|
}
|
|
1485
1483
|
|
|
1486
1484
|
[part="feedback-container"] {
|
|
@@ -1488,32 +1486,32 @@
|
|
|
1488
1486
|
}
|
|
1489
1487
|
|
|
1490
1488
|
[part="rating-date"] {
|
|
1491
|
-
color: ${
|
|
1489
|
+
color: ${t.ratedDateColor};
|
|
1492
1490
|
}
|
|
1493
1491
|
|
|
1494
1492
|
[part="feedback-container"] ft-text-area {
|
|
1495
|
-
min-width: ${
|
|
1493
|
+
min-width: ${t.feedbackInputMinWidth};
|
|
1496
1494
|
}
|
|
1497
1495
|
|
|
1498
1496
|
|
|
1499
1497
|
[part="send-feedback"],
|
|
1500
1498
|
[part="send-feedback-link"] {
|
|
1501
|
-
${(0,
|
|
1502
|
-
${(0,
|
|
1499
|
+
${(0,Ct.setVariable)(z.color,t.sendFeedbackColor)};
|
|
1500
|
+
${(0,Ct.setVariable)(z.backgroundColor,t.sendFeedbackBackgroundColor)};
|
|
1503
1501
|
}
|
|
1504
1502
|
|
|
1505
1503
|
[part="buttons-container"] {
|
|
1506
1504
|
align-self: flex-end;
|
|
1507
1505
|
}
|
|
1508
|
-
`}var
|
|
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(`
|
|
1509
1507
|
${this.bodyMetadata}
|
|
1510
1508
|
${this.url}
|
|
1511
1509
|
_________________________________________________________________
|
|
1512
1510
|
|
|
1513
|
-
${
|
|
1511
|
+
${e??""}
|
|
1514
1512
|
|
|
1515
1513
|
_________________________________________________________________
|
|
1516
|
-
${
|
|
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`
|
|
1517
1515
|
<ft-reader-feedback
|
|
1518
1516
|
?hideTitle=${this.hideTitle}
|
|
1519
1517
|
?withMoreOptionsButton=${this.withMoreOptionsButton}
|
|
@@ -1529,13 +1527,13 @@ ${Kr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
1529
1527
|
.i18nProperties=${this.i18nProperties}
|
|
1530
1528
|
.ratingSummary=${this.ratingSummary}
|
|
1531
1529
|
.configuration=${this.configuration}
|
|
1532
|
-
.feedbackMailLinkBuilder=${
|
|
1530
|
+
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
1533
1531
|
@rate=${this.rate}
|
|
1534
1532
|
@send-feedback=${this.sendFeedback}
|
|
1535
1533
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1536
1534
|
@open-more-options=${this.openMoreOptions}
|
|
1537
1535
|
></ft-reader-feedback>
|
|
1538
|
-
`}willUpdate(
|
|
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`
|
|
1539
1537
|
<ft-reader-feedback
|
|
1540
1538
|
?hideTitle=${this.hideTitle}
|
|
1541
1539
|
?withMoreOptionsButton=${this.withMoreOptionsButton}
|
|
@@ -1551,13 +1549,13 @@ ${Kr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
1551
1549
|
.i18nProperties=${this.i18nProperties}
|
|
1552
1550
|
.ratingSummary=${this.ratingSummary}
|
|
1553
1551
|
.configuration=${this.configuration}
|
|
1554
|
-
.feedbackMailLinkBuilder=${
|
|
1552
|
+
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
1555
1553
|
@rate=${this.rate}
|
|
1556
1554
|
@send-feedback=${this.sendFeedback}
|
|
1557
1555
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1558
1556
|
@open-more-options=${this.openMoreOptions}
|
|
1559
1557
|
></ft-reader-feedback>
|
|
1560
|
-
`}willUpdate(
|
|
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);})();
|
|
1561
1559
|
/*! Bundled license information:
|
|
1562
1560
|
|
|
1563
1561
|
lit-html/lit-html.js:
|