PageSourceSearch

https://platform.colleague.ai/assets/Upload-D0ZS_O7h.js

js colleague.ai collected 2026-10-01 15:33:17 UTC 3,023 bytes, 1 lines download raw bytes

1import{s as e}from"./rolldown-runtime-BcKkbAw3.js";import{_ as t,t as n}from"./react-vendor-BriIVOc-.js";import{g as r}from"./StyledText-De0_JSFM.js";import{Pc as i,jc as a}from"./useInteractiveGeneration-Clyl1drg.js";import{Ec as o}from"./mui-vendor-w-V2nuPM.js";import{t as s}from"./ActionButton-BZuEJjdf.js";import{t as c}from"./file-upload-BW9j-3Po.js";var l=e(t()),u=e(n()),d=e=>(0,u.jsxs)(`svg`,{width:10,height:10,viewBox:`0 0 10 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{d:`M9.375 5C9.375 2.58375 7.41625 0.625 5 0.625C2.58375 0.625 0.625 2.58375 0.625 5C0.625 7.41625 2.58375 9.375 5 9.375V10C2.23858 10 0 7.76142 0 5C0 2.23858 2.23858 0 5 0C7.76142 0 10 2.23858 10 5C10 7.76142 7.76142 10 5 10V9.375C7.41625 9.375 9.375 7.41625 9.375 5Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.00417 5.47587L6.92466 7.39636C6.98869 7.4582 7.07445 7.49242 7.16346 7.49164C7.25247 7.49087 7.33762 7.45517 7.40057 7.39222C7.46351 7.32928 7.49921 7.24413 7.49999 7.15512C7.50076 7.0661 7.46654 6.98035 7.4047 6.91632L5.48421 4.99583L7.4047 3.07534C7.46654 3.01131 7.50076 2.92555 7.49999 2.83654C7.49921 2.74753 7.46351 2.66238 7.40057 2.59943C7.33762 2.53649 7.25247 2.50079 7.16346 2.50001C7.07445 2.49924 6.98869 2.53346 6.92466 2.5953L5.00417 4.51579L3.08368 2.5953C3.01936 2.53499 2.93411 2.50206 2.84595 2.50349C2.75779 2.50493 2.67364 2.5406 2.61132 2.60297C2.54899 2.66534 2.51338 2.74951 2.51201 2.83767C2.51064 2.92583 2.54362 3.01106 2.60398 3.07534L4.52413 4.99583L2.60364 6.91632C2.57122 6.94764 2.54535 6.9851 2.52756 7.02652C2.50977 7.06794 2.5004 7.11248 2.50001 7.15756C2.49962 7.20264 2.50821 7.24734 2.52528 7.28906C2.54235 7.33078 2.56756 7.36869 2.59943 7.40057C2.63131 7.43244 2.66921 7.45765 2.71094 7.47472C2.75266 7.49179 2.79736 7.50038 2.84244 7.49999C2.88752 7.4996 2.93206 7.49023 2.97348 7.47244C3.0149 7.45465 3.05236 7.42878 3.08368 7.39636L5.00417 5.47587Z`,fill:`currentColor`})]}),f=e=>{let{children:t,tooltipText:n,buttonText:d=`Upload`,bordered:f=!1,attachments:p,onAttachmentsChange:m,onFileUploading:h,hidePreview:g=!1}=e,[_,v]=(0,l.useState)(p||[]),[y,b]=(0,l.useState)(!1),x=(0,l.useCallback)(e=>{b(e)},[]);(0,l.useEffect)(()=>{v(p||[])},[p]),(0,l.useEffect)(()=>{h?.(y)},[y,h]);let S=(0,l.useCallback)(e=>{e?.length?v(e):v([]),m?.(e||[])},[m]),C=(0,l.useCallback)(e=>{let t=_.filter((t,n)=>n!==e);v(t)},[_]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i,{attachments:_,tooltipText:n,onFileUploading:x,onAttachmentsChange:S,setIsUploadingFiles:b,children:(0,u.jsx)(o,{sx:{width:`100%`,mb:_?.length||y?2:0},children:(0,u.jsx)(s,{sx:{background:`#fff`,border:f?`1px solid rgba(145, 158, 171, 0.20)`:`none`},icon:(0,u.jsx)(c,{}),variant:`outlined`,text:d,size:`small`})})}),!g&&(0,u.jsxs)(r,{fullWidth:!0,flexStart:!0,spacing:0,sx:{flexGrow:1,overflow:`auto`},children:[(0,u.jsx)(a,{readonly:!1,sx:{px:0},maxHeight:`56px`,attachments:_,onDeleteAttachment:C,isUploading:y}),t]})]})};export{d as n,f as t};

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.