PageSourceSearch

https://app.fyxer.com/assets/index-Dmhx3azr.js

js fyxer.com collected 2026-09-25 20:20:21 UTC 5,700 bytes, 1 lines download raw bytes

1import{u as T,r as i,j as e}from"./vendor-react-C5PewRsl.js";import{a as _,a0 as k,cg as H,d as u,C as x,f as O,cD as L,ej as A,cE as P,cF as F,cG as M,cH as R,dM as B,aR as W,i as m,bT as z,ap as b,Q as f,ch as I,cB as K,h as U,j as V,bN as Y,bO as G,c$ as $}from"./main-DoxpiNgY.js";import{a as Q,C as X}from"./ChatUpgradePrompt-jb6Ku1ie.js";import{C as q}from"./ChatHistoryDrawer-BRHQPXn4.js";import{a as J}from"./ThreadToggle-1fTfD7kJ.js";import"./vendor-misc-DVk-0spb.js";import{e as Z}from"./index-FFROJYLR.js";import{S as ee}from"./SeatLocked-DufWglWu.js";import{C as d}from"./ChatThread-D8_LJprJ.js";import{g as ae}from"./getPlainTextFromMarkdown-Du6FUcz6.js";import{D as te}from"./DashboardChatThreadPanel-CeiCU8qd.js";import{L as C}from"./LabelledIconButton-KDjPwz0k.js";import{S as j}from"./vendor-icons-Nh3lIdcn.js";import"./vendor-runtime-DG-GlVKR.js";import"./vendor-ui-BKWhI8D_.js";import"./vendor-analytics-aNB2-Vwh.js";import"./vendor-sentry-SKD9L_Jy.js";import"./SheetDrawer-CoquK8Wb.js";import"./dropdown-menu-CTxQ4zKB.js";import"./ThreadDayDivider-C2nL7Id5.js";import"./useChatHistory-CybKmKor.js";import"./dateLabel-BhO2GJTA.js";import"./mermaid-3ZIDBTTL-BQtYO9pL.js";import"./index-DirJCEvl.js";import"./marked.esm-arQYK1KV.js";import"./utils-C2A-qYlQ.js";import"./ChatMessageContent-7H3lhDYB.js";import"./documents-BdJCmYft.js";import"./useHasDocumentAccess-CczcC0ux.js";import"./useEmailInboxes-C0IYBzpX.js";import"./ChatToolUsage-CVgoZGld.js";/* empty css               */import"./ChatInput-B-RDd5XN.js";import"./useDebounce-D59gqLuZ.js";import"./index-C3qxNN0c.js";import"./index-BHJ2L8hx.js";import"./index-BoCVrkPy.js";import"./index-CEXy5VPo.js";import"./useChatThreadModeSelection-BhNrKs-i.js";import"./DashboardChatMessages-D7DljgCh.js";import"./getBrowserTimezone-s91SEF56.js";import"./index-Dv1bGROt.js";import"./index-CMGZUsy1.js";import"./PendingFlowQuestionnairePanel-Bd4MNs_t.js";import"./ThreadRadio-uN-gwsux.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="eedace49-c7ac-43df-b7b2-5a8569fcec12",a._sentryDebugIdIdentifier="sentry-dbid-eedace49-c7ac-43df-b7b2-5a8569fcec12")}catch{}const y=({children:a})=>{const{chatId:t}=T(),{logButtonPress:l}=_(),[c,s]=i.useState(!1),[S,h]=i.useState(!1),[N,v]=i.useState(!1),[r,p]=i.useState(null);i.useEffect(()=>(p(null),t?k(u(x.ChatThread,t),D=>{const n=D.data();n&&p({title:n.title?ae(n.title):"Untitled Chat",isShared:n.shareMode===d.ANYONE_WITH_LINK,isEmailConversation:n.threadType===H.FYXER_EMAIL_CONVERSATION})}):void 0),[t]);const g=O({base:Z().CLIENT_URL,path:`/chat/share/${t}`}),w=async()=>{try{await navigator.clipboard.writeText(g),l(b.CHAT_SHARE_LINK_COPIED,{chatId:t}),h(!0),f.info({title:"Link copied to clipboard"}),setTimeout(()=>h(!1),2e3)}catch(o){console.error("Failed to copy link:",o),f.error({title:"Failed to copy link",description:"Please try again."})}},E=async o=>{t&&(s(!0),await z(u(x.ChatThread,t),{shareMode:o?d.ANYONE_WITH_LINK:d.PRIVATE}),l(b.CHAT_VISIBILITY_TOGGLE_CLICK,{chatId:t,shareMode:o?"ANYONE_WITH_LINK":"PRIVATE"}),s(!1))};return!t||!r?a?e.jsx(e.Fragment,{children:a}):null:r.isEmailConversation?null:e.jsxs(L,{open:N,onOpenChange:v,children:[a?e.jsx(A,{asChild:!0,children:a}):null,e.jsxs(P,{bottomOnMobile:!0,className:"max-w-[calc(100%-2rem)] sm:max-w-md",children:[e.jsxs(F,{children:[e.jsx(M,{children:"Share conversation"}),e.jsxs(R,{children:['Share "',r.title,'" with others via this link:']})]}),e.jsxs(B,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ee,{feature:"chatEnabled",side:"right",children:e.jsx(J,{id:"chat-sharing-toggle",disabled:c,onChange:E,checked:r.isShared,"aria-label":"Enable sharing link"})}),e.jsx("label",{htmlFor:"chat-sharing-toggle",className:"text-sm leading-[1.4] font-medium text-rb-darkbtn",children:"Enable sharing link"})]}),r.isShared?e.jsxs("div",{className:"flex min-w-0 flex-col gap-2 sm:flex-row",children:[e.jsx(W,{"aria-label":"Conversation sharing link",value:g,readOnly:!0,className:"min-w-0 flex-1 bg-rb-parchment-light"}),e.jsx(m,{size:"md",variant:"neutral",icon:S?"Check":"Copy",label:"Copy",className:"w-full sm:w-auto",onClick:w})]}):null,e.jsx("p",{"aria-live":"polite",className:"text-sm leading-[1.4] text-rb-secondary-dark",children:r.isShared?"Anyone with this link will be able to read your conversation.":"Only you will be able to read this conversation."})]})]})]})},se=({chatId:a})=>{const t=V(1024),l=I(),[c,s]=i.useState(!1);return Y(G.CHAT_ID,{chatId:a}),e.jsxs(e.Fragment,{children:[!t&&e.jsx("div",{className:"flex",style:{width:$},children:e.jsx(X,{activeChatId:a})}),e.jsx(q,{open:c,onOpenChange:s,activeChatId:a}),e.jsx(te,{chatId:a,surface:"dash_chat_tab",header:l?e.jsxs(e.Fragment,{children:[e.jsx(m,{variant:"ghost",size:"md",icon:"Chat",label:"History",className:"lg:hidden",onClick:()=>s(!0)}),e.jsx("div",{className:"flex-1"}),e.jsx(y,{children:e.jsx(m,{variant:"ghost",size:"md",label:e.jsxs(e.Fragment,{children:[e.jsx(j,{size:16,className:"text-rb-secondary-dark"}),"Share"]})})})]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{icon:"Chat",label:"History",pillSide:"right",onClick:()=>s(!0),className:"lg:hidden"}),e.jsx("div",{className:"flex-1"}),e.jsx(y,{children:e.jsx(C,{icon:()=>e.jsx(j,{size:16}),label:"Share",pillSide:"left"})})]})})]})},Qe=()=>{const{chatId:a}=T(),t=I();return e.jsx(Q,{children:e.jsx(K,{className:U("relative max-sm:mt-2 lg:flex-row",t&&"max-h-[calc(100dvh-3.5rem)] bg-rb-canvas lg:max-h-dvh"),
1children:a?e.jsx(se,{chatId:a}):null})})};export{Qe as ChatRoute};

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.