PageSourceSearch

https://app.calypsocopilot.com/static/js/6947.1a1e7987.chunk.js

js calypsocopilot.com collected 2026-10-05 11:31:39 UTC 2,681 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcalypso=self.webpackChunkcalypso||[]).push([[6947],{96947:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var s=a(65043),r=a(73216),n=a(16032),i=a(48879),c=a(13005),d=a(9437),o=a(84604),l=a(97876),x=a(20520),m=a(31130),h=a(22024),p=a(70579);function u(){const{shareId:e}=(0,r.g)(),{darkMode:t}=(0,c.D)(),[a,u]=(0,s.useState)((()=>window.innerWidth>=768)),[b,y]=(0,s.useState)(null),[g,j]=(0,s.useState)(!0),[f,v]=(0,s.useState)(null);(0,s.useEffect)((()=>{e&&(async()=>{try{const t=await(0,n.x7)((0,n.H9)(i.db,"shared_predictions",e));t.exists()?y(t.data()):v("Prediction not found")}catch(t){console.error("Failed to load shared prediction:",t),v("Failed to load prediction")}j(!1)})()}),[e]);const w=b?[b.date]:[],N=b?{[b.date]:{recommendation:b.recommendation||null,tickers:b.tickers||[],generatedAt:b.generatedAt}}:{};return(0,p.jsxs)("div",{className:"app-route-canvas min-h-screen",children:[(0,p.jsx)(d.Ay,{}),(0,p.jsx)(o.A,{dates:w,selectedDate:(null===b||void 0===b?void 0:b.date)||null,onSelectDate:()=>{},predictions:N,sidebarOpen:a,onToggleSidebar:()=>u(!1),darkMode:t}),(0,p.jsxs)("div",{className:"relative z-10 transition-all duration-300 pt-20 pb-12",style:{marginLeft:a?"260px":"0px"},children:[!a&&(0,p.jsxs)("div",{className:"flex items-center gap-3 px-6 py-3 mb-4 border-b ".concat(t?"border-white/[0.06]":"border-gray-100"),children:[(0,p.jsx)("button",{onClick:()=>u(!0),className:"p-2 rounded-lg transition-all duration-200 border-none cursor-pointer ".concat(t?"text-[#888] hover:text-[#ccc] hover:bg-white/[0.06]":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"),children:(0,p.jsx)(x.A,{size:18})}),(0,p.jsxs)("span",{className:"text-[0.75rem] font-medium flex items-center gap-1.5 ".concat(t?"text-[#555]":"text-[#bbb]"),children:[(0,p.jsx)(m.A,{size:13}),"Shared Prediction"]})]}),(0,p.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6",children:[g&&(0,p.jsx)("div",{className:"flex items-center justify-center py-24",children:(0,p.jsx)(h.A,{className:"w-6 h-6 animate-spin ".concat(t?"text-white/40":"text-gray-400")})}),f&&(0,p.jsxs)("div",{className:"flex flex-col items-center justify-center py-24",children:[(0,p.jsx)(m.A,{size:40,className:"mb-4 ".concat(t?"text-white/15":"text-gray-200")}),(0,p.jsx)("h2",{className:"text-lg font-semibold mb-2 ".concat(t?"text-white/70":"text-gray-700"),children:f}),(0,p.jsx)("p",{className:"text-sm ".concat(t?"text-white/40":"text-gray-500"),children:"This prediction may have been removed or the link may be incorrect."})]}),!g&&!f&&b&&(0,p.jsx)(l.default,{date:b.date,data:b,darkMode:t,loading:!1,readOnly:!0})]})]})]})}}}]);
2//# sourceMappingURL=6947.1a1e7987.chunk.js.map

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.