1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,250277,e=>{"use strict";var t=e.i(843476),a=e.i(522016);let r={unstable_dynamicOnHover:!0};e.s(["default",0,function(e){return(0,t.jsx)(a.default,{...e,...r})}])},773936,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(635169);let n=["","Very dissatisfied","Dissatisfied","Neutral","Satisfied","Very satisfied"];e.s(["default",0,function({value:e,onChange:i,max:s=5}){let[l,o]=(0,a.useState)(0),d=l||e||0;return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsx)("div",{className:"flex items-center gap-1",onMouseLeave:()=>o(0),role:"radiogroup","aria-label":"Rate your experience",children:Array.from({length:s},(e,t)=>t+1).map(a=>{let s=a<=d,c=a===l;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":e===a,"aria-label":`${a} star${a>1?"s":""}${n[a]?` â ${n[a]}`:""}`,onMouseEnter:()=>o(a),onFocus:()=>o(a),onBlur:()=>o(0),onClick:()=>i(e===a?null:a),className:"focus-visible:outline-warning cursor-pointer border-none bg-transparent p-1 leading-none focus-visible:rounded-md focus-visible:outline-2 focus-visible:outline-offset-2",style:{transform:s?c?"scale(1.32)":"scale(1.12)":"scale(1)",transition:"transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1)",transitionDelay:s?`${(a-1)*35}ms`:"0ms",willChange:"transform"},children:(0,t.jsx)(r.Star,{size:30,strokeWidth:1.75,className:s?"fill-warning text-warning transition-colors duration-(--motion-fast) ease-out":"text-border-strong fill-transparent transition-colors duration-(--motion-fast) ease-out"})},a)})}),(0,t.jsx)("span",{className:`min-w-[118px] text-sm font-semibold transition-colors duration-(--motion-fast) ease-out ${d?"text-warning":"text-muted-foreground"}`,children:d?n[d]:""})]})}])},838098,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(832425);e.i(513036);var n=e.i(269762),i=e.i(768402),s=e.i(212225),l=e.i(322583);function o(e,t,a=null){return!t&&"number"==typeof e&&e<=("free"===a?10:25)}e.s(["default",0,function({credits:e,outOfCredits:d,tier:c=null}){let u=(0,a.useRouter)();if(!o(e,d,c))return null;let p="free"===c;return(0,t.jsxs)(n.Alert,{variant:"warning",className:"mb-3",children:[(0,t.jsx)(r.Zap,{"aria-hidden":!0}),(0,t.jsxs)(n.AlertBody,{children:[(0,t.jsx)(n.AlertTitle,{children:0===e?"You have no credits left":`${e} credit${1===e?"":"s"} left`}),(0,t.jsx)(n.AlertDescription,{children:p?"Each message costs one credit, and Free adds 50 a month. Pro gives you 1,000 a month for $10.":"Each message costs one credit. Top up to keep the conversation going."})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 self-center",children:[p&&(0,t.jsx)(i.Button,{onPress:()=>u.push((0,l.startProUpgrade)("chat_low_balance")),...(0,s.trackId)(s.TRACK_IDS.creditsUpgradePro),children:"Upgrade to Pro"}),(0,t.jsx)(i.Button,{variant:"secondary",onPress:()=>u.push("/user/billing#credits"),...(0,s.trackId)(s.TRACK_IDS.creditsLowBanner),children:"Buy credits"})]})]})},"isLowBalance",0,o])},414451,311890,946596,936656,123893,900657,146066,671365,672711,416122,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(618566);e.i(513036);var n=e.i(768402),i=e.i(607619),s=e.i(758282),l=e.i(650178),o=e.i(135911),d=e.i(249472),c=e.i(299875),u=e.i(531261),p=e.i(603333),h=e.i(857177),m=e.i(26030),f=e.i(389517),x=e.i(764575),g=e.i(700327),b=e.i(454133),v=e.i(235884);let j=(0,v.default)("file-up",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);var y=e.i(559770),S=e.i(326613),w=e.i(551759);let k=(0,v.default)("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);e.s(["Radar",0,k],311890);var N=e.i(68974),A=e.i(50506),C=e.i(872768),_=e.i(290254),T=e.i(815887),M=e.i(122592),P=e.i(589406),I=e.i(318803);let D=["prospect","customer","partner","portfolio","vendor","competitor","other"];var F=e.i(33851),L=e.i(29150);let O=(0,v.default)("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);var B=e.i(487635),E=e.i(787508);function R({type:e,connectTo:r,onCreated:i,onCancel:s}){var l;let o="image"===e,d=(0,I.useUploadGraphFile)(),c=(0,a.useRef)(null),[u,p]=(0,a.useState)(null),[h,m]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),[g,b]=(0,a.useState)(0),[v,j]=(0,a.useState)(null),y=e=>{j(e&&e.size>0xc800000?"Files must be under 200MB":null),p(e)},S=async()=>
1{if(u&&!f&&!(u.size>0xc800000)){x(!0),j(null),b(0);try{let e=await (0,E.getFilestackClient)(),t=await e.upload(u,{onProgress:e=>b(Math.round(e.totalPercent))});i(await d.mutateAsync({filestack_url:t.url,filename:u.name,connect_to:r}))}catch(e){j(e instanceof Error?e.message:"Upload failed"),x(!1)}}};return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("input",{ref:c,type:"file",accept:o?"image/*":void 0,onChange:e=>{y(e.target.files?.[0]||null),e.target.value=""},className:"hidden"}),u?(0,t.jsxs)("div",{className:"border-border bg-muted/40 flex items-center gap-3 rounded-xl border p-3",children:[(0,t.jsx)("span",{className:"bg-accent-soft text-primary flex size-[38px] shrink-0 items-center justify-center rounded-lg",children:(0,t.jsx)(L.FileText,{size:19})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"m-0 truncate text-sm font-semibold",children:u.name}),(0,t.jsxs)("p",{className:"text-muted-foreground m-0 text-xs",children:[(l=u.size)>=1048576?`${(l/1048576).toFixed(1)} MB`:`${Math.max(1,Math.round(l/1024))} KB`,f&&` \xb7 uploading ${g}%`]}),f&&(0,t.jsx)("div",{className:"bg-border mt-1.5 h-1 overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:"bg-primary h-full rounded-full transition-[width] duration-200 ease-out",style:{width:`${g}%`}})})]}),!f&&(0,t.jsx)(n.Button,{variant:"quiet",onPress:()=>y(null),"aria-label":"Remove file",children:(0,t.jsx)(B.X,{size:15})})]}):(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>c.current?.click(),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&c.current?.click()},onDragOver:e=>{e.preventDefault(),m(!0)},onDragLeave:()=>m(!1),onDrop:e=>{e.preventDefault(),m(!1),f||y(e.dataTransfer.files?.[0]||null)},className:`cursor-pointer rounded-xl border-2 border-dashed px-4 py-8 text-center transition-colors hover:border-primary ${h?"border-primary bg-accent-soft":"border-border bg-muted/40"}`,children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)("span",{className:h?"text-primary":"text-muted-foreground",children:(0,t.jsx)(O,{size:28,strokeWidth:1.75})}),(0,t.jsxs)("p",{className:"m-0 text-sm font-semibold",children:["Drag & drop ",o?"an image":"a file"," here"]}),(0,t.jsxs)("p",{className:"text-muted-foreground m-0 text-xs",children:["or ",(0,t.jsx)("span",{className:"text-primary font-semibold",children:"browse"})," from your computer  · up to 200MB"]})]})}),(0,t.jsx)(Q,{children:v}),(0,t.jsx)(Y,{busy:f,canSubmit:!!u&&(u?.size??0)<=0xc800000,submitLabel:"Upload",busyLabel:"Uploadingâ¦",onCancel:s,onSubmit:S})]})}var U=e.i(295968),$=e.i(689605),z=e.i(921110),K=e.i(310108);let G=new Set(["summary","key_facts"]);function V({type:e,connectTo:r,onCreated:i,onCancel:s}){var l;let o=(0,I.useCreateGraphObject)(),d=(0,I.usePreviewWebLink)(),c=(0,I.useSaveWebLink)(),{data:u}=(0,I.useObjectTypeFields)(e),[p,h]=(0,a.useState)(""),[m,f]=(0,a.useState)(""),[x,g]=(0,a.useState)(""),[b,v]=(0,a.useState)({}),[j,y]=(0,a.useState)(null),S=o.isPending||c.isPending,w=(0,K.useFlag)("web_link_fetch"),k="web_link"===e&&w,N="web_link"===e,A=(e,t)=>v(a=>({...a,[e]:t}));return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(F.TextField,{"aria-label":"Name",value:p,onChange:h,placeholder:"Name",maxLength:255,autoFocus:!0}),k?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(F.TextField,{"aria-label":"URL",value:m,onChange:f,placeholder:"URL",type:"url",className:"flex-1"}),(0,t.jsx)(n.Button,{variant:"secondary",onPress:()=>{let e=m.trim();e&&!d.isPending&&d.mutate(e,{onSuccess:e=>{h(e.name),A("summary",e.summary),A("topics",e.topics),A("key_facts",e.key_facts),y(e.page)}})},isPending:d.isPending,isDisabled:!m.trim(),children:"Fetch page"})]}),(0,t.jsx)(Q,{children:(l=d.error)?l instanceof z.ApiError&&l.message&&l.message!==l.code?l.message:"Couldn't read that page â fill in the details below and you're set.":null})]}):(0,t.jsx)(F.TextField,{"aria-label":"URL",value:m,onChange:f,placeholder:N?"URL":"URL (optional)",type:"url"}),!k&&(0,t.jsx)(T.TextArea,{"aria-label":"Description",value:x,onChange:g,placeholder:"Description (optional)",rows:3}),u.map(e=>{let a=b[e.field];if("boolean"===e.field_type)return(0,t.jsx)(U.Checkbox,{isSelected:!0===a,onChange:t=>A(e.field,t),children:e.label},e.field);
1if(G.has(e.field))return(0,t.jsx)(T.TextArea,{"aria-label":e.label,value:"string"==typeof a?a:"",onChange:t=>A(e.field,t),placeholder:e.label+(e.is_required?"":" (optional)"),description:e.description||void 0,rows:3},e.field);let r="number"===e.field_type?"number":"date"===e.field_type?"date":"url"===e.field_type?"url":"text";return(0,t.jsx)(F.TextField,{"aria-label":e.label,value:"string"==typeof a?a:"",onChange:t=>A(e.field,t),placeholder:e.label+(e.is_required?"":" (optional)"),description:e.description||void 0,type:r},e.field)}),(0,t.jsx)(Q,{children:o.error?.message||c.error?.message}),(0,t.jsx)(Y,{busy:S,canSubmit:!!p.trim()&&(!N||!!m.trim()),onCancel:s,onSubmit:()=>{if(!p.trim()||S||N&&!m.trim())return;if(k){let e=e=>{let t=b[e];return"string"==typeof t?t.trim():""};c.mutate({url:m.trim(),name:p.trim(),summary:e("summary"),topics:e("topics"),key_facts:e("key_facts"),page:j,connect_to:r},{onSuccess:i});return}let t={};for(let e of u){let a=b[e.field];"boolean"==typeof a?t[e.field]=a:"string"==typeof a&&""!==a.trim()&&(t[e.field]="number"===e.field_type?Number(a):a.trim())}o.mutate({type:e,name:p.trim(),url:m.trim()||null,description:x.trim()||null,fields:Object.keys(t).length?t:null,connect_to:r},{onSuccess:i})}})]})}let W=[{value:"twitter_search",label:"X / Twitter search"},{value:"web_page",label:"Web page change"}],q={contact:function({connectTo:e,onCreated:r,onCancel:n}){let i=(0,I.useCreateGraphObject)(),[s,l]=(0,a.useState)(""),[o,d]=(0,a.useState)(""),[c,u]=(0,a.useState)(""),p=i.isPending;return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(F.TextField,{"aria-label":"Name",value:s,onChange:l,placeholder:"Name",maxLength:255,autoFocus:!0}),(0,t.jsx)(F.TextField,{"aria-label":"Email",type:"email",value:o,onChange:d,placeholder:"Email (optional)"}),(0,t.jsx)(T.TextArea,{"aria-label":"Description",value:c,onChange:u,placeholder:"Description (optional)",rows:3}),(0,t.jsx)(Q,{children:i.error?.message}),(0,t.jsx)(Y,{busy:p,canSubmit:!!s.trim(),onCancel:n,onSubmit:()=>{s.trim()&&!p&&i.mutate({type:"contact",name:s.trim(),description:c.trim()||null,json_data:o.trim()?{email:o.trim()}:null,connect_to:e},{onSuccess:r})}})]})},company:function({connectTo:e,onCreated:r,onCancel:n}){let{token:i}=(0,h.useAuth)(),[s,l]=(0,a.useState)(""),[o,d]=(0,a.useState)(null),[c,u]=(0,a.useState)(""),[p,m]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),g=(0,I.useCreateGraphObject)(),b=g.isPending,v=(0,a.useRef)(!1),j=(0,a.useRef)(null),y=o?.name||o?.domain||s.trim(),S=async e=>{j.current=e,x(!0);try{let{company:t}=await (0,P.lookupCompany)(e,i);if(j.current!==e||!t.description)return;v.current||m(t.description)}catch{}finally{j.current===e&&x(!1)}},w=()=>{y&&!b&&g.mutate({type:"company",name:y,url:o?.domain?`https://${o.domain}`:null,description:p.trim()||null,json_data:o?.domain?{domain:o.domain}:null,fields:c?{category:c}:null,connect_to:e},{onSuccess:r})};return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(M.default,{value:s,onValueChange:e=>{l(e),d(null)},onSelect:e=>{d(e),e.domain&&S(e.domain)},placeholder:"Company name or domainâ¦",showHelperText:!1,disabled:b,autoFocus:!0,compact:!0,onSubmit:w}),o&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("img",{src:o.icon||o.logo||`https://www.google.com/s2/favicons?domain=${o.domain}&sz=64`,alt:"",className:"size-[18px] object-contain"}),(0,t.jsxs)("p",{className:"text-muted-foreground m-0 text-sm",children:[(0,t.jsx)("strong",{children:o.name||o.domain}),o.domain?` \xb7 ${o.domain}`:""]}),f&&(0,t.jsxs)("span",{className:"text-muted-foreground flex items-center gap-1 text-xs",children:[(0,t.jsx)(C.Loader,{size:12,label:"Looking up details",className:"text-primary"}),"Looking up detailsâ¦"]})]}),(0,t.jsx)(_.Select,{"aria-label":"Category",placeholder:"Category (optional)",selectedKey:c||null,onSelectionChange:e=>u(null==e?"":String(e)),isDisabled:b,children:D.map(e=>(0,t.jsx)(_.SelectItem,{id:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))}),(0,t.jsx)(T.TextArea,{"aria-label":"Description",value:p,onChange:e=>{v.current=""!==e.trim(),m(e)},placeholder:"Description (optional)",rows:3}),(0,t.jsx)(Q,{children:g.error?.message}),(0,t.jsx)(Y,{busy:b,canSubmit:!!y,onCancel:n,onSubmit:w})]})},note:function({connectTo:e,onCreated:r,onCancel:n}){let i=(0,I.useCreateGraphObject)(),[s,l]=(0,a.useState)(""),o=i.isPending;return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(T.TextArea,{"aria-label":"Note",value:s,onChange:l,placeholder:"Write a noteâ¦",rows:6,autoFocus:!0}),(0,t.jsx)(Q,{children:i.error?.message}),(0,t.jsx)(Y,{busy:o,canSubmit:!!s.trim(),submitLabel:"Save note",busyLabel:"Savingâ¦",onCancel:n,onSubmit:()=>{let t=s.trim();t&&!o&&i.mutate({type:"note",name:t.split("\n")[0].slice(0,255),description:t,root_edge:"related_to",connect_to:e},{onSuccess:r})}})]})},file:R,image:R,tracker:function({type:e,connectTo:r,onCreated:n,onCancel:i}){let s=(0,I.useCreateGraphObject)(),[l,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[u,p]=(0,a.useState)(""),[h,m]=(0,a.useState)("twitter_search"),f=s.isPending,x="web_page"===h,g=!x||/^https?:\/\/.+/.test(d.trim());return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(F.TextField,{"aria-label":x?"Tracker name":"Search query",value:l,onCh
1ange:o,placeholder:x?"Name this tracker (e.g. Acme pricing page)":"What to watch for (e.g. personal CRM)",maxLength:255,autoFocus:!0}),x&&(0,t.jsx)(F.TextField,{"aria-label":"Page URL",type:"url",value:d,onChange:c,placeholder:"Page URL to watch (https://â¦)",maxLength:2e3}),(0,t.jsx)(T.TextArea,{"aria-label":"Instructions",value:u,onChange:p,placeholder:x?"Instructions (optional â e.g. only tell me about pricing changes)":"Instructions (optional â e.g. only posts with more than 10 likes)",rows:2}),(0,t.jsx)(_.Select,{"aria-label":"Tracker type",selectedKey:h,onSelectionChange:e=>m(String(e)),children:W.map(e=>(0,t.jsx)(_.SelectItem,{id:e.value,children:e.label},e.value))}),(0,t.jsx)(Q,{children:s.error?.message}),(0,t.jsx)(Y,{busy:f,canSubmit:!!l.trim()&&g,onCancel:i,onSubmit:()=>{l.trim()&&g&&!f&&s.mutate({type:e,name:l.trim(),description:u.trim()||null,url:x?d.trim():null,fields:{tracker_type:h},connect_to:r},{onSuccess:n})}})]})}};function H(e){let a=q[e.type]??V;return(0,t.jsx)(a,{...e})}function Y({busy:e,canSubmit:a,submitLabel:r="Create",busyLabel:i="Creatingâ¦",onCancel:s,onSubmit:l}){return(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(n.Button,{variant:"secondary",onPress:s,children:"Cancel"}),(0,t.jsx)(n.Button,{onPress:l,isDisabled:e||!a,children:e?i:r})]})}function Q({children:e}){return e?(0,t.jsx)("p",{className:"text-destructive m-0 text-sm",children:e}):null}let Z={contact:{label:"Contact",icon:A.UserRound},company:{label:"Company",icon:g.Building2},project:{label:"Project",icon:y.FolderKanban},file:{label:"File",icon:j},note:{label:"Note",icon:N.StickyNote},web_link:{label:"Web Link",icon:w.Link2},event:{label:"Event",icon:b.Calendar},fact:{label:"Fact",icon:S.Lightbulb},tracker:{label:"Tracker",icon:k}},J=["contact","company","note","file","project","web_link","event","fact","tracker"],X=["contact","company","project","file","note"];e.s(["default",0,function({onCreated:e,connectTo:g,compact:b,iconOnly:v,presetType:j}){var y;let{authenticated:S}=(0,h.useAuth)(),w=(0,r.useRouter)(),{addable:k}=(0,f.useObjectTypes)(),N=(y=k.length?k:X,[...J.filter(e=>y.includes(e)),...y.filter(e=>!J.includes(e)).sort()].map(e=>{let t=Z[e];return{type:e,label:t?.label??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),icon:t?.icon??x.Box}})),[A,C]=(0,a.useState)(null),[_,T]=(0,a.useState)(!1),M=e=>{C(e),T(!0)};if(!S)return null;let P=(0,t.jsx)(o.Modal,{isOpen:_,onOpenChange:T,isDismissable:!0,children:(0,t.jsxs)(i.Dialog,{children:[(0,t.jsxs)(s.Heading,{slot:"title",className:"text-lg font-semibold text-foreground",children:["Add ",A?.label]}),A&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(H,{type:A.type,connectTo:g,onCreated:t=>{T(!1),e?.(t),g||w.push((0,m.objectHref)(t.object_id))},onCancel:()=>T(!1)})})]})});if(j){let e=N.find(e=>e.type===j);return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Button,{"aria-label":`Add ${e.label}`,onPress:()=>M(e),className:"size-7 shrink-0 rounded-full p-0",children:(0,t.jsx)(p.Plus,{size:16,strokeWidth:2.5})}),P]}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.MenuTrigger,{children:[(0,t.jsxs)(c.TooltipTrigger,{delay:400,closeDelay:0,children:[(0,t.jsxs)(n.Button,{"aria-label":"Add object",children:[(0,t.jsx)(p.Plus,{size:b||v?13:15,strokeWidth:2.5}),v?null:b?"Add":"Add Object",!b&&!v&&(0,t.jsx)(u.ChevronDown,{size:14,strokeWidth:2.5})]}),(0,t.jsx)(d.Tooltip,{placement:"bottom",children:"Add object"})]}),(0,t.jsx)(l.Menu,{className:"min-w-[180px]",children:N.map(({label:e,type:a,icon:r})=>(0,t.jsxs)(l.MenuItem,{id:a,textValue:e,onAction:()=>M({label:e,type:a}),children:[(0,t.jsx)(r,{size:15,"aria-hidden":!0}),e]},a))})]}),P]})}],414451);var ee=e.i(402485),et=e.i(522016),ea=e.i(952443),er=e.i(16205),en=e.i(266027),ei=e.i(105180),es=e.i(701281),el=e.i(6480);e.s(["default",0,function({surface:e="strip"}){let{authenticated:r}=(0,h.useAuth)(),n=(0,ee.usePagePathname)(),i=!(0,K.useFlag)("nav_activity_tasks")&&"/user/status"!==n,{data:s}=(0,en.useQuery)({queryKey:es.queryKeys.tasks.list(),queryFn:async({signal:e})=>(await $.api.tasks.list(e)).tasks??[],enabled:r&&i,refetchInterval:e=>
1!!(0,el.hasActiveTask)(e.state.data)&&6e4}),l=(0,el.hasActiveTask)(s),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{if(l){d(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>u(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}u(!1);let e=setTimeout(()=>d(!1),300);return()=>clearTimeout(e)},[l]),!i||!o)return null;if("rail"===e){let e="Background tasks in progress. Check status.";return(0,t.jsx)(ei.SidebarMenu,{children:(0,t.jsx)(ei.SidebarMenuItem,{children:(0,t.jsxs)(ei.SidebarMenuButton,{href:"/user/status",link:et.default,tooltip:e,tooltipAlways:!0,children:[(0,t.jsx)(er.Brain,{"aria-hidden":"true",className:"animate-[pendingtasks-pulse_2.4s_ease-in-out_infinite] motion-reduce:animate-none"}),(0,t.jsx)(ei.SidebarMenuLabel,{children:"Workingâ¦"}),(0,t.jsx)(ei.SidebarMenuActivity,{working:!0,label:e})]})})})}return(0,t.jsx)("div",{"data-show":c,inert:!c,className:"group grid grid-rows-[0fr] transition-[grid-template-rows] duration-300 ease-out data-[show=true]:grid-rows-[1fr] motion-reduce:transition-none",children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"border-b border-border bg-card",children:(0,t.jsxs)("div",{className:"relative mx-auto flex max-w-[1440px] flex-wrap items-center justify-center gap-x-2.5 gap-y-0.5 px-4 py-[9px] lg:flex-nowrap lg:px-8",children:[(0,t.jsx)(er.Brain,{size:15,"aria-hidden":"true",className:"shrink-0 text-primary group-data-[show=true]:animate-[pendingtasks-pulse_2.4s_ease-in-out_infinite] motion-reduce:animate-none"}),(0,t.jsx)("span",{className:"text-[13px] font-semibold text-foreground",children:"Backgroun
1d tasks in progress."}),(0,t.jsxs)(et.default,{href:"/user/status",prefetch:!1,className:"inline-flex items-center gap-1.5 whitespace-nowrap text-[13px] font-semibold text-primary no-underline lg:absolute lg:right-8 lg:top-1/2 lg:-translate-y-1/2",children:["Check status",(0,t.jsx)(ea.ArrowRight,{size:14})]})]})})})})}],946596);var eo=e.i(163753);let ed=(0,v.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,ed],936656);var ec=e.i(846788);let eu=(0,v.default)("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);var ep=e.i(680870),eh=e.i(566730),em=e.i(77898),ef=e.i(56727),ex=e.i(367e3),eg=e.i(912598);let eb={linkedin_plan:"native_linkedin_manager"};var ev=e.i(439563),ej=e.i(212225);function ey(e,t){let a=new Map(t.custom.map((e,t)=>[e,t]));return[...e].sort((e,r)=>{if("name"===t.order)return e.label.localeCompare(r.label);if("custom"===t.order){let t=a.get(e.type)??1/0,n=a.get(r.type)??1/0;if(t!==n)return t-n}if("used"===t.order){let a=(t.used[r.type]??0)-(t.used[e.type]??0);if(a)return a}return r.count-e.count||e.label.localeCompare(r.label)})}function eS(e,t,a){let r=e.indexOf(t),n=e.indexOf(a);if(r<0||n<0||r===n)return e;let i=e.filter(e=>e!==t);return i.splice(n,0,t),i}let ew=(e,t)=>e.includes(t)?e.filter(e=>e!==t):[...e,t],ek=e=>"object"===e.kind?`o:${e.id}`:`f:${e.query}`;function eN(e,t){let a=ek(t);return e.some(e=>ek(e)===a)?e.filter(e=>ek(e)!==a):[...e,t]}let eA=["type","q","sort","dir","f"];function eC(e){let t=new URLSearchParams([["view","list"]]);for(let a of eA)for(let r of e.getAll(a))t.append(a,r);return[...t.keys()].length>1?t.toString():null}let e_={order:"count",custom:[],hidden:[],used:{},pins:[]};e.s(["RAIL_DEFAULTS",0,e_,"arrangeRows",0,ey,"filterQuery",0,eC,"moveTo",0,eS,"pinKey",0,ek,"togglePin",0,eN,"toggled",0,ew],123893);var eT=e.i(954616);function eM(){let{authenticated:e,loading:t}=(0,h.useAuth)();return(0,en.useQuery)({queryKey:es.queryKeys.graph.railPrefs(),queryFn:({signal:e})=>$.api.graph.railPrefs(e).then(e=>e.prefs),enabled:e&&!t,staleTime:1/0}).data??e_}function eP(){let e=(0,eg.useQueryClient)(),t=es.queryKeys.graph.railPrefs(),a=(0,eT.useMutation)({scope:{id:"rail-prefs"},mutationFn:e=>$.api.graph.saveRailPrefs(e),onMutate:async a=>{await e.cancelQueries({queryKey:t});let r=e.getQueryData(t);return e.setQueryData(t,a),{previous:r}},onError:(a,r,n)=>e.setQueryData(t,n?.previous)});return r=>a.mutate(r(e.getQueryData(t)??e_))}function eI(){let e=(0,eg.useQueryClient)(),t=es.queryKeys.graph.railPrefs(),a=(0,eT.useMutation)({scope:{id:"rail-prefs"},mutationFn:e=>$.api.graph.recordRailUse(e),onMutate:a=>{e.setQueryData(t,(e=e_)=>({...e,used:{...e.used,[a]:(e.used[a]??0)+1}}))}});return e=>a.mutate(e)}e.s(["useObjectPins",0,function(){let{pins:e}=eM(),t=eP(),r=(0,a.useMemo)(()=>new Set(e.flatMap(e=>"object"===e.kind?[e.id]:[])),[e]);return{ids:r,has:e=>r.has(e),toggle:(e,a)=>{(0,ev.track)("Brain Pinned",{kind:"object",action:r.has(e.object_id)?"unpin":"pin",surface:"row_menu"}),t(t=>({...t,pins:eN(t.pins,{kind:"object",id:e.object_id,name:a,type:e.type})}))}}},"useRailPrefs",0,eM,"useRecordTypeUse",0,eI,"useSaveRailPrefs",0,eP],900657);let eD=[{key:"count",label:"Most objects"},{key:"used",label:"Most used"},{key:"name",label:"A to Z"},{key:"custom",label:"Custom"}],eF="transition duration-150 ease-out group-hover/row:opacity-100 group-hover/row:translate-x-0 group-focus-within/row:opacity-100 group-focus-within/row:translate-x-0 group-data-[state=collapsed]/sidebar:hidden",eL="transition-opacity duration-150 ease-out group-data-[state=open]/sidebar:group-hover/row:opacity-0 group-data-[state=open]/sidebar:group-focus-within/row:opacity-0",eO=(e,t={})=>(0,ev.track)("Brain Types Customized",{action:e,...t});function eB({color:e,icon:a,className:r=""}
1){return(0,t.jsx)("span",{"aria-hidden":!0,className:`flex size-5 shrink-0 items-center justify-center rounded-full ${r}`,style:{background:e??"var(--color-muted-foreground)"},children:(0,t.jsx)(a,{size:12,strokeWidth:2,className:"text-white"})})}function eE({label:e,onPress:a,children:r,className:i=""}){return(0,t.jsx)(n.Button,{variant:"quiet","aria-label":e,onPress:a,className:`text-muted-foreground hover:text-foreground absolute top-1/2 right-1.5 size-6 -translate-y-1/2 rounded-md p-0 ${i}`,children:r})}function eR(){let{order:e}=eM(),a=eP();return(0,t.jsxs)(l.MenuTrigger,{placement:"bottom end",children:[(0,t.jsx)(n.Button,{variant:"quiet","aria-label":"Sort your objects","data-track-id":ej.TRACK_IDS.brainTypesOptions,className:"text-muted-foreground/60 hover:text-foreground size-6 rounded-md p-0 group-data-[state=collapsed]/sidebar:hidden",children:(0,t.jsx)(eh.Settings,{size:13,strokeWidth:1.9,"aria-hidden":!0})}),(0,t.jsx)(l.Menu,{className:"min-w-[180px]",children:(0,t.jsx)(l.MenuSection,{title:"Sort by",selectionMode:"single",selectedKeys:[e],onSelectionChange:e=>{let t="all"!==e&&eD.find(t=>e.has(t.key));t&&(eO("order",{order:t.key}),a(e=>({...e,order:t.key})))},disallowEmptySelection:!0,children:eD.map(e=>(0,t.jsx)(l.MenuItem,{id:e.key,children:e.label},e.key))})})]})}function eU({rows:e}){let a=(0,ee.usePagePathname)(),n=(0,r.useSearchParams)(),{pins:i}=eM(),s=eP();if(0===i.length)return null;let l=new Map(e.map(e=>[e.type,e.color])),o="/brain"===a?eC(new URLSearchParams(n.toString())):null;return(0,t.jsxs)(ei.SidebarGroup,{className:"shrink-0",children:[(0,t.jsx)(ei.SidebarGroupLabel,{children:"Pinned"}),(0,t.jsx)(ei.SidebarMenu,{children:i.map((e,r)=>{let n="object"===e.kind?(0,m.objectHref)(e.id):`/brain?${e.query}`,i="object"===e.kind?e.name||"Untitled":e.label;return(0,t.jsxs)(ei.SidebarMenuItem,{className:"group/row",children:[(0,t.jsxs)(ei.SidebarMenuButton,{href:n,link:et.default,isActive:"object"===e.kind?a===n:o===e.query,tooltip:i,onPress:()=>(0,ev.track)("Brain Pin Opened",{kind:e.kind,position:r}),className:"pr-8",children:["object"===e.kind&&e.type?(0,t.jsx)(eB,{color:l.get(e.type),icon:(0,ex.iconFor)(e.type)}):(0,t.jsx)(eu,{"aria-hidden":!0,strokeWidth:1.9}),(0,t.jsx)(ei.SidebarMenuLabel,{children:i})]}),(0,t.jsx)(eE,{label:`Unpin ${i}`,onPress:()=>{(0,ev.track)("Brain Pinned",{kind:e.kind,action:"unpin",surface:"sidebar"}),s(t=>({...t,pins:eN(t.pins,e)}))},className:`opacity-0 translate-x-1 ${eF}`,children:(0,t.jsx)(ep.PinOff,{size:13,"aria-hidden":!0})})]},ek(e))})})]})}function e$({row:e,href:a,isActive:r,hidden:n,drag:i,onOpen:s,onToggleHidden:l}){return(0,t.jsxs)(ei.SidebarMenuItem,{className:`group/row ${i.dragging?"bg-accent-soft rounded-md opacity-60":""}`,onDragOver:e=>{i.canDrop&&(e.preventDefault(),i.onOver())},onDrop:e=>e.preventDefault(),children:[(0,t.jsxs)(ei.SidebarMenuButton,{href:a,onPress:s,link:et.default,isActive:r,tooltip:e.description?`${e.label}: ${e.description}`:e.label,className:n?"opacity-50":"",children:[(0,t.jsx)("span",{className:"relative size-5 shrink-0",children:(0,t.jsx)(eB,{color:e.color,icon:(0,ex.iconFor)(e.type),className:`absolute inset-0 ${eL}`})}),(0,t.jsx)(ei.SidebarMenuLabel,{children:e.label}),(0,t.jsx)(ei.SidebarMenuBadge,{className:eL,children:e.count.toLocaleString("en-US")})]}),(0,t.jsx)("span",{draggable:!0,role:"presentation",title:`Drag to reorder ${e.label}`,onDragStart:e=>{e.dataTransfer.effectAllowed="move";let t=e.currentTarget.parentElement;t&&e.dataTransfer.setDragImage(t,12,16),i.onStart()},onDragEnd:i.onEnd,className:`text-muted-foreground absolute top-1/2 left-2 flex size-5 -translate-x-1 -translate-y-1/2 cursor-grab items-center justify-center opacity-0 active:cursor-grabbing ${eF}`,children:(0,t.jsx)(ec.GripVertical,{size:14,"aria-hidden":!0})}),(0,t.jsx)(eE,{label:n?`Show ${e.label}`:`Hide ${e.label}`,onPress:()=>l(n),className:`translate-x-1 opacity-0 ${eF}`,children:n?(0,t.jsx)(ed,{size:13,"aria-hidden":!0}):(0,t.jsx)(eo.Eye,{size:13,"aria-hidden":!0})})]})}e.s(["default",0,function(){let e,i,s,l,o=(0,r.useSearchParams)(),{rows:d,loading:c}=(e=(0,eg.useQueryClient)(),i=(0,I.useGraphObjectTypes)(),s=(0,I.useGraphCounts)(),l=(0,K.useFlags)(),{rows:(0,a.useMemo)(()=>
1{if(!i.data.length||!s.data)return null;let e=s.data.counts;return i.data.filter(e=>{let t;return(t=eb[e.type])?!!l[t]:!!(e.show_in_sidebar??e.is_user_addable)}).map(t=>({type:t.type,label:t.plural_name?t.plural_name.replace(/\b\w/g,e=>e.toUpperCase()):`${t.type.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}s`,color:t.icon_background_color,count:e[t.type]||0,addable:!!t.is_user_addable,description:t.short_description||null})).sort((e,t)=>t.count-e.count||e.label.localeCompare(t.label))},[i.data,s.data,l]),loading:s.isLoading,total:s.data?.total??null,refresh:()=>{e.invalidateQueries({queryKey:es.queryKeys.graph.allObjects()})}}),u=eM(),p=eP(),h=eI(),[m,f]=(0,a.useState)(!1),[x,g]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),j=new Set(u.hidden),y=o.get("view"),S=o.get("type"),w="graph"===("network"===y?"graph":y??"list")?"graph":"list";if(!d&&!c||d&&0===d.length)return null;let k=d?ey(d,u):[],N=b?new Map(b.map((e,t)=>[e,t])):null,A=N?[...k].sort((e,t)=>(N.get(e.type)??0)-(N.get(t.type)??0)):k,C=A.filter(e=>m||!j.has(e.type)||e.type===S),_=A.filter(e=>j.has(e.type)).length,T=()=>{let e=k.map(e=>e.type);x&&b&&b.some((t,a)=>t!==e[a])&&(eO("reorder",{type:x}),p(e=>({...e,order:"custom",custom:b}))),g(null),v(null)};return(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)(eU,{rows:d}),(0,t.jsxs)(ei.SidebarGroup,{className:"min-h-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between pr-1",children:[(0,t.jsx)(ei.SidebarGroupLabel,{children:"Your objects"}),d&&(0,t.jsx)(eR,{})]}),d?(0,t.jsxs)(ei.SidebarMenu,{className:"scroll-fade min-h-0 flex-1 overflow-y-auto",children:[C.map((e,a)=>{let r;return(0,t.jsx)(e$,{row:e,href:(r=e.type)===S?`/brain?view=${w}`:`/brain?view=${w}&type=${encodeURIComponent(r)}`,isActive:S===e.type,hidden:j.has(e.type),drag:{dragging:x===e.type,canDrop:!!x,onStart:()=>{g(e.type),v(k.map(e=>e.type))},onOver:()=>(e=>{if(!x||!b)return;let t=eS(b,x,e);t!==b&&v(t)})(e.type),onEnd:T},onOpen:()=>{(0,ev.track)("Brain Type Opened",{type:e.type,position:a,order:u.order}),h(e.type)},onToggleHidden:t=>{eO(t?"show":"hide",{type:e.type}),p(t=>({...t,hidden:ew(t.hidden,e.type)}))}},e.type)}),_>0&&(0,t.jsx)("li",{children:(0,t.jsx)(n.Button,{variant:"quiet",className:"text-muted-foreground/70 hover:text-foreground h-7 w-full justify-start rounded-md px-2 text-xs group-data-[state=collapsed]/sidebar:hidden",onPress:()=>{eO(m?"hidden_collapse":"hidden_show"),f(!m)},children:m?"Collapse hidden":`${_} hidden`})})]}):(0,t.jsx)(ef.SkeletonBlock,{label:"Loading your objects",children:(0,t.jsx)(em.SkeletonSidebarList,{count:5})})]})]})}],146066);var ez=e.i(250277),eK=e.i(261251),eG=e.i(505410),eV=e.i(275664),eW=e.i(649449),eq=e.i(281983),eH=e.i(877714);let eY="mb-2 px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground",eQ="shrink-0 cursor-pointer rounded p-1 text-muted-foreground opacity-0 transition group-hover:opacity-100 focus-visible:opacity-100 group-data-active:text-selected-foreground/75",eZ=e=>`/chat?c=${encodeURIComponent(e)}`;function eJ(){return(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-primary group-data-active:text-selected-foreground",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"relative flex size-1.5",children:[(0,t.jsx)("span",{className:"absolute inline-flex size-full rounded-full bg-primary opacity-75 motion-safe:animate-ping group-data-active:bg-selected-foreground"}),(0,t.jsx)("span",{className:"relative inline-flex size-1.5 rounded-full bg-primary group-data-active:bg-selected-foreground"})]}),"Workingâ¦"]})}let eX={telegram:[eK.MessageSquareText,"From Telegram"],slack:[eV.Slack,"From Slack"],sms:[eK.MessageSquareText,"From SMS"],imessage:[eK.MessageSquareText,"From iMessage"]};function e0({source:e}){let a=e?eX[e]:void 0;if(!a)return null;let[r,n]=a;return(0,t.jsx)(r,{size:12,"aria-label":n,className:"shrink-0 text-primary group-data-active:text-selected-foreground"})}function e1({asked:e}){return(0,t.jsxs)("div",{className:"group flex flex-col rounded-lg px-2.5 py-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 truncate text-xs font-medium text-foreground",children:e||"New chat"}),(0,t.jsx)(eJ,{})]})}function e2({conversation:e,active:a=!1,working:r=!1,onOpen:n,onPrefetch:i,onTogglePin:s,onDelete:l}){let o=e.conversation_id,d=!!e.pinned,c=d?ep.PinOff:eG.Pin,u=(0,eH.useClientNow)(),p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-foreground group-data-active:text-selected-foreground",children:[(0,t.jsx)(e0,{source:e.source}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.title||"Untitled"})]}),r?(0,t.jsx)(eJ,{}):(0,t.jsxs)("span",{className:"block truncate text-xs text-muted-foreground group-data-active:text-selected-foreground
1/75",children:[e.source_label?`${e.source_label} \xb7 `:"",function(e,t){if(!e)return"";let a=new Date(e);if(null===t)return a.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"});let r=Math.max(0,Math.floor((t-a.getTime())/864e5));return 0===r?"Today":1===r?"Yesterday":r<7?`${r} days ago`:a.toLocaleDateString("en-US",{month:"short",day:"numeric"})}(e.last_at,u)]})]});return(0,t.jsxs)("div",{"data-active":a||void 0,onPointerEnter:i?()=>i(o):void 0,className:"group flex items-center gap-1 rounded-lg px-2.5 py-1.5 transition-colors duration-(--motion-fast) ease-out hover:bg-accent data-active:bg-selected",children:[n?(0,t.jsx)("button",{type:"button",onClick:()=>n(o),onFocus:i?()=>i(o):void 0,...(0,ej.trackId)(ej.TRACK_IDS.chatHistoryOpen),className:"min-w-0 flex-1 cursor-pointer text-left",children:p}):(0,t.jsx)(ez.default,{href:eZ(o),...(0,ej.trackId)(ej.TRACK_IDS.chatHistoryOpen),className:"min-w-0 flex-1 no-underline",children:p}),s&&(0,t.jsx)("button",{type:"button",onClick:()=>s(e),"aria-label":d?`Unpin ${e.title}`:`Pin ${e.title}`,...(0,ej.trackId)(ej.TRACK_IDS.chatThreadPin),className:`${eQ} hover:text-foreground ${d?"opacity-100":""}`,children:(0,t.jsx)(c,{"aria-hidden":!0,className:"size-3.5"})}),l&&(0,t.jsx)("button",{type:"button",onClick:()=>l(e),"aria-label":`Delete ${e.title}`,...(0,ej.trackId)(ej.TRACK_IDS.chatThreadDelete),className:`${eQ} hover:text-destructive`,children:(0,t.jsx)(eW.Trash2,{"aria-hidden":!0,className:"size-3.5"})})]})}function e5({thread:e,onConfirm:a,onClose:r}){return(0,t.jsx)(eq.AlertDialog,{isOpen:null!==e,onOpenChange:e=>{e||r()},title:`Delete â${e?.title??""}â?`,variant:"destructive",confirmLabel:"Delete",onConfirm:()=>{e&&a(e.conversation_id),r()},children:"This chat and everything in it will be gone for good."})}function e6({conversations:e,pinned:r,activeId:n,workingIds:i,unnamed:s,loading:l,hasMore:o,loadingMore:d,onOpen:c,onDelete:u,onTogglePin:p,onLoadMore:h,onPrefetch:m}){let f=e.length+r.length,[x,g]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(!j||"u"<typeof IntersectionObserver)return;let e=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&h()},{root:b,rootMargin:"300px"});return e.observe(j),()=>e.disconnect()},[b,j,h]);let S=e=>(0,t.jsx)(e2,{conversation:e,active:e.conversation_id===n,working:i.includes(e.conversation_id),onOpen:c,onPrefetch:m,onTogglePin:p,onDelete:g},e.conversation_id);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:v,className:"scroll-fade min-h-0 flex-1 overflow-y-auto",children:l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:eY,children:"Recents"}),(0,t.jsx)(ef.SkeletonBlock,{label:"Loading your chats",children:(0,t.jsx)(em.SkeletonSidebarList,{count:6})})]}):(0,t.jsxs)(t.Fragment,{children:[r.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:eY,children:"Pinned"}),(0,t.jsx)("div",{className:"mb-3 flex flex-col gap-0.5",children:r.map(S)})]}),(0,t.jsx)("p",{className:eY,children:"Recents"}),0===f&&0===s.length?(0,t.jsx)("p",{className:"px-0.5 text-xs text-muted-foreground",children:"Your chats will show up here."}):(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[s.map(e=>(0,t.jsx)(e1,{asked:e.asked},e.key)),e.map(S)]}),o&&(0,t.jsx)("div",{ref:y,className:"pt-2",children:d&&(0,t.jsx)(ef.SkeletonBlock,{label:"Loading more chats",children:(0,t.jsx)(em.SkeletonSidebarList,{count:3})})})]})}),(0,t.jsx)(e5,{thread:x,onConfirm:u,onClose:()=>g(null)})]})}e.s(["AskedRow",0,e1,"DeleteThreadDialog",0,e5,"RAIL_LABEL",0,eY,"ThreadRow",0,e2,"threadHref",0,eZ],671365),e.s(["ChatSidebarContent",0,e6],672711);var e4=e.i(738423),e7=e.i(845134);e.s(["default",0,function(){let e=(0,r.useRouter)(),{token:a,loading:n,authenticated:i}=(0,h.useAuth)(),s=(0,e7.useConversationList)(a,!n&&!!i,!1),l=(0,e4.useWorkingThreads)(),o=(0,e7.useDeleteConversation)(a),d=(0,e7.usePinConversation)(a);return(0,t.jsx)(e6,{conversations:s.recents,pinned:s.pinned,activeId:null,workingIds:l,unnamed:(0,e4.unnamedTurns)(l),loading:n||s.isPending,hasMore:s.hasMore,loadingMore:s.loadingMore,onOpen:t=>e.push(eZ(t)),onPrefetch:t=>e.prefetch(eZ(t)),onTogglePin:e=>d.mutate({conversationId:e.conversation_id,pinned:!e.pinned}),onDelete:e=>o.mutate(e),onLoadMore:()=>{s.hasMore&&!s.loadingMore&&s.fetchMore()}})}],416122)},26030,e=>{"use strict";var t=e.i(843476),a=e.i(974114),r=e.i(495576),n=e.i(996516),i=e.i(505410),s=e.i(680870),l=e.i(248363),o=e.i(598583),d=e.i(649449),c=e.i(761088);e.i(513036);var u=e.i(650178),p=e.i(731320);let h=e=>`/brain/object/${e}`;function m(e){let t=e.startsWith("http")?e:`https://${e}`;try{return new URL(t).hostname.replace(/^www\./,"")}catch{return e.replace(/^https?:\/\//,"").replace(/\/.*$/,"")}}e.s(["objectHref",0,h,"objectRowMenuItems",0,function(e){let p=e.canShare||e.canDelete;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.MenuItem,{id:"open",textValue:"Open",children:[(0,t.jsx)(a.Exter
1nalLink,{size:15,"aria-hidden":!0}),"Open"]}),(0,t.jsxs)(u.MenuItem,{id:"open-new-tab",textValue:"Open in new tab",children:[(0,t.jsx)(o.SquareArrowOutUpRight,{size:15,"aria-hidden":!0}),"Open in new tab"]}),void 0!==e.pinned&&(0,t.jsxs)(u.MenuItem,{id:"pin",textValue:e.pinned?"Unpin":"Pin to sidebar",children:[e.pinned?(0,t.jsx)(s.PinOff,{size:15,"aria-hidden":!0}):(0,t.jsx)(i.Pin,{size:15,"aria-hidden":!0}),e.pinned?"Unpin":"Pin to sidebar"]}),(0,t.jsxs)(u.MenuItem,{id:"explore",textValue:"Explore in graph",children:[(0,t.jsx)(n.Network,{size:15,"aria-hidden":!0}),"Explore in graph"]}),e.url&&(0,t.jsxs)(u.MenuItem,{id:"visit",textValue:`Visit ${m(e.url)}`,children:[(0,t.jsx)(r.Globe,{size:15,"aria-hidden":!0}),"Visit ",m(e.url)]}),(0,t.jsx)(u.MenuSeparator,{}),(0,t.jsxs)(u.MenuItem,{id:"copy-link",textValue:"Copy link",children:[(0,t.jsx)(a.ExternalLink,{size:15,"aria-hidden":!0}),"Copy link"]}),(0,t.jsxs)(u.MenuItem,{id:"copy-name",textValue:"Copy name",children:[(0,t.jsx)(c.Type,{size:15,"aria-hidden":!0}),"Copy name"]}),p&&(0,t.jsx)(u.MenuSeparator,{}),e.canShare&&(0,t.jsxs)(u.MenuItem,{id:"share",textValue:"Share",children:[(0,t.jsx)(l.Share2,{size:15,"aria-hidden":!0}),"Shareâ¦"]}),e.canDelete&&(0,t.jsxs)(u.MenuItem,{id:"delete",textValue:"Delete",children:[(0,t.jsx)(d.Trash2,{size:15,"aria-hidden":!0}),"Deleteâ¦"]})]})},"runObjectRowAction",0,function(e,t,a){let r=h(t.objectId);switch(e){case"open":a.navigate(r);return;case"open-new-tab":window.open(r,"_blank","noopener,noreferrer");return;case"explore":a.navigate(`/brain?view=graph&focus=${encodeURIComponent(t.objectId)}`);return;case"visit":if(t.url){let e=t.url.startsWith("http")?t.url:`https://${t.url}`;window.open(e,"_blank","noopener,noreferrer")}return;case"copy-link":navigator.clipboard.writeText(`${window.location.origin}${r}`),(0,p.toast)({title:"Link copied."},{timeout:3e3});return;case"copy-name":navigator.clipboard.writeText(t.name),(0,p.toast)({title:"Name copied."},{timeout:3e3});return;case"pin":a.onTogglePin?.();return;case"share":a.onShare?.();return;case"delete":a.onDelete?.()}},"stopsRowNavigation",0,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()}])},587728,902139,63406,144309,e=>{"use strict";let t;var a=e.i(843476),r=e.i(271645),n=e.i(770703),i=e.i(402485);e.i(513036);var s=e.i(105180),l=e.i(843566),o=e.i(220283),d=e.i(825241),c=e.i(582919),u=e.i(957418),p=e.i(670748),h=e.i(250277),m=e.i(16205),f=e.i(671488),x=e.i(326613),g=e.i(103893),b=e.i(721163),v=e.i(918942),j=e.i(816034),y=e.i(522016),S=e.i(470533),w=e.i(80435),k=e.i(798021),N=e.i(644713),A=e.i(562918),C=e.i(249472),_=e.i(299875),T=e.i(768402),M=e.i(607619),P=e.i(758282),I=e.i(135911),D=e.i(815887),F=e.i(773936),L=e.i(315547),O=e.i(857177),B=e.i(698060),E=e.i(564728),R=e.i(439563),U=e.i(212225);function $({open:e,onOpenChange:t,surface:n="app_shell",extra:i}){let{token:s}=(0,O.useAuth)(),[l,o]=(0,r.useState)(""),[d,c]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(null),[f,x]=(0,r.useState)(!1),g=(0,r.useRef)({});(0,r.useEffect)(()=>{e&&(g.current={...(0,E.collectFeedbackContext)(),...i},(0,R.trackFeedbackOpened)(n,{path:String(g.current.path??"")}),x(!1),m(null))},[e,n,i]);let b=()=>{t(!1),window.setTimeout(()=>{o(""),c(null),x(!1),m(null)},250)},v=async()=>{let e=l.trim();if(!e&&null===d)return;p(!0),m(null);let t=g.current;try{let a=await (0,B.submitFeedback)(s,{feedback:e,rating:d,source_url:"string"==typeof t.url?t.url:null,context:t});if(!a.success)return void m("not_authenticated"===a.error?"Sign in again and we will take it from there.":"That didn't send. Try again?");(0,R.trackFeedbackSubmitted)(n,{rating:d,hasText:!!e,path:String(t.path??""),conversationId:"string"==typeof t.conversation_id?t.conversation_id:null}),x(!0)}finally{p(!1)}},j=!!l.trim()||null!==d;return(0,a.jsx)(I.Modal,{isOpen:e,onOpenChange:e=>e?t(!0):b(),isDismissable:!0,children:(0,a.jsx)(M.Dialog,{className:"max-w-[520px]",children:f?(0,a.jsx)(L.default,{onClose:b,children:"A human reads every one of these. If it needs an answer, you'll get one by email."}):(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)(P.Heading,{slot:"title",className:"text-foreground m-0 flex items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)(N.MessageSquarePlus,{size:18,className:"text-primary"}),"Feedback is a gift"]}),(0,a.jsx)("p",{className:"text-muted-foreground m-0 text-sm",children:"Bugs, confusions, or something that just looks off. We attach the page you were on, so you don't have to describe it."}),(0,a.jsx)(F.default,{value:d,onChange:c}
1),(0,a.jsx)(D.TextArea,{label:"What happened?",value:l,onChange:o,rows:5,placeholder:"The more specific, the better we can fix it.",autoFocus:!0}),h&&(0,a.jsx)("p",{className:"text-destructive m-0 text-[13px]",children:h}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2.5",children:[(0,a.jsx)(T.Button,{variant:"quiet",onPress:b,isDisabled:u,children:"Cancel"}),(0,a.jsx)(T.Button,{onPress:v,isDisabled:!j||u,isPending:u,"data-track-id":U.TRACK_IDS.feedbackSubmit,children:"Send feedback"})]})]})})})}function z({variant:e="icon"}){let[t,n]=(0,r.useState)(!1),i=(0,a.jsxs)("button",{type:"button",onClick:()=>n(!0),"aria-label":"Send feedback","data-track-id":U.TRACK_IDS.feedbackOpen,className:"row"===e?k.ROW_BUTTON:k.ICON_BUTTON,children:[(0,a.jsx)(N.MessageSquarePlus,{size:16,className:"shrink-0"}),"row"===e&&(0,a.jsx)("span",{className:"truncate group-data-[state=collapsed]/sidebar:sr-only",children:"Send feedback"})]});return(0,a.jsxs)(a.Fragment,{children:["row"===e?i:(0,a.jsxs)(_.TooltipTrigger,{delay:400,children:[(0,a.jsx)(A.Focusable,{children:i}),(0,a.jsx)(C.Tooltip,{children:"Send feedback"})]}),(0,a.jsx)($,{open:t,onOpenChange:n})]})}e.s(["default",0,$],902139);var K=e.i(482425),G=e.i(181712),G=G,V=e.i(136806),W=e.i(310108);function q({variant:e="row"}){let n=(0,W.useFlag)("dark_mode"),i=(0,W.useFlagsResolved)("dark_mode"),[s,l]=(0,r.useState)(null);if((0,r.useEffect)(()=>
1{l((0,V.currentTheme)())},[]),(0,r.useEffect)(()=>{!i||n||(document.documentElement.classList.remove("dark"),l("light"))},[n,i]),!n)return null;let o="dark"===s,d=o?"Switch to light mode":"Switch to dark mode";return(0,a.jsxs)("button",{type:"button",onClick:()=>{let e="dark"===s?"light":"dark",a=document.documentElement;"u">typeof CSS&&"function"==typeof CSS.registerProperty&&(a.setAttribute("data-theme-fade",""),window.getComputedStyle(a).transitionProperty),function(e){let a;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let r=(a=window.getComputedStyle(e).getPropertyValue("--theme-fade-duration").trim()).endsWith("ms")?Number.parseFloat(a)||0:a.endsWith("s")?1e3*(Number.parseFloat(a)||0):0;r<=0||(e.setAttribute("data-theme-flipping",""),clearTimeout(t),t=setTimeout(()=>e.removeAttribute("data-theme-flipping"),r+60))}(a),a.classList.toggle("dark","dark"===e),(0,V.rememberTheme)(e),l(e)},"aria-label":d,title:d,"data-track-id":U.TRACK_IDS.navThemeToggle,className:"icon"===e?k.ICON_BUTTON:k.ROW_BUTTON,children:[(0,a.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center",children:null===s?null:o?(0,a.jsx)(G.default,{size:16}):(0,a.jsx)(K.Moon,{size:16})}),"row"===e&&(0,a.jsx)("span",{className:"truncate group-data-[state=collapsed]/sidebar:sr-only",children:o?"Light mode":"Dark mode"})]})}var H=e.i(232608),Y=e.i(677093),Q=e.i(954616),Z=e.i(266027),J=e.i(912598),X=e.i(689605),ee=e.i(701281);function et(e){return(0,Z.useQuery)({queryKey:ee.queryKeys.messages.count(),queryFn:async({signal:e})=>(await X.api.messages.count(e)).count??0,enabled:e,refetchInterval:3e5,refetchOnWindowFocus:!0,retry:1})}e.s(["useMessageCount",0,et,"useSetMessageSpam",0,function(){let e=(0,J.useQueryClient)();return(0,Q.useMutation)({mutationFn:({ids:e,spam:t})=>X.api.messages.setSpam(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:ee.queryKeys.messages.count()})}})}],63406);var ea=e.i(148810);function er(){let{signedIn:e}=(0,Y.useYouSpotAccess)(),{authenticated:t}=(0,O.useAuth)(),r=(0,ea.useServerUnreachable)(),{data:n}=et(e&&!!t),i=r?void 0:n;return(0,a.jsxs)(y.default,{href:"/user/messages","aria-label":i?`Messages (${i} open)`:"Messages",className:`${k.ICON_BUTTON} relative`,children:[(0,a.jsx)(S.Inbox,{"aria-hidden":!0,className:"size-4",strokeWidth:1.9}),i?(0,a.jsx)("span",{"aria-hidden":!0,className:"bg-primary text-primary-foreground absolute right-1 top-1 flex min-w-3.5 justify-center rounded-full px-1 text-[10px] font-medium leading-[14px] tabular-nums",children:i>9?"9+":i}):null]})}function en(){let{user:e,logout:t,isAdmin:r,userView:n}=(0,O.useAuth)(),{admin:i}=(0,Y.useYouSpotState)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.default,{}),(0,a.jsx)(er,{}),(0,a.jsx)(q,{variant:"icon"}),(0,a.jsx)(z,{}),(0,a.jsx)("span",{className:"flex size-11 shrink-0 items-center justify-center md:size-8",children:(0,a.jsx)(H.UserMenu,{variant:"topbar",avatarUrl:e?.avatar_url,label:e?.first_name||e?.email||"Account",email:e?.email,username:e?.username,isAdmin:!!(i||r),userView:n,onSignOut:t})})]})}var ei=e.i(66072),es=e.i(277082);function el(){let e=(0,es.useSiteBrand)();return"wordmark"===e.kind?"youspot"===e.key?(0,a.jsxs)("span",{className:"brand-wordmark",children:["You",(0,a.jsx)("span",{className:"brand-wordmark-accent",children:"Spot"})]}):"hubgrader"===e.key?(0,a.jsxs)("span",{className:"flex items-center gap-2 text-chrome-foreground","aria-label":e.alt,children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"flex size-8 items-center justify-center rounded-lg bg-brand text-lg font-extrabold text-brand-foreground",children:"A"}),(0,a.jsxs)("span",{className:"text-xl font-bold tracking-tight",children:["Hub",(0,a.jsx)("span",{className:"text-brand",children:"Grader"})]})]}):(0,a.jsx)("img",{src:ei.DEFAULT_BRAND.src,alt:ei.DEFAULT_BRAND.alt}):(0,a.jsx)("img",{src:e.src,alt:e.alt})}function eo(){let e=(0,es.useSiteBrand)(),t="wordmark"===e.kind&&"hubgrader"===e.key?"/hubgrader":"/";return(0,a.jsx)(y.default,{href:t,"aria-label":"Home",className:"outline-ring flex shrink-0 items-center rounded-md text-lg font-bold leading-none no-underline outline-0 outline-offset-2 focus-visible:outline-2 [&_img]:block [&_img]:h-8 [&_img]:w-auto",children:(0,a.jsx)(el,{})})}var ed=e.i(938027),ec=e.i(694677),eu=e.i(625472),ep=e.i(578380);function eh({pathname:e}){let[t,n]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":"Open menu","aria-expanded":t,"aria-haspopup":"dialog",onClick:()=>n(!0),"data-track-id":U.TRACK_IDS.navSidebarMobile,className:k.DRAWER_BUTTON,children:(0,a.jsx)(ec.Menu,{size:20,strokeWidth:1.9,"aria-hidden":"true"})}),(0,a.jsx)(eu.SheetNavigation,{title:"YouSpot",placement:"left",isOpen:t,onOpenChange:n,children:(0,a.jsx)("nav",{"aria-label":"Site",className:"py-2",children:ep.YOUSPOT_MENU.map(t=>{let r=(0,ep.navItemIsCurrent)(t,e),n=t.icon;return(0,a.jsxs)(y.default,{href:t.href,"aria-current":r?"page":void 0,className:`flex min-h-11 items-center gap-3 rounded-lg px-3 py-2 text-sm no-underline outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring ${r?"bg-selected font-medium text-selected-foreground":"text-foreground"}
1`,children:[n&&(0,a.jsx)(n,{"aria-hidden":!0,className:"size-4 shrink-0"}),(0,a.jsx)("span",{className:"min-w-0 wrap-anywhere",children:t.label})]},t.href)})})})]})}function em(){let e=(0,i.usePagePathname)();return(0,a.jsx)(eh,{pathname:e},e)}var ef=e.i(600133),ex=e.i(167841);let eg=new Map(ep.SIDEBAR_NAV.flatMap(e=>e.items.map(e=>[e.href,e]))),eb=[...ep.PRODUCT_LINKS.map(e=>({label:e.label,href:e.href,icon:({chat:g.MessageCircle,brain:m.Brain})[e.icon],trackId:({chat:U.TRACK_IDS.navChat,brain:U.TRACK_IDS.navBrain})[e.icon]})),...ep.BAR_EXTRA_HREFS.flatMap(e=>{let t=eg.get(e);return t?.icon?[{label:t.label,href:t.href,icon:t.icon}]:[]}),{label:ep.APPS_NODE.label,href:ep.APPS_NODE.href,icon:f.LayoutGrid,trackId:U.TRACK_IDS.navApps}],ev={"/user/cloudagents":"agents"},ej=new Map(ep.APPS_NODE.children?.map(e=>[e.href,ep.APPS_NODE.href])??[]);function ey({count:e,working:t,label:r}){return t?(0,a.jsxs)("span",{"aria-label":r,className:"relative flex size-1.5",children:[(0,a.jsx)("span",{className:"bg-primary motion-safe:animate-ping absolute inline-flex size-full rounded-full opacity-75"}),(0,a.jsx)("span",{className:"bg-primary relative inline-flex size-1.5 rounded-full"})]}):e?(0,a.jsx)("span",{"aria-label":r,className:"bg-primary text-primary-foreground flex min-w-4 justify-center rounded-full px-1 text-[10px] font-medium leading-4 tabular-nums",children:e>9?"9+":e}):null}let eS="max-xl:hidden",ew="max-md:hidden",ek="mx-1 max-md:hidden",eN="min-w-36 justify-end";function eA(){let e=(0,i.usePagePathname)(),t=function(e){let t=(0,ep.activeHrefForPath)(e);if(t)return ej.get(t)??t}(e),r=(0,ex.useNavActivity)(),n=(0,ea.useServerUnreachable)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.TopBarNav,{label:"Product",className:ew,children:eb.map(e=>{let i=ev[e.href],s=i&&!n?r[i]:null;return(0,a.jsx)(b.TopBarNavItem,{href:e.href,link:h.default,icon:e.icon,isActive:e.href===t,labelClassName:eS,badge:s?(0,a.jsx)(ey,{...s}):void 0,"data-track-id":e.trackId,children:e.label},e.href)})}),(0,a.jsx)(b.TopBarDivider,{className:ek}),(0,a.jsx)(b.TopBarNav,{label:"YouSpot",className:ew,children:(0,a.jsx)(b.TopBarNavItem,{href:ep.IDEAS_LINK.href,link:h.default,icon:x.Lightbulb,isActive:(0,ep.navItemIsCurrent)(ep.IDEAS_LINK,e),labelClassName:eS,children:ep.IDEAS_LINK.label})})]})}function eC(){let e=(0,i.usePagePathname)();return(0,a.jsx)(b.TopBarNav,{label:"Site",className:ew,children:ep.SIGNED_OUT_NAV.map(t=>(0,a.jsx)(b.TopBarNavItem,{href:t.href,link:h.default,icon:t.icon,isActive:(0,ep.navItemIsCurrent)(t,e),labelClassName:eS,children:t.label},t.href))})}function e_({signedIn:e}){return(0,a.jsx)(b.TopBar,{children:(0,a.jsxs)(b.TopBarRow,{children:[e?(0,a.jsx)(ef.DrawerButton,{}):(0,a.jsx)(em,{}),(0,a.jsx)(eo,{}),(0,a.jsx)("span",{className:"hidden min-w-0 flex-1 sm:flex lg:max-w-72",children:(0,a.jsx)(j.default,{surface:"topbar"})}),(0,a.jsx)(b.TopBarSpacer,{}),e?(0,a.jsx)(eA,{}):(0,a.jsx)(eC,{}),(0,a.jsx)(b.TopBarDivider,{className:ek}),e?(0,a.jsxs)(b.TopBarActions,{className:eN,children:[(0,a.jsx)(ed.PageActionsSlot,{className:"flex items-center gap-0.5"}),(0,a.jsx)(en,{})]}):(0,a.jsx)(b.TopBarActions,{className:`${eN} gap-4`,children:(0,a.jsx)(v.default,{})})]})})}let eT={yielding:!1,manual:null},eM=0,eP=eT,eI=new Set;function eD(e){for(let t of(eP=e,eI))t()}function eF(e){return eI.add(e),()=>{eI.delete(e)}}function eL(e){eP.yielding&&eD({yielding:!0,manual:e})}function eO(){return(0,r.useSyncExternalStore)(eF,()=>eP,()=>eT)}function eB(e,t){return t.yielding?t.manual??!1:e}e.s(["effectiveSidebarOpen",0,eB,"setManualSidebar",0,eL,"useSidebarYield",0,eO,"yieldSidebarRef",0,function(e){return e?(1===(eM+=1)&&eD({yielding:!0,manual:null}),()=>{0==(eM-=1)&&eD(eT)}):void 0}],144309);let eE="youspot:sidebar:open";function eR(e){document.cookie=`youspot_sidebar_open=${e?"1":"0"}; path=/; max-age=31536000; samesite=lax`}function eU({active:e,chrome:t,tabsSeed:r,children:n}){return(0,a.jsxs)(s.SidebarInset,{className:e?"shell-inset overflow-y-auto":void 0,chromeless:!e,style:e?t.heights:void 0,children:[(0,a.jsx)(c.default,{surface:e?"rail":"strip"}),t.tabs&&(0,a.jsx)(u.default,{seed:r}),(0,a.jsx)("div",{className:e?"connect-main flex-1":"contents",style:e?{"--page-top":"0.75rem"}:void 0,children:n})]})}function e$({children:e,active:t=!0,bar:n=!0,defaultOpen:c=!0,tabsSeed:u=null}
1){let h,m,f,x,[g,b]=function(e){let[t,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{try{let e=window.localStorage.getItem(eE);if(null===e)return;a("true"===e),eR("true"===e)}catch{}},[]),[t,(0,r.useCallback)(e=>{a(e),eR(e);try{window.localStorage.setItem(eE,String(e))}catch{}},[])]}(c),v=eO(),j=(0,r.useRef)(t),y=t&&!j.current,S=(0,i.usePagePathname)(),w=(h=(0,W.useFlag)("shell_tabs"),f=(m=t&&h&&!(0,p.isTabless)(S)&&!(0,ep.isPublicPage)(S))?l.TAB_STRIP_HEIGHT:"0rem",x=n?"3.5rem":"0rem",{tabs:m,rail:t&&(0,ep.sectionHasRail)(S),heights:{"--topbar-row-h":x,"--tabstrip-h":f,"--topbar-h":n?`calc(${x} + ${f} + env(safe-area-inset-top))`:"0rem"}});return(0,a.jsx)(s.SidebarProvider,{open:eB(g,v),onOpenChange:v.yielding?eL:b,closeKey:S,className:"h-svh flex-col overflow-hidden",chromeless:!t,children:(0,a.jsx)("div",{className:"contents","data-shell-enter":y?"":void 0,style:w.heights,children:(0,a.jsxs)(d.PageTitleProvider,{children:[n&&(0,a.jsx)(e_,{signedIn:t}),(0,a.jsxs)("div",{"data-shell-row":!0,className:t?"flex min-h-0 flex-1":"contents",children:[t&&(0,a.jsx)(o.default,{rail:w.rail}),(0,a.jsx)(eU,{active:t,chrome:w,tabsSeed:u,children:e})]})]})})})}let ez=(0,r.createContext)(!1),eK=(0,n.default)(()=>e.A(359215),{loadableGenerated:{modules:[762009]},ssr:!1}),eG=(0,n.default)(()=>e.A(261505),{loadableGenerated:{modules:[644312]},ssr:!1});e.s(["default",0,function({children:e,railOpen:t=!0,tabsSeed:r=null}){let n=(0,W.useFlag)("chat_dock"),s=(0,W.useFlag)("genui_views"),{signedIn:l}=(0,Y.useYouSpotAccess)(),o=(0,i.usePagePathname)(),d=(0,ep.showsTopBar)(o),c=l&&d,u=n&&c&&!(0,ep.isPublicPage)(o)&&!(0,ep.isChatPath)(o);return(0,a.jsxs)(ez.Provider,{value:c,children:[(0,a.jsx)(e$,{active:c,bar:d,defaultOpen:t,tabsSeed:r,children:e}),u&&(0,a.jsx)(eK,{}),s&&l&&(0,a.jsx)(eG,{})]})},"useShellMounted",0,function(){return(0,r.useContext)(ez)}],587728)},220283,938027,425229,814766,995422,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(250277),n=e.i(618566),i=e.i(402485),s=e.i(125673),l=e.i(56199),o=e.i(603333),d=e.i(432572);e.i(513036);var c=e.i(768402),u=e.i(558261),p=e.i(105180),h=e.i(249472),m=e.i(299875),f=e.i(857177),x=e.i(677093),g=e.i(578380),b=e.i(242037),v=e.i(512746),j=e.i(310108),y=e.i(818825),S=e.i(212225),w=e.i(167841),k=e.i(414451),N=e.i(946596),A=e.i(146066),C=e.i(416122),_=e.i(522016),T=e.i(531261),M=e.i(242286),P=e.i(547147),I=e.i(850432),D=e.i(393917),F=e.i(838098),L=e.i(322583),O=e.i(426992);let B={ok:["","bg-primary/15"],warning:["border-warning/50 text-foreground hover:bg-warning/10","bg-warning/40"],critical:["border-destructive/40 text-destructive hover:bg-destructive/10","bg-destructive/25"]};function E(){let{status:e}=(0,D.useCredits)(null,1),{data:a}=(0,D.useBillingStatus)(),r=e?.balance??0,n=Math.max(e?.granted_30d??0,r);if(!(e&&n>0))return null;let i=function(e){if(!e)return{label:"â",note:null};let t=e.subscription,a=t?.cancel_at_period_end?`Ends ${new Date(t.current_period_end??"").toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})}`:null,r=t&&!["active","trialing"].includes(t.status)?t.status.replace(/_/g," "):null;return e.pro||e.plan&&"free"!==e.plan.tier?{label:e.plan&&(0,O.planLabel)(e.plan)||e.plan_name||"YouSpot",note:r||a}:e.beta?.approved?{label:"Beta",note:null}:e.beta?.waitlisted?{label:"Waitlist",note:null}:{label:"Free",note:null}}(a),s=100-r/n*100,l=Math.max(0,Math.min(100,100-s)),o=a?.plan?.tier==="free",[d,u]=B[(0,F.isLowBalance)(r,!1,a?.plan?.tier)?"critical":(0,I.meterBand)(s)];return(0,t.jsxs)(P.Disclosure,{className:"min-w-0 rounded-none",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)(c.Button,{slot:"trigger",variant:"secondary",className:`relative h-7 min-w-0 flex-1 justify-start gap-1.5 overflow-hidden px-2 text-xs ${d}`,children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:`${l}%`},className:`absolute inset-y-0 left-0 transition-[width] duration-(--motion-slow) ease-out ${u}`}),(0,t.jsx)(M.Coins,{"aria-hidden":!0,className:"relative size-3.5 shrink-0"}),(0,t.jsxs)("span",{className:"relative truncate",children:[r.toLocaleStr
1ing()," credits"]}),(0,t.jsx)(T.ChevronDown,{"aria-hidden":!0,className:"relative ml-auto size-3.5 shrink-0 transition-transform duration-(--motion-fast) group-data-expanded:rotate-180"})]})}),(0,t.jsx)(P.DisclosurePanel,{children:(0,t.jsxs)("div",{className:"-mx-2 flex flex-col gap-1.5",children:[(0,t.jsx)(I.Meter,{"aria-label":"Credits remaining",label:i.label,direction:"remaining",value:r,maxValue:n,valueLabel:`${r.toLocaleString()} left`,className:"gap-1"}),i.note&&(0,t.jsx)("span",{className:"text-muted-foreground text-[11px] capitalize",children:i.note}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)(_.default,{href:"/user/billing",className:"border-border bg-secondary hover:bg-secondary-hover text-secondary-foreground inline-flex flex-1 items-center justify-center rounded-md border px-2 py-1 text-[11px] font-medium no-underline transition-colors",children:"Usage & billing"}),o?(0,t.jsx)(_.default,{href:(0,L.proUpgradeHref)("rail_usage"),onClick:()=>(0,L.queueProUpgrade)("rail_usage"),className:"bg-primary hover:bg-primary-hover text-primary-foreground inline-flex items-center justify-center rounded-md px-2 py-1 text-[11px] font-medium no-underline transition-colors",children:"Upgrade to Pro"}):(0,t.jsx)(_.default,{href:"/user/billing#credits",className:"bg-primary hover:bg-primary-hover text-primary-foreground inline-flex items-center justify-center rounded-md px-2 py-1 text-[11px] font-medium no-underline transition-colors",children:"Top up"})]})]})})]})}var R=e.i(174080);let U=new Map,$=new Set;function z(e,t,a){let r=`${e}:${t}`;for(let e of(a?U.set(r,a):U.delete(r),$))e()}function K(e){return $.add(e),()=>{$.delete(e)}}function G({surface:e,name:r,className:n}){let i=(0,a.useCallback)(t=>(z(e,r,t),()=>z(e,r,null)),[e,r]);return(0,t.jsx)("div",{ref:i,className:n})}function V({name:e,children:t}){let r=(0,a.useSyncExternalStore)(K,()=>U.get(`drawer:${e}`)??U.get(`rail:${e}`)??U.get(`page:${e}`)??null,()=>null);return r?(0,R.createPortal)(t,r):null}function W({className:e}){let a=(0,p.useSidebarSurface)();return(0,t.jsx)(G,{surface:a,name:"section",className:e})}e.s(["PageActionsPortal",0,function({children:e}){return(0,t.jsx)(V,{name:"page-actions",children:e})},"PageActionsSlot",0,function({className:e}){return(0,t.jsx)(G,{surface:"page",name:"page-actions",className:e})},"SectionPortal",0,function({children:e}){return(0,t.jsx)(V,{name:"section",children:e})},"SectionSlot",0,W],938027);var q=e.i(148810);let H=["/brain","/import",...g.RAIL_PRIMARY.brain],Y="flex min-h-0 flex-1 flex-col gap-3",Q={"/user/cloudagents":"agents","/user/status":"tasks"},Z=[{key:"shared",label:"Shared with me",icon:d.Users2}];function J(){let e=(0,i.usePagePathname)(),a=(0,j.useFlag)("brain_export"),n=(0,j.useFlag)("graph_duplicate_review");return[a&&{href:"/brain/exports",label:"Export",icon:l.Download,trackId:"brain-export-open"},n&&{href:"/brain/review",label:u.DUPLICATES_COPY.title,icon:s.Copy,trackId:"brain-review-open"}].filter(e=>!1!==e).map(({href:a,label:n,icon:i,trackId:s})=>(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsxs)(p.SidebarMenuButton,{href:a,link:r.default,isActive:e===a,tooltip:n,"data-track-id":s,children:[(0,t.jsx)(i,{"aria-hidden":!0,strokeWidth:1.9}),(0,t.jsx)(p.SidebarMenuLabel,{children:n})]})},a))}function X(e){return e&&H.some(t=>(0,y.pathMatches)(e,t))?"brain":"chat"}function ee({node:e,href:a,activeHref:n,activity:i,panel:s}){let l=e.icon,o=e.children?.some(e=>e.href===n)??!1,d=null!==e.match&&(e.href===n||o),c=l?(0,t.jsx)(l,{"aria-hidden":!0,strokeWidth:1.9}):void 0;return s?(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsx)(p.SidebarMenuCollapsible,{label:e.label,href:a??e.href,icon:c,isActive:d,link:r.default,children:(0,t.jsx)("div",{className:"ml-4 grid max-h-[45dvh] grid-rows-[minmax(0,1fr)] border-l border-border pl-2",children:(0,t.jsx)("div",{className:Y,children:s})})})}):e.children?.length?(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsx)(p.SidebarMenuCollapsible,{label:e.label,href:e.href,icon:c,isActive:d,link:r.default,items:e.children.map(e=>({label:e.label,href:e.href,isActive:e.href===n}))})}):(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsxs)(p.SidebarMenuButton,{href:a??e.href,link:r.default,isActive:d,tooltip:i?`${e.label}: ${i.sentence}`:e.label,tooltipAlways:!!i,children:[c,(0,t.jsx)(p.SidebarMenuLabel,{children:e.label}),i&&(0,t.jsx)(p.SidebarMenuActivity,{count:i.count,working:i.working,label:i.label})]})})}function et({tab:e,labeled:a=!1}){let r=(0,n.useRouter)(),{setOpenMobile:i}=(0,p.useSidebar)();return"chat"!==e?null:(0,t.jsxs)(m.TooltipTrigger,{delay:400,closeDelay:0,children:[(0,t.jsxs)(c.Button,{variant:"primary","aria-label":"New chat","data-track-id":S.TRACK_IDS.chatNew,onPress:()=>{i(!1),(0,g.isChatPath)(window.location.pathname)?window.dispatchEvent(new CustomEvent(b.CHAT_NEW_EVENT)):r.push(g.CHAT_HREF)}
1,children:[(0,t.jsx)(o.Plus,{"aria-hidden":!0,className:"size-4"}),a&&"New Chat"]}),(0,t.jsx)(h.Tooltip,{placement:"bottom",children:"New chat"})]})}function ea({tab:e,labeled:a=!1}){return"brain"===e?(0,t.jsx)(k.default,{iconOnly:!a}):(0,t.jsx)(et,{tab:e,labeled:a})}function er({tab:e}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:gap-3",children:[(0,t.jsx)(p.SidebarTrigger,{variant:"secondary","data-track-id":S.TRACK_IDS.navSidebarToggle,className:"max-xl:hidden"}),(0,t.jsx)(ea,{tab:e})]})}function en({panels:e}){let a=(0,i.usePagePathname)(),r=(0,g.activeHrefForPath)(a),{isAdmin:n}=(0,f.useAuth)(),{admin:s}=(0,x.useYouSpotState)(),l=(0,v.useVisibleNav)(!!(s||n)),o=(0,w.useNavActivity)(),d=(0,q.useServerUnreachable)();return l.map(a=>(0,t.jsxs)(p.SidebarGroup,{children:[(0,t.jsx)(p.SidebarGroupLabel,{children:a.title}),(0,t.jsx)(p.SidebarMenu,{children:a.items.map(a=>(0,t.jsx)(ee,{node:a,activeHref:r,activity:el(o,d,a.href),panel:e?.[a.href]},a.href+a.label))})]},a.title))}function ei(){let e=(0,i.usePagePathname)(),a=(0,n.useSearchParams)().get("view"),s="network"===a?"graph":a??"list",l="/brain"===e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(p.SidebarMenu,{className:"shrink-0",children:[Z.map(({key:e,label:a,icon:n})=>(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsxs)(p.SidebarMenuButton,{href:`/brain?view=${e}`,link:r.default,isActive:l&&s===e,tooltip:a,children:[(0,t.jsx)(n,{"aria-hidden":!0,strokeWidth:1.9}),(0,t.jsx)(p.SidebarMenuLabel,{children:a})]})},e)),(0,t.jsx)(J,{})]}),(0,t.jsx)(A.default,{})]})}function es({className:e="scroll-fade"}){let a,r,n,s=(a=(0,i.usePagePathname)(),r=(0,g.isChatPath)(a),n=!!(a&&(0,y.pathMatches)(a,"/user/files")),{[g.CHAT_HREF]:r?(0,t.jsx)(W,{className:Y}):(0,t.jsx)(C.default,{}),"/brain":(0,t.jsx)(ei,{}),...n?{"/user/files":(0,t.jsx)(W,{className:Y})}:{}});return(0,t.jsx)(p.SidebarContent,{className:e,children:(0,t.jsx)(en,{panels:s})})}function el(e,t,a){if(t)return null;let r=Q[a];return r?e[r]:null}function eo(){let e=(0,i.usePagePathname)(),s=(0,n.useSearchParams)(),l=(0,g.activeHrefForPath)(e),{isAdmin:o}=(0,f.useAuth)(),{admin:d}=(0,x.useYouSpotState)(),{open:c}=(0,p.useSidebar)(),u=(0,w.useNavActivity)(),h=(0,q.useServerUnreachable)(),m=X(e),b=(0,v.useVisibleNav)(!!(d||o)),j=(0,a.useMemo)(()=>new Map(b.flatMap(e=>e.items.map(e=>[e.href,e]))),[b]),S=g.RAIL_PRIMARY[m].flatMap(e=>{let t=j.get(e);return t?[t]:[]}),k=s.get("view"),N="network"===k?"graph":k??"list",_="/brain"===e,T=(0,g.isChatPath)(e)||!!(e&&(0,y.pathMatches)(e,"/user/files")),M="brain"===m||S.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.SidebarHeader,{className:"pb-0",children:(0,t.jsx)(er,{tab:m})}),(0,t.jsxs)(p.SidebarContent,{className:"scroll-fade gap-3",children:[M&&(0,t.jsx)("div",{className:"flex shrink-0 flex-col gap-3",children:(0,t.jsxs)(p.SidebarMenu,{children:["brain"===m&&Z.map(({key:e,label:a,icon:n})=>(0,t.jsx)(p.SidebarMenuItem,{children:(0,t.jsxs)(p.SidebarMenuButton,{href:`/brain?view=${e}`,link:r.default,isActive:_&&N===e,tooltip:a,children:[(0,t.jsx)(n,{"aria-hidden":!0,strokeWidth:1.9}),(0,t.jsx)(p.SidebarMenuLabel,{children:a})]})},e)),S.map(e=>(0,t.jsx)(ee,{node:e,activeHref:l,activity:el(u,h,e.href)},e.href+e.label)),"brain"===m&&(0,t.jsx)(J,{})]})},`rows-${m}`),c&&(0,t.jsx)("div",{className:Y,children:T?(0,t.jsx)(W,{className:Y}):"chat"===m?(0,t.jsx)(C.default,{}):(0,t.jsx)(A.default,{})},`panel-${m}`)]})]})}function ed(){let{open:e}=(0,p.useSidebar)(),a="drawer"===(0,p.useSidebarSurface)();return(0,t.jsxs)(t.Fragment,{children:[a?(0,t.jsx)(es,{className:"scroll-fade gap-3"}):(0,t.jsx)(eo,{}),(0,t.jsxs)(p.SidebarFooter,{children:[(0,t.jsx)(p.SidebarSeparator,{}),(0,t.jsx)(N.default,{surface:"rail"}),(e||a)&&(0,t.jsx)(E,{})]})]})}e.s(["default",0,function({rail:e}){let r=(0,i.usePagePathname)();return function(){let e=(0,i.usePagePathname)(),t=(0,n.useSearchParams)(),{setOpenMobile:r}=(0,p.useSidebar)(),s=`${e}?${t}`,l=(0,a.useRef)(s);(0,a.useEffect)(()=>{l.current!==s&&(l.current=s,r(!1))},[s,r])}(),(0,t.jsx)(p.Sidebar,{variant:"flush",mobileLabel:"Navigation",mobileHeader:(0,t.jsx)(ea,{tab:X(r),labeled:!0}),drawerOnly:!e,className:"h-full min-h-0",children:e?(0,t.jsx)(ed,{}):(0,t.jsx)(es,{})})}],220283);var ec=e.i(766709);let eu={background:"#F1E3D9",borderBottom:"1px solid #E4E0D6",padding:"7px 16px",textAlign:"center",fontSize:13,color:"#6B675E"},ep={color:"#FF4800",fontWeight:600,textDecoration:"none"};
1e.s(["default",0,function(){let e=(0,ec.useAppDomainName)(),{authenticated:a}=(0,f.useAuth)();return e?"HubGrader"===e?a?(0,t.jsx)("div",{style:eu,children:(0,t.jsx)("a",{href:"/",style:ep,children:"See your HubGrader results"})}):null:(0,t.jsxs)("div",{style:eu,children:[(0,t.jsx)("strong",{style:{color:"#141413",fontWeight:600},children:e})," ","is part of"," ",(0,t.jsx)("a",{href:"https://youspot.com",style:ep,children:"YouSpot"}),", the AI-native Solo CRM."]}):null}],425229);let eh=[[/Instagram/i,"Instagram"],[/FBAN|FBAV|FB_IAB/i,"Facebook"],[/TwitterAndroid|Twitter for/i,"X"],[/LinkedInApp/i,"LinkedIn"],[/TikTok|musical_ly/i,"TikTok"],[/Snapchat/i,"Snapchat"],[/\bLine\//i,"LINE"],[/GSA\//i,"Google's app"]];e.s(["default",0,function(){let{authenticated:e,loading:r}=(0,f.useAuth)(),[n,i]=(0,a.useState)(null),[s,l]=(0,a.useState)(!1),[o,d]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{"1"!==window.sessionStorage.getItem("inapp_notice_dismissed")&&i(function(){let e=(void 0)??("u">typeof navigator?navigator.userAgent:"");if(!e)return null;for(let[t,a]of eh)if(t.test(e))return a;return/iPhone|iPad|iPod/.test(e)&&/AppleWebKit/.test(e)&&!/Safari\//.test(e)&&!/CriOS|FxiOS|EdgiOS|OPT\//.test(e)?"this app":null}())},[]),r||e||s||!n)?null:(0,t.jsxs)("div",{style:{background:"#FFF4E5",borderBottom:"1px solid #F0D9B5",padding:"8px 16px",textAlign:"center",fontSize:13,color:"#6B4A12"},children:["Signing in doesnât work inside"," ","this app"===n?"this appâs":`${n}âs`," built-in browser â open"," ",(0,t.jsx)("strong",{style:{fontWeight:600},children:"youspot.com"})," in Safari or Chrome instead."," ",(0,t.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(window.location.href),d(!0),setTimeout(()=>d(!1),1200)},style:{background:"none",border:"none",padding:0,font:"inherit",color:"#FF4800",fontWeight:600,cursor:"pointer",textDecoration:"underline"},children:o?"Copied!":"Copy link"}),(0,t.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>{l(!0),window.sessionStorage.setItem("inapp_notice_dismissed","1")},style:{background:"none",border:"none",padding:"0 0 0 12px",font:"inherit",color:"#B08D57",cursor:"pointer"},children:"â"})]})}],814766);var em=e.i(486499),ef=e.i(71526),ex=e.i(290254),eg=e.i(815887),eb=e.i(33851),ev=e.i(122592);let ej="AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),ey=(function(e="en"){let t=new Intl.DisplayNames([e],{type:"region"});return ej.map(e=>t.of(e)??e).sort((e,t)=>e.localeCompare(t))})().map(e=>({id:e,name:e})),eS=Intl.supportedValuesOf("timeZone").map(e=>({id:e,name:e.replaceAll("_"," ")}));function ew({id:e,label:a,value:r,invalid:n,onChange:i,placeholder:s,type:l,inputMode:o}){return(0,t.jsx)(eb.TextField,{id:e,"aria-label":a,value:r,onChange:i,isInvalid:n,placeholder:s,type:l,inputMode:o})}function ek({id:e,label:a,value:r,invalid:n,onChange:i,placeholder:s,rows:l=4}){return(0,t.jsx)(eg.TextArea,{id:e,"aria-label":a,value:r,onChange:i,isInvalid:n,placeholder:s,rows:l})}function eN({label:e,value:a,onChange:r,placeholder:n}){return(0,t.jsx)(ev.default,{"aria-label":e,value:a,onValueChange:r,onSelect:e=>r(e.domain||a),placeholder:n,showHelperText:!1,compact:!0})}let eA=/^https?:\/\//i;function eC({id:e,value:a,invalid:r,onChange:n,placeholder:i,prefix:s,type:l}){let o="url"===l;return(0,t.jsxs)(ef.FieldGroup,{isInvalid:r,children:[(0,t.jsx)(ef.InputAddon,{children:s}),(0,t.jsx)(ef.Input,{id:e,type:l,value:o?a.replace(eA,""):a,onChange:e=>{var t;let a;return n(o?!(a=(t=e.target.value).trim())||eA.test(a)?t:`https://${a}`:e.target.value)},placeholder:i,autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,"aria-invalid":r||void 0})]})}
1function e_({id:e,label:a,value:r,invalid:n,onChange:i,placeholder:s,items:l,shortcut:o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.ComboBox,{id:e,"aria-label":a,items:l,selectedKey:r||null,onSelectionChange:e=>i(null==e?"":String(e)),isInvalid:n,placeholder:s??"Start typing to search",menuTrigger:"focus",className:"[&>label:empty]:hidden",children:e=>(0,t.jsx)(em.ComboBoxItem,{id:e.id,textValue:e.name,children:e.name})}),!r&&o&&(0,t.jsxs)("button",{type:"button",onClick:()=>i(o),className:"mt-1.5 cursor-pointer border-0 bg-transparent p-0 text-[13px] text-primary hover:underline",children:["Use ",o.replaceAll("_"," ")]})]})}let eT=Array.from({length:12},(e,t)=>new Date(2e3,t,1).toLocaleDateString("en-US",{month:"long"})),eM=[31,29,31,30,31,30,31,31,30,31,30,31];function eP({id:e,label:a,value:r,invalid:n,onChange:i}){let[s="",l=""]=r.split("-"),o=eM[Number(s)-1]??31,d=(e,t)=>i(e||t?`${e}-${t}`:"");return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(ex.Select,{id:e,"aria-label":`${a} month`,placeholder:"Month",className:"flex-1 [&>label:empty]:hidden",selectedKey:s||null,isInvalid:n,onSelectionChange:e=>d(String(e??""),l&&Number(l)>(eM[Number(e)-1]??31)?"":l),children:eT.map((e,a)=>{let r=String(a+1).padStart(2,"0");return(0,t.jsx)(ex.SelectItem,{id:r,children:e},r)})}),(0,t.jsx)(ex.Select,{"aria-label":`${a} day`,placeholder:"Day",className:"w-28 [&>label:empty]:hidden",selectedKey:l||null,isInvalid:n,onSelectionChange:e=>d(s,String(e??"")),children:Array.from({length:o},(e,a)=>{let r=String(a+1).padStart(2,"0");return(0,t.jsx)(ex.SelectItem,{id:r,children:String(a+1)},r)})})]})}let eI=()=>()=>{};function eD(){return(0,a.useSyncExternalStore)(eI,()=>Intl.DateTimeFormat().resolvedOptions().timeZone,()=>"")}e.s(["COUNTRIES",0,ey,"CompanyControl",0,eN,"FieldControl",0,function({def:e,rows:a,...r}){let n=eD(),i=r.placeholder??(e.placeholder||void 0),s={...r,placeholder:i};switch(e.data_type){case"company":return(0,t.jsx)(eN,{...s});case"multiline":return(0,t.jsx)(ek,{...s,rows:a});case"date":return(0,t.jsx)(ew,{...s,type:"date"});case"number":return(0,t.jsx)(ew,{...s,inputMode:"decimal"});case"url":return(0,t.jsx)(eC,{...s,prefix:"https://",type:"url"});case"handle":return(0,t.jsx)(eC,{...s,prefix:"@"});case"country":return(0,t.jsx)(e_,{...s,items:ey});case"timezone":return(0,t.jsx)(e_,{...s,items:eS,shortcut:n||void 0});case"month_day":return(0,t.jsx)(eP,{...s});case"select":return(0,t.jsx)(e_,{...s,items:e.options.map(e=>({id:e,name:e}))});default:return(0,t.jsx)(ew,{...s})}},"LongTextControl",0,ek,"MonthDayControl",0,eP,"PickerControl",0,e_,"PrefixedControl",0,eC,"TIMEZONES",0,eS,"TextControl",0,ew,"useBrowserZone",0,eD],995422)},582919,652020,670748,957418,232608,918942,816034,80435,e=>{"use strict";var t=e.i(843476),a=e.i(425229),r=e.i(814766),n=e.i(946596),i=e.i(271645),s=e.i(522016),l=e.i(402485),o=e.i(710459);e.i(513036);var d=e.i(768402),c=e.i(995422),u=e.i(857177),p=e.i(972743),h=e.i(497904);e.i(689605);var m=e.i(921110);let f=new Set(["editor","profile_bar"]);function x(e,t=Date.now()){return t-Math.max(0,...e.filter(e=>e.updated_at&&f.has(e.update_source??"")).map(e=>Date.parse(e.updated_at)))<864e5?null:[...e].sort((e,t)=>t.priority-e.priority).find(e=>e.show_in_profilebar&&!e.value&&!e.skipped_at)??null}let g={invalid_number:"Enter a number.",invalid_date:"Enter a valid date.",invalid_month_day:"Pick a month and a day.",too_long:"That is too long.",invalid_url:"Enter a web address, like acme.com.",invalid_domain:"Enter a website domain, like acme.com.",invalid_handle:"Letters, numbers, underscores, dots or dashes only.",invalid_option:"Pick one of the choices.",invalid_timezone:"Pick a timezone from the list.",unknown_field:"This field is no longer available."},b={chat:"chat",editor:"you",email:"email",linkedin:"LinkedIn",import:"your earlier profile"};function v(e,t){let a=t.trim();if(!a)return null;if("number"===e&&!Number.isFinite(Number(a.replaceAll(",",""))))return g.invalid_number;if("date"===e&&Number.isNaN(Date.parse(a)))return g.invalid_date;if("month_day"===e&&!/^\d{2}-\d{2}$/.test(a))return g.invalid_month_day;if("url"===e&&(/\s/.test(a)||!a.includes(".")))return g.invalid_url;if("company"===e&&(/\s/.test(a)||!a.includes(".")))return g.invalid_domain;if("handle"===e){let e=a.replace(/^(https?:\/\/)?(www\.)?(x|twitter)\.com\//i,"").replace(/^@/,"").replace(/\/+$/,"");if(!/^[A-Za-z0-9_.-]{1,64}$/.test(e))return g.invalid_handle}return null}function j(e){if(e instanceof m.ApiError&&"invalid_values"===e.code&&e.details&&"object"==typeof e.details){let t={};for(let[a,r]of Object.entries(e.details))t[a]=g[r]??"Check this value.";return{fields:t,message:null}}return{fields:{},message:e?"Your changes could not be saved. Try again.":null}}e.s(["changedValues",0,function(e,t){let a={};for(let r of e){let e=t[r.field_id];void 0!==e&&e.trim()!==(r.value??"")&&(a[r.field_id]=e)}return a},"fieldError",0,v,"groupFields",0,function(e){let t=new Map;for(let a of[...e].sort((e,t)=>
1t.priority-e.priority)){let e=a.group_name||"Other";t.set(e,[...t.get(e)??[],a])}return[...t].map(([e,t])=>({name:e,fields:t}))},"nextProfileField",0,x,"saveErrors",0,j,"sourceLabel",0,function(e){return e?b[e]??e:null}],652020);let y="/user/profile";function S({field:e,filled:a,total:r}){let n=(0,h.useSaveProfileFieldValues)("profile_bar"),l=(0,h.useSkipProfileField)(),[u,m]=(0,i.useState)(""),f=v(e.data_type,u),x=f??j(n.error).fields[e.field_id]??j(n.error).message??(l.isError?"That did not work. Try again.":null),g=`profile-bar-${e.field_id}`;return(0,i.useEffect)(()=>(0,p.reportProfileBarShown)(e),[e]),(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault(),u.trim()&&!f&&n.mutate({[e.field_id]:u})},className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-border bg-card px-4 py-2.5 md:px-6",children:[(0,t.jsxs)("label",{htmlFor:g,className:"flex min-w-0 items-center gap-2 text-sm text-foreground",children:[(0,t.jsx)(o.Sparkles,{size:15,className:"shrink-0 text-primary","aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:["Help YouSpot know you: ",(0,t.jsx)("strong",{className:"font-semibold",children:e.field_name})]})]}),(0,t.jsx)("div",{className:"min-w-[14rem] max-w-md flex-1",children:(0,t.jsx)(c.FieldControl,{def:e,id:g,label:e.field_name,value:u,invalid:!!x,onChange:e=>{n.isError&&n.reset(),m(e)},rows:1})}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(d.Button,{type:"submit",isPending:n.isPending,isDisabled:!u.trim()||!!f||l.isPending,children:"Save"}),(0,t.jsx)(d.Button,{variant:"quiet",onPress:()=>l.mutate(e.field_id),isPending:l.isPending,isDisabled:n.isPending,children:"Skip"})]}),x&&(0,t.jsx)("p",{className:"m-0 text-[13px] text-destructive",children:x}),(0,t.jsxs)("p",{className:"m-0 ml-auto flex items-center gap-3 text-[13px] text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":a,"aria-label":`${a} of ${r} profile fields done`,children:[(0,t.jsx)("span",{className:"h-1.5 w-20 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("span",{className:"block h-full rounded-full bg-primary transition-[width] duration-300",style:{width:`${r?Math.round(a/r*100):0}%`}})}),(0,t.jsxs)("span",{className:"tabular-nums",children:[a,"/",r]})]}),(0,t.jsx)(s.default,{href:y,className:"font-medium text-primary no-underline hover:underline",children:"All details"})]})]})}function w(){let{authenticated:e,loading:a}=(0,u.useAuth)(),r=(0,l.usePagePathname)(),n=e&&!a,i=(0,h.useProfileFieldValues)({initialData:null,enabled:n});if(!n||r===y||!i.data)return null;let s=i.data.fields,o=x(s);return o?(0,t.jsx)(S,{field:o,total:s.length,filled:s.filter(e=>e.value).length},o.field_id):null}let k=(0,e.i(235884).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"}]]);var N=e.i(148810);function A(){let e=(0,N.useServerUnreachable)(),a=(0,N.useSessionStore)(e=>e.refresh);return e?(0,t.jsxs)("div",{role:"status",className:"border-border bg-surface text-muted-foreground flex items-center justify-center gap-2 border-b px-4 py-2 text-sm",children:[(0,t.jsx)(k,{size:15,strokeWidth:1.9,"aria-hidden":"true"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"Canât reach the server."})," ","Anything still on screen may be out of date."]}),(0,t.jsx)(d.Button,{variant:"quiet",onPress:()=>void a().catch(()=>{}),children:"Try again"})]}):null}e.s(["default",0,function({surface:e="strip"}){return(0,t.jsxs)("div",{className:"notice-region",children:[(0,t.jsx)(r.default,{}),(0,t.jsx)(A,{}),"strip"===e&&(0,t.jsx)(n.default,{}),(0,t.jsx)(a.default,{}),"rail"===e&&(0,t.jsx)(w,{})]})}],582919);var C=e.i(618566),_=e.i(103893),T=e.i(843566),M=e.i(825241),P=e.i(212225),I=e.i(738423),D=e.i(578380);let F=["/brandgrader","/brandget","/companyresearch","/dadjoke","/domainsales","/domainvalue","/emaillookup","/ghero","/hubgrader","/imagegen","/jsondata","/metaprompt","/prospectfinder","/signupagent","/socialboard"],L=e=>F.some(t=>e===t||(e??"").startsWith(`${t}/`));e.s(["isTabless",0,L],670748);var O=e.i(537790);e.s(["default",0,function({seed:e=null}){let a,r,n,s,o,d,c,u,p=(0,C.useRouter)(),{tabs:h,activeId:m}=(0,i.useSyncExternalStore)(O.useShellTabsStore.subscribe,O.useShellTabsStore.getState,()=>e??O.DEFAULT_TABS),f=(0,I.useWorkingThreads)(),x=(0,i.useMemo)(()=>new Set(f),[f]),g=(0,O.useShellTabsStore)(e=>e.activate),b=(0,O.useShellTabsStore)(e=>e.closeTab),v=(0,O.useShellTabsStore)(e=>e.openTab);a=(0,l.usePagePathname)(),n=(r=(0,C.useSearchParams)().toString())?`${a}?${r}`:a??"/",s=(0,l.usePagePathname)(),d=(o=(0,M.usePublishedPage)()).title?o.title:(0,D.navCrumbsForPath)(s)?.title??"YouSpot",c=(0,O.useShellTabsStore)(e=>e.record),u=(0,i.useRef)(""),(0,i.useEffect)(()=>{let e=`${n}\0${d}`;u.current!==e&&(u.current=e,c(n,d))},[n,d,c]);let j=(0,i.useCallback)((e,t)=>{e!==m&&(g(e),p.push(t))},[m,g,p]),y=(0,i.useCallback)(e=>{b(e);let t=O.useShellTabsStore.getState(),a=t.tabs.find(e=>e.id===t.activeId);e===m&&a&&p.push(a.href)}
1,[m,b,p]),S=(0,i.useCallback)(()=>{v("/chat","Chat"),p.push("/chat")},[v,p]);return(0,t.jsxs)(T.TabStrip,{label:"Open tabs",children:[h.filter(e=>!L(e.href.split("?")[0])).map(e=>{var a;let r,n=(0,D.iconForPath)(e.href.split("?")[0])??_.MessageCircle,i=-1===(r=(a=e.href).indexOf("?"))?null:new URLSearchParams(a.slice(r+1)).get("c");return(0,t.jsx)(T.TabStripItem,{isActive:e.id===m,isPinned:e.pinned,isWorking:null!==i&&x.has(i),icon:n,onActivate:()=>j(e.id,e.href),onClose:e.pinned||1===h.length?void 0:()=>y(e.id),closeLabel:`Close ${e.title}`,"data-track-id":P.TRACK_IDS.shellTabClose,children:e.title},e.id)}),(0,t.jsx)(T.TabStripAdd,{onPress:S,"data-track-id":P.TRACK_IDS.shellTabOpen})]})}],957418);var B=e.i(719658),E=e.i(109509),R=e.i(632990),U=e.i(207487),$=e.i(650178),z=e.i(625472),K=e.i(310108),G=e.i(671488),V=e.i(746357),W=e.i(547147);function q({node:e,pathname:a}){let r=(0,D.navItemIsCurrent)(e,a),n=e.icon;return(0,t.jsxs)($.MenuItem,{href:e.href,textValue:e.label,"aria-current":r?"page":void 0,className:r?"bg-selected text-selected-foreground":void 0,children:[n&&(0,t.jsx)(n,{"aria-hidden":!0,size:16,className:"shrink-0"}),e.detail?(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:e.detail})]}):e.label]})}function H({account:e,apps:a,pathname:r,isAdmin:n,heading:i,onSignOut:s}){return(0,t.jsxs)($.Menu,{className:"min-w-64 max-w-80",children:[(0,t.jsx)($.MenuSection,{title:i,children:e.map(e=>(0,t.jsx)(q,{node:e,pathname:r},e.label))}),(0,t.jsx)($.MenuSeparator,{}),(0,t.jsxs)($.MenuSection,{children:[(0,t.jsxs)($.SubmenuTrigger,{children:[(0,t.jsxs)($.MenuItem,{textValue:"Apps",children:[(0,t.jsx)(G.LayoutGrid,{"aria-hidden":!0,size:16}),"Apps"]}),(0,t.jsxs)($.Menu,{className:"min-w-52",children:[(0,t.jsx)(q,{node:{...D.APPS_NODE,label:"All apps"},pathname:r}),a.map(e=>(0,t.jsx)(q,{node:e,pathname:r},e.href))]})]}),(0,t.jsxs)($.SubmenuTrigger,{children:[(0,t.jsxs)($.MenuItem,{textValue:"YouSpot",children:[(0,t.jsx)(o.Sparkles,{"aria-hidden":!0,size:16}),"YouSpot"]}),(0,t.jsx)($.Menu,{className:"min-w-48",children:D.YOUSPOT_MENU.map(e=>(0,t.jsx)(q,{node:e,pathname:r},e.href))})]})]}),n&&(0,t.jsxs)($.MenuSection,{children:[(0,t.jsx)($.MenuSeparator,{}),(0,t.jsx)(q,{node:D.ADMIN_NAV,pathname:r})]}),(0,t.jsx)($.MenuSeparator,{}),(0,t.jsx)($.MenuSection,{children:D.LEGAL_NAV.map(e=>(0,t.jsx)(q,{node:e,pathname:r},e.href))}),(0,t.jsx)($.MenuSeparator,{}),(0,t.jsx)($.MenuItem,{"data-track-id":P.TRACK_IDS.navSignOut,onAction:s,children:"Sign out"})]})}let Y="flex min-h-11 w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm no-underline outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring";function Q({node:e,pathname:a}){let r=(0,D.navItemIsCurrent)(e,a),n=e.icon;return(0,t.jsxs)(s.default,{href:e.href,"aria-current":r?"page":void 0,className:`${Y} ${r?"bg-selected font-medium text-selected-foreground":"text-foreground"}`,children:[n&&(0,t.jsx)(n,{"aria-hidden":!0,className:"size-4 shrink-0"}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col wrap-anywhere",children:[e.label,e.detail&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.detail})]})]})}function Z({title:e,nodes:a,pathname:r}){return(0,t.jsxs)("section",{className:"border-b border-border py-2",children:[(0,t.jsx)("h3",{className:"px-3 py-2 text-xs font-semibold text-muted-foreground",children:e}),a.map(e=>(0,t.jsx)(Q,{node:e,pathname:r},e.label))]})}function J({title:e,nodes:a,pathname:r}){return(0,t.jsxs)(W.Disclosure,{defaultExpanded:a.some(e=>(0,D.navItemIsCurrent)(e,r)),className:"min-w-0 border-b border-border py-1 [&_button]:min-h-11",children:[(0,t.jsx)(W.DisclosureHeader,{children:e}),(0,t.jsx)(W.DisclosurePanel,{children:a.map(e=>(0,t.jsx)(Q,{node:e,pathname:r},e.href))})]})}function X({account:e,apps:a,pathname:r,isAdmin:n}){return(0,t.jsxs)("nav",{"aria-label":"Account",children:[(0,t.jsx)(Z,{title:"Account",nodes:e,pathname:r}),(0,t.jsx)(J,{title:"Apps",nodes:[{...D.APPS_NODE,label:"All apps"},...a],pathname:r}),(0,t.jsx)(J,{title:"YouSpot",nodes:D.YOUSPOT_MENU,pathname:r}),n&&(0,t.jsx)(Z,{title:"Administration",nodes:[D.ADMIN_NAV],pathname:r}),(0,t.jsxs)("section",{className:"py-2",children:[(0,t.jsx)("h3",{className:"px-3 py-2 text-xs font-semibold text-muted-foreground",children:"Legal"}),D.LEGAL_NAV.map(e=>(0,t.jsx)(Q,{node:e,pathname:r},e.href))]})]})}function ee({onSignOut:e}){return(0,t.jsxs)(d.Button,{variant:"quiet",onPress:e,"data-track-id":P.TRACK_IDS.navSignOut,className:`${Y} h-auto justify-start`,children:[(0,t.jsx)(V.LogOut,{"aria-hidden":!0,
1className:"size-4"}),"Sign out"]})}let et="size-7 bg-accent text-[11px] text-accent-foreground",ea={sidebar:"sidebar-account-trigger",topbar:"topbar-account-trigger"};function er({avatarUrl:e,label:a,email:r,username:n,isAdmin:s,userView:l,onSignOut:o,variant:c="topbar",pathname:u}){let[p,h]=(0,i.useState)(null),m=(0,i.useCallback)(()=>h(null),[]),f=(0,N.useSessionStore)(e=>e.spaces.length>1),x={flags:(0,K.useFlags)(),showAdmin:!!s,multiSpace:f},g=(0,D.accountNavItems)(x,n),b=(0,D.visibleNavItems)(D.APPS_NODE.children??[],x),v=`${r||a}${s?" · admin":l?" · user view":""}`;(0,i.useEffect)(()=>{if(p)return window.addEventListener("resize",m),window.addEventListener("popstate",m),()=>{window.removeEventListener("resize",m),window.removeEventListener("popstate",m)}},[p,m]);let j=()=>{m(),o()},y={account:g,apps:b,pathname:u,isAdmin:s,onSignOut:j},S=(0,t.jsx)(R.Avatar,{name:a,src:e,className:et});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"inline-flex md:hidden",children:(0,t.jsxs)(U.DialogTrigger,{isOpen:"drawer"===p,onOpenChange:e=>h(e?"drawer":null),children:[(0,t.jsx)(d.Button,{id:`${ea[c]}-mobile`,variant:"quiet","aria-label":"Account menu",className:"size-11 rounded-full p-0 hover:bg-transparent pressed:bg-transparent",children:S}),(0,t.jsx)(z.SheetNavigation,{title:"Your account",placement:"right",header:(0,t.jsx)("div",{className:"min-w-0 wrap-anywhere text-sm text-muted-foreground",children:v}
1),headerClassName:"bg-accent/60 backdrop-blur-md supports-[-moz-appearance:none]:bg-accent",isOpen:"drawer"===p,onOpenChange:e=>h(e?"drawer":null),footer:(0,t.jsx)(ee,{onSignOut:j}),children:(0,t.jsx)(X,{...y})})]})}),(0,t.jsx)("span",{className:"hidden md:inline-flex",children:(0,t.jsxs)($.MenuTrigger,{placement:"sidebar"===c?"top start":"bottom end",isOpen:"dropdown"===p,onOpenChange:e=>h(e?"dropdown":null),children:[(0,t.jsxs)(d.Button,{variant:"quiet",id:ea[c],"aria-label":"Account menu",className:"sidebar"===c?"h-auto w-full justify-start gap-2 rounded-md px-2 py-1.5 group-data-[state=collapsed]/sidebar:justify-center group-data-[state=collapsed]/sidebar:px-0":"h-auto rounded-full p-0 hover:bg-transparent pressed:bg-transparent",children:[S,"sidebar"===c&&(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-left text-sm text-foreground group-data-[state=collapsed]/sidebar:sr-only",children:a})]}),(0,t.jsx)(H,{...y,heading:v})]})})]})}function en(e){let a=(0,l.usePagePathname)();return(0,t.jsx)(er,{...e,pathname:a},`${a}:${e.email??""}`)}e.s(["AVATAR_CLASS",0,et,"UserMenu",0,en],232608);var ei=e.i(230726),es=e.i(728864),el=e.i(40388),eo=e.i(92011),ed=e.i(561034);let ec="inline-flex cursor-pointer items-center border-0 bg-transparent p-0 font-[inherit] text-sm text-chrome-foreground/70 transition-colors hover:text-chrome-foreground",eu="inline-flex cursor-pointer items-center rounded-lg border-0 bg-primary px-4 py-2 font-[inherit] text-sm font-medium text-primary-foreground no-underline transition-colors hover:bg-primary-hover";function ep({returnTo:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{className:ec,href:e?`/sign-in?redirect_url=${encodeURIComponent(e)}`:"/sign-in",children:"Sign in"}),(0,t.jsx)(s.default,{className:eu,href:"/sign-up","data-track-id":"signup-cta-nav",children:"Sign up"})]})}function eh({user:e,isAdmin:a,onSignOut:r}){return(0,t.jsx)(en,{avatarUrl:e?.avatar_url,label:e?.first_name||e?.email||"Account",email:e?.email,username:e?.username,isAdmin:a,onSignOut:r})}function em({authenticated:e,signedOut:a,loading:r,user:n,isAdmin:i,onSignOut:s,returnTo:l}){return e?(0,t.jsx)(eh,{user:n,isAdmin:i,onSignOut:s}):!r&&a?(0,t.jsx)(ep,{returnTo:l}):(0,t.jsx)("span",{"aria-hidden":"true",className:"flex h-9 items-center",children:(0,t.jsx)(R.Avatar,{name:"",pending:!0,className:et})})}function ef({authenticated:e,arriving:a,loading:r,fallbackUser:n,fallbackLogout:s,isAdmin:l}){let{user:o,isLoaded:d}=(0,E.useUser)(),c=function(){let[e,t]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>t((0,ed.returnToUrl)()),[]),e}(),{active:u,email:p,name:h}=(0,es.useImpersonation)(),m=(0,el.useClerkLoadTimeout)(d),f=!e&&!a;if(!d)return m&&!r&&f?(0,t.jsx)(ep,{returnTo:c}):(0,t.jsx)(em,{authenticated:e,signedOut:f,loading:r,user:n,isAdmin:l,onSignOut:s,returnTo:c});if(f)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B.SignInButton,{signUpForceRedirectUrl:"/welcome",forceRedirectUrl:c,children:(0,t.jsx)("button",{className:ec,type:"button",children:"Sign in"})}),(0,t.jsx)(B.SignUpButton,{forceRedirectUrl:"/welcome",children:(0,t.jsx)("button",{className:eu,type:"button","data-track-id":"signup-cta-nav",children:"Sign up"})})]});if(u)return(0,t.jsx)(en,{avatarUrl:null,label:h||p||"Account",email:p,username:null,isAdmin:!1,onSignOut:s});if(o){let e=o.primaryEmailAddress?.emailAddress;return(0,t.jsx)(en,{avatarUrl:o.imageUrl,label:o.firstName||e||"Account",email:e,username:n?.username,isAdmin:l,onSignOut:s})}return(0,t.jsx)(eh,{user:n,isAdmin:l,onSignOut:s})}e.s(["default",0,function(){let e=(0,ei.useAuthMode)(),{authenticated:a,user:r,loading:n,logout:i,isAdmin:s}=(0,u.useAuth)(),l=(0,ei.useSessionArriving)();if("clerk"===e)return(0,t.jsx)(ef,{authenticated:a,arriving:l,loading:n,fallbackUser:r,fallbackLogout:i,isAdmin:s});if(!n&&a)return(0,t.jsx)(eh,{user:r,isAdmin:s,onSignOut:i});let o=(e,t)=>{e.preventDefault(),window.location.href=(0,eo.loginBridgeUrl)("signup"===t?window.location.href:(0,ed.returnToUrl)(),t)},d=`${eo.LOGIN_BRIDGE_ORIGIN}${eo.LOGIN_BRIDGE_PATH}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:ec,href:d,onClick:e=>o(e),children:"Sign in"}),(0,t.jsx)("a",{className:eu,href:`${d}?mode=signup`,onClick:e=>o(e,"signup"),children:"Sign up"})]})}],918942);var ex=e.i(700327),eg=e.i(759375),eb=e.i(232890),ev=e.i(367494),ej=e.i(179862),ey=e.i(677093);let eS={person:"Person",company:"Company",company_profile:"Company profile",product:"Product",event:"Event",group:"Group",user:"You",linkedin_connection:"LinkedIn connection",linkedin_account:"LinkedIn account",gmail_account:"Gmail account",hubspot_portal:"HubSpot portal",hubspot_company:"HubSpot company",file:"File",fact:"Fact",web_link:"Web link",application:"App"};e.s(["default",0,function({surface:e="chrome"}){let{signedIn:a}=(0,ey.useYouSpotAccess)(),{token:r}=(0,u.useAuth)(),[n,s]=(0,i.useState)(""),[l,o]=(0,i.useState)([]),[d,c]=(0,i.useState)(!1),[p,h]=(0,i.useState)(0),[m,f]=(0,i.useState)(!0),x=(0,i.useRef)(null),g=(0,i.useRef)(null),b=(0,i.useRef)(null),v=(0,i.useRef)(0);(0,i.useEffect)(()=>{f(!/windows|linux/i.test(window.navigator.userAgent))},[]),(0,i.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),x.current?.focus(),x.current?.select())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,i.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let j=(0,i.useCallback)(e=>{if(b.current&&clearTimeout(b.current),e.trim().length<2){o([]),c(!1);return}b.current=setTimeout(async()=>{let t=++v.current,a={};r&&(a["X-AgentAI-User-Token"]=r);
1let n=await fetch(`/api/graph/search?q=${encodeURIComponent(e.trim())}`,{headers:a,credentials:"include"}).catch(()=>null);if(!n||!n.ok||t!==v.current)return;let i=await n.json();o(Array.isArray(i.results)?i.results:[]),h(0),c(!0)},200)},[r]),y=e=>{window.location.href=e.href||`/brain/object/${e.object_id}`},S=/\s/.test(n.trim())?n.trim():null,w=+!!S+l.length,k=e=>{window.location.href=`/chat?prompt=${encodeURIComponent(e)}`};return a?(0,t.jsxs)("div",{className:(0,ej.cn)("navsearch","chrome"===e?"max-[560px]:hidden":"on-page","sidebar"===e&&"in-sidebar","topbar"===e&&"in-topbar"),ref:g,children:[(0,t.jsx)("style",{children:` 2 .navsearch{position:relative; flex:1; max-width:270px; margin:0 22px} 3 .navsearch.on-page{margin:0} 4 .navsearch.in-sidebar{flex:none; max-width:none} 5 .navsearch.in-topbar{flex:1; max-width:none; margin:0} 6 .navsearch.on-page .navsearch-box{background:var(--input-field, var(--card)); 7 border-color:var(--line)} 8 .navsearch.on-page .navsearch-box:focus-within{background:var(--card); 9 border-color:var(--line-strong)} 10 .navsearch.on-page .navsearch-icon{color:var(--ink-muted)} 11 .navsearch.on-page input{color:var(--slate)} 12 .navsearch.on-page input::placeholder{color:var(--ink-muted)} 13 .navsearch.on-page .navsearch-key{color:var(--ink-muted); border-color:var(--line)} 14 .navsearch.on-page .navsearch-panel{background:var(--paper); border-color:var(--line); 15 box-shadow:0 12px 32px rgba(20,20,19,.12)} 16 .navsearch.on-page .navsearch-row .navsearch-rowicon{color:var(--ink-muted)} 17 .navsearch.on-page .navsearch-row .navsearch-rowname{color:var(--slate)} 18 .navsearch.on-page .navsearch-row .navsearch-rowtype{color:var(--ink-muted)} 19 .navsearch.on-page .navsearch-empty{color:var(--ink-muted)} 20 .navsearch.on-page .navsearch-row.hl{background:var(--accent-soft)} 21 .navsearch.on-page .navsearch-row.hl .navsearch-rowname{color:var(--slate)} 22 .navsearch.on-page .navsearch-row.hl .navsearch-rowicon{color:var(--slate)} 23 .navsearch.on-page .navsearch-row.hl .navsearch-rowtype{color:var(--ink-muted)} 24 .navsearch .navsearch-box{display:flex; align-items:center; gap:8px; height:30px; 25 background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); 26 border-radius:999px; padding:0 12px; transition:border-color .15s, background .15s} 27 .navsearch .navsearch-box:focus-within{background:rgba(255,255,255,.12); 28 border-color:rgba(255,255,255,.38)} 29 .navsearch .navsearch-icon{color:rgba(255,255,255,.55); flex:none; display:inline-flex} 30 .navsearch input{flex:1; min-width:0; background:none; border:none; outline:none; 31 font-family:inherit; font-size:13.5px; color:#FFFFFF} 32 .navsearch input::placeholder{color:rgba(255,255,255,.5)} 33 .navsearch .navsearch-hint{display:flex; align-items:center; gap:3px; flex:none} 34 .navsearch .navsearch-key{font-family:var(--font-geist-mono),"SF Mono",ui-monospace,Menlo,monospace; 35 font-size:11px; line-height:1; color:rgba(255,255,255,.6); 36 border:1px solid rgba(255,255,255,.22); border-radius:5px; padding:3px 5px} 37 .navsearch .navsearch-panel{position:absolute; top:calc(100% + 10px); left:0; right:0; 38 background:var(--plum); border:1px solid var(--plum-line); border-radius:10px; padding:6px; 39 z-index:60; box-shadow:0 12px 32px rgba(0,0,0,.45)} 40 .navsearch .navsearch-row{display:flex; align-items:center; gap:10px; width:100%; 41 padding:8px 10px; border-radius:7px; background:none; border:none; cursor:pointer; 42 font-family:inherit; text-align:left} 43 .navsearch .navsearch-row.hl{background:rgba(240,82,30,.32); 44 box-shadow:inset 2.5px 0 0 var(--clay)} 45 .navsearch .navsearch-row.hl .navsearch-rowname{color:#FFFFFF} 46 .navsearch .navsearch-row.hl .navsearch-rowicon{color:#FFFFFF} 47 .navsearch .navsearch-row.hl .navsearch-rowtype{color:rgba(255,255,255,.75)} 48 .navsearch .navsearch-row .navsearch-rowicon{color:rgba(255,255,255,.5); flex:none; display:inline-flex} 49 .navsearch .navsearch-row .navsearch-rowname{flex:1; min-width:0; overflow:hidden; 50 text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; color:rgba(255,255,255,.9)} 51 .navsearch .navsearch-row .navsearch-rowtype{flex:none; font-size:11px; color:rgba(255,255,255,.45)} 52 .navsearch .navsearch-empty{padding:10px 12px; font-size:13px; color:rgba(255,255,255,.45)} 53 `}),(0,t.jsxs)("div",{className:"navsearch-box",children:[(0,t.jsx)("span",{className:"navsearch-icon",children:(0,t.jsx)(eb.Search,{size:14})}),(0,t.jsx)("input",{ref:x,value:n,placeholder:"Search or ask","aria-label":"Search your graph",onChange:e=>{s(e.target.value),j(e.target.value)},onFocus:()=>{l.length>0&&n.trim().length>=2&&c(!0)},onKeyDown:e=>{"Escape"===e.key?(c(!1),x.current?.blur()):"ArrowDown"===e.key&&d?(e.preventDefault(),h(e=>Math.min(e+1,w-1))):"ArrowUp"===e.key&&d?(e.preventDefault(),h(e=>Math.max(e-1,0))):"Enter"===e.key&&(d&&w>0?(e=>{if(S&&0===e)return k(S);let t=l[S?e-1:e];t&&y(t)})(p):S&&k(S))}}),(0,t.jsxs)("span",{className:"navsearch-hint","aria-hidden":"true",children:[(0,t.jsx)("span",{className:"navsearch-key",children:m?"â":"Ctrl"}),(0,t.jsx)("span",{className:"navsearch-key",children:"K"})]})]}),d&&(0,t.jsxs)("div",{className:"navsearch-panel",role:"listbox",children:[S&&(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":0===p,className:`navsearch-row${0===p?" hl":""}`,onMouseEnter:()=>h(0),onClick:()=>k(S),children:[(0,t.jsx)("span",{className:"navsearch-rowicon",children:(0,t.jsx)(_.MessageCircle,{size:14})}),(0,t.jsx)("span",{className:"navsearch-rowname",children:S}),(0,t.jsx)("span",{className:"navsearch-rowtype",children:"Ask in chat"})]}),0===w?(0,t.jsx)("div",{className:"navsearch-empty",children:"No matches in your graph."}):l.map((e,a)=>{var r;let n=S?a+1:a;return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":n===p,className:`navsearch-row${n===p?" hl":""}`,onMouseEnter:()=>h(n),onClick:()=>y(e),children:[(0,t.jsx)("span",{className:"navsearch-rowicon",children:"contact"===(r=e.type)||"user"===r||"linkedin_connection"===r?(0,t.jsx)(ev.User,{size:14}):"company"===r||"company_profile"===r||"hubspot_portal"===r||"hubspot_company"===r?(0,t.jsx)(ex.Building2,{size:14}):"application"===r?(0,t.jsx)(G.LayoutGrid,{size:14}):(0,t.jsx)(eg.Hexagon,{size:14})}),(0,t.jsx)("span",{className:"navsearch-rowname",children:e.name}),(0,t.jsx)("span",{className:"navsearch-rowtype",children:eS[e.type]||e.type})]},e.object_id)})]})]}):null}],816034);
53var ew=e.i(163753),ek=e.i(1799),eN=e.i(562918),eA=e.i(249472),eC=e.i(299875),e_=e.i(594154),eT=e.i(389760);async function eM(e){let t="https:"===window.location.protocol?"; secure":"";document.cookie=e?`${e_.VIEW_AS_COOKIE}=user; path=/; max-age=31536000; samesite=lax${t}`:`${e_.VIEW_AS_COOKIE}=; path=/; max-age=0; samesite=lax${t}`;let a=(0,eT.getSessionClient)();(0,eT.resetSession)(a),(0,eT.publishSessionInvalidation)(!0),await (0,eT.refreshSession)(a),window.location.reload()}e.s(["default",0,function(){let{isAdmin:e,userView:a}=(0,u.useAuth)(),[r,n]=(0,i.useState)(!1);if(!e&&!a)return null;let s=a?"Seeing the product as regular users do. Press to return to admin mode.":"Seeing the admin version of the product. Press to see it as regular users do.";return(0,t.jsxs)(eC.TooltipTrigger,{delay:300,children:[(0,t.jsx)(eN.Focusable,{children:(0,t.jsxs)("button",{type:"button","aria-label":s,"aria-pressed":a,disabled:r,"data-track-id":P.TRACK_IDS.navAdminView,onClick:()=>{n(!0),eM(!a)},className:"flex h-7 shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-full border w-7 sm:w-26 text-xs font-medium transition-colors duration-(--motion-fast) ease-out disabled:cursor-wait disabled:opacity-60 "+(a?"border-transparent bg-primary text-primary-foreground hover:bg-primary-hover":"border-border bg-transparent text-muted-foreground hover:bg-accent hover:text-foreground"),children:[a?(0,t.jsx)(ew.Eye,{"aria-hidden":!0,className:"size-3.5",strokeWidth:2}):(0,t.jsx)(ek.ShieldCheck,{"aria-hidden":!0,className:"size-3.5",strokeWidth:2}),(0,t.jsx)("span",{className:"max-sm:sr-only",children:a?"User view":"Admin"})]})}),(0,t.jsx)(eA.Tooltip,{placement:"bottom",children:s})]})}],80435)},766709,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=(0,a.createContext)(null);e.s(["AppDomainProvider",0,function({value:e,children:a}){return(0,t.jsx)(r.Provider,{value:e,children:a})},"useAppDomainName",0,function(){return(0,a.useContext)(r)}])},677093,512746,e=>{"use strict";var t=e.i(271645),a=e.i(857177),r=e.i(689605),n=e.i(148810);function i(){var e;let{loading:t,authenticated:r,user:i,youspot:s,isAdmin:l,refresh:o}=(0,a.useAuth)();(0,n.useSessionStore)(e=>e.clerkSignedIn),(0,n.useSessionStore)(e=>e.syncing);let d=(0,n.useSessionStore)(e=>e.syncFailed);return{stage:(e={loading:t,authenticated:r,syncOwed:(0,n.useSessionStore)(e=>
53e.syncOwed),syncFailed:d,syncSlow:(0,n.useSessionStore)(e=>e.syncSlow),backendStage:s?.stage,approvedAt:i?.youspot_approved_at,appliedAt:i?.youspot_applied_at}).loading?"loading":e.authenticated?e.backendStage?e.backendStage:e.approvedAt?"approved_setup":e.appliedAt?"applied":"new":!e.syncOwed||e.syncFailed||e.syncSlow?"anonymous":"signed_in_unsynced",admin:!!(s?.admin??l),nextStep:s?.next_step??null,stepsDone:s?.steps_done??0,stepsTotal:s?.steps_total??0,profileConfirmed:!!s?.profile_confirmed,activated:!!s?.activated,goal:s?.goal??null,refresh:o}}e.s(["useJoinWaitlist",0,function(){let{refresh:e}=(0,a.useAuth)(),[n,i]=(0,t.useState)(!1),[s,l]=(0,t.useState)(null);return{join:(0,t.useCallback)(async()=>{i(!0),l(null);try{await r.api.youspot.joinWaitlist(),await e()}catch(e){l(e instanceof Error?e.message:"Could not join the waitlist")}finally{i(!1)}},[e]),joining:n,error:s}},"useYouSpotAccess",0,function(){let{loading:e,authenticated:t}=(0,a.useAuth)(),{stage:r}=i();return{loading:e,signedIn:!!t,approved:"approved_setup"===r||"ready"===r,waitlisted:"applied"===r,canJoinWaitlist:"new"===r,awaitingBeta:"applied"===r||"new"===r}},"useYouSpotState",0,i],677093);var s=e.i(578380),l=e.i(310108);e.s(["useVisibleNav",0,function(e){let t=(0,n.useSessionStore)(e=>e.spaces.length>1),a=(0,l.useFlags)(),r=(0,n.useSessionStore)(e=>e.user?.username),i={flags:a,showAdmin:e,multiSpace:t};return(0,s.visibleNav)(s.SIDEBAR_NAV,i).map(e=>"Account"===e.title?{...e,items:(0,s.accountNavItems)(i,r)}:e)}],512746)},497904,e=>{"use strict";var t=e.i(954616),a=e.i(266027),r=e.i(912598),n=e.i(689605),i=e.i(857177),s=e.i(972743),l=e.i(113894),o=e.i(701281);function d(e){return{queryKey:o.queryKeys.profile.fields(),queryFn:({signal:e})=>n.api.profile.fields(e),enabled:e}}function c(){let{authenticated:e,loading:t}=(0,i.useAuth)();return e&&!t}function u(e){let a=(0,r.useQueryClient)();return(0,t.useMutation)({mutationFn:e,onSuccess:e=>a.setQueryData(o.queryKeys.profile.fields(),e)})}e.s(["useAccountDeletePreview",0,function(e){let t=c();return(0,a.useQuery)({queryKey:o.queryKeys.account.deletePreview(),queryFn:({signal:e})=>n.api.profile.deletePreview(e),enabled:e&&t,staleTime:6e4})},"useDeleteAccount",0,function(){let e=(0,r.useQueryClient)();return(0,t.useMutation)({mutationFn:({confirmEmail:e,survey:t})=>(0,l.withReverification)(a=>n.api.profile.deleteAccount(e,t,a)),onSuccess:()=>e.removeQueries()})},"useProfileFieldValues",0,function({initialData:e,enabled:t}){return(0,a.useQuery)({queryKey:o.queryKeys.profile.fieldValues(),queryFn:({signal:e})=>n.api.profile.fieldValues(e),initialData:e??void 0,enabled:t})},"useSaveProfileFieldValues",0,function(e="editor"){let a=(0,r.useQueryClient)();return(0,t.useMutation)({mutationFn:t=>n.api.profile.saveFieldValues(t,e),onSuccess:(t,r)=>{if(a.setQueryData(o.queryKeys.profile.fieldValues(),t),"profile_bar"===e)for(let e of t.fields)e.field_id in r&&(0,s.trackProfileBarAnswered)(e,"answered")}})},"useSaveSocialAccounts",0,function(){return u(n.api.profile.saveSocial)},"useSaveUserTimezone",0,function(){return u(e=>n.api.profile.saveTimezone(e))},"useSaveUserWebsite",0,function(){return u(e=>n.api.profile.saveWebsite(e))},"useSkipProfileField",0,function(){let e=(0,r.useQueryClient)();return(0,t.useMutation)({mutationFn:e=>n.api.profile.skipField(e),onSuccess:(t,a)=>{e.setQueryData(o.queryKeys.profile.fieldValues(),t);let r=t.fields.find(e=>e.field_id===a);r&&(0,s.trackProfileBarAnswered)(r,"skipped")}})},"useSocialAccounts",0,function(){return(0,a.useQuery)({...d(c()),select:e=>({linkedin:e.linkedin_profile_url??"",linkedinPublished:e.linkedin_profile_published??!0,twitter:e.twitter_username??""})})},"useUserTimezone",0,function(){return(0,a.useQuery)({...d(c()),select:e=>e.timezone??""})},"useUserWebsite",0,function(){return(0,a.useQuery)({...d(c()),select:e=>e.primary_company_domain??""})}])},66072,277082,e=>{"use strict";var t=e.i(910063);let a={kind:"image",src:"/youspot-logo-v5.svg",alt:"YouSpot"},r={kind:"wordmark",key:"hubgrader",alt:"HubGrader"};Object.values(t.default).reduce((e,t)=>{if(t.logo)for(let a of t.domains)e[a]=t.logo;return e},{});let n={brandgrader:"BrandGrader",domainvalue:"DomainValue",companyresearch:"
53Company Research",metaprompt:"MetaPrompt",imagegen:"ImageGen",omni:"Omni",videoanalyst:"Video Analyst",secondbrain:"Second Brain",socialmarketer:"SocialMarketer",xgrader:"XGrader",dadjoke:"DadJoke",domainsuggest:"DomainSuggest",domainsales:"DomainSales",prospectfinder:"ProspectFinder",socialboard:"SocialBoard",socialpro:"SocialPro",hubcode:"HubCode",hubcli:"HubCLI",hubgrader:"HubGrader",chimpgrader:"ChimpGrader",jsondata:"JSONData",delights:"Delights",gohubspot:"GoHubSpot"};Object.entries(t.default).reduce((e,[t,a])=>{let r=n[t];if(r&&a.route.startsWith("/"))for(let t of a.domains)e[t]=r;return e},{}),e.s(["DEFAULT_BRAND",0,a,"HUBGRADER_BRAND",0,r],66072);var i=e.i(843476),s=e.i(271645),l=e.i(618566);let o=(0,s.createContext)(a);e.s(["SiteBrandProvider",0,function({value:e,children:t}){return(0,i.jsx)(o.Provider,{value:e,children:t})},"useSiteBrand",0,function(){let e=(0,s.useContext)(o),t=(0,l.usePathname)()??"";return"/hubgrader"===t||t.startsWith("/hubgrader/")?r:e}],277082)},952443,e=>{"use strict";let t=(0,e.i(235884).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],952443)},242286,e=>{"use strict";let t=(0,e.i(235884).default)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);e.s(["Coins",0,t],242286)},846788,e=>{"use strict";let t=(0,e.i(235884).default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);e.s(["GripVertical",0,t],846788)},644713,e=>{"use strict";let t=(0,e.i(235884).default)("message-square-plus",[["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"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);e.s(["MessageSquarePlus",0,t],644713)},482425,e=>{"use strict";var t=e.i(375439);e.s(["Moon",()=>t.default])},505410,680870,e=>{"use strict";var t=e.i(235884);let a=(0,t.default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);e.s(["Pin",0,a],505410);let r=(0,t.default)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);e.s(["PinOff",0,r],680870)},1799,e=>{"use strict";let t=(0,e.i(235884).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],1799)},598583,e=>{"use strict";let t=(0,e.i(235884).default)("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);e.s(["SquareArrowOutUpRight",0,t],598583)},635169,e=>{"use strict";let t=(0,e.i(235884).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],635169)},109509,e=>{"use strict";var t=e.i(740285);e.s(["useUser",()=>t.h])},558261,e=>{"use strict";e.s(["DUPLICATES_COPY",0,{title:"Possible duplicates",description:"People who might be in here twice.",tabReview:"To review",tabLinked:"Linked",scan:"Look for duplicates",scanQueued:"On it. Anyone who looks like the same person will appear here.",samePerson:"Same person",open:"Open",notTheSame:"Not the same",linked:"Linked",keptApart:"Kept apart",unlink:"Unlink",toastLinked:"Linked {name}.",toastUnlinked:"Unlinked. It's back in your review list.",toastKeptApart:"Kept apart. You won't be asked about this pair again.",emptyNothingYet:"Nothing to review yet. We look for people who share an email, phone, profile or name. Nothing is ever linked without you.",emptyLinked:"Nothing linked yet. Anything you link shows up here, and you can undo it.",errorTitle:"Couldn't load your review list.",merge:"Merge",mergeTitle:"Merge into one person?",mergeBody:"Pick the one to keep. It picks up everything from the other: connections, notes, tags and any details it's missing. The other is hidden, not deleted, and Undo merge brings it back.",keepThisOne:"Keep this one",keepAria:"Keep {name}",mergeAria:"Merge {left} and {right}",undoMergeAria:"Undo merge into {name}",mergeCancel:"Not now",toastMerged:"Merged into {name}.",mergedInto:"Merged into {name}",undoMerge:"Undo merge",toastUnmerged:"Unmerged. Both are back.",mergeFailed:"Couldn't merge them. Try again in a moment.",unmergeFailed:"Couldn't undo the merge. Try again in a moment.",unmergeKeptDeleted:"{name} is deleted. Restore it first, then undo the merge.",unlinkMerged:"Undo the merge first, then you can unlink them."},"DUPLICATE_SIGNAL_LABELS",0,{email:"Same email",phone:"Same phone",profile_url:"Same profile",name:"Same name"}])}]);
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.