PageSourceSearch

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

js fyxer.com collected 2026-09-25 20:19:04 UTC 8,518 bytes, 1 lines download raw bytes

1import{j as e,L as d,u as D,e as R,r as c,N as A,f as E}from"./vendor-react-C5PewRsl.js";import{H as f,dq as T,f as x,L as j,cq as w,eA as U,bW as p,aX as z,aY as _,ea as B,a4 as g,aZ as F,eB as O,eC as $,dr as b,eD as G,a as q,cJ as Y,cK as m,ap as y,e6 as H,aD as V,a1 as K,a2 as N,aE as Q,C as P,eh as W,fk as v,a0 as X,d as J,fl as k,ez as Z,dL as ee,i as ae,Q as re,aA as se,bl as ne,au as te}from"./main-DoxpiNgY.js";import{a as ie,f as oe}from"./vendor-misc-DVk-0spb.js";import{E as le}from"./EnrichedMarkdown-BMw6Hth-.js";import"./vendor-runtime-DG-GlVKR.js";import"./index-FFROJYLR.js";import"./vendor-ui-BKWhI8D_.js";import"./vendor-icons-Nh3lIdcn.js";import"./vendor-analytics-aNB2-Vwh.js";import"./vendor-sentry-SKD9L_Jy.js";import"./index-Dwzye8Aw.js";import"./index-DirJCEvl.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="05887ed3-59c7-4058-9bd3-d960d971e3ac",a._sentryDebugIdIdentifier="sentry-dbid-05887ed3-59c7-4058-9bd3-d960d971e3ac")}catch{}const de=a=>a.trim().split(/\s+/).slice(0,2).map(r=>{var s;return(s=r[0])==null?void 0:s.toUpperCase()}).join(""),ce=({organisationId:a,planTypeSource:r,formattedTimeLeftInFreeTrial:s})=>{var l;const{logButtonPress:t}=q(),{hasEmailConnection:n}=Y(),{user:i,freeTrial:h}=f(),o=r===m.NONE&&h.value!==void 0&&!n&&((l=i.value)==null?void 0:l.hasUsedReconnectionTrial)!==!0;if(r===m.FREE_TRIAL||r===m.NONE){const u=o?`/org/${a}/settings/integrations`:x({path:`/org/${a}/settings`,hash:{tab:"billing"}});return e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx("span",{className:"hidden text-sm text-rb-secondary-dark sm:block",children:r===m.FREE_TRIAL?`${s} left in free trial`:o?"Connect your email to start using Fyxer":"Your free trial has ended"}),e.jsx(d,{to:u,className:p({variant:"primary",size:"sm"}),onClick:()=>t(y.UPGRADE,{location:o?"navbar_reconnection":"navbar"}),children:o?"Connect email":"Upgrade"})]})}return r===m.FREE_TIER_EXPERIMENT?e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx("span",{className:"hidden text-sm text-rb-secondary-dark sm:block",children:"You're on the free plan"}),e.jsx(d,{to:x({path:`/org/${a}/settings`,hash:{tab:"billing"}}),className:p({variant:"primary",size:"sm"}),onClick:()=>t(y.UPGRADE,{location:"navbar"}),children:"Upgrade"})]}):null},ue=({organisationId:a})=>H()?e.jsx(d,{to:`/org/${a}/rewards`,className:p({variant:"outline",size:"sm"}),children:"Refer a friend"}):null,me=()=>{const{organisationId:a,planTypeSource:r,formattedTimeLeftInFreeTrial:s,shouldShowBanner:t}=G(),{emailSignUp:n,freeTrial:i}=f();return t&&a&&r?e.jsx(ce,{organisationId:a,planTypeSource:r,formattedTimeLeftInFreeTrial:s}):a&&!n.isLoading&&n.value&&!i.isLoading?e.jsx(ue,{organisationId:a}):null},he=({signupSource:a})=>{var o;const{authUser:r,user:s}=f(),t=T(),n=(o=r.value)==null?void 0:o.uid,i=ie({queryKey:["calendarConnectionCount",n],queryFn:async()=>n?(await V(K(P.OauthConnection,N("serviceType","==",Q.CALENDAR),N("userId","==",n)))).data().count:void 0,refetchOnWindowFocus:!1,enabled:!!n});if(i.isSuccess&&i.data===0){const l=x({base:"https://app.fyxer.com",path:"/auth/sign-up",search:{src:a}});return e.jsx("header",{className:"border-b border-rb-gray-neutral bg-rb-white px-4 py-3 shadow-rb-shadow-soft-xs",children:e.jsxs("div",{className:"mx-auto flex max-w-4xl flex-col items-start gap-3 sm:flex-row sm:items-center",children:[e.jsx(d,{to:U(),target:"_blank",rel:"noreferrer","aria-label":`${w()} home`,className:"shrink-0 focus-visible:ring-2 focus-visible:ring-rb-gray-hovered focus-visible:outline-hidden",children:e.jsx(j,{color:"orange",variant:"full",className:"h-6 w-auto"})}),e.jsx("p",{className:"text-xs leading-[1.45] text-rb-secondary-dark sm:text-sm",children:`${w()} organizes your inbox, drafts extraordinary emails and writes better-than-human meeting notes.`}),e.jsx(d,{to:l,target:"_blank",rel:"noreferrer",className:p({variant:"primary",size:"sm",className:"sm:ml-auto"}),children:"Start free trial"})]})})}return e.jsx("header",{className:"border-b border-rb-gray-neutral bg-rb-white px-4 py-3 shadow-rb-shadow-soft-xs",children:e.jsxs("div",{className:"mx-auto flex min-h-8 max-w-4xl items-center gap-3",children:[e.jsx(d,{to:"/","aria-label":"Fyxer home",className:"shrink-0 focus-visible:ring-2 focus-visible:ring-rb-gray-hovered focus-visible:outline-hidden",children:e.jsx(j,{color:"orange",variant:"full",className:"h-6 w-auto"})}),e.jsxs("div",{className:"ml-auto flex min-w-0 items-center gap-3",children:[s.value?e.jsx(me,{}):null,s.value?e.jsxs(z,{children:[e.jsx(_,{asChild:!0,children:e.jsxs("button",{type:"button","aria-label":"Open account menu",className:"flex items-center gap-1 rounded-lg focus-visible:ring-2 focus-visible:ring-rb-gray-hovered focus-visible:outline-hidden",children:[e.jsx(B,{text:de(s.value.name),imageUrl:s.value.photoUrl,"aria-label":s.value.name}),e.jsx(g,{name:"CaretDown",size:14,color:"secondary-dark"})]})}),e.jsxs(F,{align:"end",className:"w-52",children:[e.jsx(O,{children:"My A
1ccount"}),e.jsx($,{}),e.jsx(b,{asChild:!0,children:e.jsxs(d,{to:"/org",className:"gap-2",children:[e.jsx(g,{name:"Buildings",size:14,color:"secondary-dark"}),"Organizations"]})}),e.jsx(b,{asChild:!0,children:e.jsxs(d,{to:"/profile",className:"gap-2",children:[e.jsx(g,{name:"User",size:14,color:"secondary-dark"}),"Profile"]})}),e.jsxs(b,{onSelect:()=>t.mutate(),className:"gap-2",children:[e.jsx(g,{name:"SignOut",size:14,color:"secondary-dark"}),"Log out"]})]})]}):null]})]})})},C={calendarEventId:v,meetingPreread:v},L=c.createContext(C),ge=()=>{const a=E();return e.jsxs("main",{className:"flex min-h-dvh items-center justify-center bg-rb-parchment p-4 sm:p-6",children:[e.jsx("h1",{className:"sr-only",children:"Permission denied"}),e.jsx(ee,{icon:"Lock",size:"lg",variant:"panel",className:"min-h-[360px] w-full max-w-xl",title:"Permission denied",description:"You don't have permission to view this meeting pre-read. Please contact the meeting organizer for access.",actions:e.jsx(ae,{label:"Go back",variant:"outline",size:"lg",onClick:()=>a("/")})})]})},xe=({children:a})=>{const{calendarEventId:r}=D(),s=R();if(!r)throw new Error("calendar event id is missing");const[t,n]=W({...C,calendarEventId:{value:r,isLoading:!1}}),{authUser:i}=f(),[h,o]=c.useState(!1),l=c.useCallback(u=>{u.code==="permission-denied"&&o(!0)},[]);return c.useEffect(()=>{n({calendarEventId:{value:r,isLoading:!1},meetingPreread:v});const u=X(J(P.MeetingPreread,r),M=>{const S=M.data();n({meetingPreread:{value:S,isLoading:!1}})},l);return()=>{u()}},[n,r,l]),h?i.isLoading?e.jsx(k,{}):i.value?e.jsx(ge,{}):e.jsx(A,{to:x({path:Z(),search:{return_path:s.pathname}})}):e.jsx(L.Provider,{value:t,children:a})},I=()=>c.useContext(L),pe=({children:a})=>{const{meetingPreread:r}=I(),s=E();return c.useEffect(()=>{!r.isLoading&&r.value===void 0&&(re.error({title:"Meeting pre-read was not found"}),s("/org"))},[r.isLoading,r.value,s]),r.isLoading?e.jsx(k,{}):r.value===void 0?null:a},fe=()=>{const{calendarEventId:{value:a,isLoading:r},meetingPreread:{value:s,isLoading:t}}=I();if(r)throw new Error("calendar event id is still loading");if(t)throw new Error("meeting preread is still loading");if(a===void 0)throw new Error("calendar event id is missing");if(s===void 0)throw new Error("meeting preread is missing");return{calendarEventId:a,meetingPreread:s}},be=()=>{const{meetingPreread:a}=fe();return e.jsx("div",{className:"min-h-dvh bg-rb-parchment",children:e.jsxs("main",{className:"mx-auto w-full max-w-4xl px-4 pt-6 pb-12 sm:px-6 sm:pt-8 sm:pb-16",children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("h1",{className:"text-2xl leading-tight font-medium text-balance text-rb-darkbtn sm:text-3xl",children:a.title||"Meeting Pre-Read"}),e.jsxs("p",{className:"mt-1 text-sm text-rb-secondary-dark",children:["Created on ",oe(a.createdAt,"MMMM d, yyyy")]})]}),e.jsx(se,{className:"overflow-hidden",children:e.jsx(le,{threadStyle:!0,className:"preread prose prose-headings:text-rb-darkbtn prose-p:text-rb-secondary-dark prose-li:text-rb-secondary-dark prose-strong:text-rb-darkbtn max-w-none! wrap-break-word",children:a.content})})]})})},ve=()=>e.jsxs(e.Fragment,{children:[e.jsx(he,{signupSource:ne.MEETING_PREREAD}),e.jsx(be,{})]}),De=()=>e.jsx(te,{children:e.jsx(xe,{children:e.jsx(pe,{children:e.jsx(ve,{})})})});export{ve as SharedPrereadPage,De as SharedPrereadRoute};

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.