PageSourceSearch

https://thetool.company/_next/static/chunks/0sy3qi-cdk8fg.js

js thetool.company collected 2026-10-02 01:53:34 UTC 31,986 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14050,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(431343),a=e.i(495242),s=e.i(29686),l=e.i(327147);e.s(["AudioPlayer",0,function({src:e,filename:i,title:o,subtitle:c,id:d}){let u=d??e,m=o??i??"Voice note",x=(0,s.useMediaPlayer)(),p=x.current?.id===u,h=(0,r.useRef)(null),[f,g]=(0,r.useState)(!1),b=p&&x.playing,w=p&&x.loading,y=p?x.progress:0,v=p?x.duration:0,j=p?x.currentTime:0,N=p?x.speed:1,k=p&&x.error,S=e=>{let t=h.current;if(!t||!p)return;let r=t.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e-r.left)/r.width));x.seek(n)};return k?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-muted/60 px-3 py-2.5 min-w-[200px]",children:[(0,t.jsx)(n.Play,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Voice note unavailable"}),e&&(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline ml-auto",children:"Download"})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-muted/60 px-3 py-2.5 min-w-[200px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{p?x.toggle():x.play({id:u,kind:"audio",src:e,title:m,subtitle:c})},className:"h-8 w-8 rounded-full flex items-center justify-center shrink-0 bg-primary/10 hover:bg-primary/20 transition-colors",children:w?(0,t.jsx)(l.ButtonSpinner,{}):b?(0,t.jsx)(a.Pause,{className:"h-3.5 w-3.5 text-primary"}):(0,t.jsx)(n.Play,{className:"h-3.5 w-3.5 text-primary ml-0.5"})}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col gap-0.5 min-w-0",children:[(0,t.jsxs)("div",{ref:h,className:"relative h-4 flex items-center cursor-pointer group",onMouseDown:e=>{if(!p)return;e.preventDefault(),g(!0),S(e.clientX);let t=e=>S(e.clientX),r=()=>{g(!1),window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",r)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",r)},children:[(0,t.jsx)("div",{className:"w-full h-1.5 rounded-full bg-black/10 overflow-hidden",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-primary",style:{width:`${100*y}%`,transition:f?"none":"width 0.1s"}})}),(0,t.jsx)("div",{className:"absolute h-3 w-3 rounded-full bg-primary shadow-sm -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity",style:{left:`${100*y}%`,opacity:f?1:void 0}})]}),(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:p?(0,s.formatMediaTime)(b||f?j:v):"0:00"})})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{if(!p)return;let e=s.PLAYBACK_SPEEDS.indexOf(N),t=s.PLAYBACK_SPEEDS[(e+1)%s.PLAYBACK_SPEEDS.length];x.setSpeed(t)},className:"shrink-0 text-[10px] font-semibold text-muted-foreground hover:text-foreground bg-muted rounded-full px-1.5 py-0.5 min-w-[32px] transition-colors",children:[N,"x"]})]})}])},190895,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(476819),a=e.i(630374),s=e.i(167881),l=e.i(37727),i=e.i(440160),o=e.i(778917),c=e.i(735501),d=e.i(730896),u=e.i(87316),m=e.i(424154),x=e.i(647163);e.i(807567);var p=e.i(611423),h=e.i(610384),f=e.i(761691);let g=["w-full","w-11/12","w-4/5","w-full","w-10/12","w-full","w-3/4","w-11/12","w-2/3"];function b({compact:e=!1}){let r=e?5:g.length;return(0,t.jsxs)("div",{className:"w-full p-4 space-y-2.5",children:[!e&&(0,t.jsx)(p.Skeleton,{className:"h-6 w-2/5 mb-2"}),Array.from({length:r}).map((e,r)=>(0,t.jsx)(p.Skeleton,{className:(0,x.cn)("h-4",g[r%g.length])},r))]})}function w(e,t){let r=(e||"").toLowerCase(),n=(t||"").toLowerCase();return r.startsWith("image/")?"image":"application/pdf"===r||n.endsWith(".pdf")?"pdf":n.endsWith(".csv")||"text/csv"===r?"csv":n.endsWith(".ics")||"text/calendar"===r?"calendar":n.endsWith(".docx")||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"===r?"docx":n.endsWith(".xlsx")||n.endsWith(".xls")||n.endsWith(".xlsm")||n.endsWith(".xlsb")||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===r||"application/vnd.ms-excel"===r?"xlsx":"other"}function y(e,r,n="h-5 w-5"){if((0,h.isSheetsFile)(e,r)||(0,h.isDocsFile)(e,r))return(0,t.jsx)(h.GoogleFileTypeIcon,{mimeType:e,filename:r,className:n});let a=w(e,r);return"image"===a?(0,t.jsx)(c.ImageIcon,{className:`${n} text-blue-500`}):"pdf"===a?(0,t.jsx)(f.PdfIcon,{className:n}):"calendar"===a?(0,t.jsx)(u.Calendar,{className:`${n} text-primary`}):(0,t.jsx)(d.FileIcon,{className:`${n} text-muted-foreground`})}function v(e){return!e||e<=0?"":e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function j({url:e}){let[n,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[d,u]=(0,r.useState)(0);if((0,r.useEffect)(()=>{let t=!1;return c(!0),i(null),fetch(e).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);let r=await e.text();t||(a(function(e){let t=[],r="",n=!1,a=[];for(let s=0;s<e.length;s++){let l=e[s];n?'"'===l&&'"'===e[s+1]?(r+='"',s++):'"'===l?n=!1:r+=l:'"'===l?n=!0:","===l?(a.push(r),r=""):"\n"===l||"\r"===l?(a.push(r),r="",a.some(e=>
1e.trim())&&t.push(a),a=[],"\r"===l&&"\n"===e[s+1]&&s++):r+=l}return(r||a.length)&&(a.push(r),a.some(e=>e.trim())&&t.push(a)),t}(r)),c(!1))}).catch(e=>{t||(i(e instanceof Error?e.message:"Failed to load"),c(!1))}),()=>{t=!0}},[e,d]),o)return(0,t.jsx)(b,{});if(l||!n?.length)return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:l||"Unable to preview CSV"}),(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>u(e=>e+1),children:"Retry"})]});let m=n[0],x=n.slice(1);return(0,t.jsx)("div",{className:"w-full h-[70vh] overflow-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm border-collapse",children:[(0,t.jsx)("thead",{className:"sticky top-0 z-10",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-3 py-2 text-left text-[11px] font-semibold text-muted-foreground bg-muted border-b border-r whitespace-nowrap",children:"#"}),m.map((e,r)=>(0,t.jsx)("th",{className:"px-3 py-2 text-left text-[11px] font-semibold text-muted-foreground bg-muted border-b border-r whitespace-nowrap",children:e||`Column ${r+1}`},r))]})}),(0,t.jsx)("tbody",{children:x.map((e,r)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/30 transition-colors",children:[(0,t.jsx)("td",{className:"px-3 py-1.5 text-[11px] text-muted-foreground border-b border-r tabular-nums",children:r+1}),m.map((r,n)=>(0,t.jsx)("td",{className:"px-3 py-1.5 text-[13px] border-b border-r whitespace-nowrap max-w-[300px] truncate",children:e[n]??""},n))]},r))})]})})}let N=["p","br","div","span","b","strong","em","i","u","s","strike","a","img","ul","ol","li","blockquote","pre","code","h1","h2","h3","h4","h5","h6","table","thead","tbody","tfoot","tr","td","th","caption","figure","figcaption","hr","sup","sub","small"],k=["href","src","target","rel","alt","class","width","height","style","align","valign","colspan","rowspan","border","cellpadding","cellspacing","bgcolor"];function S({url:n}){let[a,l]=(0,r.useState)(null),[i,o]=(0,r.useState)(null),[c,d]=(0,r.useState)(!0),[u,x]=(0,r.useState)(0);return((0,r.useEffect)(()=>{let t=!1;return d(!0),o(null),fetch(n).then(async r=>{if(!r.ok)throw Error(`HTTP ${r.status}`);let n=await r.arrayBuffer();if(t)return;let a=(await e.A(684934)).default,s=await a.convertToHtml({arrayBuffer:n});if(t)return;let i=s?.value??"";l(m.default.sanitize(i,{ALLOWED_TAGS:N,ALLOWED_ATTR:k})),d(!1)}).catch(e=>{t||(o(e instanceof Error?e.message:"Failed to load"),d(!1))}),()=>{t=!0}},[n,u]),c)?(0,t.jsx)(b,{}):i||!a?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:i||"Unable to preview DOCX"}),(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>x(e=>e+1),children:"Retry"})]}):(0,t.jsx)("div",{className:"w-full h-[70vh] overflow-auto px-6 py-4 text-sm prose prose-sm max-w-none dark:prose-invert [&_table]:w-full [&_table]:table-fixed [&_table]:border-collapse [&_table]:my-2 [&_td]:border [&_td]:border-border [&_td]:p-2.5 [&_td]:align-top [&_td]:break-words [&_th]:border [&_th]:border-border [&_th]:p-2.5 [&_th]:align-top [&_th]:font-semibold [&_th]:bg-muted [&_th]:break-words [&_p]:my-1",dangerouslySetInnerHTML:{__html:a}})}function C({url:n,compact:a=!1}){let[l,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(0),[d,u]=(0,r.useState)(null),[m,p]=(0,r.useState)(!0),[h,f]=(0,r.useState)(0);if((0,r.useEffect)(()=>{let t=!1;return p(!0),u(null),fetch(n).then(async r=>{if(!r.ok)throw Error(`HTTP ${r.status}`);let n=await r.arrayBuffer();if(t)return;let a=await e.A(342078),s=a.read(n,{type:"array",cellFormula:!1,cellHTML:!1}),l=s.SheetNames.map(e=>{let t=s.Sheets[e];return{name:e,rows:a.utils.sheet_to_json(t,{header:1,blankrows:!1,defval:"",raw:!1}).map(e=>e.map(e=>String(e??"")))}});t||(i(l),c(0),p(!1))}).catch(e=>{t||(u(e instanceof Error?e.message:"Failed to load"),p(!1))}),()=>{t=!0}},[n,h]),m)return(0,t.jsx)(b,{compact:a});if(d||!l?.length)return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:d||"
1Unable to preview spreadsheet"}),(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>f(e=>e+1),children:"Retry"})]});let g=l[o].rows,w=a?12:500,y=g.slice(0,w),v=Math.min(y.reduce((e,t)=>Math.max(e,t.length),0),a?8:50),j=y[0]??[],N=y.slice(1),k=g.length>w;return(0,t.jsxs)("div",{className:(0,x.cn)("w-full flex flex-col",a?"":"h-[70vh]"),children:[l.length>1&&(0,t.jsx)("div",{className:"flex items-center gap-1 border-b bg-muted/30 px-2 overflow-x-auto shrink-0",children:l.map((e,r)=>(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),c(r)},className:(0,x.cn)("px-3 py-1.5 text-[11px] font-medium whitespace-nowrap border-b-2 transition-colors",r===o?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"),children:e.name},e.name+r))}),(0,t.jsxs)("div",{className:(0,x.cn)("overflow-auto",a?"max-h-64":"flex-1"),children:[(0,t.jsxs)("table",{className:"w-full text-sm border-collapse",children:[(0,t.jsx)("thead",{className:"sticky top-0 z-10",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-2.5 py-1.5 text-left text-[11px] font-semibold text-muted-foreground bg-muted border-b border-r whitespace-nowrap",children:"#"}),Array.from({length:v}).map((e,r)=>(0,t.jsx)("th",{className:"px-2.5 py-1.5 text-left text-[11px] font-semibold text-muted-foreground bg-muted border-b border-r whitespace-nowrap",children:j[r]||`Column ${r+1}`},r))]})}),(0,t.jsx)("tbody",{children:N.map((e,r)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/30 transition-colors",children:[(0,t.jsx)("td",{className:"px-2.5 py-1 text-[11px] text-muted-foreground border-b border-r tabular-nums",children:r+1}),Array.from({length:v}).map((r,n)=>(0,t.jsx)("td",{className:"px-2.5 py-1 text-[12px] border-b border-r whitespace-nowrap max-w-[260px] truncate",children:e[n]??""},n))]},r))})]}),k&&(0,t.jsxs)("div",{className:"px-3 py-2 text-[11px] text-muted-foreground bg-muted/30 border-t",children:["Showing first ",w," rows of ",g.length,"."]})]})]})}function _({url:e,mimeType:n,filename:c,size:d,open:u,onOpenChange:m}){let[x,p]=(0,r.useState)(!0),[h,f]=(0,r.useState)(!1),[g,N]=(0,r.useState)(null),[k,M]=(0,r.useState)(null),[E,L]=(0,r.useState)(0),T=w(n,c);(0,r.useEffect)(()=>{u&&(p(!0),f(!1),N(null),M(null))},[u,e]);let P="image"===T||"pdf"===T;function A(){let t=document.createElement("a");t.href=e,t.download=c,t.click()}return(0,r.useEffect)(()=>{if(!u||!P)return;let t=!1;return p(!0),f(!1),fetch(e).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.blob()}).then(e=>{t||(M(t=>(t&&URL.revokeObjectURL(t),URL.createObjectURL(e))),p(!1))}).catch(e=>{t||(f(!0),N(e instanceof Error?e.message:"Unknown error"),p(!1))}),()=>{t=!0,M(e=>(e&&URL.revokeObjectURL(e),null))}},[u,e,P,E]),(0,t.jsx)(a.Dialog,{open:u,onOpenChange:m,children:(0,t.jsxs)(a.DialogContent,{showCloseButton:!1,container:null,className:"sm:max-w-3xl w-full max-h-[85vh] p-0 gap-0 overflow-hidden flex flex-col rounded-2xl bg-card",children:[(0,t.jsx)(a.DialogTitle,{className:"sr-only",children:c}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b bg-card",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[y(n,c),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium truncate",children:c}),!!d&&(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:v(d)})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:A,children:(0,t.jsx)(i.Download,{className:"h-4 w-4"})}),(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:function(){window.open(e,"_blank")},title:"Open in new tab",children:(0,t.jsx)(o.ExternalLink,{className:"h-4 w-4"})}),(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>m(!1),children:(0,t.jsx)(l.X,{className:"h-4 w-4"})})]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-auto min-h-[300px] relative",children:[("image"===T||"pdf"===T)&&(0,t.jsxs)(t.Fragment,{children:[x&&!h&&(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none",children:(0,t.jsx)(b,{})}),h?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center px-4 py-12",children:[(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Failed to load ","pdf"===T?"PDF":"image"]}
1),g&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground/80 max-w-md",children:g}),(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>L(e=>e+1),children:"Retry"})]}):k?"pdf"===T?(0,t.jsx)("iframe",{src:`${k}#view=FitH&toolbar=0`,className:"block w-full h-[70vh] border-0",title:c}):(0,t.jsx)("img",{src:k,alt:c,className:"block max-w-full h-auto mx-auto"}):null]}),"csv"===T&&(0,t.jsx)(j,{url:e}),"docx"===T&&(0,t.jsx)(S,{url:e}),"xlsx"===T&&(0,t.jsx)(C,{url:e}),"image"!==T&&"pdf"!==T&&"csv"!==T&&"docx"!==T&&"xlsx"!==T&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 py-12 text-center",children:[y(n,c),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:c}),!!d&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:v(d)})]}),(0,t.jsxs)(s.Button,{size:"sm",onClick:A,children:[(0,t.jsx)(i.Download,{className:"h-3.5 w-3.5 mr-1.5"}),"Download"]})]})]})]})})}function M({url:e,mimeType:n,filename:a,size:s,className:l}){let[i,o]=(0,r.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(!0),className:l??"flex items-center gap-2.5 rounded-lg border bg-background/50 px-3 py-2.5 text-sm hover:bg-accent transition-colors text-left max-w-[260px] cursor-pointer",children:[y(n,a),(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"truncate font-medium text-xs",children:a}),!!s&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:v(s)})]})]}),i&&(0,t.jsx)(_,{url:e,mimeType:n,filename:a,size:s,open:i,onOpenChange:o})]})}e.s(["DocumentPreviewModal",0,_,"InlineDocumentPreview",0,function({url:e,mimeType:a,filename:s,size:l,maxWidth:i=320}){let[o,c]=(0,r.useState)(!1),d=w(a,s);return"pdf"===d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 overflow-hidden bg-background/50 shadow-sm w-full",style:{maxWidth:i},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"flex items-center gap-2 w-full px-3 py-2 border-b bg-card hover:bg-muted/40 transition-colors text-left cursor-pointer",children:[y(a,s,"h-4 w-4"),(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"truncate font-medium text-xs",children:s}),(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["PDF",l?` \xb7 ${v(l)}`:""]})]})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"block w-full relative cursor-pointer group",title:`Open ${s}`,children:[(0,t.jsx)("iframe",{src:`${e}#toolbar=0&navpanes=0&view=FitH&page=1`,title:s,className:"block w-full aspect-[17/22] bg-white pointer-events-none",loading:"lazy"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/5 transition-colors"})]})]}),o&&(0,t.jsx)(_,{url:e,mimeType:a,filename:s,size:l,open:o,onOpenChange:c})]}):"image"===d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>c(!0),className:"block rounded-lg overflow-hidden border border-border/30 bg-muted/20 hover:opacity-90 transition-opacity cursor-pointer",title:`Open ${s}`,children:(0,t.jsx)("img",{src:e,alt:s,className:"block max-h-[280px] object-contain",style:{maxWidth:`min(${i}px, 100%)`},loading:"lazy"})}),o&&(0,t.jsx)(_,{url:e,mimeType:a,filename:s,size:l,open:o,onOpenChange:c})]}):"xlsx"===d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 overflow-hidden bg-background/50 shadow-sm w-full",style:{maxWidth:(0,n.designPx)(i+80)},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"flex items-center gap-2 w-full px-3 py-2 border-b bg-card hover:bg-muted/40 transition-colors text-left cursor-pointer",children:[y(a,s,"h-4 w-4"),(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"truncate font-medium text-xs",children:s}),(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["Spreadsheet",l?` \xb7 ${v(l)}`:""]})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>c(!0),className:"block w-full text-left cursor-pointer group bg-white",title:`Open ${s}`,children:(0,t.jsx)(C,{url:e,compact:!0})})]}),o&&(0,t.jsx)(_,{url:e,mimeType:a,filename:s,size:l,open:o,onOpenChange:c})]}):(0,t.jsx)(M,{url:e,mimeType:a,filename:s,size:l})},"formatFileSize",0,v])},675779,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(174080),a=e.i(647163);e.i(728231);var s=e.i(993899),l=e.i(86906);let i=(0,r.memo)(function({reactions:e,onReact:r}){return e.length?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 mt-0.5",children:e.map(e=>(0,t.jsxs)("button",{type:"button",className:(0,a.cn)("inline-flex items-center gap-1 rounded-xl border px-2 py-0.5 text-[11px] leading-none transition-all duration-150 min-w-[24px] justify-center",e.viewerReacted?"border-chart-1/60 bg-c
1hart-1/10 dark:border-chart-1/50 dark:bg-chart-1/15 hover:bg-chart-1/15 dark:hover:bg-chart-1/20":"border-border bg-muted/50 hover:bg-muted dark:border-border dark:bg-muted/30 dark:hover:bg-muted/50"),onClick:()=>r?.(e.emoji,e.viewerReacted?"remove":"add"),title:`${e.emoji} ${e.count}`,children:[(0,t.jsx)("span",{className:"text-[13px] leading-none",children:e.emoji}),e.count>1&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground font-medium",children:e.count})]},e.emoji))}):null});e.s(["MessageReactions",0,i,"ReactionPicker",0,function({onReact:e,onClose:i,anchorRef:o}){let c=(0,l.usePaneContainer)(),[d,u]=(0,r.useState)({position:"fixed",zIndex:9999}),[m,x]=(0,r.useState)(!1),p=(0,r.useRef)(0);(0,r.useEffect)(()=>{p.current=Date.now()},[]),(0,r.useEffect)(()=>{if(!o.current)return;let e=o.current.getBoundingClientRect(),t=c?(0,l.findScaledFrame)(c):null;if(t){let r=t.scale,n=(e.top-t.rect.top)/r,a=(e.bottom-t.rect.top)/r,s=(e.left-t.rect.left)/r,l=t.height-a-8;u({position:"absolute",zIndex:9999,top:Math.max(8,Math.min(n-8>=l||l<360?n-360-8:a+8,t.height-360-8)),left:Math.max(8,Math.min(s,t.width-280-8))}),x(!0);return}x(!1);let r=window.visualViewport,n=r?r.height:window.innerHeight,a=r?r.width:window.innerWidth,s=r?r.offsetTop:0,i=r?r.offsetLeft:0,d={position:"fixed",zIndex:9999},m=e.top-s-8,p=s+n-e.bottom-8;m>=p||p<360?d.top=Math.max(s+8,Math.min(e.top-360-8,s+n-360-8)):d.top=Math.max(s+8,Math.min(e.bottom+8,s+n-360-8)),d.left=Math.max(i+8,Math.min(e.left,i+a-280-8)),u(d)},[o,c]);let h=(0,r.useCallback)(()=>{Date.now()-p.current<150||i()},[i]),f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,a.cn)(m?"absolute":"fixed","inset-0 z-[9998]"),onClick:h}),(0,t.jsx)("div",{style:d,onClick:e=>e.stopPropagation(),children:(0,t.jsx)(s.EmojiPicker,{onSelect:t=>{e(t),i()},onClose:i})})]});return m&&c?(0,n.createPortal)(f,c):"u"<typeof document?f:(0,n.createPortal)(f,document.body)}])},764355,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(138108);let a=/(^|[^A-Za-z0-9_])@(\d{7,20})\b/g;function s(e,t){return t[e]??t[e.slice(-8)]}let l=(0,r.memo)(function({url:e}){let[n,a]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let t=!1;return fetch(`/api/og-preview?url=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():null).then(e=>{!t&&e&&(e.title||e.image)&&a(e)}).catch(()=>{}),()=>{t=!0}},[e]),!n)return null;let s=(()=>{try{return new URL(e).hostname.replace(/^www\./,"")}catch{return""}})();return(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"block rounded-lg overflow-hidden border border-black/5 mt-1.5 mb-0.5 hover:opacity-90 transition-opacity",children:[n.image&&(0,t.jsx)("img",{src:n.image,alt:"",className:"w-full h-32 object-cover",onError:e=>{e.target.style.display="none"}}),(0,t.jsxs)("div",{className:"px-2.5 py-2 bg-black/[0.03]",children:[s&&(0,t.jsx)("p",{className:"text-[10px] text-gray-500 uppercase tracking-wide mb-0.5",children:s}),n.title&&(0,t.jsx)("p",{className:"text-xs font-medium text-gray-900 line-clamp-2",children:n.title}),n.description&&(0,t.jsx)("p",{className:"text-[11px] text-gray-500 line-clamp-2 mt-0.5",children:n.description})]})]})}),i=(0,r.memo)(function({text:e,mentionNames:i,inline:o=!1}){let c=(0,n.extractFirstUrl)(e),d=(0,r.useMemo)(()=>{if(!i||0===Object.keys(i).length)return[(0,t.jsx)(n.MessageText,{text:e},"t")];let r=[],l=0;for(let o of e.matchAll(a)){let a=o.index,c=o[1],d=o[2],u=a+c.length,m=a+o[0].length,x=s(d,i);x&&(u>l&&r.push((0,t.jsx)(n.MessageText,{text:e.slice(l,u)},`t-${l}`)),r.push((0,t.jsxs)("span",{className:"font-semibold text-gray-900 dark:text-gray-100",children:["@",x]},`m-${u}`)),l=m)}return l<e.length&&r.push((0,t.jsx)(n.MessageText,{text:e.slice(l)},`t-${l}`)),r.length>0?r:[(0,t.jsx)(n.MessageText,{text:e},"t")]},[e,i]);return o?(0,t.jsx)("span",{className:"whitespace-pre-wrap break-words [word-break:break-word] [overflow-wrap:anywhere]",children:d}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"whitespace-pre-wrap break-words [word-break:break-word] [overflow-wrap:anywhere]",children:d}),c&&(0,t.jsx)(l,{url:c})]})});e.s(["LinkifiedText",0,i,"substituteMentions",0,function(e,t){return e&&t&&0!==Object.keys(t).length?e.replace(a,(e,r,n)=>{let a=s(n,t);return a?`${r}@${a}`:e}):e}])},29686,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=(0,r.createContext)(null);function a(){let e=(0,r.useContext)(n);if(!e)throw Error("useMediaPlayer must be used inside MediaPlayerProvider");return e}e.s(["MediaPlayerProvider",0,function({children:e}){let[a,s]=(0,r.useState)(null),[l,i]=(0,r.useState)(!1),[o,c]=(0,r.useState)(0),[d,u]=(0,r.useState)(0),[m,x]=(0,r.useState)(1),[p,h]=(0,r.useState)(()=>{let e=parseFloat(localStorage.getItem("everything-media-volume")??"1");return isFinite(e)?Math.max(0,Math.min(1,e)):1}),[f,g]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),[y,v]=(0,r.useState)(null),[j,N]=(0,r.useState)(null),k=(0,r.useRef)(null),S=(0,r.useRef)(null),C=(0,r.useCallback)(e=>{if(k.current=e,!e)return;e.playbackRate=m,e.volume=p;let t=()=>{u(e.currentTime)},r=()=>{if(isFinite(e.duration)&&e.duration>0)c(e.duration),w(!1);else{e.currentTime=1e10;let t=()=>{e.removeEventListener("timeupdate",t),isFinite(e.duration)&&c(e.duration),e.currentTime=0,w(!1)};e.addEventListener("timeupdate",t)}},n=()=>i(!0),a=()=>i(!1),s=()=>{i(!1),u(0),e&&(e.currentTime=0)},l=()=>{v("Playback failed"),w(!1),i(!1)},o=()=>w(!0),d=()=>w(!1);return e.addEventListener("timeupdate",t),e.addEventListener("loadedmetadata",r),e.addEventListener("play",n),e.addEventListener("pause",a),e.addEventListener("ended",s),e.addEventListener("error",l),e.addEventListener("waiting",o),e.addEventListener("playing",d),()=>{e.removeEventListener("timeupdate",t),e.removeEventListener("loadedmetadata",r),e.removeEventListener("play",n),e.removeEventListener("pause",a),e.removeEventListener("ended",s),e.removeEventListener("error",l),e.removeEventListener("waiting",o),e.removeEventListener("playing",d)}},[m]),_=(0,r.useCallback)(e=>{v(null);let t=k.current;if(a?.id===e.id&&a?.src===e.src&&t){!1!==e.autoPlay&&t.play().catch(()=>v("Playback failed"));return}S.current=e.src,s(e),u(0),c(0),w(!0)},[a]),M=(0,r.useCallback)(e=>{s(t=>
1t&&t.id===e.id?{...t,...e,id:t.id,src:t.src}:t)},[]),E=(0,r.useCallback)(()=>{k.current?.pause()},[]),L=(0,r.useCallback)(()=>{k.current?.play().catch(()=>v("Playback failed"))},[]),T=(0,r.useCallback)(()=>{let e=k.current;e&&(e.paused?e.play().catch(()=>v("Playback failed")):e.pause())},[]),P=(0,r.useCallback)(e=>{let t=k.current;t&&isFinite(t.duration)&&(t.currentTime=Math.max(0,Math.min(1,e))*t.duration,u(t.currentTime))},[]),A=(0,r.useCallback)(e=>{let t=k.current;t&&(t.currentTime=Math.max(0,e),u(t.currentTime))},[]),$=(0,r.useCallback)(e=>{x(e),k.current&&(k.current.playbackRate=e)},[]),R=(0,r.useCallback)(e=>{if(!Number.isFinite(e))return;let t=Math.max(0,Math.min(1,e));h(t),k.current&&(k.current.volume=t);try{localStorage.setItem("everything-media-volume",String(t))}catch{}},[]),F=(0,r.useCallback)(e=>{g(e)},[]),D=(0,r.useCallback)(()=>{g(e=>!e)},[]),O=(0,r.useCallback)(()=>{k.current?.pause(),s(null),i(!1),u(0),c(0),g(!1),v(null)},[]),z=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=null!==z.current,t=null!==j;e&&!t&&a?.kind==="video"&&l&&g(!0),z.current=j},[j,a?.kind,l]);let I=(0,r.useCallback)(e=>(N(e),e&&g(!1),()=>N(null)),[]),B=o>0?d/o:0,W=(0,r.useMemo)(()=>({current:a,playing:l,duration:o,progress:B,currentTime:d,speed:m,volume:p,pip:f,loading:b,error:y,slot:j,play:_,updateCurrent:M,pause:E,resume:L,toggle:T,seek:P,seekToTime:A,setSpeed:$,setVolume:R,setPip:F,togglePip:D,stop:O,_registerEl:C,registerSlot:I}),[a,l,o,B,d,m,p,f,b,y,j,_,M,E,L,T,P,A,$,R,F,D,O,C,I]);return(0,t.jsx)(n.Provider,{value:W,children:e})},"PLAYBACK_SPEEDS",0,[1,1.25,1.5,2,3,4],"formatMediaTime",0,function(e){if(!isFinite(e)||isNaN(e)||e<0)return"0:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`},"useInlineMediaSlot",0,function(e=!0){let{registerSlot:t}=a();return(0,r.useCallback)(r=>{e&&t(r)},[e,t])},"useMediaPlayer",0,a])},456174,e=>{"use strict";var t=e.i(271645),r=e.i(920755),n=e.i(48589),a=e.i(444256);e.s(["useMergeVars",0,function(e){let[s,l]=(0,t.useState)({});return(0,t.useEffect)(()=>{let t=!1;return(async()=>{let s=(0,r.createClient)(),i={},{data:o}=await s.auth.getUser();if(o?.user){let{data:e}=await s.from("profiles").select("full_name, email, phone").eq("id",o.user.id).maybeSingle();if(e){let t=e.full_name||"",r=t.split(" ").filter(Boolean);i.owner_name=t,i.owner_first_name=r[0]||"",i.owner_last_name=r.slice(1).join(" ")||"",i.owner_email=e.email||"",i.owner_phone=e.phone||""}}if(e){let{data:t}=await s.from("contacts").select("first_name, last_name, nickname, name, email, phone, job_title, headline, location, linkedin_url, company:companies!contacts_company_id_fkey(name, domain, industry, employee_range, employee_count)").eq("id",e).maybeSingle();if(t){let e=t.company,r=Array.isArray(e)?e[0]:e;Object.assign(i,{first_name:(0,n.preferredFirstName)({nickname:t.nickname,firstName:t.first_name,fullName:t.name}),last_name:t.last_name||"",full_name:t.name||"",nickname:t.nickname||"",name:t.name||"",email:t.email||"",phone:t.phone||"",job_title:t.job_title||"",headline:t.headline||"",location:t.location||"",linkedin_url:t.linkedin_url||"",city:t.location?.split(",")[0]?.trim()||"",...(0,a.locationParts)(t.location),company_name:r?.name||"",company_domain:r?.domain||"",company_industry:r?.industry||"",company_size:r?.employee_range||(r?.employee_count!=null?r.employee_count.toLocaleString():"")})}}t||l(i)})(),()=>{t=!0}},[e]),s}])},444256,e=>{"use strict";var t=e.i(965638);let r=String.raw`[A-Za-z][\w\- ]*?`,n=RegExp(String.raw`\{\{\s*(${r})\s*\}\}`,"g"),a=RegExp(String.raw`\{\{\s*(${r}(?:\s*\|[^|{}]*)+)\}\}`,"g"),s=RegExp(String.raw`(^|[^{])\{\s*(${r})\s*\}(?!\})`,"g"),l=/\{\{#if\s+(\w+)\}\}([\s\S]*?)(?:\{\{else\}\}([\s\S]*?))?\{\{\/if\}\}/g,i=new Set(t.MERGE_VARIABLES.filter(e=>"conditional"!==e.category).map(e=>e.key)),o={company:"company_name",firstname:"first_name",fname:"first_name",lastname:"last_name",lname:"last_name",fullname:"full_name",title:"job_title",jobtitle:"job_title",industry:"company_industry",domain:"company_domain"};function c(e,t){let r=e.trim().toLowerCase().replace(/[\s-]+/g,"_");return t&&r in t||i.has(r)?r:o[r]??o[r.replace(/_/g,"")]??r}function d(e,t){return e in t||i.has(e)}function u(e,t,r){if(!t||d(c(e,r),r))return!1;let n=e.trim();
1return/\s/.test(n)||!/^[A-Za-z0-9]+([_-][A-Za-z0-9]+)+$/.test(n)}let m={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},x=new Set(Object.values(m).map(e=>e.toLowerCase()));e.s(["locationParts",0,function(e){let t=(e??"").split(",").map(e=>e.trim()).filter(Boolean);if(0===t.length)return{state:"",country:""};if(t.length>=3)return{state:t[t.length-2],country:t[t.length-1]};let r=t[t.length-1];return r.toUpperCase()in m||x.has(r.toLowerCase())?{state:r,country:"United States"}:{state:"",country:2===t.length?r:""}},"resolveTemplateVars",0,function(e,t){let r,i,o;return(r=[],i=e=>{let r=t[e];return r&&r.trim()?r:""},o=(e,r,n)=>{let a=c(n,t);return d(a,t)?`${r}{{${a}}}`:e},{text:e.replace(s,o).replace(s,o).replace(l,(e,r,n,a)=>i(c(r,t))?n:a??"").replace(a,(e,n)=>{let a=n.split("|");for(let e=0;e<a.length;e++){if(u(a[e],e===a.length-1,t))return a[e].trim();let r=i(c(a[e],t));if(r)return r}return r.push(c(a[0],t)),""}).replace(n,(e,n)=>{let a=c(n,t);return i(a)||r.push(a),t[a]??""}),missing:[...new Set(r)]}).text},"resolveTemplateVarsLenient",0,function(e,t){let r=e.replace(l,(e,r,n,a)=>{let s=c(r,t);if(!(s in t))return e;let l=t[s];return l&&l.trim()?n:a??""});return(r=r.replace(a,(e,r)=>{let n=r.split("|");if(!n.some(e=>c(e,t)in t))return e;for(let e=0;e<n.length;e++){if(u(n[e],e===n.length-1,t))return n[e].trim();let r=t[c(n[e],t)];if(r&&r.trim())return r}return""})).replace(n,(e,r)=>{let n=c(r,t);return n in t?t[n]??"":e})}])},837665,e=>{"use strict";e.s(["notifyVideoUploaded",0,function(e){try{window.dispatchEvent(new CustomEvent("boring-app-video-uploaded",{detail:e}))}catch{}}])},682318,e=>{"use strict";let t=(0,e.i(475254).default)("smile-plus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]]);e.s(["default",0,t])},903659,e=>{"use strict";var t=e.i(682318);e.s(["SmilePlus",()=>t.default])}]);

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.