PageSourceSearch

https://terminallyonchain.xyz/_next/static/chunks/0i5eo5.9vke5f.js

js terminallyonchain.xyz collected 2026-10-09 22:41:29 UTC 30,948 bytes, 12 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8fb419d0-e57e-e3d9-c50f-51447f407e37")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,901345,e=>{"use strict";let t=(0,e.i(796019).default)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},955470,e=>{"use strict";var t=e.i(901345);e.s(["MoreHorizontal",()=>t.default])},53009,e=>{"use strict";let t=(0,e.i(796019).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],53009)},88653,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),s=e.i(231178),i=e.i(947414),a=e.i(674008),n=e.i(821476),o=e.i(772846),l=r,c=e.i(737806);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,s=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left,a.bottom=s-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:s,anchorX:i,anchorY:a,root:n,pop:o}){let m=(0,l.useId)(),p=(0,l.useRef)(null),h=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,l.useContext)(c.MotionConfigContext),x=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,s=e.map(e=>{let s=u(e,t);return r||"function"!=typeof s||(r=!0),s});if(r)return()=>{for(let t=0;t<s.length;t++){let r=s[t];"function"==typeof r?r():u(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:c,bottom:u,direction:d}=h.current;if(s||!1===o||!p.current||!e||!t)return;let f="rtl"===d,x="left"===i?f?`right: ${c}`:`left: ${l}`:f?`left: ${l}`:`right: ${c}`,y="bottom"===a?`bottom: ${u}`:`top: ${r}`;p.current.dataset.motionPopId=m;let v=document.createElement("style");g&&(v.nonce=g);let b=n??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(`
3          [data-motion-pop-id="${m}"] {
4            position: absolute !important;
5            width: ${e}px !important;
6            height: ${t}px !important;
7            ${x}px !important;
8            ${y}px !important;
9          }
10        `),()=>{p.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[s]),(0,t.jsx)(d,{isPresent:s,childRef:p,sizeRef:h,pop:o,children:!1===o?e:l.cloneElement(e,{ref:x})})}let m=({children:e,initial:s,isPresent:o,onExitComplete:l,custom:c,presenceAffectsLayout:u,mode:d,anchorX:m,anchorY:h,root:g})=>{let x=(0,i.useConstant)(p),y=(0,r.useId)(),v=(0,r.useRef)(o),b=(0,r.useRef)(l);(0,a.useIsomorphicLayoutEffect)(()=>{v.current=o,b.current=l});let w=!0,j=(0,r.useMemo)(()=>(w=!1,{id:y,initial:s,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>{x.delete(e),v.current||x.size||b.current?.()})}),[o,x,l]);return u&&w&&(j={...j}),(0,r.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[o]),r.useEffect(()=>{o||x.size||!l||l()},[o]),e=(0,t.jsx)(f,{pop:"popLayout"===d,isPresent:o,anchorX:m,anchorY:h,root:g,children:e}),(0,t.jsx)(n.PresenceContext.Provider,{value:j,children:e})};function p(){return new Map}var h=e.i(464978);let g=e=>e.key||"";function x(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:n,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:f="left",anchorY:p="top",root:y})=>{let[v,b]=(0,h.usePresence)(d),w=(0,r.useMemo)(()=>x(e),[e]),j=d&&!v?[]:w.map(g),P=(0,r.useRef)(!0),N=(0,r.useRef)(w),_=(0,i.useConstant)(()=>new Map),S=(0,r.useRef)(new Set),[E,C]=(0,r.useState)(w),[T,k]=(0,r.useState)(w);(0,a.useIsomorphicLayoutEffect)(()=>{P.current=!1,N.current=w;for(let e=0;e<T.length;e++){let t=g(T[e]);j.includes(t)?(_.delete(t),S.current.delete(t)):!0!==_.get(t)&&_.set(t,!1)}},[T,j.length,j.join("-")]);let R=[];if(w!==E){let e=[...w];for(let t=0;t<T.length;t++){let r=T[t],s=g(r);j.includes(s)||(e.splice(t,0,r),R.push(r))}return"wait"===u&&R.length&&(e=R),k(x(e)),C(w),null}let{forceRender:$}=(0,r.useContext)(s.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:T.map(e=>{let r=g(e),s=(!d||!!v)&&(w===T||j.includes(r));return(0,t.jsx)(m,{isPresent:s,initial:(!P.current||!!o)&&void 0,custom:n,presenceAffectsLayout:c,mode:u,root:y,onExitComplete:s?void 0:()=>
10{if(S.current.has(r)||!_.has(r))return;S.current.add(r),_.set(r,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&($?.(),k(N.current),d&&b?.(),l&&l())},anchorX:f,anchorY:p,children:e},r)})})}],88653)},364326,e=>{"use strict";let t=(0,e.i(796019).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,t],364326)},374737,e=>{"use strict";var t=e.i(73833),r=e.i(846696),s=e.i(257198),i=e.i(284503);let a="/notes";async function n(e,t){try{let r=await fetch(s.host+"/api/revalidate/blog",{method:"POST",body:JSON.stringify({lowercaseUrl:e,customDomain:t}),headers:{"Content-Type":"application/json"}});r.ok||console.error("Blog revalidation failed:",r.statusText)}catch(e){console.error("Blog revalidation error:",e)}}async function o(e,t){try{let r=await fetch(s.host+"/api/revalidate/post",{method:"POST",body:JSON.stringify({postSlug:e,customDomain:t}),headers:{"Content-Type":"application/json"}});r.ok||console.error("Post revalidation failed:",r.statusText)}catch(e){console.error("Post revalidation error:",e)}}async function l(e){return await (0,i.default)(a+`/${e}`,{cache:"no-store"})}async function c(e){return(await (0,i.default)(a+`/${e}/email-preview`,{cache:"no-store"})).html}async function u({postId:e,post:t,isSavingCallback:s,blogSlug:l,customDomain:c}){s?.(!0),t.updatedAt||(t.updatedAt=Date.now()),t.title&&t.title.length>150&&(t.title=t.title.substring(0,150));try{await (0,i.default)(a+`/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),t.isCoined&&t.slug&&t.numTimesPublished&&t.numTimesPublished>0&&o(t.slug,c),l&&(t.title||t.published||"archived"in t||"isUnlisted"in t||t.slug||t.isCoined)&&n(l,c)}catch(e){if(e instanceof i.APIError){let t=e?.data?.msg||e?.data?.message||null;t&&r.toast.error(t)}throw e}finally{s?.(!1)}}async function d({blogSlug:e,customDomain:t,postId:r}){let s={};s.updatedAt=Date.now(),s.archived=!0,s.draftOf=null,await u({postId:r,post:s,blogSlug:e,customDomain:t})}async function f({postId:e}){let t={};t.updatedAt=Date.now(),t.archived=!1,await u({postId:e,post:t})}async function m(e){let t={};t.updatedAt=Date.now(),t.published=!1,t.draftOf=e.draftOf,await u({postId:e.id,post:t})}async function p(e){let r=await (0,i.default)(`${a}/${e}`,{method:"DELETE"});return!(0,t.isErrorResponse)(r)||(console.error("Failed to undo draft or delete post.",r.msg),!1)}async function h(e,t){let{draftNote:r,customDomain:s}=t,o=await (0,i.default)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({draftNote:r})});return n(e,s),o.note.id}async function g(e){let{blogSlug:t,customDomain:r,postId:s,post:i,isPublished:a,draftOf:n,sendNewsletter:l,scheduledAt:c}=e,d={published:a,draftOf:n,sendNewsletter:l,scheduledAt:c,storeOnArweave:!0,...i};try{return await u({postId:s,post:d,blogSlug:t,customDomain:r}),i.slug?o(i.slug,r):console.error("No slug found in post data; unable to revalidate tag."),{success:!0,message:c?"Post scheduled successfully":a?"Post published successfully":"Post updated successfully"}}catch(e){return console.error("Error in publishPostNowOrLater:",e),{success:!1,message:"Failed to publish or schedule post"}}}async function x(e){try{return await (0,i.default)(a+`/send-test/${e}`,{method:"POST"}),{success:!0,message:"Test newsletter sent successfully"}}catch(e){return console.error("Error sending test newsletter:",e),{success:!1,message:"Failed to send test newsletter"}}}async function y(e){let r=new FormData;r.append("file",e);try{let e=await (0,i.default)(`${a}/image`,{method:"POST",body:r});if((0,t.isErrorResponse)(e))return console.error("Unable to upload image:",e.msg),{success:!1,error:e.msg};return{success:!0,image:e.image}}catch(e){return console.error("Error uploading image:",e),{success:!1,error:"Failed to upload image. Please try again."}}}async function v(e){try{let r=new URLSearchParams({imageUrl:e}).toString(),s=await (0,i.default)(`${a}/thirdPartyImage?${r}`);if((0,t.isErrorResponse)(s))return void console.error("Unable to fetch third-party image:",s.msg);return s.image}catch(e){console.error("Error fetching third-party image:",e);return}}async function b(e,r){try{let s={};
10r&&Object.keys(r).forEach(e=>{let t=r[e];void 0!==t&&(s[e]=String(t))});let n=r?.publish!==void 0?r.publish:"boolean"==typeof e.published?e.published:void 0;void 0!==n&&(s.publish=String(n));let o=new URLSearchParams(s).toString(),l=`${a}/import${o?`?${o}`:""}`,c=await (0,i.default)(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(c instanceof Response){if(409===c.status)return{id:"ALREADY_EXISTS"};try{await c.text()}catch(e){console.error("Could not read response body:",e)}return{id:"FAILURE"}}if((0,t.isErrorResponse)(c))return console.error("Error importing note:",c.msg),{id:"FAILURE"};return{id:c.id}}catch(e){return console.error("Error importing note:",e),{id:"FAILURE"}}}async function w({postId:e}){return(await (0,i.default)(`${a}/duplicate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})})).id}async function j(){try{return await (0,i.default)(`${a}/bulk/all`,{method:"DELETE"}),{success:!0,message:"All posts have been deleted successfully"}}catch(e){return console.error("Error deleting all posts:",e),{success:!1,message:"Failed to delete posts. Please try again."}}}async function P(e,r){try{let s=await (0,i.default)(`${a}/generate-slug`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,noteId:r})});if((0,t.isErrorResponse)(s))return console.error("Error generating slug:",s.msg),"";return s.slug}catch(e){return console.error("Error generating slug:",e),""}}e.s(["archivePost",0,d,"deleteAllPosts",0,j,"deletePost",0,p,"duplicatePost",0,w,"generateSlug",0,P,"getNoteEmailPreview",0,c,"getThirdPartyImage",0,v,"getWritersPost",0,l,"importNoteExport",0,b,"newPost",0,h,"publishPostNowOrLater",0,g,"sendTestNewsletter",0,x,"unarchivePost",0,f,"unpublishPost",0,m,"updatePost",0,u,"uploadImage",0,y])},210286,e=>{"use strict";var t=e.i(481770);e.s(["archivePostClicked",0,function(e,r){return(0,t.captureProductEvent)("archive_post_clicked",{post_id:e,published:!!r})},"copyLinkClicked",0,function(e,r){return(0,t.captureProductEvent)("copy_link_clicked",{post_id:e,published:!!r})},"createNewPostClicked",0,function(e){return(0,t.captureProductEvent)("create_new_post_clicked",{source:e})},"deletePostClicked",0,function(e){return(0,t.captureProductEvent)("delete_post_clicked",{post_id:e})},"duplicatePostClicked",0,function(e,r){return(0,t.captureProductEvent)("duplicate_post_clicked",{post_id:e,published:!!r})},"editPostClicked",0,function(e){return(0,t.captureProductEvent)("edit_post_clicked",{post_id:e,source:"post_row_menu_button"})},"hidePostClicked",0,function(e){return(0,t.captureProductEvent)("hide_post_clicked",{post_id:e})},"importPostClicked",0,function(e,r){return(0,t.captureProductEvent)("import_post_clicked",{url_hostname:new URL(e).hostname,set_canonical_url:r})},"showPostClicked",0,function(e){return(0,t.captureProductEvent)("show_post_clicked",{post_id:e})},"unArchivePostClicked",0,function(e){return(0,t.captureProductEvent)("unarchive_post_clicked",{post_id:e})},"unpublishPostClicked",0,function(e){return(0,t.captureProductEvent)("unpublish_post_clicked",{post_id:e})},"unschedulePostClicked",0,function(e){return(0,t.captureProductEvent)("unscheduled_post",{post_id:e})}])},448354,e=>{"use strict";var t=e.i(843476),r=e.i(68688),s=e.i(618566),i=e.i(271645),a=e.i(768951),n=e.i(374737),o=e.i(731876),l=e.i(210286);e.s(["default",0,function(e){let c=(0,s.useRouter)(),[u,d]=(0,i.useState)(!1),f=async()=>{if(!u)try{d(!0),(0,l.createNewPostClicked)(e.source);let t=await (0,n.newPost)(e.blogSlug,{customDomain:e.customDomain});e.openInNewTab?window.open(`/editor/${t}`):c.push(`/editor/${t}`,{})}catch(e){console.error("[new post] error creating new post",e),console.error("[new post] error details:",{message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0,name:e instanceof Error?e.name:typeof e})}finally{d(!1)}};return(0,t.jsx)(a.Button,{disabled:u,onClick:f,className:(0,o.cn)("self-center px-5","minimal"===e.variant&&"pr-2",e.className),children:(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsx)(r.Loa
10der2,{className:(0,o.cn)("mr-2 h-4 w-4 animate-spin","minimal"===e.variant&&"mr-0")}),"minimal"!==e.variant&&e.title?e.title:"New post"]})})}])},272067,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(731876);let i=r.forwardRef(({className:e,containerClassName:r,...i},a)=>(0,t.jsx)("div",{className:(0,s.cn)("relative w-full overflow-auto",r),children:(0,t.jsx)("table",{ref:a,className:(0,s.cn)("w-full caption-bottom text-sm",e),...i})}));i.displayName="Table";let a=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("thead",{ref:i,className:(0,s.cn)("[&_tr]:border-b",e),...r}));a.displayName="TableHeader";let n=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("tbody",{ref:i,className:(0,s.cn)("[&_tr:last-child]:border-0",e),...r}));n.displayName="TableBody",r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("tfoot",{ref:i,className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})).displayName="TableFooter";let o=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("tr",{ref:i,className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...r}));o.displayName="TableRow";let l=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("th",{ref:i,className:(0,s.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...r}));l.displayName="TableHead";let c=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("td",{ref:i,className:(0,s.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...r}));c.displayName="TableCell",r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("caption",{ref:i,className:(0,s.cn)("mt-4 text-sm text-muted-foreground",e),...r})).displayName="TableCaption",e.s(["Table",0,i,"TableBody",0,n,"TableCell",0,c,"TableHead",0,l,"TableHeader",0,a,"TableRow",0,o])},471315,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(731876);e.s(["WalletAddress",0,function(e){var i;let a,n,o,l,c=(0,r.c)(11),{address:u,truncate:d,className:f}=e,m=void 0!==d&&d;c[0]!==u||c[1]!==m?(a=m?(i=u).length>10?`${i.substring(0,6)}...${i.substring(i.length-4)}`:i:u,c[0]=u,c[1]=m,c[2]=a):a=c[2];let p=a,h=m&&"truncate";c[3]!==f||c[4]!==h?(n=(0,s.cn)("text-sm font-normal !select-text cursor-text",h,f),c[3]=f,c[4]=h,c[5]=n):n=c[5];let g=m?u:void 0;return c[6]===Symbol.for("react.memo_cache_sentinel")?(o={userSelect:"text",WebkitUserSelect:"text",MozUserSelect:"text",msUserSelect:"text"},c[6]=o):o=c[6],c[7]!==p||c[8]!==n||c[9]!==g?(l=(0,t.jsx)("span",{className:n,title:g,style:o,children:p}),c[7]=p,c[8]=n,c[9]=g,c[10]=l):l=c[10],l}])},703686,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(43327),i=e.i(506659),a=e.i(32708),n=e.i(775003);
10e.s(["SupportPublicationButton",0,function(e){let o,l,c,u,d=(0,r.c)(13),{blog:f,hoverEffect:m}=e,{openSupport:p}=(0,n.useSupportModal)(),{isSubscribed:h}=(0,s.useBlogViewerState)(f);d[0]!==f||d[1]!==p?(o=()=>{p(f)},d[0]=f,d[1]=p,d[2]=o):o=d[2];let g=o,x=h?"accent":"default";return d[3]!==f||d[4]!==p?(l=()=>p(f),d[3]=f,d[4]=p,d[5]=l):l=d[5],d[6]!==g||d[7]!==l?(c=(0,t.jsx)(a.WalletConnectButton,{className:"w-full h-auto bg-transparent hover:bg-transparent text-inherit px-4 py-2.5 text-sm",variant:"default",onClick:g,onAfterWalletConnect:l,children:"Support"}),d[6]=g,d[7]=l,d[8]=c):c=d[8],d[9]!==m||d[10]!==x||d[11]!==c?(u=(0,t.jsx)(i.GlassBubble,{variant:"pill",color:x,hoverEffect:m,className:"cursor-pointer",children:c}),d[9]=m,d[10]=x,d[11]=c,d[12]=u):u=d[12],u}])},853157,e=>{"use strict";let t=(0,e.i(796019).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],853157)},72603,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(853157),i=e.i(53009),a=e.i(955470),n=e.i(271645),o=e.i(768951),l=e.i(731876);let c=e=>{let s,i,a,n,o=(0,r.c)(8);return o[0]!==e?({className:s,...i}=e,o[0]=e,o[1]=s,o[2]=i):(s=o[1],i=o[2]),o[3]!==s?(a=(0,l.cn)("mx-auto flex w-full justify-center",s),o[3]=s,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(n=(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination",className:a,...i}),o[5]=i,o[6]=a,o[7]=n):n=o[7],n};c.displayName="Pagination";let u=n.forwardRef((e,s)=>{let i,a,n,o,c=(0,r.c)(9);return c[0]!==e?({className:i,...a}=e,c[0]=e,c[1]=i,c[2]=a):(i=c[1],a=c[2]),c[3]!==i?(n=(0,l.cn)("flex flex-row items-center gap-1",i),c[3]=i,c[4]=n):n=c[4],c[5]!==a||c[6]!==s||c[7]!==n?(o=(0,t.jsx)("ul",{ref:s,className:n,...a}),c[5]=a,c[6]=s,c[7]=n,c[8]=o):o=c[8],o});u.displayName="PaginationContent";let d=n.forwardRef((e,s)=>{let i,a,n,o,c=(0,r.c)(9);return c[0]!==e?({className:i,...a}=e,c[0]=e,c[1]=i,c[2]=a):(i=c[1],a=c[2]),c[3]!==i?(n=(0,l.cn)("",i),c[3]=i,c[4]=n):n=c[4],c[5]!==a||c[6]!==s||c[7]!==n?(o=(0,t.jsx)("li",{ref:s,className:n,...a}),c[5]=a,c[6]=s,c[7]=n,c[8]=o):o=c[8],o});d.displayName="PaginationItem";let f=e=>{let s,i,a,n,c,u,d=(0,r.c)(13);d[0]!==e?({className:s,isActive:i,size:n,...a}=e,d[0]=e,d[1]=s,d[2]=i,d[3]=a,d[4]=n):(s=d[1],i=d[2],a=d[3],n=d[4]);let f=void 0===n?"icon":n,m=i?"page":void 0;return d[5]!==s||d[6]!==i||d[7]!==f?(c=(0,l.cn)((0,o.buttonVariants)({variant:i?"outline":"ghost",size:f}),s),d[5]=s,d[6]=i,d[7]=f,d[8]=c):c=d[8],d[9]!==a||d[10]!==m||d[11]!==c?(u=(0,t.jsx)("a",{"aria-current":m,className:c,...a}),d[9]=a,d[10]=m,d[11]=c,d[12]=u):u=d[12],u};f.displayName="PaginationLink";let m=e=>{let i,a,n,o,c,u,d=(0,r.c)(10);return d[0]!==e?({className:i,...a}=e,d[0]=e,d[1]=i,d[2]=a):(i=d[1],a=d[2]),d[3]!==i?(n=(0,l.cn)("gap-1 pl-2.5",i),d[3]=i,d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(s.ChevronLeft,{className:"h-4 w-4"}),c=(0,t.jsx)("span",{children:"Previous"}),d[5]=o,d[6]=c):(o=d[5],c=d[6]),d[7]!==a||d[8]!==n?(u=(0,t.jsxs)(f,{"aria-label":"Go to previous page",size:"default",className:n,...a,children:[o,c]}),d[7]=a,d[8]=n,d[9]=u):u=d[9],u};m.displayName="PaginationPrevious";let p=e=>{let s,a,n,o,c,u,d=(0,r.c)(10);return d[0]!==e?({className:s,...a}=e,d[0]=e,d[1]=s,d[2]=a):(s=d[1],a=d[2]),d[3]!==s?(n=(0,l.cn)("gap-1 pr-2.5",s),d[3]=s,d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{children:"Next"}),c=(0,t.jsx)(i.ChevronRight,{className:"h-4 w-4"}),d[5]=o,d[6]=c):(o=d[5],c=d[6]),d[7]!==a||d[8]!==n?(u=(0,t.jsxs)(f,{"aria-label":"Go to next page",size:"default",className:n,...a,children:[o,c]}),d[7]=a,d[8]=n,d[9]=u):u=d[9],u};p.displayName="PaginationNext";let h=e=>{let s,i,n,o,c,u,d=(0,r.c)(10);return d[0]!==e?({className:s,...i}=e,d[0]=e,d[1]=s,d[2]=i):(s=d[1],i=d[2]),d[3]!==s?(n=(0,l.cn)("flex h-9 w-9 items-center justify-center",s),d[3]=s,d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(a.MoreHorizontal,{className:"h-4 w-4"}),c=(0,t.jsx)("span",{className:"sr-only",children:"More pages"}),d[5]=o,d[6]=c):(o=d[5],c=d[6]),d[7]!==i||d[8]!==n?(u=(0,t.jsxs)("span",{"aria-hidden":!0,
10className:n,...i,children:[o,c]}),d[7]=i,d[8]=n,d[9]=u):u=d[9],u};h.displayName="PaginationEllipsis",e.s(["Pagination",0,c,"PaginationContent",0,u,"PaginationEllipsis",0,h,"PaginationItem",0,d,"PaginationLink",0,f,"PaginationNext",0,p,"PaginationPrevious",0,m])},66145,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(43327),i=e.i(971055),a=e.i(805318),n=e.i(532098);e.s(["SupportOrSubscribe",0,function(e){let o,l,c=(0,r.c)(10),{blog:u,secondary:d,subscribedRender:f,hoverEffect:m}=e,{isAdmin:p,isSubscribed:h}=(0,s.useBlogViewerState)(u);if(p){let e;return c[0]!==u||c[1]!==d?(e=(0,t.jsx)(i.SharePublicationButton,{blog:u,className:"w-full",secondary:d}),c[0]=u,c[1]=d,c[2]=e):e=c[2],e}if(h)return f??null;c[3]!==u?(o=(0,n.getModalPath)(n.ModalRoute.ENTER_EMAIL,u),c[3]=u,c[4]=o):o=c[4];let g=o;return c[5]!==m||c[6]!==h||c[7]!==d||c[8]!==g?(l=(0,t.jsx)(a.default,{url:g,isSubscribed:h,className:"font-sans w-full mx-auto",secondary:d,hoverEffect:m,children:"Subscribe"}),c[5]=m,c[6]=h,c[7]=d,c[8]=g,c[9]=l):l=c[9],l}])},12429,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(742934),i=e.i(959173),a=e.i(272067),n=e.i(471315),o=e.i(284517);function l(e,r){var l;return(0,t.jsxs)(a.TableRow,{className:"flex items-center rounded-xl border-none",children:[(0,t.jsxs)(a.TableCell,{className:"w-[40px] pl-3 text-base text-muted-foreground",children:[r+1,"."]}),(0,t.jsxs)(a.TableCell,{className:"flex items-center gap-3 py-3 px-0 w-7/12",children:[(0,t.jsx)(i.AuthorAvatar,{size:40,className:"h-10 w-10",user:{avatar_url:e.avatarUrl,lowercase_wallet_address:e.walletAddress,id:e.userId}}),(0,t.jsx)("div",{className:"text-sm text-foreground font-normal",children:(l=e.name).startsWith("0x")&&42===l.length?(0,t.jsx)(n.WalletAddress,{address:e.name,truncate:!0,className:"text-foreground"}):e.name})]}),(0,t.jsx)(a.TableCell,{className:"w-4/12 text-right text-sm text-muted-foreground",children:function(e){try{let t=Number((0,s.formatUnits)(BigInt(e.coinHoldings),18));if(Number.isNaN(t))return"0";
10return(0,o.formatAmount)(t)}catch(t){return console.error("Failed to format supporter coin holdings",t),e.coinHoldings}}(e)})]},`${e.walletAddress}-${r}`)}e.s(["TopSupportersTable",0,function(e){let s,i,n=(0,r.c)(4),{supporters:o}=e;return n[0]!==o.supporters?(s=o.supporters.map(l),n[0]=o.supporters,n[1]=s):s=n[1],n[2]!==s?(i=(0,t.jsx)(a.Table,{containerClassName:"overflow-hidden",children:(0,t.jsx)(a.TableBody,{children:s})}),n[2]=s,n[3]=i):i=n[3],i}])},658459,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(958870),i=e.i(959173),a=e.i(29270),n=e.i(943870),o=e.i(380750),l=e.i(11393);function c(e){let a,o,c,u,d,f,m,p,h=(0,r.c)(20),{author:g}=e,x=g.displayName?.name;h[0]!==x?(a=(0,t.jsx)("span",{className:"max-w-48 text-foreground font-medium text-sm truncate hover:underline cursor-pointer",children:x}),h[0]=x,h[1]=a):a=h[1];let y=a;h[2]!==g?(o=(0,t.jsx)(i.AuthorAvatar,{user:g,size:40,className:"h-10 w-10"}),h[2]=g,h[3]=o):o=h[3],h[4]!==y||h[5]!==o?(c=(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",children:[o,y]}),h[4]=y,h[5]=o,h[6]=c):c=h[6];let v=c;return h[7]!==g||h[8]!==v?(u=(0,t.jsx)("div",{className:"max-w-full flex items-center gap-2",children:g.lowercase_wallet_address?(0,t.jsx)(s.default,{author:g,trigger:v,disableClickOpen:!0,children:g.verifiedSocials&&(0,t.jsx)(l.default,{verifiedSocials:g.verifiedSocials})}):v}),h[7]=g,h[8]=v,h[9]=u):u=h[9],h[10]!==g.verifiedSocials?(d=(0,t.jsx)(l.default,{verifiedSocials:g.verifiedSocials}),h[10]=g.verifiedSocials,h[11]=d):d=h[11],h[12]!==u||h[13]!==d?(f=(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[u,d]}),h[12]=u,h[13]=d,h[14]=f):f=h[14],h[15]!==g.authorBio?(m=g.authorBio&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(n.default,{text:g.authorBio,maxLength:150,className:"text-muted-foreground text-sm font-normal"})}),h[15]=g.authorBio,h[16]=m):m=h[16],h[17]!==f||h[18]!==m?(p=(0,t.jsxs)("div",{className:"p-2 -mx-2 -my-2",children:[f,m]}),h[17]=f,h[18]=m,h[19]=p):p=h[19],p}e.s(["default",0,function(e){let n,u,d,f,m,p,h,g,x,y=(0,r.c)(32),{authors:v}=e;y[0]!==v?(n=v.slice(0,2),y[0]=v,y[1]=n):n=y[1];let b=n,w=1===v.length,j=w?v[0].displayName?.name:`${v[0].displayName?.name} and ${v.length-1} other${v.length>2?"s":""}`;if(w){let e,r,a,n,o=v[0];y[2]!==o?(e=(0,t.jsx)("div",{className:"ring ring-avatar-ring rounded-full",children:(0,t.jsx)(i.AuthorAvatar,{user:o,size:24,className:"h-6 w-6"})}),y[2]=o,y[3]=e):e=y[3];let c=o.displayName?.name;y[4]!==c?(r=(0,t.jsx)("div",{className:"z-10 text-sm font-normal flex justify-center items-center px-2 -ml-1 ring ring-avatar-ring overflow-hidden max-w-[160px] sm:max-w-[220px] h-6 min-w-6 rounded-full border border-transparent bg-muted text-muted-foreground font-sans",children:(0,t.jsx)("span",{className:"truncate",children:c})}),y[4]=c,y[5]=r):r=y[5],y[6]!==e||y[7]!==r?(a=(0,t.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[e,r]}),y[6]=e,y[7]=r,y[8]=a):a=y[8];let u=a;return y[9]!==u||y[10]!==o?(n=(0,t.jsx)("div",{className:"flex flex-row items-center group",children:o.lowercase_wallet_address?(0,t.jsx)(s.default,{author:o,trigger:u,disableClickOpen:!0,children:o.verifiedSocials&&(0,t.jsx)(l.default,{verifiedSocials:o.verifiedSocials})}):u}),y[9]=u,y[10]=o,y[11]=n):n=y[11],n}if(y[12]!==v?(u=(e,r)=>(0,t.jsx)(s.default,{author:e,avatarSize:24,avatarClassName:"h-6 w-6",disableClickOpen:!0,children:v[r]?.verifiedSocials&&(0,t.jsx)(l.default,{verifiedSocials:v[r].verifiedSocials})}),y[12]=v,y[13]=u):u=y[13],y[14]!==b||y[15]!==u?(d=(0,t.jsx)(a.default,{avatars:b,small:!0,className:"hover:space-x-0",renderAvatar:u}),y[14]=b,y[15]=u,y[16]=d):d=y[16],y[17]!==j?(f=(0,t.jsx)(o.DialogTrigger,{asChild:!0,children:(0,t.jsx)("button",{className:"z-10 text-sm font-normal flex justify-center items-center px-2 -ml-1 hover:ml-0 transition-all duration-300 ring ring-avatar-ring overflow-hidden max-w-[160px] sm:max-w-[220px] h-6 min-w-6 rounded-full border border-transparent bg-muted text-muted-foreground hover:bg-secondary hover:text-secondary-foreground cursor-pointer font-sans",children:(0,t.jsx)("span",{className:"truncate",children:j})})}),y[17]=j,y[18]=f):f=y[18],y[19]!==d||y[20]!==f?(m=(0,t.jsxs)("div",{className:"flex flex-row items-center group",children:[d,f]}),y[19]=d,y[20]=f,y[21]=m):m=y[21],y[22]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(o.DialogHeader,{children:(0,t.jsx)(o.DialogTitle,{children:"Writers"})}),y[22]=p):p=y[22],y[23]!==v){let e;y[25]!==v.length?(e=(e,r)=>(0,t.jsxs)("div",{children:[(0,t.jsx)(c,{author:e}),r<v.length-1&&(0,t.jsx)("hr",{className:"my-4"})]},e.id),y[25]=v.length,y[26]=e):e=y[26],h=v.map(e),y[23]=v,y[24]=h}else h=y[24];return y[27]!==h?(g=(0,t.jsx)(o.DialogPortal,{children:(0,t.jsxs)(o.DialogContent,{className:"sm:max-w-[462px] max-h-132 overflow-y-scroll",children:[p,(0,t.jsx)("div",{className:"mt-2",children:h})]})}),y[27]=h,y[28]=g):g=y[28],y[29]!==m||y[30]!==g?(x=(0,t.jsxs)(o.Dialog,{children:[m,g]}),y[29]=m,y[30]=g,y[31]=x):x=y[31],x}])},827850,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(72603),i=e.i(731876),a=e.i(198983);let n={grid:12,feed:10,"full-post":3};e.s(["default",0,function(e){let o,l,c,u,d,f,m,p,h,g,x,y,v,b=(0,r.c)(32),{blog:w,postCount:j,currentPage:P,category:N}=e,_=Math.ceil(j/(w?.lowercase_url,n[w?.theme?.postListType||"feed"])),S=P??1;if(b[0]!==w||b[1]!==N||b[2]!==S||b[3]!==_){p=Symbol.for("react.early_return_sentinel");e:{let e,r=(0,a.getBlogUrl)(w).url.replace(/\/$/,""),n=N?`${r}/category/${N}`:r,h=e=>1===e?n||"/":`${n}/p/${e}`;if(_<=1){p=null;break e}u=s.Pagination,c=s.PaginationContent;let g=1===S?"opacity-50 pointer-events-none":"cursor-pointer";b[12]!==g?(e=(0,i.cn)(g),b[12]=g,b[13]=e):e=b[13],f=(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationPrevious,{href:1===S?void 0:h(S-1),rel:1===S?void 0:"prev",className:e})}),m=(()=>{let e=[];e.push((0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:h(1),isActive:1===S,children:"1"})},"1")),S>3&&e.push((0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationEllipsis,{})},"start-ellipsis"));for(let r=Math.max(2,S-1);r<=Math.min(_-1,S+1);r++)e.push((0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:h(r),isActive:S===r,children:r})},r));return S<_-2&&e.push((0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationEllipsis,{})},"end-ellipsis")),_>1&&e.push((0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:h(_),isActive:S===_,children:_})},_)),e})(),l=s.PaginationItem,o=s.PaginationNext,d=S===_?void 0:h(S+1)}b[0]=w,b[1]=N,b[2]=S,b[3]=_,b[4]=o,b[5]=l,b[6]=c,b[7]=u,b[8]=d,b[9]=f,b[10]=m,b[11]=p}else o=b[4],l=b[5],c=b[6],u=b[7],d=b[8],f=b[9],m=b[10],p=b[11];if(p!==Symbol.for("react.early_return_sentinel"))return p;let E=S===_?void 0:"next",C=S===_?"opacity-50 pointer-events-none":"cursor-pointer";return b[14]!==C?(h=(0,i.cn)(C),b[14]=C,b[15]=h):h=b[15],b[16]!==o||b[17]!==d||b[18]!==E||b[19]!==h?(g=(0,t.jsx)(o,{href:d,rel:E,className:h}),b[16]=o,b[17]=d,b[18]=E,b[19]=h,b[20]=g):g=b[20],b[21]!==l||b[22]!==g?(x=(0,t.jsx)(l,{children:g}),b[21]=l,b[22]=g,b[23]=x):x=b[23],b[24]!==c||b[25]!==f||b[26]!==m||b[27]!==x?(y=(0,t.jsxs)(c,{children:[f,m,x
10]}),b[24]=c,b[25]=f,b[26]=m,b[27]=x,b[28]=y):y=b[28],b[29]!==u||b[30]!==y?(v=(0,t.jsx)(u,{children:y}),b[29]=u,b[30]=y,b[31]=v):v=b[31],v}],827850)},820105,e=>{"use strict";var t=e.i(843476),r=e.i(500932),s=e.i(271645),i=e.i(448354),a=e.i(619089),n=e.i(483373),o=e.i(267233);e.s(["default",0,function(e){let l,c,u,d=(0,r.c)(10),{blog:f}=e,[m,p]=(0,s.useState)("loading");if(d[0]!==f.id||d[1]!==f.userId?(l=()=>{!async function(){if(!await (0,o.isUserLoggedIn)())return p("visitor");let[e,t]=await Promise.all([(0,o.getUser)(),(0,n.getUsersTeamBlogs)()]);p(t.some(e=>e.id===f.id)||e?.id===f?.userId?"writer":"visitor")}()},c=[f.id,f.userId],d[0]=f.id,d[1]=f.userId,d[2]=l,d[3]=c):(l=d[2],c=d[3]),(0,s.useEffect)(l,c),"loading"===m){let e;return d[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a.Skeleton,{className:"w-1/3 h-4"}),d[4]=e):e=d[4],e}if("writer"===m){let e,r;return d[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mb-4",children:"Share your first idea."}),d[5]=e):e=d[5],d[6]!==f.custom_domain||d[7]!==f.lowercase_url?(r=(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[e,(0,t.jsx)(i.default,{source:"empty-post-list",className:"w-40",blogSlug:f.lowercase_url,customDomain:f.custom_domain})]}),d[6]=f.custom_domain,d[7]=f.lowercase_url,d[8]=r):r=d[8],r}return d[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:"You're early! No posts yet"}),d[9]=u):u=d[9],u}])}]);
11
12//# debugId=8fb419d0-e57e-e3d9-c50f-51447f407e37

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.