PageSourceSearch

https://app.telephos.ai/_next/static/chunks/458.07f179f0ee3f27d8.js

js telephos.ai collected 2026-10-05 14:45:32 UTC 4,292 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[458],{65220:(e,t,s)=>{s.r(t),s.d(t,{WikiShareReviewContent:()=>p});var n=s(54568),a=s(7620),r=s(47311),i=s(55140),l=s(77501),c=s(55222),d=s(16125),u=s(5239),o=s(6845),m=s(42700),x=s(75752),h=s(48518),f=s(28518);function p(e){var t,s,p,j,v,g,y,N,w,b;let{shareId:k,embedded:C=!1}=e;(0,l.f)();let{user:S,isAuthReady:E}=(0,i.A)(),B=(0,r.YA)(),[F,M]=(0,a.useState)(null),[W,O]=(0,a.useState)(null),[_,A]=(0,a.useState)(!0),[P,T]=(0,a.useState)(!1),[Z,L]=(0,a.useState)(null),[R,$]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!E||!S||!k)return;let e=!1;return async function(){A(!0),O(null);try{let t=await c.apiClient.getJson("/api/wiki/shares/".concat(k,"/preview"));if(e)return;M(t)}catch(t){if(e)return;O(t instanceof Error?t.message:String(t))}finally{e||A(!1)}}(),()=>{e=!0}},[E,S,k]);let H=(0,a.useCallback)(async()=>{if(!k||P)return;T(!0),L(null);let e=await c.apiClient.post("/api/wiki/shares/".concat(k,"/confirm"),{});if(e.error){L((0,c.u1)(e.error)),T(!1);return}$(!0),T(!1)},[k,P]);return E?(0,n.jsx)(h.ty,{embedded:C,entryIdHint:null!=(g=null==F?void 0:F.entry.id)?g:null,citationsMap:null!=(y=null==F?void 0:F.citations)?y:null,citationsOverflow:null!=(N=null==F?void 0:F.citationsOverflow)&&N,children:(0,n.jsxs)("div",{className:C?"min-h-0 bg-background":"min-h-screen bg-background",children:[(0,n.jsx)(f.n,{}),!C&&(0,n.jsx)(d.A,{title:(0,n.jsxs)(n.Fragment,{children:["Telephos ",(0,n.jsx)("span",{className:"text-[#F1533E]",children:"Wiki"})," — Review share"]}),accountName:null==S||null==(t=S.account)?void 0:t.name}),(0,n.jsxs)("main",{className:"px-8 py-8 max-w-4xl",children:[(0,n.jsxs)("div",{className:"mb-6 flex items-center justify-between gap-4",children:[(0,n.jsx)(r.BM,{href:"/wiki/shares",className:"text-sm text-muted-foreground hover:text-foreground",children:"← Back to pending shares"}),!R&&(0,n.jsx)(o.$,{onClick:H,disabled:P||_||!!W||!F,children:P?"Confirming...":"Confirm & activate share"})]}),(0,n.jsxs)("header",{className:"mb-6",children:[(0,n.jsx)("p",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-2",children:"Preview as recipient"}),(0,n.jsx)("h1",{className:"text-2xl font-bold tracking-tight leading-tight text-foreground",children:null!=(w=null==F||null==(s=F.entry)?void 0:s.title)?w:"Share review"}),(null==F||null==(p=F.entry)?void 0:p.sharedBy)&&(0,n.jsxs)("p",{className:"text-xs text-[#F1533E]/90 mt-2 italic",children:["Shared by ",null!=(b=F.entry.sharedBy.name)?b:"your account"]}),(null==F||null==(j=F.entry)?void 0:j.summary)&&(0,n.jsx)("p",{className:"text-base text-muted-foreground mt-3",children:F.entry.summary}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:"This is exactly what the recipient will see once you activate the share."})]}),R&&(0,n.jsx)(u.Zp,{className:"border-emerald-500/40 bg-emerald-50 mb-6",children:(0,n.jsxs)(u.Wu,{className:"pt-6 text-sm text-emerald-900",children:[(0,n.jsx)("p",{className:"font-medium",children:"Share activated."}),(0,n.jsx)("p",{className:"mt-1",children:"The recipient can now access this doc via MCP + shared-link."}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(o.$,{variant:"outline",onClick:()=>B.navigate("/wiki/shares"),children:"Back to pending shares"})})]})}),Z&&(0,n.jsx)(u.Zp,{className:"border-destructive mb-6",children:(0,n.jsxs)(u.Wu,{className:"pt-6 text-destructive text-sm",children:["Failed to confirm: ",Z]})}),_&&(0,n.jsx)("div",{className:"py-12 flex justify-center",children:(0,n.jsx)(m.O8,{text:"Loading preview..."})}),!_&&W&&(0,n.jsx)(u.Zp,{className:"border-destructive",children:(0,n.jsxs)(u.Wu,{className:"pt-6 text-sm space-y-2",children:[(0,n.jsx)("p",{className:"font-medium text-foreground",children:"Preview failed — cannot activate. Fix the share configuration or contact support."}),(0,n.jsx)("p",{className:"text-muted-foreground",children:W})]})}),!_&&(null==F||null==(v=F.entry)?void 0:v.contentMarkdown)&&(0,n.jsx)("article",{className:"min-w-0",children:(0,n.jsx)(x.t,{markdown:F.entry.contentMarkdown})})]})]})}):(0,n.jsx)("div",{className:C?"min-h-48 bg-background flex items-center justify-center":"min-h-screen bg-background flex items-center justify-center",children:(0,n.jsx)(m.O8,{text:"Loading..."})})}}}]);

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.