PageSourceSearch

https://brrrr.ai/_next/static/chunks/0fxttjq1e3mp2.js?dpl=dpl_ELcP4MnyLtgPdDXSUZZYEuKsSMi8

js brrrr.ai collected 2026-10-05 15:28:51 UTC 37,265 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31989,74846,e=>{"use strict";let t=(0,e.i(55705).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],31989);var r=e.i(96780);e.s(["ChevronRight",()=>r.default],74846)},10708,e=>{"use strict";var t=e.i(57304),r=e.i(70350),a=e.i(71818),o=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var s=e.i(47163);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(o,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],10708)},46482,e=>{"use strict";var t=e.i(57304),r=e.i(48961);e.s(["AnimatedSection",0,function({children:e,delay:a=0,className:o="",direction:s="up",duration:n=.4}){return(0,t.jsx)(r.motion.div,{className:o,initial:{opacity:0,...{up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}}[s]},animate:{opacity:1,x:0,y:0},transition:{duration:n,delay:a,ease:"easeOut"},children:e})},"StaggeredContainer",0,function({children:e,className:a="",staggerDelay:o=.1}){return(0,t.jsx)(r.motion.div,{className:a,initial:"hidden",animate:"visible",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:o}}},children:e})},"StaggeredItem",0,function({children:e,className:a="",direction:o="up"}){return(0,t.jsx)(r.motion.div,{className:a,variants:{hidden:{opacity:0,...{up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}}[o]},visible:{opacity:1,x:0,y:0,transition:{duration:.4,ease:"easeOut"}}},children:e})}])},47627,e=>{"use strict";var t=e.i(57304),r=e.i(47163);e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle whitespace-nowrap font-bold text-shadow group-hover:bg-muted-hover transition-colors relative z-0 [&:has([role=checkbox])]:pr-0 *:[&>[role=checkbox]]:translate-y-[2px] first:rounded-l-lg last:rounded-r-lg",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("text-muted-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap uppercase hover:text-white hover:font-bold transition-colors relative z-10 bg-transparent backdrop-blur-md [&:has([role=checkbox])]:pr-0 *:[&>[role=checkbox]]:translate-y-[2px]",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:bg-transparent [&_tr:hover]:bg-transparent",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("group data-[state=selected]:bg-muted transition-colors hover:bg-muted-hover rounded-lg",e),...a})}])},32277,e=>{"use strict";let t=(0,e.i(55705).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],32277)},36112,e=>{"use strict";let t=(0,e.i(55705).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},38690,e=>{"use strict";var t=e.i(36112);e.s(["ChevronDown",()=>t.default])},3522,e=>{"use strict";let t=(0,e.i(55705).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],3522)},48303,e=>{"use strict";e.i(34597);var t=e.i(57304),r=e.i(70350),a=(e.i(91114),e.i(32277),e.i(45358));let o=(0,e.i(55705).default)("unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);var s=e.i(18956),n=e.i(14732),i=e.i(94433);function l({portfolioId:e,hideDisconnectedWarning:r}){let c=(0,s.useRouter)(),{user:d,loading:u}=(0,i.useAuth)(),{data:m,isLoading:h}=(0,n.useLastSync)(e),{data:p,isLoading:g}=(0,n.useDisconnectedAccounts)(e,!!d&&!u),x=e=>{let t=Math.floor((new Date().getTime()-e.getTime())/6e4);if(t<1)return"Just now";if(t<60)return`${t}m ago`;if(t<1440){let e=Math.floor(t/60);return`${e}h ago`}{let e=Math.floor(t/1440);return`${e}d ago`}};if(!e)return null;if(h||g)return(0,t.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(a.Clock,{className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Loading..."})]});if(!r&&p?.isOwner&&p?.hasDisconnectedAccounts)return(0,t.jsxs)("button",{onClick:()=>{c.push(`/${e}/connected-accounts`)},className:"flex items-center gap-1.5 text-xs text-amber-500 hover:text-amber-400 transition-colors cursor-pointer",title:"One or more connected accounts need to be reconnected",children:[(0,t.jsx)(o,{className:"h-3 w-3"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Connection Disconnected"}),(0,t.jsx)("span",{className:"sm:hidden",children:"Disconnected"})]});let f=m?.last_sync_at?new Date(m.last_sync_at):null;return f?(0,t.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(a.Clock,{className:"h-3 w-3"}),(0,t.jsxs)("span",{className:"hidden sm:inline",children:["Updated ",x(f)]}),(0,t.jsx)("span",{className:"sm:hidden",children:x(f)})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(a.Clock,{className:"h-3 w-3"}),(0,t.jsx)("span",{children:"No sync data"})]})}var c=e.i(38690),d=e.i(3522),u=e.i(83575),m=e.i(74013),h=e.i(63415),p=e.i(71428),g=e.i(58127),x=e.i(99e3);let f={summary:"Summary",portfolio:"Holdings","dividend-income":"Dividends",diversification:"Diversification","connected-accounts":"Connected Accounts",portfolios:"All Portfolios","index-builder":"Index Builder",account:"Account Settings",stock:"Stock"},b=["stock","portfolios","index-builder","account"];var v=e.i(47163);let j=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(e);function y({stockSymbol:e,className:a}){let o=(0,s.useParams)(),n=(0,s.usePathname)(),i=o?.portfolio_id,{data:l,isLoading:w}=(0,u.useQuery)(g.portfolioQueries.list(i)),{switchPortfolio:N,isPending:k}=function(){let e=(0,s.useRouter)(),t=(0,s.usePathname)(),{startSwitching:a,endSwitching:o}=(0,x.usePortfolioSwitching)(),[n,i]=(0,r.useTransition)(),l=(0,r.useCallback)(async r=>{try{localStorage.setItem("activePortfolioId",r.id.toString());
1let a=t?.split("/").filter(Boolean)||[],o=a[0]||"",s=["stock","portfolios","index-builder","account"].includes(o)?"summary":a.length>1?a.slice(1).join("/"):"summary";i(()=>{e.push(`/${r.id}/${s}`)})}catch(e){console.error("Error in portfolio switch:",e)}},[t,e,void 0]);return(0,r.useEffect)(()=>(n?a():o(),()=>{o()}),[n,a,o]),{switchPortfolio:l,isPending:n}}(),C=l?.ownPortfolios||[],D=l?.publicPortfolios||[],S=r.useMemo(()=>[...C,...D],[C,D]),P=r.useMemo(()=>S.length&&i&&S.find(e=>e.id.toString()===i)||null,[S,i]),M=r.useMemo(()=>!!P&&D.some(e=>e.id===P.id),[P,D]),_=r.useMemo(()=>(function(e,t,r,a){let o=e.split("/").filter(Boolean),s=[],n=o[0]||"";if(b.includes(n))"stock"===n&&a?s.push({label:a,isCurrentPage:!0}):"stock"===n&&o[1]?s.push({label:o[1].toUpperCase(),isCurrentPage:!0}):s.push({label:f[n]||n,isCurrentPage:!0});else if(r&&t){s.push({label:t,isPortfolioDropdown:!0});let e=o[1];e&&f[e]&&s.push({label:f[e],isCurrentPage:!0})}else if(r){s.push({label:"Portfolio",isPortfolioDropdown:!0});let e=o[1];e&&f[e]&&s.push({label:f[e],isCurrentPage:!0})}return{items:s}})(n||"",P?.name||void 0,i,e),[n,P?.name,i,e]),T=_.items.some(e=>e.isPortfolioDropdown),I=e=>{N(e)};return w?(0,t.jsxs)("div",{className:(0,v.cn)("flex items-center gap-3",a),children:[(0,t.jsx)(p.Skeleton,{className:"h-7 w-40"}),(0,t.jsx)(p.Skeleton,{className:"h-5 w-24"})]}):(0,t.jsx)("div",{className:(0,v.cn)("flex items-center gap-2",a),children:_.items.map((e,a)=>(0,t.jsxs)(r.Fragment,{children:[a>0&&(0,t.jsx)("span",{className:"text-muted-foreground/50 mx-1",children:"/"}),e.isPortfolioDropdown?(0,t.jsxs)(h.DropdownMenu,{children:[(0,t.jsxs)(h.DropdownMenuTrigger,{className:"flex items-center gap-2 hover:opacity-80 transition-opacity focus:outline-none",children:[M&&(0,t.jsx)(d.Globe,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:(0,v.cn)("text-xl font-semibold text-foreground",k&&"opacity-50"),children:e.label||"Select Portfolio"}),P?.total_value!=null&&(0,t.jsx)("span",{className:"text-base text-muted-foreground font-mono",children:j(P.total_value)}),(0,t.jsx)(c.ChevronDown,{className:"h-4 w-4 text-muted-foreground"})]}),(0,t.jsxs)(h.DropdownMenuContent,{align:"start",className:"w-72",children:[C.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.DropdownMenuLabel,{className:"text-xs text-muted-foreground font-normal",children:"Your Portfolios"}),C.map(e=>(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>I(e),className:(0,v.cn)("cursor-pointer flex justify-between py-2.5 rounded-md",P?.id===e.id?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-primary/5 hover:text-foreground"),children:[(0,t.jsx)("span",{className:"truncate font-medium",children:e.name||"Unnamed Portfolio"}),null!=e.total_value&&(0,t.jsx)("span",{className:"font-mono text-sm ml-3 opacity-70",children:j(e.total_value)})]},e.id))]}),D.length>0&&(0,t.jsxs)(t.Fragment,{children:[C.length>0&&(0,t.jsx)(h.DropdownMenuSeparator,{}),(0,t.jsx)(h.DropdownMenuLabel,{className:"text-xs text-muted-foreground font-normal",children:"Public Portfolios"}),D.map(e=>(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>I(e),className:(0,v.cn)("cursor-pointer flex justify-between py-2.5 rounded-md",P?.id===e.id?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-primary/5 hover:text-foreground"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 truncate",children:[(0,t.jsx)(d.Globe,{className:"h-3.5 w-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"truncate font-medium",children:e.name||"Unnamed Portfolio"})]}),null!=e.total_value&&(0,t.jsx)("span",{className:"font-mono text-sm ml-3 opacity-70",children:j(e.total_value)})]},e.id))]}),S.length>0&&(0,t.jsx)(h.DropdownMenuSeparator,{}),(0,t.jsx)(h.DropdownMenuItem,{asChild:!0,className:"rounded-md text-muted-foreground hover:bg-primary/5 hover:text-foreground",children:(0,t.jsx)(m.default,{href:"/portfolios",className:"cursor-pointer",children:"View all portfolios"})})]})]}):e.isCurrentPage?(0,t.jsx)("span",{className:(0,v.cn)("text-xl font-semibold",T?"text-muted-foreground/70":"text-foreground"),children:e.label}):(0,t.jsx)(m.default,{href:e.href||"#",className:"text-xl font-semibold text-foreground hover:opacity-80 transition-opacity",children:e.label})]},a))})}var w=e.i(11522),N=e.i(69035);e.s(["SiteHeader",0,function({actionButton:e,portfolioId:a,hideDisconnectedWarning:o,stockSymbol:s}={}){let[n,i]=(0,r.useState)(!1);return(0,t.jsxs)("header",{className:"sticky top-0 z-20 flex flex-col shrink-0 transition-[width,height] ease-linear bg-sidebar bg-grid",children:[!1,(0,t.jsxs)("div",{className:"flex w-full items-center gap-1 px-4 py-8 lg:gap-2 lg:px-6",children:[(0,t.jsx)(w.SidebarTrigger,{className:"md:hidden -ml-1 mr-2"}),(0,t.jsx)(N.Separator,{orientation:"vertical",className:"h-4 md:hidden mr-2"}),(0,t.jsx)(y,{stockSymbol:s,className:"text-sm flex-1"}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsx)(l,{portfolioId:a,hideDisconnectedWarning:o}),e]})]})]})}],48303)},94179,e=>{"use strict";var t=e.i(57304),r=e.i(62073),a=e.i(94237),o=e.i(47163);let s=(0,a.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-muted/30 text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:a,asChild:n=!1,...i}){let l=n?r.Slot:"span";return(0,t.jsx)(l,{"data-slot":"badge",className:(0,o.cn)(s({variant:a}),e),...i})}])},8738,e=>{"use strict";let t=(0,e.i(55705).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],8738)},93957,e=>{"use strict";let t=(0,e.i(55705).default)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
1],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,t],93957)},20923,63422,e=>{"use strict";let t=(0,e.i(55705).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,t],20923);var r=e.i(57304),a=e.i(48961),o=e.i(67881);let s=(0,e.i(70350).forwardRef)(({children:e,hoverScale:t=1.02,tapScale:s=.98,animationDuration:n=.2,className:i,...l},c)=>(0,r.jsx)(a.motion.div,{whileHover:{scale:t},whileTap:{scale:s},transition:{duration:n,ease:"easeInOut"},children:(0,r.jsx)(o.Button,{ref:c,className:i,...l,children:e})}));s.displayName="AnimatedButton",e.s(["AnimatedButton",0,s],63422)},78816,e=>{"use strict";var t=e.i(57304),r=e.i(70350),a=e.i(18956),o=e.i(8738),s=e.i(44617),n=e.i(61922),i=e.i(47627),l=e.i(23750),c=e.i(67881),d=e.i(63415),u=e.i(53603),m=e.i(31989),h=e.i(74846),p=e.i(55705);let g=(0,p.default)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),x=(0,p.default)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);var f=e.i(96856),b=e.i(91114);let v=(0,r.memo)(function({row:e,columns:r,columnVisibility:o}){let n=e.original,l=(0,a.useRouter)();return(0,t.jsx)(i.TableRow,{className:"group cursor-pointer",onClick:()=>{l.push(`/${n.id}/summary`)},children:e.getVisibleCells().map(e=>{let r=e.column.id;return(0,t.jsx)(i.TableCell,{className:"actions"===r?"sticky left-0 z-20 bg-transparent backdrop-blur-md group-hover:bg-muted-hover w-14 min-w-14 max-w-14 pl-2 pr-0 transition-colors":"name"===r?"sticky left-14 z-20 bg-transparent backdrop-blur-md group-hover:bg-muted-hover transition-colors":"",onClick:e=>{"actions"===r&&e.stopPropagation()},children:(0,s.flexRender)(e.column.columnDef.cell,e.getContext())},e.id)})})},(e,t)=>{let r=e.row.original,a=t.row.original,o=JSON.stringify(e.columnVisibility)!==JSON.stringify(t.columnVisibility),s=r.name!==a.name||r.is_public!==a.is_public||r.updated_at!==a.updated_at;return e.row.id===t.row.id&&r.id===a.id&&!o&&!s});function j({columns:e,data:a,actionButton:o,isLoading:p=!1,pagination:y,onPageChange:w,searchValue:N="",onSearchChange:k,sortBy:C="created_at",sortOrder:D="desc",onSortChange:S}){let[P,M]=(0,r.useState)({}),_=C?[{id:C,desc:"desc"===D}]:[],T=(0,r.useCallback)(e=>{let t="function"==typeof e?e(_):e;if(t.length>0&&S){let{id:e,desc:r}=t[0];S(e,r?"desc":"asc")}else S&&S("created_at","desc")},[_,S]),I=(0,r.useCallback)(e=>{k?.(e.target.value)},[k]),B=(0,r.useCallback)(()=>{k?.(""),S?.("created_at","desc")},[k,S]),A=(0,s.useReactTable)({data:a,columns:e,manualSorting:!0,manualPagination:!0,onSortingChange:T,getCoreRowModel:(0,n.getCoreRowModel)(),onColumnVisibilityChange:M,state:{sorting:_,columnVisibility:P}});return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 pb-4 shrink-0",children:[(0,t.jsxs)("div",{className:"w-full md:w-[30%] relative",children:[p?(0,t.jsx)(f.Loader2,{className:"w-4 h-4 absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground animate-spin"}):(0,t.jsx)(u.SearchIcon,{className:"w-4 h-4 absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(l.Input,{placeholder:"Search portfolios...",value:N,onChange:I,className:"w-full bg-accent/10 border border-transparent hover:border-accent/30"})]}),(0,t.jsxs)("div",{className:"flex flex-row sm:justify-end items-center space-x-2 w-full md:w-[70%] md:justify-end",children:[(!!N||"created_at"!==C||"desc"!==D)&&(0,t.jsxs)(c.Button,{variant:"ghost",size:"sm",onClick:B,className:"text-muted-foreground hover:text-foreground hover:bg-accent/20 cursor-pointer",children:[(0,t.jsx)(b.X,{className:"w-4 h-4 mr-1"}),"Clear filters"]}),(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(c.Button,{variant:"outline",className:"ml-auto uppercase bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer header-text",children:"Columns"})}),(0,t.jsx)(d.DropdownMenuContent,{className:"shadow-lg bg-(--darker) border border-accent/30",align:"end",children:A.getAllColumns().filter(e=>e.getCanHide()).map(e=>(0,t.jsx)(d.DropdownMenuCheckboxItem,{className:"capitalize uppercase font-medium text-shadow",checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(!!t),onSelect:e=>e.preventDefault(),children:e.id},e.id))})]}),o]})]}),(0,t.jsx)("div",{className:"rounded-md overflow-hidden relative",children:(0,t.jsx)("div",{className:"max-h-[calc(100dvh-12rem)] overflow-auto",children:(0,t.jsxs)(i.Table,{children:[(0,t.jsx)(i.TableHeader,{className:"sticky top-0 z-40 border-b border-border/30 table-header-gradient",children:A.getHeaderGroups().map(e=>(0,t.jsx)(i.TableRow,{className:"group",children:e.headers.map(e=>{let r=e.column.id;return(0,t.jsx)(i.TableHead,{className:"actions"===r?"sticky left-0 z-30 bg-transparent backdrop-blur-lg w-14 min-w-14 max-w-14 pl-2 pr-0":"name"===r?"sticky left-14 z-30 bg-transparent backdrop-blur-lg":"",children:e.isPlaceholder?null:(0,s.flexRender)(e.column.columnDef.header,e.getContext())},e.id)})},e.id))}),(0,t.jsx)(i.TableBody,{children:A.getRowModel().rows?.length?A.getRowModel().rows.map(r=>(0,t.jsx)(v,{row:r,columns:e,columnVisibility:P},r.id)):(0,t.jsx)(i.TableRow,{children:(0,t.jsx)(i.TableCell,{colSpan:e.length,className:"h-24 text-center",children:p?"Loading...":"No portfolios found."})})})]})})}),y&&y.totalPages>1&&(0,t.jsxs)("div",{className:"flex items-center justify-between py-4",children:[(0,t.jsxs)("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:["Showing ",(y.page-1)*y.pageSize+1," to"," ",Math.min(y.page*y.pageSize,y.totalCount)," ","of ",y.totalCount," portfolios"]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>w?.(1),disabled:!y.hasPrevPage||p,className:"bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer",children:(0,t.jsx)(g,{className:"h-4 w-4"})}),(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>w?.(y.page-1),disabled:!y.hasPrevPage||p,className:"bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer",children:(0,t.jsx)(m.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground px-2 flex items-center gap-2",children:["Page ",y.page," of ",y.totalPages,p&&(0,t.jsx)(f.Loader2,{className:"h-3 w-3 animate-spin"})]}),(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>w?.(y.page+1),disabled:!y.hasNextPage||p,className:"bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer",children:(0,t.jsx)(h.ChevronRight,{className:"h-4 w-4"})}),(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>w?.(y.totalPages),disabled:!y.hasNextPage||p,className:"bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer",children:(0,t.jsx)(x,{className:"h-4 w-4"})})]})]})]})}var y=e.i(20923),w=e.i(33117),N=e.i(22010);let k=(0,p.default)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);
1var C=e.i(3522),D=e.i(93957),S=e.i(30374),P=e.i(10708),M=e.i(94179),_=e.i(54219),T=e.i(17927),I=e.i(96493);let B=e=>{if(!e)return"-";try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return"-"}};var A=e.i(46482),F=e.i(63422);let R=(0,p.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),z=(0,p.default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var E=e.i(65301),L=e.i(23176);function U({open:e,onOpenChange:o,currentUserId:s,onPortfolioCreated:n}){let i=(0,a.useRouter)(),[d,u]=(0,r.useState)(""),[m,h]=(0,r.useState)(!1),p=async()=>{if(d.trim()&&!m){h(!0);try{let e=(0,T.createClientSupabase)(),{data:{user:t},error:r}=await e.auth.getUser();if(r||!t){console.error("Error fetching user:",r),_.toast.error("Failed to create portfolio"),h(!1);return}let{data:a,error:s}=await e.from("portfolios").insert([{name:d,user_id:t.id,is_default_selected:!1}]).select().single();s?(console.error("Error creating portfolio:",s),_.toast.error("Failed to create portfolio")):a&&(_.toast.success(`Portfolio "${a.name}" created!`),(0,E.cioTrack)(L.CIO_EVENTS.PORTFOLIO_CREATED,{portfolio_id:a.id,portfolio_name:a.name}),o(!1),u(""),n&&n(),i.push(`/${a.id}/portfolio`))}catch(e){console.error("Error in handleCreatePortfolio:",e),_.toast.error("Failed to create portfolio")}finally{h(!1)}}};return(0,t.jsx)(S.Dialog,{open:e,onOpenChange:o,children:(0,t.jsx)(S.DialogContent,{className:"sm:max-w-[425px]",children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{children:"Create New Portfolio"}),(0,t.jsx)(S.DialogDescription,{children:"Give your portfolio a name to get started. You can always change this later."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,t.jsx)(P.Label,{htmlFor:"name",className:"text-right",children:"Name"}),(0,t.jsx)(l.Input,{id:"name",value:d,onChange:e=>u(e.target.value),placeholder:"My Portfolio",className:"col-span-3",onKeyDown:e=>{"Enter"!==e.key||m||p()},autoFocus:!0})]})}),(0,t.jsxs)(S.DialogFooter,{children:[(0,t.jsx)(c.Button,{type:"button",variant:"outline",onClick:()=>{o(!1),u("")},disabled:m,children:"Cancel"}),(0,t.jsx)(c.Button,{type:"submit",onClick:p,disabled:!d.trim()||m,children:m?"Creating...":"Create Portfolio"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{className:"text-2xl font-bold",children:"Create Your Portfolio"}),(0,t.jsx)(S.DialogDescription,{className:"text-base pt-2",children:"Track your investments, analyze dividends, and monitor your portfolio performance."})]}),(0,t.jsxs)("div",{className:"grid gap-6 py-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(c.Button,{onClick:()=>{o(!1),i.push("/login")},variant:"outline",size:"lg",className:"w-full gap-2 h-12 text-base hover:bg-accent/10 hover:border-accent/30 hover:text-foreground cursor-pointer",children:[(0,t.jsx)(R,{className:"h-5 w-5"}),"Login to Existing Account"]}),(0,t.jsxs)(c.Button,{onClick:()=>{o(!1),i.push("/signup")},size:"lg",className:"w-full gap-2 h-12 text-base bg-accent hover:bg-accent/90 cursor-pointer",children:[(0,t.jsx)(z,{className:"h-5 w-5"}),"Create New Account"]})]}),(0,t.jsx)("p",{className:"text-xs text-center text-muted-foreground",children:"Join thousands of investors tracking their dividends"})]})]})})})}var O=e.i(14732);e.s(["default",0,function({initialData:e,currentUserId:s}){let n=(0,a.usePathname)(),i=(0,a.useSearchParams)(),u=(0,I.useQueryClient)(),[,m]=(0,r.useTransition)(),h=(0,r.useRef)(!1),[p,g]=(0,r.useState)(!1),x=Math.max(1,parseInt(i.get("page")||"1",10)),f=i.get("search")||"",b=i.get("sortBy")||"created_at",v=i.get("sortOrder")||"desc",[R,z]=(0,r.useState)(x),[E,L]=(0,r.useState)(f),[H,V]=(0,r.useState)(b),[$,K]=(0,r.useState)(v),[q,Q]=(0,r.useState)(E);(0,r.useEffect)(()=>{h.current||(h.current=!0,u.setQueryData(["portfolios","all",{page:x,search:f,sortBy:b,sortOrder:v}],e))},[u,e,x,f,b,v]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{E!==q&&(Q(E),z(1))},300);return()=>clearTimeout(e)},[E,q]);
1let{data:G,isFetching:J,refetch:Y}=(0,O.usePortfoliosList)({page:R,search:q,sortBy:H,sortOrder:$}),W=G?.portfolios??e.portfolios,Z=G?.pagination??e.pagination;(0,r.useEffect)(()=>{m(()=>{let e=new URLSearchParams;R>1&&e.set("page",R.toString()),q&&e.set("search",q),"created_at"!==H&&e.set("sortBy",H),"desc"!==$&&e.set("sortOrder",$);let t=e.toString(),r=t?`${n}?${t}`:n;window.history.replaceState(null,"",r)})},[R,q,H,$,n]);let X=(0,r.useCallback)(e=>{z(e)},[]),ee=(0,r.useCallback)((e,t)=>{V(e),K(t),z(1)},[]),et=(0,r.useCallback)(e=>{L(e)},[]),er=(0,r.useCallback)(async()=>{await Y()},[Y]),ea=(0,r.useMemo)(()=>[{id:"actions",enableHiding:!1,cell:({row:e})=>{let o=e.original;return(0,t.jsx)(()=>{let e=(0,a.useRouter)(),s=(0,I.useQueryClient)(),[n,i]=r.useState(!1),[u,m]=r.useState(""),[h,p]=r.useState(!1),[g,x]=r.useState(!1),[f,b]=r.useState(!1),[v,j]=r.useState(!1),w=r.useCallback(e=>{s.setQueriesData({queryKey:["portfolios","all"]},e)},[s]),N=async()=>{if(!u.trim())return;let e=u.trim();try{p(!0);let t=(0,T.createClientSupabase)(),{data:r,error:a}=await t.from("portfolios").update({name:e}).eq("id",o.id).select("updated_at").single();if(a){console.error("Error updating portfolio:",a),_.toast.error("Failed to update portfolio");return}w(t=>t?{...t,portfolios:t.portfolios.map(t=>t.id===o.id?{...t,name:e,updated_at:r.updated_at}:t)}:t),_.toast.success("Portfolio updated successfully"),i(!1),m("")}catch(e){console.error("Error in handleUpdatePortfolio:",e),_.toast.error("Failed to update portfolio")}finally{p(!1)}},M=async()=>{if(!f)return void b(!0);try{j(!0);let e=(0,T.createClientSupabase)(),{error:t}=await e.from("portfolios").update({deleted_at:new Date().toISOString()}).eq("id",o.id);if(t){console.error("Error deleting portfolio:",t),_.toast.error("Failed to delete portfolio");return}w(e=>{if(!e)return e;let t=e.portfolios.filter(e=>e.id!==o.id);return{...e,portfolios:t,pagination:{...e.pagination,totalCount:e.pagination.totalCount-1,totalPages:Math.ceil((e.pagination.totalCount-1)/e.pagination.pageSize)}}}),_.toast.success("Portfolio deleted successfully"),x(!1),b(!1)}catch(e){console.error("Error in handleConfirmDelete:",e),_.toast.error("Failed to delete portfolio")}finally{j(!1)}},B=async e=>{e.stopPropagation();let t=!o.is_public;try{let e=(0,T.createClientSupabase)(),{data:r,error:a}=await e.from("portfolios").update({is_public:t}).eq("id",o.id).select("updated_at").single();if(a){console.error("Error toggling portfolio public status:",a),_.toast.error("Failed to update portfolio visibility");return}w(e=>e?{...e,portfolios:e.portfolios.map(e=>e.id===o.id?{...e,is_public:t,updated_at:r.updated_at}:e)}:e),_.toast.success(`Portfolio is now ${t?"public":"private"}`)}catch(e){console.error("Error in handleTogglePublic:",e),_.toast.error("Failed to update portfolio visibility")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(c.Button,{variant:"ghost",className:"h-8 w-8 p-0 cursor-pointer border-transparent hover:border-accent/30 hover:bg-accent/10 text-foreground hover:text-foreground",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,t.jsx)(y.MoreHorizontal,{className:"h-4 w-4"})]})}),(0,t.jsxs)(d.DropdownMenuContent,{className:"bg-(--darker) border border-accent/30",align:"start",children:[(0,t.jsx)(d.DropdownMenuLabel,{className:"text-muted-foreground",children:"Actions"}),(0,t.jsx)(d.DropdownMenuItem,{className:"cursor-pointer font-medium",onClick:()=>{e.push(`/${o.id}/summary`)},children:"Switch to portfolio"}),(0,t.jsx)(d.DropdownMenuSeparator,{}),o.is_owner&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.DropdownMenuItem,{className:"cursor-pointer gap-2 hover:bg-accent/10",onClick:e=>{e.stopPropagation(),m(o.name||""),i(!0)},children:[(0,t.jsx)(k,{className:"h-3 w-3"}),"Rename"]}),(0,t.jsxs)(d.DropdownMenuItem,{className:"cursor-pointer gap-2 hover:bg-accent/10",onClick:B,children:[(0,t.jsx)(C.Globe,{className:"h-3 w-3"}),o.is_public?"Make Private":"Make Public"]}),(0,t.jsxs)(d.DropdownMenuItem,{className:"cursor-pointer gap-2 text-destructive focus:text-destructive hover:bg-destructive/10",onClick:e=>{e.stopPropagation(),x(!0),b(!1)}
1,children:[(0,t.jsx)(D.Trash2,{className:"h-3 w-3"}),"Delete"]})]})]})]}),(0,t.jsx)(S.Dialog,{open:n,onOpenChange:i,children:(0,t.jsxs)(S.DialogContent,{className:"sm:max-w-[425px]",children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{children:"Edit Portfolio"}),(0,t.jsx)(S.DialogDescription,{children:"Update the name of your portfolio."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,t.jsx)(P.Label,{htmlFor:"edit-name",className:"text-right",children:"Name"}),(0,t.jsx)(l.Input,{id:"edit-name",value:u,onChange:e=>m(e.target.value),placeholder:"Portfolio Name",className:"col-span-3",onKeyDown:e=>{"Enter"!==e.key||h||N()}})]})}),(0,t.jsxs)(S.DialogFooter,{children:[(0,t.jsx)(c.Button,{type:"button",variant:"outline",onClick:()=>{i(!1),m("")},disabled:h,children:"Cancel"}),(0,t.jsx)(c.Button,{type:"submit",onClick:N,disabled:!u.trim()||h,children:h?"Updating...":"Update Portfolio"})]})]})}),(0,t.jsx)(S.Dialog,{open:g,onOpenChange:x,children:(0,t.jsxs)(S.DialogContent,{className:"sm:max-w-[425px]",children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{children:"Delete Portfolio"}),(0,t.jsx)(S.DialogDescription,{children:f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Final confirmation:"}),' This will permanently delete "',o.name,'" and all its data.']}):(0,t.jsxs)(t.Fragment,{children:['Are you sure you want to delete "',o.name,'"? This action cannot be undone.']})})]}),(0,t.jsxs)(S.DialogFooter,{children:[(0,t.jsx)(c.Button,{type:"button",variant:"outline",onClick:()=>{x(!1),b(!1)},disabled:v,children:"Cancel"}),(0,t.jsx)(c.Button,{type:"submit",variant:"destructive",onClick:M,disabled:v,children:v?"Deleting...":f?"Delete Forever":"Delete Portfolio"})]})]})})]})},{})}},{accessorKey:"name",enableHiding:!1,header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground justify-start cursor-pointer font-medium",children:[r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"mr-0.5 h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"mr-0.5 h-4 w-4"})),"NAME"]})},cell:({row:e})=>{let r=e.getValue("name");return(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"font-semibold text-sm",children:r||"-"})})}},{accessorKey:"owner_name",header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground justify-start cursor-pointer font-medium",children:[r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"mr-0.5 h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"mr-0.5 h-4 w-4"})),"OWNER"]})},cell:({row:e})=>{let r=e.getValue("owner_name"),a=e.original.is_owner;return(0,t.jsx)("div",{className:"text-left",children:a?(0,t.jsx)(M.Badge,{variant:"default",className:"font-medium",children:r}):(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:r})})}},{accessorKey:"total_value",header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground flex items-center justify-end cursor-pointer font-medium",children:[(0,t.jsx)("span",{className:"w-4 h-4 mr-0.5 inline-block",children:r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"h-4 w-4"}))}),"TOTAL VALUE"]})})},cell:({row:e})=>{let r=e.getValue("total_value");return(0,t.jsx)("div",{className:"text-right font-mono",children:null==r?"-":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(r)})}},{accessorKey:"is_public",header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground justify-start cursor-pointer font-medium",children:[r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"mr-0.5 h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"mr-0.5 h-4 w-4"})),"VISIBILITY"]})},cell:({row:e})=>{let r=e.getValue("is_public");return(0,t.jsx)("div",{className:"text-left",children:(0,t.jsx)(M.Badge,{variant:r?"default":"secondary",children:r?"Public":"Private"})})}},{accessorKey:"created_at",header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground flex items-center justify-end cursor-pointer font-medium",children:[(0,t.jsx)("span",{className:"w-4 h-4 mr-0.5 inline-block",children:r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"h-4 w-4"}))}),"CREATED"]})})},cell:({row:e})=>{let r=e.getValue("created_at");return(0,t.jsx)("div",{className:"text-right",children:B(r)})}},{accessorKey:"updated_at",header:({column:e})=>{let r=e.getIsSorted();return(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(c.Button,{variant:"ghost",onClick:()=>e.toggleSorting("asc"===e.getIsSorted()),className:"h-auto p-0 font-bold text-muted-foreground hover:bg-transparent hover:text-foreground flex items-center justify-end cursor-pointer font-medium",children:[(0,t.jsx)("span",{className:"w-4 h-4 mr-0.5 inline-block",children:r&&("asc"===r?(0,t.jsx)(w.ArrowUp,{className:"h-4 w-4"}):(0,t.jsx)(N.ArrowDown,{className:"h-4 w-4"}))}
1),"LAST UPDATED"]})})},cell:({row:e})=>{let r=e.getValue("updated_at");return(0,t.jsx)("div",{className:"text-right",children:B(r)})}}],[er]),eo=(0,r.useCallback)(()=>{u.invalidateQueries({queryKey:["portfolios"]})},[u]),es=(0,t.jsxs)(F.AnimatedButton,{onClick:()=>g(!0),className:"uppercase bg-accent/10 border hover:border-accent/30 text-muted-foreground hover:text-foreground hover:bg-accent/10 cursor-pointer header-text",variant:"outline",children:[(0,t.jsx)(o.Plus,{className:"h-4 w-4 mr-2"}),"New Portfolio"]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-1 flex-col",children:(0,t.jsx)("div",{className:"@container/main flex flex-1 flex-col gap-2",children:(0,t.jsx)("div",{className:"flex flex-col gap-4 md:gap-6",children:(0,t.jsx)("div",{className:"px-4 lg:px-6",children:(0,t.jsx)(A.AnimatedSection,{delay:.1,direction:"up",children:(0,t.jsx)(j,{columns:ea,data:W,actionButton:es,isLoading:J,pagination:Z,onPageChange:X,searchValue:E,onSearchChange:et,sortBy:H,sortOrder:$,onSortChange:ee})})})})})}),(0,t.jsx)(U,{open:p,onOpenChange:g,currentUserId:s,onPortfolioCreated:eo})]})}],78816)}]);

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.