!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4ca1bc4f-57be-4620-bcf7-da37cfcd0fac",t._sentryDebugIdIdentifier="sentry-dbid-4ca1bc4f-57be-4620-bcf7-da37cfcd0fac")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2234],{58021:(t,e,o)=>{o.d(e,{Z:()=>n});let r={trace:console.trace,debug:console.debug,info:console.log,warn:console.warn,error:console.error,fatal:function(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r]},child:t=>r},n=r},5986:(t,e,o)=>{o.d(e,{n:()=>u});var r=o(38290);class n{back(t,e){return[{property:"button:".concat(t),content:"<"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.readPostBack(e)}]}forward(t,e){return[{property:"button:".concat(t),content:">"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.readPostNext(e)}]}skip(t){return[{property:"button:".concat(t),content:"Skip"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.subscribeSkipEmail()}]}openPost(t){return[{property:"button:".concat(t),content:"Read"},{property:"button:".concat(t,":action"),content:"link"},{property:"button:".concat(t,":target"),content:this.urls.openPost()}]}readInline(t,e){return this.shouldDisplayButtonReadInline(e)?[{property:"button:".concat(t),content:"Read Inline"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.readPostPage(0)}]:[]}subscribe(t){return[{property:"button:".concat(t),content:"Subscribe \uD83D\uDD14"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.subscribe()}]}subscribeWithEmail(t){return[{property:"button:".concat(t),content:"Subscribe \uD83D\uDD14"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.subscribeWithEmail()}]}subscribeRecommendation(t,e){return[{property:"button:".concat(t),content:"\uD83D\uDD14 ".concat(e.name)},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:this.urls.subscribeToRecommendations(e.id)}]}genericButton(t,e,o){let r=[{property:"button:".concat(t),content:e}];return o&&r.push({property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":post_url"),content:o}),r}genericButtonThatOpensPost(t,e){return[{property:"button:".concat(t),content:e},{property:"button:".concat(t,":action"),content:"post_redirect"},{property:"button:".concat(t,":post_url"),content:this.urls.openPost()}]}genericShareButton(t,e,o){let r=[{property:"button:".concat(t),content:e}];return o&&r.push({property:"button:".concat(t,":action"),content:"link"},{property:"button:".concat(t,":target"),content:o}),r}mint(t){return this.post?this.shouldDisplayButtonMint()?[{property:"button:".concat(t),content:"Mint"},{property:"button:".concat(t,":action"),content:"post"},{property:"button:".concat(t,":target"),content:this.urls.mintButtons()}]:[]:(this.logger.error("Cannot generate mint button because the post is undefined."),[])}mintWithCrypto(t){return this.post?this.shouldDisplayButtonMint()?[{property:"button:".concat(t),content:"Mint with Crypto"},{property:"button:".concat(t,":action"),content:"tx"},{property:"button:".concat(t,":target"),content:this.urls.mint()},{property:"button:".concat(t,":post_url"),content:this.urls.mintCallback()}]:[]:(this.logger.error("Cannot generate mint with crypto button because the post is undefined."),[])}mintWithWarps(t,e,o){return this.post?this.shouldDisplayButtonMint()?[{property:"button:".concat(t),content:"Mint with Warps"},{property:"button:".concat(t,":action"),content:"mint"},{property:"button:".concat(t,":target"),content:"eip155:".concat(e,":").concat(o)}]:[]:(this.logger.error("Cannot generate mint with warps button because the post is undefined."),[])}shouldDisplayButtonReadInline(t){return!t}shouldDisplayButtonMint(){return!!this.post&&!this.post.collectiblesDisabled&&!this.blog.disable_highlights&&!!["base","zora","optimism"].includes((0,r.GJ)(this.post,this.blog))}constructor({urls:t,logger:e,blog:o,post:r}){this.urls=t,this.logger=e,this.blog=o,this.post=r}}var a=o(90878),s=o(58693),i=o(81736);class c{getRecommendationImage(t){let{recommendations:e,recommendingBlog:o}=t,r={name:o.name||""},n=encodeURIComponent(JSON.stringify(e.map(t=>({name:t.name,logo_url:t.logo_url,summary:"Subscribed!"===t.reason?"You're already subscribed!":t.summary,reason:t.reason})))||"[]"),a=encodeURIComponent(JSON.stringify(r)||"{}"),i=(0,s.w)();return"".concat(i,"/api/recommendations?recommendations=").concat(n,"&blog=").concat(a)}populateShareImage(t,e){let o=this.blog.logo_url;return!this.blog.logo_url&&e&&e.avatar_url&&(o=e.avatar_url),(0,i.mT)({image:o,title:this.blog.name||"",description:t,color:this.blog.primary_color||"",showSubscribeBtn:!1})}constructor({blog:t}){this.blog=t}}class l{origin(){return this.post?"".concat(this.domain,"/api/farcaster/v2/homepage/blog/").concat(this.blog.id,"/post/").concat(this.post.id):"".concat(this.domain,"/api/farcaster/v2/homepage/blog/").concat(this.blog.id)}openPost(){if(!this.post)return this.origin();let t="https://paragraph.xyz/view/".concat(this.blog.lowercase_url,"/").concat(this.post.slug||this.post.id),e=encodeURIComponent("https://api.paragraph.xyz/farcaster/v2/action?url=".concat(t));return"https://warpcast.com/~/composer-action?url=".concat(e,"&view=prompt")}readPostBack(t){return this.post?void 0===t||t<1?this.origin():"".concat(this.domain,"/api/farcaster/v2/read/blog/").concat(this.blog.id,"/post/").concat(this.post.id,"/").concat(t-1):(this.logger.error("Cannot generate URL for reading the previous page of a post because the post is undefined."),this.origin())}readPostNext(t){return this.post?"".concat(this.domain,"/api/farcaster/v2/read/blog/").concat(this.blog.id,"/post/").concat(this.post.id,"/").concat(t+1):(this.logger.error("Cannot generate URL for reading the next page of a post because the post is undefined."),this.origin())}readPostPage(t){return this.post?"".concat(this.domain,"/api/farcaster/v2/read/blog/").concat(this.blog.id,"/post/").concat(this.post.id,"/").concat(t):(this.logger.error("Cannot generate URL for reading a specific page of a post because the post is undefined."),this.origin())}subscribe(){let t=this.post?"/".concat(this.post.id):"";return"".concat(this.domain,"/api/farcaster/v2/subscribe/").concat(this.blog.id).concat(t)}subscribeWithEmail(){let t=this.post?"/".concat(this.post.id):"";return"".concat(this.domain,"/api/farcaster/v2/subscribe/email-input/").concat(this.blog.id).concat(t)}subscribeSkipEmail(){let t=this.post?"/".concat(this.post.id):"";return"".concat(this.domain,"/api/farcaster/v2/subscribe/email-skip/").concat(this.blog.id,"/").concat(t)}subscribeToRecommendations(t){return"".concat(this.domain,"/api/farcaster/v2/recommendations/blog/").concat(this.blog.id,"/subscribe/").concat(t)}mintButtons(){return this.post?"".concat(this.domain,"/api/farcaster/v2/mint-buttons/blog/").concat(this.blog.id,"/post/").concat(this.post.id):(this.logger.error("Cannot generate mint button because the post is undefined."),this.origin())}mint(){return this.post?"".concat(this.domain,"/api/farcaster/v2/mint/blog/").concat(this.blog.id,"/post/").concat(this.post.id):(this.logger.error("Cannot generate mint URL because the post is undefined."),this.origin())}mintCallback(){return this.post?"".concat(this.domain,"/api/farcaster/v2/mint-callback/blog/").concat(this.blog.id,"/post/").concat(this.post.id):(this.logger.error("Cannot generate mint callback URL because the post is undefined."),this.origin())}warpcastShareURL(t){let{casterEthAddr:e,authorFarcasterUsername:o}=t;if(!e)return this.logger.error({post:this.post,casterEthAddr:e},"Cannot generate warpcast share URL because the caster eth address is undefined."),this.origin();let r=encodeURIComponent(this.getBlogOrPostUrlWithReferrer(e)),n="I just subscribed to ".concat(this.blog.name," on /paragraph! Check it out:");return o&&(n="I just subscribed to @".concat(o," on /paragraph! Check it out:")),n=encodeURIComponent(n),"https://warpcast.com/~/compose?embeds[]=".concat(r,"&text=").concat(n)}getBlogOrPostUrlWithReferrer(t){var e,o;let r=(null===(e=this.post)||void 0===e?void 0:e.slug)||(null===(o=this.post)||void 0===o?void 0:o.id),n=this.domain;return this.blog.custom_domain||(n+="/"+this.blog.lowercase_url),r&&(n+="/"+r),t&&(n=n+"?referrer="+t),n}constructor({logger:t,blog:e,domain:o,post:r}){this.logger=t,this.blog=e,this.domain=o,this.post=r}}class u{get blog(){return this._blog}get blogOwnerUserId(){return this._blogOwnerUserId}get domain(){return this._domain}get post(){return this._post}generateServerFrameMetaTags(t){let e="\n      <!DOCTYPE html>\n      <html>\n      <head>";return e+=this.generateMetaTags(t).map(t=>'<meta property="'.concat(t.property,'" content="').concat(t.content,'" />')).join(),e+="\n      </head>\n      <body>\n      </body>\n      </html>"}generateFrontEndFrameMetaTags(t){return this.generateMetaTags(t)}getPostUrlWithReferrer(t){return this.urls.getBlogOrPostUrlWithReferrer(t)}generateDualPrefixMetaTag(t,e){return[{property:"fc:frame:".concat(t),content:"".concat(e)},{property:"of:".concat(t),content:"".concat(e)}]}generateArrayOfDualPrefixMetaTags(t){return t.flatMap(t=>this.generateDualPrefixMetaTag(t.property,t.content))}baseTags(t,e){return[{property:"of:accepts:xmtp",content:"2024-02-01"},{property:"fc:frame",content:"vNext"},{property:"of:version",content:"vNext"},...t?[{property:"fc:frame:image",content:"".concat(t)},{property:"of:image",content:"".concat(t)}]:[],...e||[]]}generateMetaTags(t){let e=[],o="",r=this.urls.openPost();switch(t.type){case a.u.HOMEPAGE_BLOG:o=t.image,r=this.urls.origin(),e=this.generateBlogHomePage();break;case a.u.HOMEPAGE_POST:o=t.image,e=this.generatePostHomePage(!1);break;case a.u.READ_INLINE_PAGE:o=t.image,e=this.generateReadInlinePage(t.currentPage,t.denyAccess||!1);break;case a.u.READ_INLINE_LAST_PAGE:o=t.image,e=this.generateReadInlineLastPage(t.currentPage);break;case a.u.ADD_EMAIL:o=this.images.populateShareImage("What's your email?",t.blogOwnerUser),e=this.generateAddEmailPage();break;case a.u.RECOMMENDATIONS:let n=t.blogRecommendations.slice(0,4);o=this.images.getRecommendationImage({recommendingBlog:this._blog,recommendations:n}),e=this.generateRecommendationsPage(n);break;case a.u.MINT_BUTTONS:o=t.image,e=this.generateCollectPostPage(t.collectible);break;case a.u.SUCCESS_MINT:e=this.generateGenericSingleButtonPage({buttonText:"Minted!",description:"You've collected this post.",url:this.urls.origin(),blogOwnerUser:t.blogOwnerUser,openPost:!0});break;case a.u.SUCCESS_SUBSCRIBED:e=this.generateGenericSingleButtonPage({buttonText:"Subscribed!",description:"Subscribed with wallet! Download Coinbase Wallet to receive updates via XMTP.",url:this.urls.origin(),blogOwnerUser:t.blogOwnerUser,openPost:!0});break;case a.u.SHARE_FARCASTER_AFTER_SUBSCRIBE:e=this.generateGenericSingleButtonPage({buttonText:"Share",description:t.description,url:this.urls.warpcastShareURL({casterEthAddr:t.casterEthAddr,authorFarcasterUsername:t.authorFarcasterUsername}),blogOwnerUser:t.blogOwnerUser,shareCast:!0});break;case a.u.ERROR:e=this.generateGenericSingleButtonPage({buttonText:"Error occurred",description:t.errorMsg,blogOwnerUser:t.blogOwnerUser,url:this.urls.origin()});break;default:throw Error("Invalid frame response type: ".concat(t))}let s=[...e,...this.generateDualPrefixMetaTag("post_url",r)];return this.baseTags(o,s)}generateBlogHomePage(){return this.generateArrayOfDualPrefixMetaTags([...this.buttons.subscribe(1)])}generatePostHomePage(t){return this.generateArrayOfDualPrefixMetaTags([{property:"image:aspect_ratio",content:"1:1"},...this.buttons.openPost(1)])}generateReadInlinePage(t,e){return e?this.generateArrayOfDualPrefixMetaTags([...this.buttons.back(1,t),...this.buttons.openPost(2),...this.buttons.subscribe(3)]):this.generateArrayOfDualPrefixMetaTags([{property:"image:aspect_ratio",content:"1:1"},...this.buttons.back(1,t),...this.buttons.forward(2,t),...this.buttons.openPost(3),...this.buttons.subscribe(4)])}generateReadInlineLastPage(t){return this.generateArrayOfDualPrefixMetaTags([...this.buttons.back(1,t),...this.buttons.openPost(2),...this.buttons.subscribe(3)])}generateAddEmailPage(){return this.generateArrayOfDualPrefixMetaTags([...this.inputEmail(),...this.buttons.skip(1),...this.buttons.subscribeWithEmail(2)])}generateRecommendationsPage(t){let e=t.map((t,e)=>this.buttons.subscribeRecommendation(e+1,t)).flat();return e.push({property:"image:aspect_ratio",content:"1:1"}),this.generateArrayOfDualPrefixMetaTags(e)}generateCollectPostPage(t){let e=[...this.buttons.mintWithCrypto(1)];if(t&&["base","zora"].includes(t.chain)&&"contractAddress"in t){let o=(0,r.LQ)(t.chain);e.push(...this.buttons.mintWithWarps(2,o,t.contractAddress))}return this.generateArrayOfDualPrefixMetaTags(e)}generateGenericSingleButtonPage(t){let{buttonText:e,description:o,url:r,blogOwnerUser:n,openPost:a=!1,shareCast:s=!1}=t,i=this.images.populateShareImage(o,n),c=this.generateArrayOfDualPrefixMetaTags(a?this.buttons.genericButtonThatOpensPost(1,e):s&&r?this.buttons.genericShareButton(1,e,r):this.buttons.genericButton(1,e,r));return this.baseTags(i,c)}inputEmail(){return[{property:"input:text",content:"Email..."}]}constructor({logger:t,blog:e,blogOwnerUserId:o,post:r}){var a;this._logger=t,this._blog=e,this._blogOwnerUserId=o,this._domain=(0,s.w)(e),this._post=r,this._logger=this._logger.child({blogId:this._blog.id,blogOwnerUserId:this._blogOwnerUserId,postId:null===(a=this._post)||void 0===a?void 0:a.id,domain:this._domain}),this.images=new c({blog:this._blog}),this.urls=new l({logger:this._logger,blog:this._blog,domain:this._domain,post:this._post}),this.buttons=new n({urls:this.urls,logger:this._logger,blog:this._blog,post:this._post})}}},90878:(t,e,o)=>{var r,n;o.d(e,{u:()=>r}),function(t){t.HOMEPAGE_BLOG="HOMEPAGE_BLOG",t.HOMEPAGE_POST="HOMEPAGE_POST",t.READ_INLINE_PAGE="READ_INLINE_PAGE",t.READ_INLINE_LAST_PAGE="READ_INLINE_LAST_PAGE",t.ADD_EMAIL="ADD_EMAIL",t.RECOMMENDATIONS="RECOMMENDATIONS",t.MINT_BUTTONS="MINT_BUTTONS",t.SUCCESS_MINT="SUCCESS_MINT",t.SUCCESS_SUBSCRIBED="SUCCESS_SUBSCRIBED",t.SHARE_FARCASTER_AFTER_SUBSCRIBE="SHARE_FARCASTER_AFTER_SUBSCRIBE",t.ERROR="ERROR"}(r||(r={})),function(t){t.UNKNOWN="There was an error processing your request.",t.FARCASTER_MISSING_WALLET_ADDRESS="You don't have an ETH address connected to your Farcaster account. Connect one in your FC settings first.",t.FARCASTER_MINT_NOT_SUPPORTED="We don't support minting from XMTP yet",t.SUBSCRIBING="There was an error subscribing to the blog.",t.SUBSCRIBING_INVALID_EMAIL="Please enter a valid email address.",t.EMAIL_TAKEN="That email belongs to another account. Login to paragraph.xyz to connect it to your wallet."}(n||(n={}))},51451:(t,e,o)=>{o.d(e,{Z:()=>s});var r=o(52322),n=o(97729),a=o.n(n);function s(t){var e,o,n,s,i,c,l,u,p,g,h,d,b;let m=t.description||(null===(e=t.blog)||void 0===e?void 0:e.summary)||(null===(o=t.blog)||void 0===o?void 0:o.about)||"Create, publish and share onchain blogs & newsletters.",y=t.title||(null===(n=t.blog)||void 0===n?void 0:n.name)||"Paragraph | all-in-one publishing & newsletter platform",f=t.share_title||y,_=t.creator||(null===(i=t.blog)||void 0===i?void 0:null===(s=i.social)||void 0===s?void 0:s.twitter),x=t.share_img||(null===(c=t.blog)||void 0===c?void 0:c.logo_url)||(null===(u=t.blog)||void 0===u?void 0:null===(l=u.user)||void 0===l?void 0:l.avatar_url)||"https://paragraph.xyz/share/share_img.jpg",v=t.blog&&(null===(p=t.blog)||void 0===p?void 0:p.logo_url)&&!["CNk8lnIMoVN26yDBxsXQ"].includes(null===(g=t.blog)||void 0===g?void 0:g.id);return(0,r.jsxs)(a(),{children:[v&&(0,r.jsx)("link",{rel:"icon",href:null===(h=t.blog)||void 0===h?void 0:h.logo_url}),!v&&(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),!v&&(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),!v&&(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,r.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#5bbad5"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#da532c"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(null===(d=t.blog)||void 0===d?void 0:d.needToSetup)===!0||["LOW","VERY_LOW"].includes((null===(b=t.blog)||void 0===b?void 0:b.reputation)||"")&&(0,r.jsx)("meta",{name:"robots",content:"noindex"}),(0,r.jsx)("title",{children:y}),(0,r.jsx)("meta",{name:"description",content:m}),t.canonicalUrl&&(0,r.jsx)("link",{rel:"canonical",href:t.canonicalUrl}),(0,r.jsx)("meta",{name:"twitter:card",content:t.share_img?"summary_large_image":"summary"}),(0,r.jsx)("meta",{name:"twitter:title",content:f}),(0,r.jsx)("meta",{name:"twitter:site",content:"@paragraph_xyz"}),(0,r.jsx)("meta",{name:"twitter:description",content:m}),_&&(0,r.jsx)("meta",{name:"twitter:creator",content:"@".concat(_)}),(0,r.jsx)("meta",{property:"og:type",content:t.type||"article"}),(0,r.jsx)("meta",{property:"og:description",content:m}),(0,r.jsx)("meta",{property:"og:title",content:f}),t.fullUrl&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:url",content:t.fullUrl}),(0,r.jsx)("link",{rel:"canonical",href:t.fullUrl})]}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:x}),(0,r.jsx)("meta",{name:"twitter:image",content:x}),(0,r.jsx)("meta",{name:"twitter:image:src",content:x})]}),t.children]})}},9529:(t,e,o)=>{o.d(e,{Z:()=>i});var r=o(52322),n=o(62520),a=o(39747),s=o(14710);function i(t){return(0,r.jsx)(s.Z,{...t})}n.Z.addDefaultLocale(a.Z)},21558:(t,e,o)=>{o.d(e,{Z:()=>y});var r=o(52322),n=o(43997),a=o(39097),s=o.n(a),i=o(30477),c=o(73795),l=o(87780),u=o(76150),p=o(2784),g=o(74192),h=o(94242),d=o(13417),b=o(1352),m=o(27823);function y(t){var e,o;let a=(0,g.Z)(),y=(0,n.v9)(i.Q$),f=(0,m.T)(),{track:_}=(0,u.z$)(),x=(0,b.Z)((null===(o=a.cryptoData)||void 0===o?void 0:null===(e=o.address)||void 0===e?void 0:e.toString())||"");if((0,p.useEffect)(()=>{a.loggedIn&&(null==y||!y.id)&&f((0,i.oZ)())},[f,y.id,a.loggedIn]),!a.loggedIn)return null;let v="usernameUnstoppable"in a&&a.usernameUnstoppable?a.usernameUnstoppable:"email"in a&&a.email?a.email:"ENS"==x.type?x.name:"wallet_address"in a&&a.wallet_address?a.wallet_address:null,E=a.avatar_url?"user":y.logo_url?"blog":null;return(0,r.jsxs)(c.v2,{as:"div",className:"relative z-20",onClick:()=>_("avatar dropdown click"),children:[(0,r.jsxs)(c.v2.Button,{className:"flex items-center max-w-xs text-sm rounded-full z-20 text-gray-500 hover:text-gray-300 transition-all w-[36px] h-auto",children:[(0,r.jsx)("span",{className:"sr-only",children:"Open user menu"}),(0,r.jsx)(d.Z,{avatarType:E,url:a.avatar_url,noSSR:!0})]}),(0,r.jsx)(l.u,{as:p.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,r.jsxs)(c.v2.Items,{className:"absolute truncate overflow-ellipsis right-0 max-w-md py-1 mt-2 bg-white dark:bg-gray-700 shadow-lg origin-top-right rounded-md ring-1 ring-black ring-opacity-5 focus:outline-none z-50",children:[(0,r.jsx)(c.v2.Item,{children:(0,r.jsxs)("span",{className:"block px-4 py-2 text-xs text-gray-400 border-b border-gray-100 dark:text-gray-200 dark:border-gray-500",children:["Signed in as ",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"break-all font-bold text-gray-600 dark:text-white",children:v})]})}),t.showExtraLinks&&(0,r.jsx)(c.v2.Item,{as:s(),href:"/notes",children:t=>{let{close:e}=t;return(0,r.jsx)("span",{onClick:e,className:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-600",children:"Dashboard"})}}),(0,r.jsx)(c.v2.Item,{as:s(),href:"/settings/account/account",children:t=>{let{close:e}=t;return(0,r.jsx)("span",{onClick:e,className:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-600",children:"Account Settings"})}}),(0,r.jsx)(c.v2.Item,{children:t=>{let{close:e}=t;return(0,r.jsx)("a",{href:"https://docs.paragraph.xyz",target:"_blank",rel:"noreferrer",onClick:e,children:(0,r.jsx)("span",{className:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-600",children:"Help & Documentation"})})}}),(0,r.jsx)(c.v2.Item,{children:(0,r.jsx)(h.Z,{onClick:async()=>{await a.signoutUser(),window.location.href="/"},replaceClassName:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-600 w-full text-left",text:"Sign out"})})]})})]})}},94129:(t,e,o)=>{o.d(e,{Z:()=>l});var r=o(52322),n=o(40489),a=o(2784),s=o(40380),i=o(48211),c=o(21705);function l(t){let{editor:e,currentNote:o,editorReady:l,initialContent:u}=t,[p,g]=(0,a.useState)(!1),h=o.staticHtml||(0,i.E)(u)||"";return((0,a.useEffect)(()=>{g(!0)},[]),p&&e&&l)?(0,r.jsx)(s.Z,{editor:e}):(0,r.jsx)("div",{className:(0,n.Z)(c.g,"tiptap ProseMirror"),dangerouslySetInnerHTML:{__html:h}})}},79805:(t,e,o)=>{o.d(e,{Z:()=>s});var r=o(82723),n=o(2784),a=o(54375);function s(t,e){let[o,s]=(0,n.useState)(!1),i=(void 0===t||!t||t&&0===Object.keys(t).length?(0,r.E)(e||""):t)||"",{editor:c}=(0,a.Z)({contentEditable:!1,initialContent:i,onCreate:()=>s(!0)});return{editor:c,editorReady:o,initialContent:i}}}}]);
//# sourceMappingURL=2234-d7ad5bb261c7af7a.js.map