PageSourceSearch

https://jooish.app/_next/static/chunks/3ly8u1cu5w1uu.js

js jooish.app collected 2026-10-02 06:39:39 UTC 11,135 bytes, 4 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]="424a051d-0ac9-f474-0571-d92e5c6f38c1")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,168573,e=>{"use strict";var t=e.i(308274),r=e.i(68388),s=e.i(315103);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...r}));a.displayName="Card";let i=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...r}));i.displayName="CardHeader";let n=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("h3",{ref:a,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",e),...r}));n.displayName="CardTitle";let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("p",{ref:a,className:(0,s.cn)("text-sm text-muted-foreground",e),...r}));o.displayName="CardDescription";let l=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("p-6 pt-0",e),...r}));l.displayName="CardContent";let c=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center p-6 pt-0",e),...r}));c.displayName="CardFooter",e.s(["Card",0,a,"CardContent",0,l,"CardDescription",0,o,"CardFooter",0,c,"CardHeader",0,i,"CardTitle",0,n])},570323,e=>{"use strict";let t=(0,e.i(798751).default)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);e.s(["Bookmark",0,t],570323)},165306,e=>{"use strict";let t=(0,e.i(798751).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);e.s(["Share2",0,t],165306)},65977,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return window.prompt("Copy this:",e),!1}e.s(["copyText",0,t])},29378,e=>{"use strict";var t=e.i(308274),r=e.i(165306),s=e.i(49690),a=e.i(855448),i=e.i(68388);e.i(488830);var n=e.i(274738);async function o(e,t){let r=await n.api.shares.create(e,t);if(!r)throw Error("Failed to create share");return r}var l=e.i(65977),c=e.i(315103);e.s(["ShareButton",0,function({postId:e,title:n,className:d,variant:u="button"}){let{share:m,copied:h}=function(e,t){let[r,s]=(0,i.useState)(!1);return{share:(0,i.useCallback)(async r=>{r?.stopPropagation(),r?.preventDefault();try{let{url:r}=await o(e,"native");navigator.share?await navigator.share({title:t,url:r}):await (0,l.copyText)(r)&&(s(!0),setTimeout(()=>s(!1),2e3))}catch{let r=`${window.location.origin}/sites/posts/${e}?utm_source=web-share`;navigator.share?await navigator.share({title:t,url:r}):await (0,l.copyText)(r)&&(s(!0),setTimeout(()=>s(!1),2e3))}},[e,t]),copied:r}}(e,n);return"inline"===u?(0,t.jsx)("button",{onClick:m,className:(0,c.cn)("flex items-center gap-1.5 text-sm font-medium transition-colors",d),children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Check,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:"Copied"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Share2,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:"Share"})]})}):(0,t.jsx)(a.Button,{variant:"ghost",size:"sm",onClick:m,className:d??"gap-1.5 text-muted-foreground hover:text-foreground",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Check,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs",children:"Copied"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Share2,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs",children:"Share"})]})})}],29378)},452177,773178,e=>{"use strict";var t=e.i(308274),r=e.i(570323),s=e.i(855448),a=e.i(68388),i=e.i(985403);e.i(488830);var n=e.i(274738);async function o(e){let t=await n.api.bookmarks.add(e);if(!t)throw Error("Failed to bookmark post");return t}async function l(e){let t=await n.api.bookmarks.remove(e);
2if(!t)throw Error("Failed to unbookmark post");return t}async function c(){let e=await n.api.bookmarks.getList();if(!e)throw Error("Failed to fetch bookmarks");return e}e.s(["bookmarkPost",0,o,"getBookmarks",0,c,"unbookmarkPost",0,l],773178);var d=e.i(627919),u=e.i(315103);e.s(["BookmarkButton",0,function({postId:e,initialBookmarked:n=!1,className:c,variant:m="button"}){let{isBookmarked:h,isLoading:p,toggle:x,isAuthenticated:f}=function(e,t=!1){let{isAuthenticated:r}=(0,i.useAuth)(),[s,n]=(0,a.useState)(t),[c,d]=(0,a.useState)(!1),u=(0,a.useCallback)(async t=>{if(t?.stopPropagation(),t?.preventDefault(),!r)return{requiresAuth:!0};d(!0),n(!s);try{return s?await l(e):await o(e),{success:!0}}catch(e){return n(s),{error:e}}finally{d(!1)}},[e,s,r]);return{isBookmarked:s,isLoading:c,toggle:u,isAuthenticated:r}}(e,n);return f?"inline"===m?(0,t.jsxs)("button",{onClick:x,disabled:p,className:(0,u.cn)("flex items-center gap-1.5 text-sm font-medium transition-colors",h&&"text-primary",c),children:[(0,t.jsx)(r.Bookmark,{className:(0,u.cn)("h-4 w-4",h&&"fill-current")}),(0,t.jsx)("span",{children:h?"Saved":"Save"})]}):(0,t.jsxs)(s.Button,{variant:"ghost",size:"sm",onClick:x,disabled:p,className:(0,u.cn)("gap-1.5 text-muted-foreground hover:text-foreground",h&&"text-primary",c),children:[(0,t.jsx)(r.Bookmark,{className:(0,u.cn)("h-4 w-4",h&&"fill-current")}),(0,t.jsx)("span",{className:"text-xs",children:h?"Saved":"Save"})]}):"inline"===m?(0,t.jsxs)(d.AuthLink,{type:"sign-in",className:(0,u.cn)("flex items-center gap-1.5 text-sm font-medium transition-colors",c),children:[(0,t.jsx)(r.Bookmark,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:"Save"})]}):(0,t.jsx)(d.AuthLink,{type:"sign-in",className:c,children:(0,t.jsxs)(s.Button,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(r.Bookmark,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs",children:"Save"})]})})}],452177)},783032,e=>{"use strict";e.s(["postCanonicalPath",0,function(e,t){let r=t?t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80).replace(/-+$/g,""):"";return r?`/sites/posts/${e}/${r}`:`/sites/posts/${e}`}])},602090,e=>{"use strict";let t=(0,e.i(798751).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],602090)},137313,e=>{"use strict";e.s(["formatTime",0,function(e){return e.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})},"formatTimeAgo",0,function(e){let t=Math.floor((Date.now()-e.getTime())/1e3);for(let{seconds:e,label:r}of[{seconds:31536e3,label:"year"},{seconds:2592e3,label:"month"},{seconds:86400,label:"day"},{seconds:3600,label:"hour"},{seconds:60,label:"minute"}]){let s=Math.floor(t/e);if(s>=1)return`${s} ${r}${1!==s?"s":""} ago`}return"just now"}])},541842,e=>{"use strict";e.i(924856);var t=e.i(137313);e.s(["timeAgo",0,{format:e=>(0,t.formatTimeAgo)(new Date(e))}])},269378,e=>{"use strict";let t=(0,e.i(798751).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],269378)},676835,e=>{"use strict";let t=(0,e.i(798751).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",0,t],676835)},663809,e=>{"use strict";let t=(0,e.i(798751).default)("cloud-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);e.s(["CloudOff",0,t],663809)},599534,e=>{"use strict";var t=e.i(308274),r=e.i(50915),s=e.i(663809),a=e.i(269378),i=e.i(292476),n=e.i(676835),o=e.i(855448);e.s(["FeedEmptyState",0,function({type:e,variant:l="latest",onRetry:c}){let d=(()=>
2{if("error"===e)return{icon:s.CloudOff,title:"Connection error",description:"We're having trouble reaching our servers. Please check your connection and try again."};switch(l){case"trending":return{icon:a.TrendingUp,title:"Nothing trending right now",description:"Check back later to see what stories are gaining attention.",linkText:"View latest posts",linkHref:"/sites/feed/news"};case"following":return{icon:i.Newspaper,title:"No posts yet",description:"Posts from sites you follow will appear here."};case"sites":return{icon:n.Building2,title:"No sites yet",description:"Sites will appear here once they are added."};case"site-posts":return{icon:i.Newspaper,title:"No posts yet",description:"This site hasn't published any posts yet."};default:return{icon:i.Newspaper,title:"No posts yet",description:"New posts will appear here. Check back soon!"}}})(),u=d.icon;return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center px-8 py-16 text-center min-h-[50vh]",children:[(0,t.jsx)("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-muted mb-6",children:(0,t.jsx)(u,{className:"h-10 w-10 text-muted-foreground"})}),(0,t.jsx)("h2",{className:"text-xl font-medium mb-2",children:d.title}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-md mb-6",children:d.description}),"error"===e&&c&&(0,t.jsx)(o.Button,{onClick:c,children:"Try Again"}),"linkHref"in d&&d.linkHref&&(0,t.jsx)(o.Button,{asChild:!0,variant:"outline",children:(0,t.jsx)(r.default,{href:d.linkHref,children:d.linkText})})]})}])},325335,e=>{"use strict";var t=e.i(308274),r=e.i(50915),s=e.i(168573),a=e.i(824599),i=e.i(315103);e.s(["SidebarNewsListCard",0,({posts:e,header:n,headerHref:o,source:l})=>{let c="trending"===n.toLowerCase()?"bg-orange-500":"bg-blue-500";return(0,t.jsx)("aside",{className:"sticky top-20 self-start",children:(0,t.jsxs)(s.Card,{className:"overflow-hidden rounded-2xl border border-border/60 shadow-[0_1px_2px_rgba(0,0,0,0.03),0_4px_16px_rgba(0,0,0,0.04)]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 pt-4 pb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:(0,i.cn)("h-[18px] w-[3px] rounded-sm",c)}),(0,t.jsx)("h3",{className:"text-[17px] font-semibold tracking-tight",children:n})]}),o&&(0,t.jsx)(r.default,{href:o,className:"text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",children:"View all →"})]}),(0,t.jsx)("div",{className:"px-[10px] pb-[10px] pt-1",children:e.map((e,r)=>(0,t.jsx)("div",{className:(0,i.cn)(r>0&&"border-t border-border/50"),children:(0,t.jsx)(a.NewsLink,{item:e,source:l,thumbSize:"md"})},e.id))})]})})}])}]);
3
4//# debugId=424a051d-0ac9-f474-0571-d92e5c6f38c1

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.