PageSourceSearch

https://macdavid-bot-manuskripta.hf.space/_expo/static/js/web/acce…-invite-b4e53e4cc288f7f7d12046c383937060.js

js macdavid-bot-manuskripta.hf.space collected 2026-10-03 17:05:36 UTC 5,775 bytes, 1 lines download raw bytes

1__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),h=r(d[8]),x=r(d[9]),y=r(d[10]),j=r(d[11]),F=r(d[12]),b=r(d[13]),p=r(d[14]);function S(){const e=(0,o.c)(44),s=(0,x.useColors)(),S=(0,y.useRouter)(),{token:k}=(0,y.useLocalSearchParams)(),{isLoggedIn:v}=(0,j.useApp)(),[I,_]=(0,t.useState)("idle"),[D,w]=(0,t.useState)("");let C,A,G;e[0]!==v||e[1]!==S?(C=()=>{v||S.replace("/login")},e[0]=v,e[1]=S,e[2]=C):C=e[2],e[3]!==v?(A=[v],e[3]=v,e[4]=A):A=e[4],(0,t.useEffect)(C,A),e[5]!==k?(G=async()=>{if(!k)return w("No invite token found."),void _("error");_("loading");try{const{message:e}=await F.studioApi.acceptInvite(k);w(e),_("success")}catch(e){w(e.message??"Failed to accept invite."),_("error")}},e[5]=k,e[6]=G):G=e[6];const L=G;let O;e[7]!==k?(O=async()=>{if(!k)return w("No invite token found."),void _("error");_("loading");try{const{message:e}=await F.studioApi.declineInvite(k);w(e),_("declined")}catch(e){w(e.message??"Failed to decline invite."),_("error")}},e[7]=k,e[8]=O):O=e[8];const P=O;let B,E,R,H,M,W,N,V;return e[9]!==s.background?(B=[z.container,{backgroundColor:s.background}],e[9]=s.background,e[10]=B):B=e[10],e[11]===Symbol.for("react.memo_cache_sentinel")?(E=(0,p.jsx)(h.AppHeader,{}),e[11]=E):E=e[11],e[12]!==s.foreground||e[13]!==s.mutedForeground||e[14]!==L||e[15]!==P||e[16]!==I?(R=("idle"===I||"loading"===I)&&(0,p.jsx)(p.Fragment,{children:"loading"===I?(0,p.jsx)(n.default,{color:b.GOLD,size:"large"}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Feather,{name:"users",size:52,color:b.GOLD}),(0,p.jsx)(c.default,{style:[z.title,{color:s.foreground}],children:"Studio Invite"}),(0,p.jsxs)(c.default,{style:[z.body,{color:s.mutedForeground}],children:["You have been invited to join a Manuskripta studio.","\n","Accepting lets you share books and collaborate with the team."]}),(0,p.jsxs)(u.default,{style:z.btnRow,children:[(0,p.jsxs)(l.default,{onPress:P,style:[z.btn,{borderWidth:1,borderColor:"#EF4444",backgroundColor:"transparent"}],children:[(0,p.jsx)(f.Feather,{name:"x",size:16,color:"#EF4444"}),(0,p.jsx)(c.default,{style:{color:"#EF4444",fontSize:14,fontFamily:"Inter_600SemiBold"},children:"Decline"})]}),(0,p.jsxs)(l.default,{onPress:L,style:[z.btn,{backgroundColor:b.GOLD}],children:[(0,p.jsx)(f.Feather,{name:"check",size:16,color:"#000"}),(0,p.jsx)(c.default,{style:{color:"#000",fontSize:14,fontFamily:"Inter_600SemiBold"},children:"Accept"})]})]})]})}),e[12]=s.foreground,e[13]=s.mutedForeground,e[14]=L,e[15]=P,e[16]=I,e[17]=R):R=e[17],e[18]!==s.foreground||e[19]!==s.mutedForeground||e[20]!==D||e[21]!==S||e[22]!==I?(H="success"===I&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Feather,{name:"check-circle",size:52,color:"#22C55E"}),(0,p.jsx)(c.default,{style:[z.title,{color:s.foreground}],children:"Welcome to the studio!"}),(0,p.jsx)(c.default,{style:[z.body,{color:s.mutedForeground}],children:D}),(0,p.jsxs)(l.default,{onPress:()=>S.replace("/(app)/studio"),style:[z.btn,{backgroundColor:b.GOLD}],children:[(0,p.jsx)(f.Feather,{name:"users",size:16,color:"#000"}),(0,p.jsx)(c.default,{style:{color:"#000",fontSize:14,fontFamily:"Inter_600SemiBold"},children:"View Studio"})]})]}),e[18]=s.foreground,e[19]=s.mutedForeground,e[20]=D,e[21]=S,e[22]=I,e[23]=H):H=e[23],e[24]!==s.foreground||e[25]!==s.mutedForeground||e[26]!==D||e[27]!==S||e[28]!==I?(M="declined"===I&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Feather,{name:"x-circle",size:52,color:s.mutedForeground}),(0,p.jsx)(c.default,{style:[z.title,{color:s.foreground}],children:"Invite Declined"}),(0,p.jsx)(c.default,{style:[z.body,{color:s.mutedForeground}],children:D}),(0,p.jsxs)(l.default,{onPress:()=>S.replace("/(app)/dashboard"),style:[z.btn,{backgroundColor:b.GOLD}],children:[(0,p.jsx)(f.Feather,{name:"home",size:16,color:"#000"}),(0,p.jsx)(c.default,{style:{color:"#000",fontSize:14,fontFamily:"Inter_600SemiBold"},children:"Go to Dashboard"})]})]}),e[24]=s.foreground,e[25]=s.mutedForeground,e[26]=D,e[27]=S,e[28]=I,e[29]=M):M=e[29],e[30]!==s.foreground||e[31]!==s.mutedForeground||e[32]!==D||e[33]!==S||e[34]!==I?(W="error"===I&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Feather,{name:"alert-triangle",size:52,color:"#EF4444"}),(0,p.jsx)(c.default,{style:[z.title,{color:s.foreground}],children:"Something went wrong"}),(0,p.jsx)(c.default,{style:[z.body,{color:s.mutedForeground}],children:D||"Invalid or expired invite link."}),(0,p.jsxs)(l.default,{onPress:()=>S.replace("/(app)/dashboard"),style:[z.btn,{backgroundColor:b.GOLD}],children:[(0,p.jsx)(f.Feather,{name:"home",size:16,color:"#000"}),(0,p.jsx)(c.default,{style:{color:"#000",fontSize:14,fontFamily:"Inter_600SemiBold"},children:"Go to Dashboard"})]})]}),e[30]=s.foreground,e[31]=s.mutedForeground,e[32]=D,e[33]=S,e[34]=I,e[35]=W):W=e[35],e[36]!==R||e[37]!==H||e[38]!==M||e[39]!==W?(N=(0,p.jsxs)(u.default,{style:z.content,children:[R,H,M,W]}),e[36]=R,e[37]=H,e[38]=M,e[39]=W,e[40]=N):N=e[40],e[41]!==N||e[42]!==B?(V=(0,p.jsxs)(u.default,{style:B,children:[E,N]}),e[41]=N,e[42]=B,e[43]=V):V=e[43],V}const z=s.default.create({container:{flex:1},content:{flex:1,justifyContent:"center",alignItems:"center",padding:32,gap:16},title:{fontSize:24,fontFamily:"Inter_700Bold",textAlign:"center"},body:{fontSize:14,fontFamily:"Inter_400Regular",textAlign:"center",lineHeight:22,maxWidth:320},btnRow:{flexDirection:"row",gap:12,marginTop:8},btn:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:24,paddingVertical:13,borderRadius:10}})},1342,[713,11,1257,1087,86,494,79,775,1373,1092,1308,1096,1103,1095,202]);

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.