@mavea/mavea 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +589 -567
- package/dist/assets/{AppCommandPalette-Dzl_DbDd.js → AppCommandPalette-B3E1gTd4.js} +1 -1
- package/dist/assets/{BlockEmpty-B5Q0hgDJ.js → BlockEmpty-DQkdduUE.js} +1 -1
- package/dist/assets/{BriefingPlayer-Dy7JCGm-.js → BriefingPlayer-CRKTlKa3.js} +1 -1
- package/dist/assets/{CanvasSkeleton-CJwPWnFG.js → CanvasSkeleton-cQ6KF-6z.js} +2 -2
- package/dist/assets/{CheckLogRail-DNtXlkcR.js → CheckLogRail-C6nouD1Y.js} +1 -1
- package/dist/assets/{CodeOutput-Bg64AyKu.js → CodeOutput-H8TQzjqL.js} +1 -1
- package/dist/assets/{CommandPalette-mO1FEvlx.js → CommandPalette-CSvgbXxg.js} +1 -1
- package/dist/assets/CourseLessonReader-1KDKwxIj.js +2 -0
- package/dist/assets/{CourseRail-CRcB319H.js → CourseRail-BijCpApU.js} +1 -1
- package/dist/assets/CoursesApp-BWkdYL07.js +2 -0
- package/dist/assets/{CrossExamPanel-Deywo95y.js → CrossExamPanel-Cn7b5y7B.js} +1 -1
- package/dist/assets/{DashPresent-BEm1tGse.js → DashPresent-B025i7iJ.js} +1 -1
- package/dist/assets/DashboardDetail-CZLnxgp0.js +2 -0
- package/dist/assets/DashboardLoopRuntime-7MpMUcMg.js +1 -0
- package/dist/assets/{DashboardOverview-DrdqBgds.js → DashboardOverview-COyleu7v.js} +1 -1
- package/dist/assets/{DashboardSettings-CBhzLW0P.js → DashboardSettings-DUfUqbsp.js} +1 -1
- package/dist/assets/DashboardsApp-6xMz2qCP.js +2 -0
- package/dist/assets/{DeepZoomApp-Chz6laKc.js → DeepZoomApp-CQaTT2Uh.js} +1 -1
- package/dist/assets/{DelegatePanel-DmtTY_lE.js → DelegatePanel-D4OrMa2D.js} +1 -1
- package/dist/assets/{DemoGallery-zw3d7ap9.js → DemoGallery-Bt92vKqc.js} +1 -1
- package/dist/assets/{DropSelect-Bo2Oyi-2.js → DropSelect-Q310fTbf.js} +1 -1
- package/dist/assets/{ExportModal-DICXavg9.js → ExportModal-D0zXlC8w.js} +2 -2
- package/dist/assets/ExtractionPreview-0SZYynDs.js +18 -0
- package/dist/assets/{FlagshipCTA-B-7nH43r.js → FlagshipCTA-D845jkdt.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-DgTL_Kjj.js → FlagshipCommandPalette-DHMnyG7j.js} +1 -1
- package/dist/assets/{FlagshipShowcase-CbAC2s4X.js → FlagshipShowcase-BuR3PZvU.js} +1 -1
- package/dist/assets/{FlashcardsApp-CatYcaJJ.js → FlashcardsApp-BzWb4cRP.js} +1 -1
- package/dist/assets/{ForecastPanel-BOG361kr.js → ForecastPanel-lTnux0EB.js} +1 -1
- package/dist/assets/GalleryApp-D0NGZ1_t.js +1 -0
- package/dist/assets/{HonestByDesign-hCxc0A7b.js → HonestByDesign-CCOt31nx.js} +1 -1
- package/dist/assets/{HowItWorks-BlbQcUxx.js → HowItWorks-auW5XXCZ.js} +1 -1
- package/dist/assets/{LegalApp-sCZjJYWx.js → LegalApp-DXDomKFv.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-Bk3U7ChN.js → LegalMarkdownDocument-DBjLz9Yf.js} +1 -1
- package/dist/assets/{LegalPageShell-BsgRV7aL.js → LegalPageShell-BG5UUk-9.js} +1 -1
- package/dist/assets/{LeverPanel-CP32QcIf.js → LeverPanel-CvYnTLjh.js} +1 -1
- package/dist/assets/{Library-CJTnp1pC.js → Library-Cl1gE9Qg.js} +1 -1
- package/dist/assets/{LibraryOverlay-geQRGAzG.js → LibraryOverlay-CX4cJLqD.js} +1 -1
- package/dist/assets/LiveApp-CDckMWYX.js +61 -0
- package/dist/assets/LiveSettings-DgfIXanM.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-7HLErRQF.js → MindMapViewerDrawer-ClU9wgSH.js} +1 -1
- package/dist/assets/{MindShape-Bhu4yoIj.js → MindShape-yF19n9qq.js} +1 -1
- package/dist/assets/{PinToDashboard-Cj8S9XKC.js → PinToDashboard-CpIDAcIU.js} +1 -1
- package/dist/assets/PlanReview-CPcqOxjp.js +1 -0
- package/dist/assets/{Presence-DDxb6yE5.js → Presence-CHGZ1JRp.js} +1 -1
- package/dist/assets/{PresentationDeck-B6AHRYEA.js → PresentationDeck-CrtiWjiM.js} +1 -1
- package/dist/assets/PrismApp-D7RbekoX.js +2 -0
- package/dist/assets/{PrismAskController-DUvOTeW9.js → PrismAskController-D6_7Epdb.js} +1 -1
- package/dist/assets/PrismBriefingPlayer-Dq5_KRU3.js +2 -0
- package/dist/assets/PrismOverlay-CduGpA8D.js +131 -0
- package/dist/assets/{PrivacyApp-CatB3OpJ.js → PrivacyApp-rhzy-5HG.js} +1 -1
- package/dist/assets/{Recap-DkKrrqi5.js → Recap-BPg2xEPo.js} +1 -1
- package/dist/assets/{ReelJelly-DCD4bG10.js → ReelJelly-LWeMsFpj.js} +1 -1
- package/dist/assets/ReplayCard-C3dGQfxG.js +2 -0
- package/dist/assets/{ReplayOverlay-DbJX08Kr.js → ReplayOverlay-C9W603B5.js} +1 -1
- package/dist/assets/{RewindOverlay-Bop4a63b.js → RewindOverlay-BIWmxQlx.js} +1 -1
- package/dist/assets/RippleApp-C9-KFvkn.js +2 -0
- package/dist/assets/{RippleAskController-CK4iSwT0.js → RippleAskController-DEKz-6Vn.js} +1 -1
- package/dist/assets/RippleOverlay-CfXvnUHE.js +6 -0
- package/dist/assets/{SeeDontRead-CGGKmvBV.js → SeeDontRead-DrG1qBxJ.js} +1 -1
- package/dist/assets/{ShareModal-D4En6Y3L.js → ShareModal-eJ6sdMpf.js} +1 -1
- package/dist/assets/{ShipCascade-k_GWrcau.js → ShipCascade-BP8qL0yM.js} +1 -1
- package/dist/assets/{ShipCourse-BQOY4MyI.js → ShipCourse-BoqW58VU.js} +1 -1
- package/dist/assets/{ShipHotspots-vLRK0w_b.js → ShipHotspots-_9XPhZg2.js} +1 -1
- package/dist/assets/{ShipIncident-BWxerYtX.js → ShipIncident-Xod2gbjc.js} +1 -1
- package/dist/assets/{ShipMigration-OgAGEbjm.js → ShipMigration-BdkaiJ9D.js} +1 -1
- package/dist/assets/{ShipOnboarding-B_2IEq3N.js → ShipOnboarding-CblWatXR.js} +1 -1
- package/dist/assets/{ShipRead--gGqg2SE.js → ShipRead-BBn7xkOF.js} +1 -1
- package/dist/assets/{ShipRollout-B_U2P8Yw.js → ShipRollout-i5BY3YnP.js} +1 -1
- package/dist/assets/{ShipSuggestions-D9coTmgw.js → ShipSuggestions-liytLgC-.js} +1 -1
- package/dist/assets/{ShipWorkspace-BmdcHZXa.js → ShipWorkspace-C3VQwGn1.js} +1 -1
- package/dist/assets/{SignatureLoop-KA6Cf93g.js → SignatureLoop-Ba7plTb5.js} +1 -1
- package/dist/assets/{SynthesisApp-BCBhCJhx.js → SynthesisApp-Ch0tWRBS.js} +2 -2
- package/dist/assets/{SynthesisOverlay-BuGIeaKq.js → SynthesisOverlay-DMZndCzV.js} +1 -1
- package/dist/assets/{TermsApp-CleIlDtR.js → TermsApp-Dk2jpxq-.js} +1 -1
- package/dist/assets/{TopicCanvas-BRu3xVL8.js → TopicCanvas-DX0Z1ZHv.js} +2 -2
- package/dist/assets/{TourPrism-zbVLe2ag.js → TourPrism-6fWPMU4Z.js} +1 -1
- package/dist/assets/{TrackerTile-D9Wa3CSq.js → TrackerTile-BboQpBGy.js} +2 -2
- package/dist/assets/{TwoSurfaces-TyWXgAdq.js → TwoSurfaces-Cabk1rES.js} +1 -1
- package/dist/assets/{UnderstoodPanel-BS9OhgLJ.js → UnderstoodPanel-B6jfiKx1.js} +1 -1
- package/dist/assets/{WhyMachineOverlay-B-KJhCjr.js → WhyMachineOverlay-BRNibJSf.js} +1 -1
- package/dist/assets/{WowFeatures-Bv1-PmXF.js → WowFeatures-C7f4qzIf.js} +1 -1
- package/dist/assets/{ZoomDeck-C2Q6xbgX.js → ZoomDeck-BtlVyhwv.js} +1 -1
- package/dist/assets/{alternateFinishes-BG6svkXG.js → alternateFinishes-CVUX4x0C.js} +1 -1
- package/dist/assets/{annotationAuto-BpBsjbDQ.js → annotationAuto-BjWqgseH.js} +1 -1
- package/dist/assets/{annotationReel-yzysA-Gr.js → annotationReel-B5A2RZkx.js} +1 -1
- package/dist/assets/{backup-BdeBr3wq.js → backup-d46KwktS.js} +1 -1
- package/dist/assets/cachedImport-DW0gP14h.js +1 -0
- package/dist/assets/canvas-BuMP6u6i.js +1 -0
- package/dist/assets/{catalog-DF7YTNju.js → catalog-Bv0dWU_C.js} +1 -1
- package/dist/assets/confirmAdd-CWWtX1VN.js +1 -0
- package/dist/assets/{dashboardEvents-C_XvGVLJ.js → dashboardEvents-Be4sftHN.js} +1 -1
- package/dist/assets/{dist-CBEt6Q8V.js → dist-DIKAXwpM.js} +1 -1
- package/dist/assets/{fit-B1LJWvMO.js → fit-CuHWhwsj.js} +1 -1
- package/dist/assets/{generateLive-ChhSWKbq.js → generateLive-CMbGT3eM.js} +1 -1
- package/dist/assets/index-Dbr1j8Fe.js +22 -0
- package/dist/assets/{jspdf.es.min-DutJi91O.js → jspdf.es.min-ydC1TxUW.js} +1 -1
- package/dist/assets/{kokoro-kGWf7M0e.js → kokoro-DsmNzulR.js} +1 -1
- package/dist/assets/{lib-C7zXL8h0.js → lib-B6qSkBPa.js} +1 -1
- package/dist/assets/{liveSchema-DCL21WdS.js → liveSchema-B1MGdSkK.js} +1 -1
- package/dist/assets/{motion-dfA87zbb.js → motion-luJxBPnj.js} +1 -1
- package/dist/assets/notes-3WQ6b0Mi.js +1 -0
- package/dist/assets/{pdf-DFYCstCC.js → pdf-RyoPCIGN.js} +1 -1
- package/dist/assets/{perfProbe-CCSPF3EA.js → perfProbe-Xs39DqMh.js} +1 -1
- package/dist/assets/{pin-D5_Ebl_s.js → pin-Cj-LMfpK.js} +1 -1
- package/dist/assets/{portal-BndazODr.js → portal-zyqZwnb1.js} +1 -1
- package/dist/assets/{pptxgen.es-CwCkoJdp.js → pptxgen.es-CveAizg8.js} +1 -1
- package/dist/assets/{prewarm--KODwuMi.js → prewarm-K5WcvrNh.js} +1 -1
- package/dist/assets/{quietHours-DVPplPtM.js → quietHours-BklvMqsV.js} +1 -1
- package/dist/assets/{registry-DQIm_hbI.js → registry-1h9idbfk.js} +1 -1
- package/dist/assets/{registry-Dphh5ADP.js → registry-2zthbrHC.js} +1 -1
- package/dist/assets/{registry-D7rspCZr.js → registry-4O5l9cd5.js} +1 -1
- package/dist/assets/{registry-WJE8Z0T1.js → registry-BRB85vr4.js} +1 -1
- package/dist/assets/registry-BdMZ_4cm.js +2 -0
- package/dist/assets/{registry-Ba9xMFO4.js → registry-Bnp_yh8G.js} +2 -2
- package/dist/assets/{registry-BlB0FYf0.js → registry-C1IrZBk8.js} +1 -1
- package/dist/assets/{registry-B3V5-8v0.js → registry-C5DK98Hl.js} +1 -1
- package/dist/assets/{registry-0E1uKPCI.js → registry-CK0-re_Q.js} +1 -1
- package/dist/assets/{registry-DrNMbrA_.js → registry-COrl_Heq.js} +1 -1
- package/dist/assets/{registry-wJhGGVuP.js → registry-CQUQlrSx.js} +1 -1
- package/dist/assets/{registry-COxprhRN.js → registry-CXa3qXl3.js} +1 -1
- package/dist/assets/{registry-CWkBxxsI.js → registry-C_baBbqq.js} +1 -1
- package/dist/assets/{registry-CIa1EU-G.js → registry-CjY5POtx.js} +1 -1
- package/dist/assets/{registry-C30HGS2G.js → registry-CoBAqOlY.js} +1 -1
- package/dist/assets/{registry-Dvv84L9K.js → registry-DJj-o3MQ.js} +1 -1
- package/dist/assets/{registry-DNzF-nvu.js → registry-DfCCnIfu.js} +1 -1
- package/dist/assets/{registry-D-qEhm1d.js → registry-DfgFkD3J.js} +1 -1
- package/dist/assets/{registry-M3VgAiQv.js → registry-Dhlx1mF4.js} +1 -1
- package/dist/assets/{registry-nG70-amx.js → registry-DnEh7nbX.js} +1 -1
- package/dist/assets/{registry-hsSlT6pi.js → registry-VD94nLXO.js} +1 -1
- package/dist/assets/{registry-BH6FfyZk.js → registry-mFD4P5dI.js} +1 -1
- package/dist/assets/registry-sDzDmht4.js +1 -0
- package/dist/assets/{relate-DxAi8xpo.js → relate-CEND9Qlk.js} +1 -1
- package/dist/assets/{shikiHighlight-B_TEagaE.js → shikiHighlight-SCFIB43b.js} +1 -1
- package/dist/assets/useDashboardLoop-C8Mcbcto.js +5 -0
- package/dist/assets/{useLiveConfig-Lm0cYTcu.js → useLiveConfig-BW1WkpTc.js} +1 -1
- package/dist/assets/{useSpatialCanvas-D_C8VoCy.js → useSpatialCanvas-C5TNlpeK.js} +1 -1
- package/dist/assets/{useSpotlightWalk-CCQT0-_g.js → useSpotlightWalk-dA3IdI-1.js} +1 -1
- package/dist/assets/{useSrsCards-BKCPBPYw.js → useSrsCards-C7Xni9C0.js} +1 -1
- package/dist/assets/{useStudy-Diy4ITBm.js → useStudy-DHRIx8p-.js} +1 -1
- package/dist/assets/{useZoomGesture-B82XnSfi.js → useZoomGesture-BsPXvLw2.js} +1 -1
- package/dist/index.html +2 -1
- package/package.json +1 -1
- package/dist/assets/CourseLessonReader-CKfvBMtL.js +0 -2
- package/dist/assets/CoursesApp-BbCGxAav.js +0 -2
- package/dist/assets/DashboardDetail-tK6FpgtH.js +0 -2
- package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +0 -1
- package/dist/assets/DashboardsApp-Dc43FBIi.js +0 -2
- package/dist/assets/ExtractionPreview-C636AVw-.js +0 -18
- package/dist/assets/GalleryApp-uW6b1Y0d.js +0 -1
- package/dist/assets/LiveApp-C0BN0o3_.js +0 -61
- package/dist/assets/LiveSettings-CzSXXMoo.js +0 -6
- package/dist/assets/PlanReview-3NxZD9wt.js +0 -1
- package/dist/assets/PrismApp-BlPpWxao.js +0 -2
- package/dist/assets/PrismBriefingPlayer-Bmo9tOGX.js +0 -2
- package/dist/assets/PrismOverlay-9Q_14eEO.js +0 -131
- package/dist/assets/ReplayCard-Bz69tOST.js +0 -2
- package/dist/assets/RippleApp-u3hCfb5b.js +0 -2
- package/dist/assets/RippleOverlay-BM_B9JEc.js +0 -6
- package/dist/assets/canvas-Ep2Kfupo.js +0 -1
- package/dist/assets/index-C7H7A1rW.js +0 -22
- package/dist/assets/notes-DblI4Ko_.js +0 -1
- package/dist/assets/registry-B51MhOLx.js +0 -2
- package/dist/assets/registry-Pr5IKqro.js +0 -1
- package/dist/assets/useDashboardLoop-DzbRz-V9.js +0 -5
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/generateCourse-Cj_-vDWu.js","assets/chunk-BVpWp9h4.js","assets/providers-wzm7E8Pa.js","assets/http-CJCtjYpA.js","assets/info-CiqHR5cs.js","assets/useLiveConfig-Lm0cYTcu.js","assets/index-C7H7A1rW.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/keyVault-DEsNh9FR.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,L as r,M as i,N as a,R as o,ht as s,j as c,q as l}from"./index-C7H7A1rW.js";import{n as u}from"./icons-CHVz6kv_.js";import{t as d}from"./useFocusTrap-DbfG6zbM.js";import{t as f}from"./homeTarget-BcZYH3DY.js";import{t as p}from"./DropSelect-Bo2Oyi-2.js";import{i as m}from"./store-DXmC_fP2.js";import{c as h,g,l as _,m as ee,p as v,s as y}from"./store-BMRQiV1z.js";import{i as b,t as x}from"./courseSeed-CZdNBTTs.js";/* empty css */import{n as te,t as ne}from"./useSrsCards-BKCPBPYw.js";import{t as re}from"./deckLine-NBd3MyGT.js";var ie=s(),S=e(),C=t();n();var w;function T(){return w??=Promise.all([l(()=>import(`./generateCourse-Cj_-vDWu.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])),l(()=>import(`./useLiveConfig-Lm0cYTcu.js`).then(e=>e.d),__vite__mapDeps([5,1,6,7,8,9,10,2,3,4,11]))]),w}function E(){T().catch(()=>{})}function D(){return(0,S.useSyncExternalStore)(g,y,y)}function ae(e,t){x({courseId:e,lessonIdx:t}),window.location.hash=`#/course`}function oe(e,t){let n=e.lessons.filter(e=>t.lessons[e.id]?.status===`done`).length;return n>=e.lessons.length?`complete`:n>0||t.current>0?`in-progress`:`new`}var se={beginner:`Beginner`,intermediate:`Intermediate`,expert:`Expert`},O=[`Personal finance basics`,`How the internet works`,`Spanish for travel`];function k(e){let t=(0,ie.c)(67),{course:n,progress:i,onRemove:a}=e,s=(0,S.useRef)(null),[c,l]=(0,S.useState)(!1),d=n.lessons.length,f;if(t[0]!==n.lessons||t[1]!==i.lessons){let e;t[3]===i.lessons?e=t[4]:(e=e=>i.lessons[e.id]?.status===`done`,t[3]=i.lessons,t[4]=e),f=n.lessons.filter(e),t[0]=n.lessons,t[1]=i.lessons,t[2]=f}else f=t[2];let p=f.length,h;t[5]!==p||t[6]!==d?(h=d?Math.round(p/d*100):0,t[5]=p,t[6]=d,t[7]=h):h=t[7];let g=h,_=oe(n,i),ee=Math.max(0,Math.min(i.current,d-1)),v=n.lessons[ee],y=`Lesson ${ee+1} of ${d}`,b=_===`complete`?`Review`:_===`in-progress`?`Continue`:`Start course`;ne();let x;t[8]===n.title?x=t[9]:(x=e=>e.name===n.title,t[8]=n.title,t[9]=x);let w=m().decks.find(x),T,E;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=s.current;if(!e)return;let t=de,n=()=>{t=o(ue)};if(!(`IntersectionObserver`in window))return n(),t;let r=new IntersectionObserver(e=>{e.some(le)&&(r.disconnect(),n())});return r.observe(e),()=>{r.disconnect(),t()}},E=[],t[10]=T,t[11]=E):(T=t[10],E=t[11]),(0,S.useEffect)(T,E);let D=`cr-card cr-card-${_}`,O;t[12]===n.level?O=t[13]:(O=n.level&&(0,C.jsx)(`span`,{className:`cr-badge`,children:se[n.level]}),t[12]=n.level,t[13]=O);let k=`cr-status cr-status-`+_,A=_===`complete`?`Complete`:_===`in-progress`?`In progress`:`New`,j;t[14]!==k||t[15]!==A?(j=(0,C.jsx)(`span`,{className:k,children:A}),t[14]=k,t[15]=A,t[16]=j):j=t[16];let M;t[17]!==j||t[18]!==O?(M=(0,C.jsxs)(`div`,{className:`cr-card-top`,children:[O,j]}),t[17]=j,t[18]=O,t[19]=M):M=t[19];let N;t[20]===n.title?N=t[21]:(N=(0,C.jsx)(`h3`,{className:`cr-card-title`,children:n.title}),t[20]=n.title,t[21]=N);let P=n.subtitle||n.topic,F;t[22]===P?F=t[23]:(F=(0,C.jsx)(`p`,{className:`cr-card-sub`,children:P}),t[22]=P,t[23]=F);let I=`${n.title} progress`,L=`${p} of ${d} lessons complete`,R=`${g}%`,z;t[24]===R?z=t[25]:(z=(0,C.jsx)(`div`,{className:`cr-progress-fill`,style:{width:R}}),t[24]=R,t[25]=z);let B;t[26]!==g||t[27]!==I||t[28]!==L||t[29]!==z?(B=(0,C.jsx)(`div`,{className:`cr-progress`,role:`progressbar`,"aria-label":I,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":g,"aria-valuetext":L,children:z}),t[26]=g,t[27]=I,t[28]=L,t[29]=z,t[30]=B):B=t[30];let V;t[31]===y?V=t[32]:(V=(0,C.jsx)(`span`,{children:y}),t[31]=y,t[32]=V);let H;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,C.jsx)(`span`,{className:`cr-card-meta-dot`,"aria-hidden":`true`}),t[33]=H):H=t[33];let U;t[34]!==p||t[35]!==d?(U=(0,C.jsxs)(`span`,{children:[p,`/`,d,` done`]}),t[34]=p,t[35]=d,t[36]=U):U=t[36];let W;t[37]!==V||t[38]!==U?(W=(0,C.jsxs)(`div`,{className:`cr-card-meta`,children:[V,H,U]}),t[37]=V,t[38]=U,t[39]=W):W=t[39];let G;t[40]!==v||t[41]!==_?(G=v&&(0,C.jsxs)(`div`,{className:`cr-current-lesson`,children:[(0,C.jsx)(`span`,{children:_===`complete`?`Review from`:`Up next`}),(0,C.jsx)(`strong`,{children:v.title})]}),t[40]=v,t[41]=_,t[42]=G):G=t[42];let K=w&&(0,C.jsxs)(`a`,{className:`cr-deck-link`,href:te.deck(n.title),children:[(0,C.jsx)(u.layers,{}),re(w)]}),q;t[43]!==n.id||t[44]!==i.current?(q=()=>ae(n.id,i.current),t[43]=n.id,t[44]=i.current,t[45]=q):q=t[45];let J,Y;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(J=r(ce),Y=(0,C.jsx)(u.play,{}),t[46]=J,t[47]=Y):(J=t[46],Y=t[47]);let X;t[48]!==b||t[49]!==q?(X=(0,C.jsxs)(`button`,{type:`button`,className:`cr-btn cr-btn-primary`,onClick:q,...J,children:[Y,` `,b]}),t[48]=b,t[49]=q,t[50]=X):X=t[50];let Z;t[51]!==c||t[52]!==a?(Z=c?(0,C.jsxs)(`div`,{className:`cr-delete-confirm`,role:`group`,"aria-label":`Confirm course deletion`,children:[(0,C.jsx)(`span`,{children:`Delete?`}),(0,C.jsx)(`button`,{type:`button`,className:`cr-delete-cancel`,onClick:()=>l(!1),children:`Cancel`}),(0,C.jsx)(`button`,{type:`button`,className:`cr-icon-btn cr-icon-danger`,"aria-label":`Confirm delete course`,onClick:a,children:(0,C.jsx)(u.check,{})})]}):(0,C.jsx)(`button`,{type:`button`,className:`cr-icon-btn`,"aria-label":`Delete course`,onClick:()=>l(!0),children:(0,C.jsx)(u.x,{})}),t[51]=c,t[52]=a,t[53]=Z):Z=t[53];let Q;t[54]!==X||t[55]!==Z?(Q=(0,C.jsxs)(`div`,{className:`cr-card-actions`,children:[X,Z]}),t[54]=X,t[55]=Z,t[56]=Q):Q=t[56];let $;return t[57]!==M||t[58]!==N||t[59]!==F||t[60]!==B||t[61]!==W||t[62]!==G||t[63]!==K||t[64]!==Q||t[65]!==D?($=(0,C.jsxs)(`article`,{className:D,ref:s,children:[M,N,F,B,W,G,K,Q]}),t[57]=M,t[58]=N,t[59]=F,t[60]=B,t[61]=W,t[62]=G,t[63]=K,t[64]=Q,t[65]=D,t[66]=$):$=t[66],$}function ce(){return c(`#/course`)??Promise.resolve()}function le(e){return e.isIntersecting}function ue(){return c(`#/course`)??Promise.resolve()}function de(){}function A({initialTopic:e,onClose:t}){let n=(0,S.useRef)(null),i=(0,S.useRef)(null);d(i);let[a,o]=(0,S.useState)(e??``),[s,c]=(0,S.useState)(``),[l,f]=(0,S.useState)(!1),[m,h]=(0,S.useState)(null),g=(0,S.useRef)(null);(0,S.useEffect)(()=>()=>g.current?.abort(),[]),(0,S.useEffect)(()=>{let e=e=>{e.key!==`Escape`||l||(e.preventDefault(),t())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[l,t]);let _=(0,S.useRef)(null);(0,S.useEffect)(()=>{e?.trim()||_.current?.focus()},[]),(0,S.useEffect)(()=>{let e=n.current;if(!e)return;let r=n=>{!l&&n.target===e&&t()};return e.addEventListener(`pointerdown`,r),()=>e.removeEventListener(`pointerdown`,r)},[l,t]);let v=async e=>{if(!e||l)return;f(!0),h(null);let t=new AbortController;g.current=t;try{let[{generateCourse:n},{getLiveConfigV2:r,toModelConfig:i}]=await T(),a=await n(e,i(r()),{level:s||void 0,signal:t.signal});if(t.signal.aborted)return;ee(a),ae(a.id,0)}catch(e){if(t.signal.aborted)return;h(e instanceof Error?e.message:`Something went wrong building that course.`),f(!1)}},y=async e=>{e.preventDefault(),await v(a.trim())};return(0,C.jsx)(`div`,{className:`cr-scrim`,ref:n,children:(0,C.jsxs)(`div`,{className:`cr-sheet`,ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`cr-sheet-title`,"aria-describedby":`cr-sheet-subtitle`,tabIndex:-1,children:[(0,C.jsxs)(`div`,{className:`cr-sheet-head`,children:[(0,C.jsx)(`div`,{className:`cr-sheet-mark`,"aria-hidden":`true`,children:(0,C.jsx)(u.layers,{})}),(0,C.jsxs)(`div`,{className:`cr-sheet-heading`,children:[(0,C.jsx)(`span`,{className:`cr-sheet-title`,id:`cr-sheet-title`,children:`New course`}),(0,C.jsx)(`span`,{className:`cr-sheet-subtitle`,id:`cr-sheet-subtitle`,children:`A tailored syllabus, built around what you want to understand.`})]}),(0,C.jsx)(`button`,{type:`button`,className:`cr-ed-close`,"aria-label":`Close`,onClick:t,disabled:l,children:(0,C.jsx)(u.x,{})})]}),(0,C.jsxs)(`form`,{className:`cr-sheet-body`,"aria-busy":l,onSubmit:e=>void y(e),children:[(0,C.jsxs)(`p`,{className:`cr-legal-note`,children:[(0,C.jsx)(`strong`,{children:`Learning aid, not an authority.`}),` Lessons are AI-generated and may be wrong or incomplete. Verify consequential or professional topics with authoritative sources. `,(0,C.jsx)(`a`,{href:`#/legal?from=home`,children:`Details`})]}),(0,C.jsxs)(`label`,{className:`cr-field`,children:[(0,C.jsx)(`span`,{className:`cr-field-label`,children:`Topic`}),(0,C.jsx)(`input`,{ref:_,type:`text`,className:`cr-input`,placeholder:`e.g. linear algebra, the French Revolution, Rust ownership`,value:a,onFocus:E,onChange:e=>{E(),o(e.target.value)},disabled:l,autoComplete:`off`})]}),(0,C.jsx)(`div`,{className:`cr-topic-picks`,"aria-label":`Topic suggestions`,children:O.map(e=>(0,C.jsx)(`button`,{type:`button`,onClick:()=>o(e),disabled:l,children:e},e))}),(0,C.jsxs)(`div`,{className:`cr-field`,children:[(0,C.jsx)(`span`,{className:`cr-field-label`,children:`Starting level`}),(0,C.jsx)(p,{ariaLabel:`Starting level`,triggerClassName:`cr-input`,value:s,onChange:e=>c(e),disabled:l,focusOnMount:!!e?.trim(),options:[{value:``,label:`Pick for me`},{value:`beginner`,label:`Beginner`},{value:`intermediate`,label:`Intermediate`},{value:`expert`,label:`Expert`}]}),(0,C.jsx)(`span`,{className:`cr-field-hint`,children:`Pick for me lets Mavéa infer the right starting point from your topic.`})]}),m&&(0,C.jsx)(`div`,{className:`cr-error`,role:`alert`,children:m}),(0,C.jsx)(`button`,{type:`submit`,className:`cr-btn cr-btn-primary cr-btn-wide`,disabled:!a.trim()||l,...r(()=>T().then(()=>void 0)),children:l?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`cr-spinner`,"aria-hidden":`true`}),` Building your syllabus…`]}):`Build course`})]})]})})}function j(){"use no memo";let e=f();(0,S.useEffect)(()=>i(a()),[]),D();let t=(0,S.useRef)(b()),[n,r]=(0,S.useState)(!!t.current),[o,s]=(0,S.useState)(t.current??``),c=h(),l=(e=``)=>{s(e),r(!0)};return(0,C.jsxs)(`div`,{className:`mavea-app cr-app`,children:[(0,C.jsxs)(`header`,{className:`cr-nav`,children:[(0,C.jsxs)(`button`,{type:`button`,className:`cr-nav-back`,onClick:()=>{window.location.hash=e.href},children:[(0,C.jsx)(u.chevL,{}),` `,e.label]}),(0,C.jsxs)(`div`,{className:`cr-nav-title`,children:[`Courses`,(0,C.jsxs)(`span`,{className:`cr-nav-sub`,children:[c.length,` course`,c.length===1?``:`s`]})]}),(0,C.jsxs)(`button`,{type:`button`,className:`cr-btn cr-btn-primary`,onClick:()=>l(),children:[(0,C.jsx)(u.plus,{}),` New course`]})]}),(0,C.jsx)(`main`,{className:`cr-main`,children:c.length===0?(0,C.jsxs)(`section`,{className:`cr-empty`,"aria-labelledby":`cr-empty-title`,children:[(0,C.jsxs)(`div`,{className:`cr-empty-copy`,children:[(0,C.jsx)(`div`,{className:`cr-empty-icon`,"aria-hidden":`true`,children:(0,C.jsx)(u.layers,{})}),(0,C.jsx)(`div`,{className:`cr-empty-eyebrow`,children:`No courses yet`}),(0,C.jsx)(`h1`,{className:`cr-empty-head`,id:`cr-empty-title`,children:`Build a clear path through anything`}),(0,C.jsx)(`p`,{className:`cr-empty-sub`,children:`Name what you want to understand. Mavéa maps the syllabus, teaches one focused lesson at a time, and turns missed checkpoints into review cards.`}),(0,C.jsxs)(`button`,{type:`button`,className:`cr-btn cr-btn-primary cr-empty-cta`,onClick:()=>l(),children:[(0,C.jsx)(u.plus,{}),` Build your first course`]}),(0,C.jsxs)(`div`,{className:`cr-starter-row`,"aria-label":`Try a topic`,children:[(0,C.jsx)(`span`,{children:`Or try`}),O.map(e=>(0,C.jsx)(`button`,{type:`button`,onClick:()=>l(e),children:e},e))]})]}),(0,C.jsxs)(`div`,{className:`cr-course-path`,"aria-label":`How a Mavéa course works`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{children:`01`}),(0,C.jsx)(`strong`,{children:`Shape the syllabus`}),(0,C.jsx)(`p`,{children:`A useful sequence, matched to your starting level.`})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{children:`02`}),(0,C.jsx)(`strong`,{children:`Learn visually`}),(0,C.jsx)(`p`,{children:`Focused lessons use the clearest canvas for each idea.`})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{children:`03`}),(0,C.jsx)(`strong`,{children:`Make it stick`}),(0,C.jsx)(`p`,{children:`Checkpoints and spaced review close the gaps.`})]})]})]}):(0,C.jsx)(`div`,{className:`cr-grid`,children:c.map(e=>(0,C.jsx)(k,{course:e,progress:_(e.id),onRemove:()=>v(e.id)},e.id))})}),n&&(0,C.jsx)(A,{initialTopic:o,onClose:()=>r(!1)})]})}export{j as CoursesApp};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/generateLive-ChhSWKbq.js","assets/blockLabel-DAqaHKy3.js","assets/liveSchema-DCL21WdS.js","assets/catalog-DF7YTNju.js","assets/index-C7H7A1rW.js","assets/chunk-BVpWp9h4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/facts-BBTt3ImG.js","assets/annotations-D2K9A5GB.js","assets/providers-wzm7E8Pa.js","assets/http-CJCtjYpA.js","assets/info-CiqHR5cs.js","assets/icons-CHVz6kv_.js","assets/catalog-BHjl-1uH.js","assets/safeImageUrl-CUkucDUu.js","assets/sourceHost-BV3t2XDb.js","assets/spokenText-D4zPX9JY.js","assets/streamParse-DRgMHWye.js","assets/shapes-Cw7tCHIp.js","assets/contentVault-DzTYWcbD.js","assets/keyVault-DEsNh9FR.js","assets/now-C9-UAzTC.js","assets/number-DXgzss0v.js","assets/layout-BFQOzXtG.js","assets/screen-DLR7p_yP.js","assets/search-Be63DJkp.js","assets/speed-DwPw9KSv.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,ht as r,q as i}from"./index-C7H7A1rW.js";import{n as a}from"./icons-CHVz6kv_.js";import{t as o}from"./useFocusTrap-DbfG6zbM.js";import{t as s}from"./TopicCanvas-BRu3xVL8.js";import{f as c}from"./CanvasSkeleton-CJwPWnFG.js";import{r as l}from"./sourceHost-BV3t2XDb.js";import"./canvas-Ep2Kfupo.js";import{A as u,B as d,F as f,L as p,M as m,P as h,R as g,_,b as v,k as y,m as b,o as x,s as S,x as ee,y as te}from"./useStudy-Diy4ITBm.js";import{l as C,n as w,r as T,u as ne}from"./useLiveConfig-Lm0cYTcu.js";import{f as re,g as E,h as D}from"./dashboardEvents-C_XvGVLJ.js";import{a as ie,i as O,t as ae}from"./CheckLogRail-DNtXlkcR.js";import{a as oe,i as se,n as ce,t as k}from"./format-hc2QOoIu.js";import{a as A,n as le,o as ue,s as j,t as de}from"./useDashboardLoop-DzbRz-V9.js";import{r as fe}from"./predictions-CYS7Vo39.js";import{t as pe}from"./planTracker-7AMCQPNx.js";import{t as me}from"./pin-D5_Ebl_s.js";/* empty css */var M=r(),N=e();function P(e,t){for(let n of document.elementsFromPoint(e,t)){let e=n.closest(`[data-dash-widget]`);if(e)return e.getAttribute(`data-dash-widget`)}return null}function he(e,t){let[n,r]=(0,N.useState)(null),[i,a]=(0,N.useState)(null),o=(0,N.useRef)({working:null,draggingId:null,onCommit:t,sourceIds:e,cleanup:null});o.current.onCommit=t,o.current.sourceIds=e,(0,N.useEffect)(()=>()=>o.current.cleanup?.(),[]);let s=(0,N.useCallback)(e=>t=>{if(t.button!==0&&t.pointerType===`mouse`)return;t.preventDefault();let n=[...o.current.sourceIds];o.current.working=n,o.current.draggingId=e,r(n),a(e);let i=e=>{let t=P(e.clientX,e.clientY),n=o.current.draggingId,i=o.current.working;if(!t||!n||!i||t===n)return;let a=i.indexOf(n),s=i.indexOf(t);if(a<0||s<0||a===s)return;let c=[...i];c.splice(s,0,c.splice(a,1)[0]),o.current.working=c,r(c)},s=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,s),o.current.cleanup=null;let e=o.current.working;o.current.working=null,o.current.draggingId=null,r(null),a(null),e&&o.current.onCommit(e)};o.current.cleanup=s,window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,s),window.addEventListener(`pointercancel`,s)},[]),c=(0,N.useCallback)(e=>t=>{if(t.key!==`ArrowUp`&&t.key!==`ArrowDown`)return;t.preventDefault();let n=o.current.sourceIds,r=n.indexOf(e),i=t.key===`ArrowUp`?r-1:r+1;if(r<0||i<0||i>=n.length)return;let a=[...n];a.splice(i,0,a.splice(r,1)[0]),o.current.onCommit(a)},[]);return{draggingId:i,order:n??e,handleProps:e=>({onPointerDown:s(e),onKeyDown:c(e),tabIndex:0,role:`button`,"aria-label":`Drag to reorder, or use arrow keys`})}}var ge={WATCHING:`watching`,CLEAR:`clear`,TRIGGERED:`triggered`,AWAITING:`awaiting`},_e={ORIGIN:`origin`,ADDED:`added`,LINKED:`linked`},ve={CLEAR:1,WATCHING:.75,TRIGGERED:0,AWAITING:0};function ye(e){let t=e.tripwires.filter(e=>e.state!==`AWAITING`);if(t.length===0)return null;let n=t.reduce((e,t)=>e+ve[t.state],0);return Math.round(100*n/t.length)}function be(e){return e===null?``:e>=80?`Tracking well`:e>=55?`Holding, with risks`:e>=30?`Slipping`:`Lines are breaking`}var xe=new Set([`thesis`,`alignmentgauge`,`standingalerts`,`sourceslineage`]);function Se(e,t){let n=t.block.type;if(!xe.has(n)){if(t.metricId&&n===`insight`){let n=e.metrics.find(e=>e.id===t.metricId);if(n){let e=n.lastValue===null?`—`:n.lastRaw??`${n.lastValue}${n.unit??``}`,r=n.lastValue===null?`inferred`:`strong`,i=t.block.props;return{...t.block,props:{...i,stat:e,conf:r}}}}return t.block}let r=e.sources.find(e=>e.kind===`ORIGIN`);if(n===`thesis`){let n=e.tripwires[0],i={reasoning:e.thesis.text,...r?{asOf:r.title}:{},...n?{reconsiderIf:n.label,tripwireState:ge[n.state]}:{}};return{...t.block,props:i}}if(n===`alignmentgauge`){let n=ye(e),r={pct:n,band:be(n)};return{...t.block,props:r}}if(n===`standingalerts`){let n={alerts:e.tripwires.map(e=>({label:e.label,state:ge[e.state]}))};return{...t.block,props:n}}let i={rows:e.sources.map(e=>({kind:_e[e.kind],label:e.title,...e.contributed?{contributed:e.contributed}:{}}))};return{...t.block,props:i}}var F=t();function Ce(e){return{id:`dash-`+(e.id??e.type),workspace:`Dashboards`,title:``,sub:``,opener:``,context:[],blocks:[{...e,col:12,delay:0}],proof:null,extras:{},group:`home`,suggests:[],keywords:[]}}function we(e){let t=(0,M.c)(18),{dashboard:n,widget:r,editing:i,dragging:a,children:o,footer:c}=e,l;t[0]!==n||t[1]!==r?(l=Se(n,r),t[0]=n,t[1]=r,t[2]=l):l=t[2];let u=l,d;t[3]===u?d=t[4]:(d=Ce(u),t[3]=u,t[4]=d);let f=d,p=`dash-span-${r.span}`,m=i?`dash-tile--editing`:``,h=a?`dash-tile--dragging`:``,g;t[5]!==p||t[6]!==m||t[7]!==h?(g=[`dash-tile`,p,m,h].filter(Boolean),t[5]=p,t[6]=m,t[7]=h,t[8]=g):g=t[8];let _=g.join(` `),v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v={},t[9]=v):v=t[9];let y;t[10]===f?y=t[11]:(y=(0,F.jsx)(s,{data:f,spot:null,built:v,onProve:I}),t[10]=f,t[11]=y);let b;return t[12]!==o||t[13]!==_||t[14]!==c||t[15]!==y||t[16]!==r.id?(b=(0,F.jsxs)(`div`,{className:_,"data-dash-widget":r.id,children:[o,y,c]}),t[12]=o,t[13]=_,t[14]=c,t[15]=y,t[16]=r.id,t[17]=b):b=t[17],b}function I(){}function L(){return`w-`+Math.random().toString(36).slice(2,8)}function Te(e){let t=new Set(e.widgets.map(e=>e.block.type));return[{key:`note`,label:`Note`,make:()=>({block:{type:`list`,col:12,id:L(),props:{title:`Note`,items:[`Add a note about this dashboard.`]}},span:2})},{key:`thesis`,label:`Reasoning note`,make:()=>({block:{type:`thesis`,col:12,id:L(),props:{reasoning:``}},span:2})},{key:`alignmentgauge`,label:`Alignment gauge`,make:()=>({block:{type:`alignmentgauge`,col:12,id:L(),props:{pct:null}},span:1})},{key:`standingalerts`,label:`Standing alerts`,make:()=>({block:{type:`standingalerts`,col:12,id:L(),props:{alerts:[]}},span:1})},{key:`sourceslineage`,label:`Sources`,make:()=>({block:{type:`sourceslineage`,col:12,id:L(),props:{rows:[]}},span:2})}].filter(e=>e.key===`note`||!t.has(e.key))}function Ee(e){let t=(0,M.c)(26),{dashboard:n,onClose:r}=e,[i,a]=(0,N.useState)(`menu`),[s,c]=(0,N.useState)(``),[l,u]=(0,N.useState)(!1),[d,f]=(0,N.useState)(null),p=Te(n),m=!!C(w()).apiKey,h;t[0]!==n||t[1]!==r?(h=e=>{let{block:t,span:i}=e.make(),a={id:L(),block:t,span:i,fromSource:`manual`};b(n.id,a),r()},t[0]=n,t[1]=r,t[2]=h):h=t[2];let g=h,_=(0,N.useRef)(!0),y,x;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>(_.current=!0,()=>{_.current=!1}),x=[],t[3]=y,t[4]=x):(y=t[3],x=t[4]),(0,N.useEffect)(y,x);let S;t[5]!==s||t[6]!==n||t[7]!==r||t[8]!==l?(S=async()=>{let e=s.trim();if(!e||l)return;if(n.metrics.length>=12||n.widgets.length>=12){f(`This board is full — remove a card or metric first, then track another number.`);return}u(!0),f(null);let t=await pe(e,C(w()));if(!_.current)return;let i=t.metrics[0];if(!i){u(!1),f(`No single number found in that — the Track bar on the Dashboards home builds richer trackers.`);return}let a=Date.now(),o={id:`m-${a}`,label:i.label,query:i.query,...i.unit?{unit:i.unit}:{},sourceQuote:{text:i.label,saidAt:a},lastValue:null,origin:`empty`},c={id:L(),block:{type:`insight`,col:12,id:`blk-${a}`,num:`1`,props:{title:o.label,stat:`—`,conf:`inferred`,summary:o.label}},span:1,metricId:o.id,fromSource:`manual`};v(n.id,{metrics:[o],tripwires:[],widgets:[c],source:{kind:`ADDED`,conversationId:`manual`,title:`Added by hand`,contributed:`Tracking ${o.label}`,at:a}}),te(n.id,a),le(n.id),r()},t[5]=s,t[6]=n,t[7]=r,t[8]=l,t[9]=S):S=t[9];let ee=S,T=(0,N.useRef)(null),ne;t[10]===r?ne=t[11]:(ne={onEscape:r},t[10]=r,t[11]=ne),o(T,ne);let re=(0,N.useRef)(null),E,D;t[12]===i?(E=t[13],D=t[14]):(E=()=>{i===`track`?re.current?.focus():T.current?.querySelector(`.dash-palette-item`)?.focus()},D=[i],t[12]=i,t[13]=E,t[14]=D),(0,N.useEffect)(E,D);let ie,O;t[15]===r?(ie=t[16],O=t[17]):(ie=()=>{let e=T.current?.parentElement;if(!e)return;let t=t=>{e.contains(t.target)||r()};return document.addEventListener(`pointerdown`,t),()=>document.removeEventListener(`pointerdown`,t)},O=[r],t[15]=r,t[16]=ie,t[17]=O),(0,N.useEffect)(ie,O);let ae;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(ae=e=>{let t=Array.from(T.current?.querySelectorAll(`.dash-palette-item`)??[]);t.length&&t[(t.indexOf(document.activeElement)+e+t.length)%t.length]?.focus()},t[18]=ae):ae=t[18];let oe=ae,se=i===`menu`?`menu`:`dialog`,ce=i===`menu`?`Add a widget`:`Track a number`,k;t[19]===i?k=t[20]:(k=e=>{i===`menu`&&(e.key!==`ArrowDown`&&e.key!==`ArrowUp`||(e.preventDefault(),oe(e.key===`ArrowDown`?1:-1)))},t[19]=i,t[20]=k);let A=i===`menu`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`button`,{type:`button`,role:`menuitem`,className:`dash-palette-item dash-palette-lead`,onClick:()=>a(`track`),children:`+ Track a number`}),p.map(e=>(0,F.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`dash-palette-item`,onClick:()=>g(e),children:[`+ `,e.label]},e.key))]}):(0,F.jsxs)(`div`,{className:`dash-ptrack`,children:[(0,F.jsxs)(`div`,{className:`dash-ptrack-head`,children:[(0,F.jsx)(`button`,{type:`button`,className:`dash-ptrack-back`,"aria-label":`Back to widget list`,onClick:()=>a(`menu`),children:`←`}),(0,F.jsx)(`span`,{className:`dash-ptrack-kicker`,children:`Track a number`})]}),m?(0,F.jsxs)(`form`,{className:`dash-ptrack-form`,onSubmit:e=>{e.preventDefault(),ee()},children:[(0,F.jsx)(`input`,{ref:re,className:`dash-ptrack-input`,value:s,placeholder:`BTC price, SF temperature, 10-year yield…`,"aria-label":`What number to track`,disabled:l,onChange:e=>c(e.target.value)}),d&&(0,F.jsx)(`p`,{className:`dash-ptrack-err`,children:d}),(0,F.jsx)(`button`,{type:`submit`,className:`dash-ptrack-go`,disabled:l||!s.trim(),children:l?`Planning…`:`Track · 1 call + 1 search`})]}):(0,F.jsxs)(`p`,{className:`dash-ptrack-gate`,children:[`A tracked number is fetched by real web searches on your own key — nothing is ever made up. `,(0,F.jsx)(`a`,{href:`#/live`,children:`Connect a model in Live`}),` first.`]})]}),ue;return t[21]!==se||t[22]!==ce||t[23]!==k||t[24]!==A?(ue=(0,F.jsx)(`div`,{ref:T,className:`dash-palette`,role:se,"aria-label":ce,tabIndex:-1,onKeyDown:k,children:A}),t[21]=se,t[22]=ce,t[23]=k,t[24]=A,t[25]=ue):ue=t[25],ue}function De(e){let t=(0,M.c)(24),{dashboardId:n,metric:r}=e,[i,a]=(0,N.useState)(r.lastValue===null?``:String(r.lastValue)),o;t[0]!==n||t[1]!==r.id||t[2]!==r.lastValue||t[3]!==r.unit||t[4]!==i?(o=()=>{let e=Number(i.replace(/[^0-9.+-]/g,``));if(i.trim()===``||!Number.isFinite(e))return;let t=Date.now(),a=r.lastValue;p(n,r.id,e,`${e}${r.unit??``}`,`user`,t);let o=ee(n);if(o){let{tripwires:e}=j(o,{[r.id]:a});g(n,e,t)}},t[0]=n,t[1]=r.id,t[2]=r.lastValue,t[3]=r.unit,t[4]=i,t[5]=o):o=t[5];let s=o,c;t[6]===s?c=t[7]:(c=e=>{e.preventDefault(),s()},t[6]=s,t[7]=c);let l=`Set ${r.label}…`,u=`Set ${r.label}`,d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>a(e.target.value),t[8]=d):d=t[8];let f;t[9]!==l||t[10]!==u||t[11]!==i?(f=(0,F.jsx)(`input`,{className:`dash-fill-input`,value:i,inputMode:`decimal`,placeholder:l,"aria-label":u,onChange:d}),t[9]=l,t[10]=u,t[11]=i,t[12]=f):f=t[12];let m;t[13]===r.unit?m=t[14]:(m=r.unit&&(0,F.jsx)(`span`,{className:`dash-fill-unit`,children:r.unit}),t[13]=r.unit,t[14]=m);let h;t[15]===i?h=t[16]:(h=i.trim(),t[15]=i,t[16]=h);let _=h===``,v;t[17]===_?v=t[18]:(v=(0,F.jsx)(`button`,{type:`submit`,className:`dash-fill-save`,disabled:_,children:`Save`}),t[17]=_,t[18]=v);let y;return t[19]!==v||t[20]!==c||t[21]!==f||t[22]!==m?(y=(0,F.jsxs)(`form`,{className:`dash-fill`,onSubmit:c,children:[f,m,v]}),t[19]=v,t[20]=c,t[21]=f,t[22]=m,t[23]=y):y=t[23],y}n();var R=()=>i(()=>import(`./generateLive-ChhSWKbq.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]));function Oe(){return!!C(w()).apiKey}function z(e){let t=(0,M.c)(15),[n,r]=(0,N.useState)(!1),[i,a]=(0,N.useState)(null),[o,s]=(0,N.useState)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],t[0]=c):c=t[0];let l=(0,N.useRef)(c),u=(0,N.useRef)(!1),d=(0,N.useRef)(null),f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{d.current?.abort(),d.current=null,u.current=!1,l.current=[],r(!1),a(null),s(null)},t[1]=f):f=t[1];let p;t[2]===e.id?p=t[3]:(p=[e.id],t[2]=e.id,t[3]=p),(0,N.useEffect)(f,p);let m,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>()=>d.current?.abort(),h=[],t[4]=m,t[5]=h):(m=t[4],h=t[5]),(0,N.useEffect)(m,h);let g;t[6]===e?g=t[7]:(g=t=>{let n=t.trim();if(!n||u.current||!Oe())return;u.current=!0,r(!0),s(n);let i=C(w()),o=e.widgets.map(t=>Se(e,t)),c=new AbortController;d.current=c,R().then(e=>{let{generateLive:t}=e;return t(n,l.current,i,void 0,{selectedBlocks:o,signal:c.signal})}).then(e=>{c.signal.aborted||(e.error||(l.current=[...l.current,{role:`user`,content:n},{role:`assistant`,content:e.narration}].slice(-8)),a(e))}).catch(()=>{c.signal.aborted||a(null)}).finally(()=>{c.signal.aborted||(u.current=!1,r(!1))})},t[6]=e,t[7]=g);let _=g,v;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{d.current?.abort(),u.current=!1,r(!1),a(null),s(null)},t[8]=v):v=t[8];let y=v,b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=Oe(),t[9]=b):b=t[9];let x;return t[10]!==o||t[11]!==n||t[12]!==i||t[13]!==_?(x={ready:b,loading:n,result:i,lastAsk:o,run:_,reset:y},t[10]=o,t[11]=n,t[12]=i,t[13]=_,t[14]=x):x=t[14],x}var B=/^(add|track|watch|monitor|follow)\b/i;function ke(e){let t=e.trim();return t&&B.test(t)?`add`:`ask`}function Ae(e){let t=[];return e.tripwires.length>0&&t.push(`Are the numbers holding where I want?`,`Which alert is closest to triggering?`),e.metrics[0]&&t.push(`What does ${e.metrics[0].label} tell me right now?`),t.push(`What changed since the last update?`),t.slice(0,3)}function V(e,t,n){n.length!==0&&me({block:n,question:t,target:e,fromSource:`talk`,firstCheck:!1,source:{kind:`ADDED`,conversationId:`talk`,title:`Asked: “${t}”`,contributed:`Pinned ${Math.min(n.length,4)} from this question`,at:Date.now()}})}function je(e){let t=(0,M.c)(29),{dashboard:n}=e,r=z(n),[i,a]=(0,N.useState)(``),[o,c]=(0,N.useState)(!1),[l,u]=(0,N.useState)(`ask`),d;t[0]===n?d=t[1]:(d=Ae(n),t[0]=n,t[1]=d);let f=d,p;t[2]===r?p=t[3]:(p=e=>{c(!1),u(ke(e)),r.run(e),a(``)},t[2]=r,t[3]=p);let m=p,h,g;t[4]!==l||t[5]!==n.id||t[6]!==o||t[7]!==r.lastAsk||t[8]!==r.loading||t[9]!==r.result?(h=()=>{l===`add`&&!r.loading&&r.result&&!r.result.error&&r.result.spec.blocks.length>0&&!o&&(V(n.id,r.lastAsk??``,r.result.spec.blocks),c(!0))},g=[l,r.loading,r.result,r.lastAsk,o,n.id],t[4]=l,t[5]=n.id,t[6]=o,t[7]=r.lastAsk,t[8]=r.loading,t[9]=r.result,t[10]=h,t[11]=g):(h=t[10],g=t[11]),(0,N.useEffect)(h,g);let _;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,F.jsx)(`div`,{className:`card-eyebrow dash-talk-eyebrow`,children:`Talk to this dashboard`}),t[12]=_):_=t[12];let v;t[13]!==f||t[14]!==i||t[15]!==m||t[16]!==r.loading||t[17]!==r.ready?(v=r.ready?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`dash-talk-chips`,children:f.map(e=>(0,F.jsxs)(`button`,{type:`button`,className:`dash-talk-chip`,disabled:r.loading,onClick:()=>m(e),children:[(0,F.jsx)(`span`,{className:`dash-talk-chip-orb`}),(0,F.jsxs)(`span`,{className:`dash-talk-chip-t`,children:[`“`,e,`”`]})]},e))}),(0,F.jsxs)(`form`,{className:`dash-talk-ask`,onSubmit:e=>{e.preventDefault(),m(i)},children:[(0,F.jsx)(`input`,{className:`dash-talk-input`,value:i,placeholder:`Ask a question, or type "add …" / "track …" to add it in one step`,onChange:e=>a(e.target.value),disabled:r.loading}),(0,F.jsx)(`button`,{type:`submit`,className:`dash-talk-send`,disabled:r.loading||!i.trim(),children:r.loading?`Thinking…`:`Ask`})]})]}):(0,F.jsxs)(`p`,{className:`dash-talk-gate`,children:[`Connect a model in `,(0,F.jsx)(`a`,{href:`#/live`,children:`Live`}),` to ask questions grounded in this dashboard.`]}),t[13]=f,t[14]=i,t[15]=m,t[16]=r.loading,t[17]=r.ready,t[18]=v):v=t[18];let y;t[19]!==l||t[20]!==n.id||t[21]!==o||t[22]!==r.lastAsk||t[23]!==r.loading||t[24]!==r.result?(y=r.lastAsk&&(0,F.jsxs)(`div`,{className:`dash-talk-answer`,children:[(0,F.jsxs)(`div`,{className:`dash-talk-q`,children:[`“`,r.lastAsk,`”`]}),r.loading?(0,F.jsx)(`div`,{className:`dash-talk-thinking`,children:`Mavéa is looking at your dashboard…`}):r.result?.error?(0,F.jsxs)(`div`,{className:`dash-talk-error`,children:[`That didn’t go through. Check your model in `,(0,F.jsx)(`a`,{href:`#/live`,children:`Live`}),` and try again.`]}):r.result?(0,F.jsxs)(F.Fragment,{children:[r.result.narration&&(0,F.jsx)(`p`,{className:`dash-talk-narration`,children:r.result.narration}),(0,F.jsx)(s,{data:r.result.spec,spot:null,built:{},onProve:Me}),r.result.spec.blocks.length>0&&(o?(0,F.jsx)(`div`,{className:`dash-talk-pinned`,children:l===`add`?(0,F.jsx)(F.Fragment,{children:`Auto-added — this read like a command, not a question. Remove it from Edit layout if that’s wrong.`}):`Added to this dashboard ✓`}):l===`add`?null:(0,F.jsx)(`button`,{type:`button`,className:`dash-talk-pin`,onClick:()=>{V(n.id,r.lastAsk??``,r.result.spec.blocks),c(!0)},children:`+ Add this to the dashboard`}))]}):null]}),t[19]=l,t[20]=n.id,t[21]=o,t[22]=r.lastAsk,t[23]=r.loading,t[24]=r.result,t[25]=y):y=t[25];let b;return t[26]!==v||t[27]!==y?(b=(0,F.jsxs)(`section`,{className:`dash-talk`,children:[_,v,y]}),t[26]=v,t[27]=y,t[28]=b):b=t[28],b}function Me(){}function H(e){if(!e.history||e.history.length<2)return null;let t=e.history[e.history.length-2].value,n=e.history[e.history.length-1].value;if(n===t)return null;let r=n>t?`up`:`down`,i=Math.round(Math.abs(n-t)*100)/100,a=Number.isInteger(i)?String(i):i.toFixed(2),o=e.unit===`$`?`$`:``,s=e.unit&&e.unit!==`$`?e.unit:``;return{direction:r,text:`${r===`up`?`+`:`-`}${o}${a}${s}`}}function U(e){return new Date(e).toLocaleTimeString(void 0,{hour:`numeric`,minute:`2-digit`})}function W(e){if(e<=0)return`due now`;let t=Math.round(e/6e4);if(t<60)return`${t}m`;let n=Math.floor(t/60),r=t%60;if(n<24)return r?`${n}h ${r}m`:`${n}h`;let i=Math.floor(n/24),a=n%24;return a?`${i}d ${a}h`:`${i}d`}function Ne({dashboard:e,now:t,checking:n=!1}){let r=(0,N.useMemo)(()=>e.metrics.find(e=>e.lastValue!==null)??e.metrics[0],[e.metrics]),i=oe(e);if(!i||!r)return null;let a=H(r),o=i.label||e.title,s=r.asOf??e.lastRefreshedAt??null,c=e.cadence.data===`manual`?`when you refresh`:W(e.nextDataAt-t),l=r.history??[];return(0,F.jsxs)(`section`,{className:`card dash-hero`,"aria-label":`${o} — as of last check`,children:[(0,F.jsxs)(`div`,{className:`dash-hero-top`,children:[(0,F.jsxs)(`span`,{className:`dash-hero-eyebrow`,children:[o,`: as of last check`]}),(0,F.jsx)(`span`,{className:`dash-hero-meta`,children:n?`checking for new data…`:`as of ${s?U(s):`not yet checked`} / not real-time — next check ${c}`})]}),(0,F.jsxs)(`div`,{className:`dash-hero-value-row`,children:[(0,F.jsx)(`span`,{className:`dash-hero-value${n?` tile-value--checking`:``}`,children:i.value}),a&&(0,F.jsx)(`span`,{className:`dash-hero-delta dash-hero-delta--${a.direction}`,children:a.text})]}),(0,F.jsx)(`div`,{className:`dash-hero-chart`,children:l.length>=2?(0,F.jsx)(ie,{points:l,tone:a?.direction??`flat`}):(0,F.jsx)(`p`,{className:`dash-hero-chart-empty`,children:`Not enough history yet for a chart.`})})]})}function Pe(e){let t=(0,M.c)(6),{dashboard:n}=e,[r,i]=ne();if(E().keyNudgeShown||!T(r)||r.rememberKey||!se(n))return null;let a=G,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(`p`,{className:`dash-key-nudge-text`,children:`Mavéa checks this with your key, which currently lives only in this tab. Keep it on this device (encrypted) so checks still work after a reload?`}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,F.jsx)(`button`,{type:`button`,className:`dash-key-nudge-keep`,onClick:()=>{i({rememberKey:!0}),a()},children:`Keep key on this device`}),t[1]=i,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsx)(`button`,{type:`button`,className:`dash-key-nudge-dismiss`,onClick:a,children:`Not now`}),t[3]=c):c=t[3];let l;return t[4]===s?l=t[5]:(l=(0,F.jsxs)(`div`,{className:`card dash-key-nudge`,children:[o,(0,F.jsxs)(`div`,{className:`dash-key-nudge-actions`,children:[s,c]})]}),t[4]=s,t[5]=l),l}function G(){return D({keyNudgeShown:!0})}var K={hit:{label:`Called it ✓`,className:`is-hit`},miss:{label:`Missed ✗`,className:`is-miss`},unclear:{label:`Unclear`,className:`is-unclear`}};function q(e){let t=(0,M.c)(21),{dashboard:n,now:r}=e,i;t[0]===n.predictionHistory?i=t[1]:(i=n.predictionHistory??[],t[0]=n.predictionHistory,t[1]=i);let a=i,o=a.length>0?a[a.length-1]:null;if(!n.prediction&&!o)return null;let s;t[2]!==n.predictionHistory||t[3]!==r?(s=fe(n.predictionHistory,r),t[2]=n.predictionHistory,t[3]=r,t[4]=s):s=t[4];let c=s,l=o?K[o.result]:null,u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(`span`,{className:`card-eyebrow dash-expects-eyebrow`,children:`Expects by next check`}),t[5]=u):u=t[5];let d;t[6]===n.prediction?d=t[7]:(d=n.prediction&&(0,F.jsx)(`p`,{className:`dash-expects-text`,children:n.prediction.text}),t[6]=n.prediction,t[7]=d);let f;t[8]!==l||t[9]!==o?(f=o&&l&&(0,F.jsxs)(`div`,{className:`dash-expects-grade`,children:[(0,F.jsxs)(`span`,{className:`dash-expects-chip ${l.className}`,children:[`Last call: `,l.label]}),(0,F.jsxs)(`p`,{className:`dash-expects-expected`,children:[`“`,o.expected,`”`]}),o.note&&(0,F.jsx)(`p`,{className:`dash-expects-note`,children:o.note})]}),t[8]=l,t[9]=o,t[10]=f):f=t[10];let p;t[11]!==c.hits||t[12]!==c.total?(p=c.total>0&&(0,F.jsxs)(`span`,{className:`dash-expects-tally`,children:[`Calls this week · `,c.hits,`/`,c.total]}),t[11]=c.hits,t[12]=c.total,t[13]=p):p=t[13];let m;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,F.jsx)(`span`,{className:`dash-expects-label`,children:`Predictions are free — written from checks you already paid for`}),t[14]=m):m=t[14];let h;t[15]===p?h=t[16]:(h=(0,F.jsxs)(`div`,{className:`dash-expects-foot`,children:[p,m]}),t[15]=p,t[16]=h);let g;return t[17]!==d||t[18]!==f||t[19]!==h?(g=(0,F.jsxs)(`div`,{className:`dash-expects`,children:[u,d,f,h]}),t[17]=d,t[18]=f,t[19]=h,t[20]=g):g=t[20],g}function Fe(e){let t=(0,M.c)(23),{dashboard:n,now:r}=e,i=A(n.id);if(!(n.tripwires.length>0||n.lastVerdict||n.prediction||i))return null;let a=n.lastVerdict,o;t[0]!==n.tripwires||t[1]!==a?(o=a?n.tripwires.find(e=>e.id===a.tripwireId)??null:null,t[0]=n.tripwires,t[1]=a,t[2]=o):o=t[2];let s=o,c=!!n.lastVerdictError&&(n.lastVerdictAttemptAt??0)>(a?.at??0),l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(`span`,{className:`card-eyebrow dash-lastcheck-eyebrow`,children:`From the last check`}),t[3]=l):l=t[3];let u;t[4]!==r||t[5]!==a?(u=a&&(0,F.jsx)(`span`,{className:`dash-lastcheck-when`,children:k(a.at,r).replace(/^updated /,`checked `)}),t[4]=r,t[5]=a,t[6]=u):u=t[6];let d;t[7]===u?d=t[8]:(d=(0,F.jsxs)(`div`,{className:`dash-lastcheck-head`,children:[l,u]}),t[7]=u,t[8]=d);let f;t[9]!==n||t[10]!==c||t[11]!==r||t[12]!==i||t[13]!==s||t[14]!==a?(f=a?(0,F.jsxs)(F.Fragment,{children:[s&&(0,F.jsxs)(`p`,{className:`dash-lastcheck-text dash-lastcheck-about`,children:[`About: `,s.label]}),i?(0,F.jsx)(`p`,{className:`dash-lastcheck-text dash-lastcheck-pending`,children:`Mavéa is reading the latest numbers…`}):c&&(0,F.jsxs)(`p`,{className:`dash-lastcheck-text dash-lastcheck-error`,children:[`A newer check just failed: `,n.lastVerdictError]}),(0,F.jsx)(`p`,{className:`dash-lastcheck-text`,children:a.text}),a.grounded===!1&&(0,F.jsx)(`p`,{className:`dash-lastcheck-text dash-lastcheck-qualifier`,children:`Based on background knowledge, not a fresh search.`}),a.sources&&a.sources.length>0&&(0,F.jsx)(`div`,{className:`dash-lastcheck-sources`,children:a.sources.map(Ie)})]}):i?(0,F.jsx)(`p`,{className:`dash-lastcheck-text dash-lastcheck-pending`,children:`Mavéa is reading the latest numbers…`}):c?(0,F.jsx)(`p`,{className:`dash-lastcheck-text dash-lastcheck-error`,children:n.lastVerdictError}):(0,F.jsx)(`p`,{className:`dash-lastcheck-text dash-lastcheck-muted`,children:ce(n,r)}),t[9]=n,t[10]=c,t[11]=r,t[12]=i,t[13]=s,t[14]=a,t[15]=f):f=t[15];let p;t[16]!==n||t[17]!==r?(p=(0,F.jsx)(q,{dashboard:n,now:r}),t[16]=n,t[17]=r,t[18]=p):p=t[18];let m;return t[19]!==d||t[20]!==f||t[21]!==p?(m=(0,F.jsxs)(`section`,{className:`dash-lastcheck`,"aria-label":`From the last check`,children:[d,f,p]}),t[19]=d,t[20]=f,t[21]=p,t[22]=m):m=t[22],m}function Ie(e){let t=l(e.url);return t?(0,F.jsx)(`a`,{className:`dash-lastcheck-source`,href:t,target:`_blank`,rel:`noopener noreferrer`,title:e.title,children:e.title},e.url):null}var Le=[{v:`15min`,label:`15M`},{v:`hourly`,label:`1H`},{v:`6h`,label:`6H`},{v:`daily`,label:`DAILY`},{v:`manual`,label:`MANUAL`}],Re={"15min":`Every 15 minutes`,hourly:`Hourly`,"6h":`Every 6 hours`,daily:`Daily`,manual:`Manual`};function J(e){if(e===`manual`)return`Refreshes only when you ask — no automatic searches.`;let t=Math.round(1440/d[e]);return`${Re[e]} ≈ up to ~${t} searches/day while Mavéa is open. You provide the key and pay the search provider; a faster cadence can increase those charges. This is never real-time — each check is a snapshot.`}function Y(e){return new Date(e).toLocaleString(void 0,{weekday:`short`,hour:`numeric`,minute:`2-digit`})}function ze(e){let t=(0,M.c)(23),{dashboard:n,now:r}=e,i=n.cadence.data,a=n.cadence.window,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(`div`,{className:`card-eyebrow`,children:`Check cadence`}),t[0]=o):o=t[0];let s;t[1]!==n.id||t[2]!==i?(s=Le.map(e=>(0,F.jsx)(`button`,{type:`button`,className:`dash-seg-opt`+(e.v===i?` is-active`:``),"aria-pressed":e.v===i,onClick:()=>f(n.id,{data:e.v}),children:e.label},e.v)),t[1]=n.id,t[2]=i,t[3]=s):s=t[3];let c;t[4]===s?c=t[5]:(c=(0,F.jsx)(`div`,{className:`dash-seg`,role:`group`,"aria-label":`Data refresh cadence`,children:s}),t[4]=s,t[5]=c);let l;t[6]===i?l=t[7]:(l=J(i),t[6]=i,t[7]=l);let d;t[8]===l?d=t[9]:(d=(0,F.jsx)(`p`,{className:`dash-cadence-cost`,children:l}),t[8]=l,t[9]=d);let p;t[10]!==n.id||t[11]!==a?(p=a&&(0,F.jsxs)(`div`,{className:`dash-cadence-window`,children:[(0,F.jsxs)(`p`,{className:`dash-cadence-window-text`,children:[`Live window: `,(0,F.jsx)(`strong`,{children:a.label}),` · `,Y(a.startAt),`–`,Y(a.endAt)]}),(0,F.jsx)(`button`,{type:`button`,className:`dash-cadence-clear`,onClick:()=>u(n.id,null),children:`Clear`})]}),t[10]=n.id,t[11]=a,t[12]=p):p=t[12];let m;t[13]!==n.id||t[14]!==n.oneShotAt||t[15]!==n.oneShotLabel||t[16]!==r?(m=n.oneShotAt!==void 0&&(0,F.jsxs)(`div`,{className:`dash-cadence-oneshot`,children:[(0,F.jsx)(O,{targetAt:n.oneShotAt,now:r,label:n.oneShotLabel}),(0,F.jsx)(`button`,{type:`button`,className:`dash-cadence-clear`,onClick:()=>_(n.id),children:`Clear`})]}),t[13]=n.id,t[14]=n.oneShotAt,t[15]=n.oneShotLabel,t[16]=r,t[17]=m):m=t[17];let h;return t[18]!==c||t[19]!==d||t[20]!==p||t[21]!==m?(h=(0,F.jsxs)(`section`,{className:`card dash-cadence-card`,"aria-label":`Check cadence`,children:[o,c,d,p,m]}),t[18]=c,t[19]=d,t[20]=p,t[21]=m,t[22]=h):h=t[22],h}var X={WATCHING:`Watching`,CLEAR:`Clear`,AWAITING:`Awaiting data`,TRIGGERED:`Triggered`};function Z(e){let t=(0,M.c)(15),{tripwire:n}=e,r=n.state===`TRIGGERED`,i=`dash-alertcard-row`+(r?` is-triggered`:``),a=`dash-switch`+(n.state===`AWAITING`?``:` on`),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(`span`,{className:`dash-switch-knob`}),t[0]=o):o=t[0];let s;t[1]===a?s=t[2]:(s=(0,F.jsx)(`span`,{className:a,"aria-hidden":`true`,children:o}),t[1]=a,t[2]=s);let c=n.sourceQuote.text||n.label,l;t[3]===c?l=t[4]:(l=(0,F.jsx)(`span`,{className:`dash-alertcard-line`,children:c}),t[3]=c,t[4]=l);let u;t[5]!==r||t[6]!==n.state?(u=r?(0,F.jsx)(`span`,{className:`dash-alertcard-crossed`,children:`A line you set has been crossed`}):(0,F.jsx)(`span`,{className:`dash-alertcard-state`,children:X[n.state]}),t[5]=r,t[6]=n.state,t[7]=u):u=t[7];let d;t[8]!==l||t[9]!==u?(d=(0,F.jsxs)(`div`,{className:`dash-alertcard-body`,children:[l,u]}),t[8]=l,t[9]=u,t[10]=d):d=t[10];let f;return t[11]!==i||t[12]!==s||t[13]!==d?(f=(0,F.jsxs)(`li`,{className:i,children:[s,d]}),t[11]=i,t[12]=s,t[13]=d,t[14]=f):f=t[14],f}function Be(e){let t=(0,M.c)(5),{dashboard:n}=e;if(n.tripwires.length===0)return null;let r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,F.jsx)(`div`,{className:`card-eyebrow`,children:`Your alerts`}),t[0]=r):r=t[0];let i;t[1]===n.tripwires?i=t[2]:(i=n.tripwires.map(Q),t[1]=n.tripwires,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,F.jsxs)(`section`,{className:`card dash-alertcard`,"aria-label":`Your alerts`,children:[r,(0,F.jsx)(`ul`,{className:`dash-alertcard-list`,children:i})]}),t[3]=i,t[4]=a),a}function Q(e){return(0,F.jsx)(Z,{tripwire:e},e.id)}var Ve={1:`S`,2:`M`,3:`L`};function $(e){let t=(0,M.c)(117),{id:n}=e,r=x(),i;t[0]!==r||t[1]!==n?(i=r.find(e=>e.id===n)??null,t[0]=r,t[1]=n,t[2]=i):i=t[2];let o=i,[s,l]=(0,N.useState)(!1),[u,d]=(0,N.useState)(!1),f;t[3]===o?.widgets?f=t[4]:(f=o?.widgets.map(qe)??[],t[3]=o?.widgets,t[4]=f);let p=f,g;t[5]===o?g=t[6]:(g=e=>o&&m(o.id,e),t[5]=o,t[6]=g);let _=he(p,g),v;t[7]===o?.widgets?v=t[8]:(v=new Map((o?.widgets??[]).map(Ke)),t[7]=o?.widgets,t[8]=v);let b=v,ee,te;t[9]===o?(ee=t[10],te=t[11]):(ee=()=>{o&&c(o.widgets.map(Ge))},te=[o],t[9]=o,t[10]=ee,t[11]=te),(0,N.useEffect)(ee,te);let C=o?.id,w,E;t[12]===C?(w=t[13],E=t[14]):(w=()=>{C&&ue(C)},E=[C],t[12]=C,t[13]=w,t[14]=E),(0,N.useEffect)(w,E);let[D,ie]=(0,N.useState)(We),O,oe;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(oe=()=>{let e=window.setInterval(()=>ie(Date.now()),3e4);return()=>window.clearInterval(e)},O=[],t[15]=O,t[16]=oe):(O=t[15],oe=t[16]),(0,N.useEffect)(oe,O);let[k]=ne(),A=re(o?.id??``),[j,fe]=(0,N.useState)(`idle`),pe;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(pe=async e=>{fe(`busy`);let t=await le(e);fe(t===`no-model`||t===`failed`?t:`idle`)},t[17]=pe):pe=t[17];let me=pe,[P,ge]=(0,N.useState)(`idle`),_e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(_e=async e=>{ge(`busy`);let t=await de(e);ge(t===`no-model`||t===`failed`?t:`idle`)},t[18]=_e):_e=t[18];let ve=_e;if(!o){let e;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,F.jsx)(`p`,{className:`dash-empty-title`,children:`That dashboard isn’t here.`}),t[19]=e):e=t[19];let n;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,F.jsx)(`div`,{className:`dash-detail`,children:(0,F.jsxs)(`div`,{className:`dash-empty`,children:[e,(0,F.jsxs)(`p`,{className:`dash-empty-how`,children:[`It may have been removed. `,(0,F.jsx)(`a`,{href:S.gallery,children:`Back to your dashboards →`})]})]})}),t[20]=n):n=t[20],n}let ye;t[21]===o.id?ye=t[22]:(ye=(e,t)=>{h(o.id,e,t>=3?1:t+1)},t[21]=o.id,t[22]=ye);let be=ye,xe;t[23]!==b||t[24]!==be||t[25]!==o||t[26]!==s||t[27]!==_?(xe=_.order.map(e=>{let t=b.get(e);if(!t)return null;let n=t.metricId?o.metrics.find(e=>e.id===t.metricId):null,r=!s&&n?.blankKey?(0,F.jsx)(De,{dashboardId:o.id,metric:n}):void 0;return(0,F.jsx)(we,{dashboard:o,widget:t,editing:s,dragging:_.draggingId===t.id,footer:r,children:s&&(0,F.jsxs)(`div`,{className:`dash-tile-chrome`,children:[(0,F.jsx)(`span`,{className:`dash-tile-handle`,..._.handleProps(t.id),children:`⠿`}),(0,F.jsxs)(`div`,{className:`dash-tile-ctrls`,children:[(0,F.jsx)(`button`,{type:`button`,className:`dash-tile-size`,onClick:()=>be(t.id,t.span),title:`Resize`,children:Ve[t.span]}),(0,F.jsx)(`button`,{type:`button`,className:`dash-tile-x`,onClick:()=>y(o.id,t.id),"aria-label":`Remove widget`,children:`×`})]})]})},t.id)}),t[23]=b,t[24]=be,t[25]=o,t[26]=s,t[27]=_,t[28]=xe):xe=t[28];let Se=xe,Ce;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,F.jsx)(`a`,{className:`dash-back`,href:S.gallery,"aria-label":`Back to dashboards`,children:`←`}),t[29]=Ce):Ce=t[29];let I;t[30]===o.title?I=t[31]:(I=(0,F.jsx)(`span`,{className:`dash-detail-title`,children:o.title}),t[30]=o.title,t[31]=I);let L;t[32]===o.question?L=t[33]:(L=o.question&&(0,F.jsxs)(`span`,{className:`dash-detail-q`,title:o.question,children:[`“`,o.question,`”`]}),t[32]=o.question,t[33]=L);let Te;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,F.jsx)(`i`,{className:`dash-live-dot`}),t[34]=Te):Te=t[34];let R;t[35]!==o||t[36]!==A||t[37]!==D?(R=A?`checking for new data…`:ce(o,D),t[35]=o,t[36]=A,t[37]=D,t[38]=R):R=t[38];let Oe=!A&&se(o)&&o.cadence.data!==`manual`?` · refreshes while open`:``,z;t[39]!==R||t[40]!==Oe?(z=(0,F.jsxs)(`span`,{className:`dash-detail-clock`,children:[Te,R,Oe]}),t[39]=R,t[40]=Oe,t[41]=z):z=t[41];let B;t[42]===o.id?B=t[43]:(B=()=>void me(o.id),t[42]=o.id,t[43]=B);let ke=j===`busy`,Ae=j===`busy`?`dash-refresh-spin`:void 0,V;t[44]===Ae?V=t[45]:(V=(0,F.jsx)(a.refresh,{className:Ae}),t[44]=Ae,t[45]=V);let Me=j===`busy`?`Refreshing…`:`Refresh now`,H;t[46]!==B||t[47]!==ke||t[48]!==V||t[49]!==Me?(H=(0,F.jsxs)(`button`,{type:`button`,className:`dash-edit-btn dash-refresh-btn`,onClick:B,disabled:ke,title:`Fetch current values now, regardless of cadence`,children:[V,Me]}),t[46]=B,t[47]=ke,t[48]=V,t[49]=Me,t[50]=H):H=t[50];let U;t[51]!==o||t[52]!==k||t[53]!==j?(U=(j===`no-model`||!T(k)&&se(o))&&(0,F.jsx)(`span`,{className:`dash-refresh-hint`,children:`Connect a model in Live settings to refresh.`}),t[51]=o,t[52]=k,t[53]=j,t[54]=U):U=t[54];let W;t[55]===j?W=t[56]:(W=j===`failed`&&(0,F.jsx)(`span`,{className:`dash-refresh-hint`,children:`Couldn’t reach your model — check its key or quota, then try again.`}),t[55]=j,t[56]=W);let G;t[57]!==o.id||t[58]!==o.metrics.length||t[59]!==P?(G=o.metrics.length>0&&(0,F.jsxs)(`button`,{type:`button`,className:`dash-edit-btn dash-read-btn`,onClick:()=>void ve(o.id),disabled:P===`busy`,title:`Ask Mavéa to read the latest numbers now`,children:[(0,F.jsx)(a.sparkle,{className:P===`busy`?`dash-refresh-spin`:void 0}),P===`busy`?`Reading…`:`Read the numbers now`]}),t[57]=o.id,t[58]=o.metrics.length,t[59]=P,t[60]=G):G=t[60];let K;t[61]===P?K=t[62]:(K=P===`no-model`&&(0,F.jsx)(`span`,{className:`dash-refresh-hint`,children:`Connect a model in Live settings to read.`}),t[61]=P,t[62]=K);let q;t[63]===P?q=t[64]:(q=P===`failed`&&(0,F.jsx)(`span`,{className:`dash-refresh-hint`,children:`Couldn’t reach your model — check its key or quota, then try again.`}),t[63]=P,t[64]=q);let Ie=`dash-edit-btn`+(s?` is-active`:``),Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=()=>{l(Ue),d(!1)},t[65]=Le):Le=t[65];let Re=s?`Done`:`Edit layout`,J;t[66]!==Ie||t[67]!==Re?(J=(0,F.jsx)(`button`,{type:`button`,className:Ie,onClick:Le,children:Re}),t[66]=Ie,t[67]=Re,t[68]=J):J=t[68];let Y;t[69]===o.id?Y=t[70]:(Y=S.settings(o.id),t[69]=o.id,t[70]=Y);let X;t[71]===Y?X=t[72]:(X=(0,F.jsx)(`a`,{className:`dash-gear`,href:Y,"aria-label":`Dashboard settings`,title:`Settings`,children:`⚙`}),t[71]=Y,t[72]=X);let Z;t[73]!==I||t[74]!==L||t[75]!==z||t[76]!==H||t[77]!==U||t[78]!==W||t[79]!==G||t[80]!==K||t[81]!==q||t[82]!==J||t[83]!==X?(Z=(0,F.jsxs)(`header`,{className:`dash-detail-head`,children:[Ce,I,L,z,H,U,W,G,K,q,J,X]}),t[73]=I,t[74]=L,t[75]=z,t[76]=H,t[77]=U,t[78]=W,t[79]=G,t[80]=K,t[81]=q,t[82]=J,t[83]=X,t[84]=Z):Z=t[84];let Q;t[85]!==o||t[86]!==s?(Q=!s&&(0,F.jsx)(Pe,{dashboard:o}),t[85]=o,t[86]=s,t[87]=Q):Q=t[87];let $;t[88]!==o||t[89]!==A||t[90]!==s||t[91]!==D?($=!s&&(0,F.jsx)(Ne,{dashboard:o,now:D,checking:A}),t[88]=o,t[89]=A,t[90]=s,t[91]=D,t[92]=$):$=t[92];let Je;t[93]!==o||t[94]!==s||t[95]!==D?(Je=!s&&(0,F.jsx)(Fe,{dashboard:o,now:D}),t[93]=o,t[94]=s,t[95]=D,t[96]=Je):Je=t[96];let Ye;t[97]!==o||t[98]!==s||t[99]!==u?(Ye=s&&(0,F.jsxs)(`div`,{className:`dash-edit-bar`,children:[(0,F.jsxs)(`span`,{className:`dash-edit-hint`,children:[`Drag a tile by its `,(0,F.jsx)(`strong`,{children:`⠿`}),` handle to reorder, tap `,(0,F.jsx)(`strong`,{children:`S/M/L`}),` to resize, `,(0,F.jsx)(`strong`,{children:`×`}),` to remove.`]}),(0,F.jsx)(`button`,{type:`button`,className:`dash-edit-add`,onClick:()=>d(He),"aria-expanded":u,children:`+ Add widget`}),u&&(0,F.jsx)(Ee,{dashboard:o,onClose:()=>d(!1)})]}),t[97]=o,t[98]=s,t[99]=u,t[100]=Ye):Ye=t[100];let Xe;t[101]!==o||t[102]!==s||t[103]!==D||t[104]!==Se?(Xe=s?(0,F.jsx)(`div`,{className:`dash-grid`,children:Se}):(0,F.jsxs)(`div`,{className:`dash-detail-cols`,children:[(0,F.jsxs)(`div`,{className:`dash-detail-main`,children:[o.widgets.length>0&&(0,F.jsxs)(`div`,{className:`dash-detail-section`,children:[(0,F.jsx)(`div`,{className:`card-eyebrow dash-detail-section-title`,children:`Cards`}),(0,F.jsx)(`div`,{className:`dash-grid`,children:Se})]}),(0,F.jsx)(ae,{dashboardId:o.id})]}),(0,F.jsxs)(`div`,{className:`dash-detail-side`,children:[(0,F.jsx)(ze,{dashboard:o,now:D}),(0,F.jsx)(Be,{dashboard:o})]})]}),t[101]=o,t[102]=s,t[103]=D,t[104]=Se,t[105]=Xe):Xe=t[105];let Ze;t[106]!==o||t[107]!==s?(Ze=!s&&(0,F.jsx)(je,{dashboard:o},o.id),t[106]=o,t[107]=s,t[108]=Ze):Ze=t[108];let Qe;return t[109]!==Z||t[110]!==Q||t[111]!==$||t[112]!==Je||t[113]!==Ye||t[114]!==Xe||t[115]!==Ze?(Qe=(0,F.jsxs)(`div`,{className:`dash-detail`,children:[Z,Q,$,Je,Ye,Xe,Ze]}),t[109]=Z,t[110]=Q,t[111]=$,t[112]=Je,t[113]=Ye,t[114]=Xe,t[115]=Ze,t[116]=Qe):Qe=t[116],Qe}function He(e){return!e}function Ue(e){return!e}function We(){return Date.now()}function Ge(e){return e.block}function Ke(e){return[e.id,e]}function qe(e){return e.id}export{$ as DashboardDetail};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./useDashboardLoop-DzbRz-V9.js";function t(){return e(),null}export{t as DashboardLoopRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppCommandPalette-Dzl_DbDd.js","assets/index-C7H7A1rW.js","assets/chunk-BVpWp9h4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/CommandPalette-mO1FEvlx.js","assets/icons-CHVz6kv_.js","assets/registry-D5oMqeSa.js","assets/CommandPalette-Bb-eErih.css","assets/demoPaletteItems-NPCSaSU6.js","assets/planTracker-7AMCQPNx.js","assets/providers-wzm7E8Pa.js","assets/http-CJCtjYpA.js","assets/info-CiqHR5cs.js","assets/json-B0N3XRZU.js","assets/now-C9-UAzTC.js","assets/PlanReview-3NxZD9wt.js","assets/useStudy-Diy4ITBm.js","assets/contentVault-DzTYWcbD.js","assets/keyVault-DEsNh9FR.js","assets/store-DrBDvqXF.js","assets/queue-J4h7E3uc.js","assets/store-DXmC_fP2.js","assets/queue-DHeyJ32F.css","assets/useLiveConfig-Lm0cYTcu.js","assets/useDashboardLoop-DzbRz-V9.js","assets/dashboardEvents-C_XvGVLJ.js","assets/spokenText-D4zPX9JY.js","assets/format-hc2QOoIu.js","assets/kokoro-kGWf7M0e.js","assets/notify-Bz4wuE4T.js","assets/predictions-CYS7Vo39.js","assets/number-DXgzss0v.js","assets/relate-DxAi8xpo.js","assets/dashboards-rcWxdoXI.css","assets/RewindOverlay-Bop4a63b.js","assets/motion-dfA87zbb.js","assets/CheckLogRail-DNtXlkcR.js","assets/CheckLogRail-F4AlgAcc.css","assets/useFocusTrap-DbfG6zbM.js","assets/RewindOverlay-C92qgvmi.css","assets/DashPresent-BEm1tGse.js","assets/TrackerTile-D9Wa3CSq.js","assets/DashPresent-DQYcgp-W.css","assets/DashboardDetail-tK6FpgtH.js","assets/TopicCanvas-BRu3xVL8.js","assets/FallbackCard-B489rTd9.js","assets/blockLabel-DAqaHKy3.js","assets/FallbackCard-D_6ps1xA.css","assets/CanvasSkeleton-CJwPWnFG.js","assets/CanvasSkeleton-iy6DBvde.css","assets/lib-C7zXL8h0.js","assets/BlockEmpty-B5Q0hgDJ.js","assets/lib-DMAxsZKm.css","assets/format-DlZTyeMy.js","assets/useSpatialCanvas-D_C8VoCy.js","assets/useValidatedImage-D2fhA198.js","assets/catalog-BHjl-1uH.js","assets/richText-BkxJhl9N.js","assets/safeImageUrl-CUkucDUu.js","assets/toast-BBNs2h3L.js","assets/layout-BFQOzXtG.js","assets/TopicCanvas-uRuHi99s.css","assets/canvas-Ep2Kfupo.js","assets/ReplayCard-Bz69tOST.js","assets/ShareModal-D4En6Y3L.js","assets/ReelJelly-DCD4bG10.js","assets/geometry-DXAbnb0J.js","assets/registry-B51MhOLx.js","assets/fit-B1LJWvMO.js","assets/share-QHGHNDhQ.js","assets/FeatureUseNotice-CoK5HkbR.js","assets/FeatureUseNotice-CsCxxfOl.css","assets/threads-CkMgrSDP.js","assets/ShareModal-PobtP7AJ.css","assets/annotationReel-yzysA-Gr.js","assets/sourceHost-BV3t2XDb.js","assets/pin-D5_Ebl_s.js","assets/pin-Bya3BL_a.css","assets/DashboardSettings-CBhzLW0P.js","assets/DashboardOverview-DrdqBgds.js","assets/DashboardLoopRuntime-Cis4WMqk.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{B as n,F as r,I as i,J as a,L as o,M as s,N as c,at as l,ht as u,j as d,k as f,mt as p,ot as m,q as h,st as g,z as _}from"./index-C7H7A1rW.js";import{n as v}from"./icons-CHVz6kv_.js";import{t as y}from"./useFocusTrap-DbfG6zbM.js";import{d as b,u as x}from"./kokoro-kGWf7M0e.js";import{t as S}from"./FeatureUseNotice-CoK5HkbR.js";import{r as C}from"./sourceHost-BV3t2XDb.js";import{t as w}from"./homeTarget-BcZYH3DY.js";import"./queue-J4h7E3uc.js";import{S as T,a as E,c as D,d as ee,f as O,l as k,o as A,s as j}from"./useStudy-Diy4ITBm.js";import{l as M,n as N,r as te,u as ne}from"./useLiveConfig-Lm0cYTcu.js";import{g as P,n as re,o as ie,p as F,s as I}from"./dashboardEvents-C_XvGVLJ.js";import{o as L,t as ae}from"./CheckLogRail-DNtXlkcR.js";import{i as R}from"./format-hc2QOoIu.js";import{n as oe,r as se,t as z}from"./TrackerTile-D9Wa3CSq.js";/* empty css */var B=e(),V=u(),H=t();function U({href:e,label:t=`Mavéa`,className:n}){return(0,H.jsxs)(`a`,{className:n,href:e,"aria-label":`${t} home`,children:[(0,H.jsx)(`span`,{className:`jelly-mark`}),t]})}var W=p();function G(e){let t=(t,n,r)=>({label:t,blurb:n,onClick:()=>{window.location.hash=r},preload:()=>d(r)??Promise.resolve(),show:r!==e.omitHash}),n=(t,n)=>({label:t,blurb:n,onClick:e.enterLive,show:!0});return{create:[n(`New`,`Start a fresh session`)],practice:[n(`Rehearse`,`Practice a hard conversation — take the seat, or send your Mavéa`),t(`Study`,`Go through your flashcards, and organize your decks`,`#/flashcards`),t(`Courses`,`Turn a topic into a structured syllabus — a lesson at a time, at your pace`,`#/courses`)],share:[n(`Present`,`Fill the room — the chrome falls away, the mic stays live`),n(`Export`,`Choose a template and export a polished PDF`),n(`Share`,`Share this conversation as a story`)],explore:[{label:`Search all features`,blurb:`Browse Mavéa’s feature index · ${_}`,onClick:e.openPalette,show:!0},n(`Atlas`,`Kept conversations and topics, as a place`),n(`Watch me think`,`A live map of your thinking`),t(`Prism`,`Split your document into a map of its claims`,`#/prism`),t(`Ripple`,`Model a code change’s impact, risks, and a proposed ship order`,`#/ripple`),t(`Dashboards`,`Dashboards that refresh on schedule while Mavéa is open`,`#/dashboards`),t(`Deep Zoom`,`Telescope any topic from big picture to finest detail`,`#/deepzoom`)]}}a();var K=i(()=>h(()=>import(`./AppCommandPalette-Dzl_DbDd.js`).then(e=>({default:e.AppCommandPalette})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),ce=K.Component;function le(e){let t=(0,V.c)(26),{omitHash:i}=e,{open:a,openPalette:o,closePalette:s}=n(),c=ue,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{m(),c()},t[0]=u):u=t[0];let d=u,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>()=>{m(),l(e),g(),c()},t[1]=p):p=t[1];let h=p,_;t[2]!==i||t[3]!==o?(_=G({openPalette:o,enterLive:c,omitHash:i}),t[2]=i,t[3]=o,t[4]=_):_=t[4];let v=_,y=E(),b;t[5]===v.create?b=t[6]:(b=(0,H.jsx)(O,{label:`Create`,items:v.create}),t[5]=v.create,t[6]=b);let x;t[7]!==v.practice||t[8]!==y?(x=(0,H.jsx)(O,{label:`Practice`,items:v.practice,badge:y}),t[7]=v.practice,t[8]=y,t[9]=x):x=t[9];let S;t[10]===v.share?S=t[11]:(S=(0,H.jsx)(O,{label:`Share`,items:v.share}),t[10]=v.share,t[11]=S);let C;t[12]===v.explore?C=t[13]:(C=(0,H.jsx)(O,{label:`Explore`,items:v.explore}),t[12]=v.explore,t[13]=C);let w;t[14]===o?w=t[15]:(w=(0,H.jsx)(r,{onOpen:o,preload:K.preload}),t[14]=o,t[15]=w);let T;t[16]!==s||t[17]!==a?(T=a&&(0,W.createPortal)((0,H.jsx)(f,{label:`Feature search`,overlay:!0,children:(0,H.jsx)(ce,{onClose:s,startTour:d,watchInLive:h,enterLive:c})}),document.body),t[16]=s,t[17]=a,t[18]=T):T=t[18];let D;return t[19]!==b||t[20]!==x||t[21]!==S||t[22]!==C||t[23]!==w||t[24]!==T?(D=(0,H.jsxs)(H.Fragment,{children:[b,x,S,C,w,T]}),t[19]=b,t[20]=x,t[21]=S,t[22]=C,t[23]=w,t[24]=T,t[25]=D):D=t[25],D}function ue(){window.location.hash=`#/live`}function de(e,t){let n=e.cadence.window;return!!n&&t>=n.startAt&&t<=n.endAt}function fe(e){return new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function pe(e){let t=(0,V.c)(18),{state:n}=e;if(n.paused){let e;t[0]===n.resumesAt?e=t[1]:(e=fe(n.resumesAt),t[0]=n.resumesAt,t[1]=e);let r;return t[2]===e?r=t[3]:(r=(0,H.jsx)(`div`,{className:`dash-budget dash-budget--paused`,title:`Automatic checks are paused until your budget resets`,children:(0,H.jsxs)(`span`,{className:`dash-budget-label`,children:[`PAUSED · RESUMES `,e]})}),t[2]=e,t[3]=r),r}let r;t[4]!==n.cap||t[5]!==n.used?(r=n.cap>0?Math.min(100,Math.round(n.used/n.cap*100)):0,t[4]=n.cap,t[5]=n.used,t[6]=r):r=t[6];let i=r,a=`dash-budget`+(n.amber?` dash-budget--amber`:``),o=`${n.used} of ${n.cap} searches used today`,s=`${i}%`,c;t[7]===s?c=t[8]:(c=(0,H.jsx)(`span`,{className:`dash-budget-track`,children:(0,H.jsx)(`span`,{className:`dash-budget-fill`,style:{width:s}})}),t[7]=s,t[8]=c);let l=n.amber?` · LOW`:``,u;t[9]!==n.cap||t[10]!==n.used||t[11]!==l?(u=(0,H.jsxs)(`span`,{className:`dash-budget-label`,children:[n.used,`/`,n.cap,` SEARCHES TODAY`,l]}),t[9]=n.cap,t[10]=n.used,t[11]=l,t[12]=u):u=t[12];let d;return t[13]!==a||t[14]!==o||t[15]!==c||t[16]!==u?(d=(0,H.jsxs)(`div`,{className:a,title:o,children:[c,u]}),t[13]=a,t[14]=o,t[15]=c,t[16]=u,t[17]=d):d=t[17],d}function me(e){let t=(0,V.c)(28),{view:n}=e,r=A(),i=L(),a=P(),[o,s]=(0,B.useState)(he),c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=window.setInterval(()=>s(Date.now()),3e4);return()=>window.clearInterval(e)},l=[],t[0]=c,t[1]=l):(c=t[0],l=t[1]),(0,B.useEffect)(c,l);let u;t[2]===r?u=t[3]:(u=r.filter(R),t[2]=r,t[3]=u);let d=u.length,f=r.some(e=>de(e,o)),p;t[4]!==i||t[5]!==o||t[6]!==a.dailySearchBudget?(p=F(i,a.dailySearchBudget,o),t[4]=i,t[5]=o,t[6]=a.dailySearchBudget,t[7]=p):p=t[7];let m=p,h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,H.jsx)(U,{className:`dash-topbar-brand`,href:w().href}),t[8]=h):h=t[8];let g=`dash-watch-pill`+(f?` dash-watch-pill--live`:``),_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,H.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),t[9]=_):_=t[9];let v;t[10]!==d||t[11]!==g?(v=(0,H.jsxs)(`span`,{className:g,children:[_,d,` ON WATCH`]}),t[10]=d,t[11]=g,t[12]=v):v=t[12];let y;t[13]===m?y=t[14]:(y=(0,H.jsx)(pe,{state:m}),t[13]=m,t[14]=y);let b;t[15]===n?b=t[16]:(b=n!==`overview`&&(0,H.jsx)(`a`,{className:`dash-topbar-link`,href:j.overview,children:`How it works`}),t[15]=n,t[16]=b);let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,H.jsx)(`a`,{className:`dash-topbar-link`,href:`#/live`,children:`Live`}),t[17]=x):x=t[17];let S;t[18]!==b||t[19]!==v||t[20]!==y?(S=(0,H.jsxs)(`div`,{className:`dash-topbar-scroll`,children:[v,y,b,x]}),t[18]=b,t[19]=v,t[20]=y,t[21]=S):S=t[21];let C;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,H.jsx)(`span`,{className:`topbar-spacer`}),t[22]=C):C=t[22];let T,E;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,H.jsx)(`nav`,{className:`dash-topbar-nav`,"aria-label":`App`,children:(0,H.jsx)(le,{omitHash:j.gallery})}),E=(0,H.jsx)(`span`,{className:`topbar-divider`,"aria-hidden":`true`}),t[23]=T,t[24]=E):(T=t[23],E=t[24]);let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,H.jsxs)(`div`,{className:`dash-topbar-tools`,children:[(0,H.jsx)(`a`,{className:`dash-topbar-action`,href:j.rewind,children:`✦ Rewind`}),(0,H.jsx)(`a`,{className:`dash-topbar-action`,href:j.present,children:`▸ Present`}),(0,H.jsx)(ee,{triggerClassName:`ctrl`})]}),t[25]=D):D=t[25];let O;return t[26]===S?O=t[27]:(O=(0,H.jsxs)(`header`,{className:`dash-topbar`,children:[h,S,C,T,E,D]}),t[26]=S,t[27]=O),O}function he(){return Date.now()}function ge({label:e,value:t,dashboardId:n,kind:r=`presence`}){return(0,H.jsxs)(`a`,{className:`metric-chip metric-chip--${r}`,href:j.detail(n),children:[(0,H.jsx)(`span`,{className:`metric-chip-value`,children:t}),(0,H.jsx)(`span`,{className:`metric-chip-label`,children:e})]})}function _e(e){return new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function ve({briefing:e}){let[t,n]=(0,B.useState)(!1),r=(0,B.useRef)(t);return r.current=t,(0,B.useEffect)(()=>{if(!t)return;let e=window.setInterval(()=>{b()||n(!1)},300);return()=>window.clearInterval(e)},[t]),(0,B.useEffect)(()=>()=>{r.current&&x()},[]),(0,H.jsxs)(`section`,{className:`card briefing-hero`,children:[(0,H.jsxs)(`div`,{className:`briefing-hero-head`,children:[(0,H.jsxs)(`span`,{className:`card-eyebrow briefing-hero-eyebrow`,children:[`MORNING BRIEFING · `,_e(e.at),` · COMPILED WHILE CHECKING YOUR DASHBOARDS`]}),(0,H.jsx)(`button`,{type:`button`,className:`briefing-hero-listen`,onClick:()=>{if(t){x(),n(!1);return}ie(e.text,e.spoken),n(!0)},"aria-pressed":t,children:t?`◼ STOP`:`▸ LISTEN`})]}),(0,H.jsx)(`p`,{className:`briefing-hero-text`,children:e.text}),e.chips.length>0&&(0,H.jsx)(`div`,{className:`briefing-hero-chips`,children:e.chips.map(e=>(0,H.jsx)(ge,{label:e.label,value:e.value,dashboardId:e.dashboardId},e.dashboardId))})]})}function ye(e){let t=(0,V.c)(31),{dashboard:n,now:r}=e,i;t[0]!==n||t[1]!==r?(i=se(n,r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,o=n.cadence.window;if(!o||a.vizKind!==`livescore`){let e;return t[3]!==n||t[4]!==r?(e=(0,H.jsx)(`div`,{className:`featured-live featured-live--fallback`,children:(0,H.jsx)(z,{dashboard:n,now:r})}),t[3]=n,t[4]=r,t[5]=e):e=t[5],e}let s=a.everChecked?`AS OF ${a.asOf}`:a.asOf,c;t[6]===n.id?c=t[7]:(c=j.detail(n.id),t[6]=n.id,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsxs)(`span`,{className:`card-eyebrow featured-live-eyebrow`,children:[(0,H.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),`LIVE NOW`]}),t[8]=l):l=t[8];let u;t[9]===n.title?u=t[10]:(u=(0,H.jsxs)(`div`,{className:`featured-live-head`,children:[l,(0,H.jsx)(`h3`,{className:`featured-live-title`,children:n.title})]}),t[9]=n.title,t[10]=u);let d;t[11]!==o||t[12]!==r?(d=(0,H.jsx)(oe,{liveWindow:o,now:r}),t[11]=o,t[12]=r,t[13]=d):d=t[13];let f;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,H.jsx)(`span`,{className:`featured-live-check-label`,children:`FROM THE LAST CHECK`}),t[14]=f):f=t[14];let p;t[15]===a.value?p=t[16]:(p=(0,H.jsx)(`span`,{className:`featured-live-check-value`,children:a.value}),t[15]=a.value,t[16]=p);let m;t[17]===a.context?m=t[18]:(m=(0,H.jsx)(`span`,{className:`featured-live-check-context`,children:a.context}),t[17]=a.context,t[18]=m);let h;t[19]!==p||t[20]!==m?(h=(0,H.jsxs)(`p`,{className:`featured-live-check`,children:[f,p,m]}),t[19]=p,t[20]=m,t[21]=h):h=t[21];let g;t[22]!==s||t[23]!==o.label?(g=(0,H.jsxs)(`div`,{className:`featured-live-foot`,children:[s,` · `,o.label,` ONLY`]}),t[22]=s,t[23]=o.label,t[24]=g):g=t[24];let _;return t[25]!==g||t[26]!==c||t[27]!==u||t[28]!==d||t[29]!==h?(_=(0,H.jsxs)(`a`,{className:`card featured-live`,href:c,children:[u,d,h,g]}),t[25]=g,t[26]=c,t[27]=u,t[28]=d,t[29]=h,t[30]=_):_=t[30],_}function be(e){let t=(0,V.c)(17),{answer:n,onTrackAnyway:r}=e;if(!n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,H.jsx)(`p`,{className:`dash-answer-text dash-answer-text--fallback`,children:`Mavéa couldn’t reach your model for that — try tracking it instead.`}),t[0]=e):e=t[0];let n;return t[1]===r?n=t[2]:(n=(0,H.jsxs)(`div`,{className:`dash-answer`,children:[e,(0,H.jsx)(`button`,{type:`button`,className:`dash-answer-track`,onClick:r,children:`Track it anyway →`})]}),t[1]=r,t[2]=n),n}let i;t[3]===n.text?i=t[4]:(i=(0,H.jsx)(`p`,{className:`dash-answer-text`,children:n.text}),t[3]=n.text,t[4]=i);let a;t[5]===n.grounded?a=t[6]:(a=!n.grounded&&(0,H.jsx)(`p`,{className:`dash-answer-qualifier`,children:`Based on background knowledge, not a fresh search.`}),t[5]=n.grounded,t[6]=a);let o;t[7]===n.sources?o=t[8]:(o=n.sources.length>0&&(0,H.jsx)(`div`,{className:`dash-answer-sources`,children:n.sources.map(xe)}),t[7]=n.sources,t[8]=o);let s;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(`span`,{className:`dash-answer-badge`,children:`Answered once — nothing worth re-checking`}),t[9]=s):s=t[9];let c;t[10]===r?c=t[11]:(c=(0,H.jsxs)(`div`,{className:`dash-answer-foot`,children:[s,(0,H.jsx)(`button`,{type:`button`,className:`dash-answer-track`,onClick:r,children:`Track it anyway →`})]}),t[10]=r,t[11]=c);let l;return t[12]!==i||t[13]!==a||t[14]!==o||t[15]!==c?(l=(0,H.jsxs)(`div`,{className:`dash-answer`,children:[i,a,o,c]}),t[12]=i,t[13]=a,t[14]=o,t[15]=c,t[16]=l):l=t[16],l}function xe(e){let t=C(e.url);return t?(0,H.jsx)(`a`,{className:`dash-answer-source`,href:t,target:`_blank`,rel:`noopener noreferrer`,title:e.title,children:e.title},e.url):null}a();var q;function J(){return q??=h(()=>import(`./planTracker-7AMCQPNx.js`).then(e=>e.n),__vite__mapDeps([12,2,13,14,15,16,17])),q}var Y=i(()=>h(()=>import(`./PlanReview-3NxZD9wt.js`).then(e=>({default:e.PlanReview})),__vite__mapDeps([18,1,2,3,4,5,6,19,20,21,22,23,24,25,26,13,14,15,27,28,29,30,31,32,33,16,17,34,35,36]))),Se=Y.Component;function Ce(){return Promise.all([J(),Y.preload()]).then(()=>void 0)}function we({inert:e=!1}){let t=(0,B.useRef)(null),n=(0,B.useRef)(null),[r,i]=(0,B.useState)(``),[a,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(null),u=(0,B.useRef)(0),d=()=>{u.current++,l(null)};y(n,{onEscape:d,active:!!c}),(0,B.useEffect)(()=>{if(e)return;let n=e=>{(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`&&(e.preventDefault(),t.current?.focus())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e]),(0,B.useEffect)(()=>()=>{u.current++},[]);let p=async()=>{let e=r.trim();if(!e||a)return;s(!0);let t=++u.current,{planTracker:n,answerOnce:i}=await J(),o=await n(e,M(N()));if(t!==u.current)return;if(s(!1),o.kind!==`static`){l({step:`review`,plan:o});return}l({step:`answering`,plan:o});let c=await i(e,M(N()));t===u.current&&l({step:`answer`,plan:o,answer:c})},m=e=>{u.current++,l(null),i(``),window.location.hash=j.detail(e)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`form`,{className:`dash-composer-bar`,onSubmit:e=>{e.preventDefault(),p()},children:[(0,H.jsx)(`input`,{ref:t,className:`dash-composer-input`,value:r,onChange:e=>i(e.target.value),placeholder:`Track anything — Mavéa will suggest what's worth checking, and how often`,"aria-label":`Track anything`,disabled:a,...o(Ce)}),(0,H.jsx)(`kbd`,{className:`dash-composer-kbd`,"aria-hidden":`true`,children:`⌘K`}),(0,H.jsx)(`button`,{type:`submit`,className:`dash-composer-submit`,disabled:!r.trim()||a,children:a?`Planning…`:`Track`})]}),c&&(0,H.jsx)(`div`,{className:`xt-scrim`,onClick:e=>{e.target===e.currentTarget&&d()},role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),d())},children:(0,H.jsxs)(`div`,{className:`xt-modal`,ref:n,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`Track anything`,children:[(0,H.jsxs)(`div`,{className:`xt-head`,children:[c.step===`review`?(0,H.jsx)(`button`,{type:`button`,className:`tpl-back`,onClick:d,children:`‹ Change what to track`}):(0,H.jsx)(`span`,{className:`xt-head-title`,children:c.plan.title}),(0,H.jsx)(`button`,{type:`button`,className:`xt-close`,onClick:d,"aria-label":`Close`,children:`×`})]}),c.step===`answering`&&(0,H.jsx)(`div`,{className:`xt-loading`,children:`Mavéa is checking that…`}),c.step===`answer`&&(0,H.jsx)(be,{answer:c.answer,onTrackAnyway:()=>l({step:`review`,plan:c.plan})}),c.step===`review`&&(0,H.jsx)(f,{label:`tracker plan`,children:(0,H.jsx)(Se,{plan:c.plan,ask:r,existing:T(),onDone:m})})]})})]})}var Te=8e3;function Ee({message:e,onDismiss:t,kind:n=`presence`,href:r}){let i=(0,B.useRef)(t);return i.current=t,(0,B.useEffect)(()=>{let e=window.setTimeout(()=>i.current(),Te);return()=>window.clearTimeout(e)},[]),(0,H.jsxs)(`div`,{className:`dash-toast dash-toast--${n}`,role:`status`,children:[r?(0,H.jsx)(`a`,{className:`dash-toast-text dash-toast-link`,href:r,children:e}):(0,H.jsx)(`span`,{className:`dash-toast-text`,children:e}),(0,H.jsx)(`button`,{type:`button`,className:`dash-toast-close`,onClick:t,"aria-label":`Dismiss`,children:`×`})]})}a();var De=[`AAPL price`,`Yankees scores`,`Weather in Denver`,`Bitcoin price`];function Oe(e,t){let n=e.cadence.window;return!!n&&t>=n.startAt&&t<=n.endAt}function ke(e){return new Date(e).toISOString().slice(0,10)}function X(e){let t=(0,V.c)(11),{eyebrow:n,sub:r}=e,i;t[0]===n?i=t[1]:(i=(0,H.jsx)(`span`,{className:`tile-name`,children:n}),t[0]=n,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(`span`,{className:`tile-cadence`,children:`EXAMPLE`}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=(0,H.jsxs)(`div`,{className:`tile-top`,children:[i,a]}),t[3]=i,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(`div`,{className:`tile-value-row`,children:(0,H.jsx)(`span`,{className:`tile-value`,children:`—`})}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=(0,H.jsx)(`p`,{className:`tile-context`,children:r}),t[6]=r,t[7]=c);let l;return t[8]!==o||t[9]!==c?(l=(0,H.jsxs)(`div`,{className:`tile-frame tile-frame--ghost`,"aria-hidden":`true`,children:[o,s,c]}),t[8]=o,t[9]=c,t[10]=l):l=t[10],l}function Ae(){let e=(0,V.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(`p`,{className:`dash-empty-title`,children:`Nothing on watch yet.`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,H.jsxs)(`p`,{className:`dash-empty-how`,children:[`Type anything worth following in the bar below — scores, a price, the weather, a story — and Mavéa plans the live cards and keeps them current. Or talk it through in`,` `,(0,H.jsx)(`a`,{href:`#/live`,children:`Live`}),` and build one from that conversation instead.`]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsxs)(`p`,{className:`dash-empty-how`,children:[`New here? `,(0,H.jsx)(`a`,{href:j.overview,children:`See how it works →`})]}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,H.jsxs)(`div`,{className:`card dash-empty dash-empty--hero`,children:[t,n,r,(0,H.jsx)(`div`,{className:`dash-home-examples`,children:De.map(je)})]}),e[3]=i):i=e[3],i}function je(e){return(0,H.jsx)(`span`,{className:`dash-home-example-chip`,children:e},e)}function Z(){let e=A(),t=L(),n=P(),r=I(),[i]=ne(),[a,o]=(0,B.useState)(()=>Date.now());(0,B.useEffect)(()=>{let e=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(e)},[]);let s=(0,B.useMemo)(()=>e.find(e=>Oe(e,a))??null,[e,a]),c=r!==null&&r.date===ke(a),l=(0,B.useMemo)(()=>F(t,n.dailySearchBudget,a),[t,n.dailySearchBudget,a]),u=e.length===0,d=(0,B.useMemo)(()=>e.some(R),[e]),f=te(i),[p,m]=(0,B.useState)(null);(0,B.useEffect)(()=>re(m),[]);let[g,_]=(0,B.useState)(!1),y=async()=>{_(!0);try{let{checkAllDashboardsNow:e}=await h(async()=>{let{checkAllDashboardsNow:e}=await import(`./useDashboardLoop-DzbRz-V9.js`).then(e=>e.i);return{checkAllDashboardsNow:e}},__vite__mapDeps([27,2,1,3,4,5,6,13,14,15,19,20,21,22,23,24,25,26,28,29,30,31,32,33,16,17,34]));await e()}finally{_(!1)}},[b,x]=(0,B.useState)(0);return(0,B.useEffect)(()=>{let e=0,t=0;return e=requestAnimationFrame(()=>{x(1),t=requestAnimationFrame(()=>x(2))}),()=>{cancelAnimationFrame(e),cancelAnimationFrame(t)}},[]),(0,H.jsxs)(`div`,{className:`dash-home`,children:[p&&(0,H.jsx)(Ee,{kind:`danger`,message:`${p.dashboardTitle}: ${p.tripwireLabel} crossed the line you set.`,href:j.detail(p.dashboardId),onDismiss:()=>m(null)},`${p.dashboardId}-${p.tripwireLabel}`),(0,H.jsxs)(`div`,{className:`dash-home-grid`,children:[(0,H.jsxs)(`div`,{className:`dash-home-main`,children:[!u&&!f&&d&&(0,H.jsxs)(`div`,{className:`dash-connect-banner`,children:[(0,H.jsx)(`span`,{className:`dash-connect-banner-text`,children:`These trackers can't fetch anything yet — connect a model to start filling them.`}),(0,H.jsx)(`a`,{className:`dash-connect-banner-link`,href:`#/live`,children:`Connect a model in Live →`})]}),u?(0,H.jsx)(Ae,{}):(0,H.jsxs)(H.Fragment,{children:[c&&r&&(0,H.jsx)(ve,{briefing:r}),s&&(0,H.jsx)(ye,{dashboard:s,now:a})]}),b>=1&&(0,H.jsxs)(`section`,{className:`dash-track`,children:[(0,H.jsxs)(`div`,{className:`dash-track-head`,children:[(0,H.jsxs)(`span`,{className:`dash-track-eyebrow`,children:[`TRACKING · `,e.length]}),(0,H.jsxs)(`div`,{className:`dash-track-head-right`,children:[(0,H.jsx)(`span`,{className:`dash-track-honesty`,children:`NOT REAL-TIME — EVERY VALUE IS AS OF ITS LAST WEB SEARCH`}),f&&d&&(0,H.jsxs)(`button`,{type:`button`,className:`dash-check-all-btn`,onClick:()=>void y(),disabled:g,title:`Check every tracker with live content now`,children:[(0,H.jsx)(v.refresh,{className:g?`dash-refresh-spin`:void 0}),g?`Checking…`:`Check all`]})]})]}),(0,H.jsx)(`div`,{className:`dash-track-grid`,children:u?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(X,{eyebrow:`AAPL`,sub:`Stock price`}),(0,H.jsx)(X,{eyebrow:`Yankees`,sub:`Latest score`}),(0,H.jsx)(X,{eyebrow:`Denver`,sub:`This week's forecast`})]}):e.map(e=>(0,H.jsx)(z,{dashboard:e,now:a,paused:l.paused},e.id))})]})]}),(0,H.jsx)(`aside`,{className:`dash-home-rail`,children:b>=2&&(0,H.jsx)(ae,{})})]}),(0,H.jsx)(we,{})]})}a();var Me=i(()=>h(()=>import(`./RewindOverlay-Bop4a63b.js`).then(e=>({default:e.RewindOverlay})),__vite__mapDeps([37,1,2,3,4,5,6,38,19,20,21,22,23,24,25,26,13,14,15,39,28,29,30,31,40,33,41,42]))),Ne=i(()=>h(()=>import(`./DashPresent-BEm1tGse.js`).then(e=>({default:e.DashPresent})),__vite__mapDeps([43,1,2,3,4,5,6,19,20,21,22,23,24,25,26,13,14,15,39,28,29,30,31,40,44,8,45]))),Pe=i(()=>h(()=>import(`./DashboardDetail-tK6FpgtH.js`).then(e=>({default:e.DashboardDetail})),__vite__mapDeps([46,1,2,3,4,5,6,47,48,49,8,50,51,52,53,54,38,55,56,57,58,59,60,61,62,63,14,64,65,66,67,68,69,70,71,72,73,74,29,75,41,31,76,77,78,19,20,21,22,23,24,25,26,13,15,39,28,30,40,27,32,33,16,17,34,79,80,12,36]))),Fe=i(()=>h(()=>import(`./DashboardSettings-CBhzLW0P.js`).then(e=>({default:e.DashboardSettings})),__vite__mapDeps([81,1,2,3,4,5,6,19,20,21,22,23,24,25,26,13,14,15,30,32]))),Q=i(()=>h(()=>import(`./DashboardOverview-DrdqBgds.js`).then(e=>({default:e.DashboardOverview})),__vite__mapDeps([82,3,2,19,1,4,5,6,20,21,22,23,24,25,26,13,14,15]))),Ie=i(()=>h(()=>import(`./DashboardLoopRuntime-Cis4WMqk.js`).then(e=>({default:e.DashboardLoopRuntime})),__vite__mapDeps([83,27,2,1,3,4,5,6,13,14,15,19,20,21,22,23,24,25,26,28,29,30,31,32,33,16,17,34]))),Le=Me.Component,Re=Ne.Component,ze=Pe.Component,Be=Fe.Component,Ve=Q.Component,He=Ie.Component;function $(){window.location.hash=j.gallery}function Ue(){let e=(0,V.c)(24),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,B.useEffect)(We,t);let[n,r]=(0,B.useState)(!1),i,a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=window.setTimeout(()=>r(!0),600);return()=>window.clearTimeout(e)},a=[],e[1]=i,e[2]=a):(i=e[1],a=e[2]),(0,B.useEffect)(i,a);let o=k(),s;e[3]===o?s=e[4]:(s=D(o),e[3]=o,e[4]=s);let c=s;if(c.view===`present`){let t;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(f,{label:`Dashboard presentation`,children:(0,H.jsx)(Re,{onClose:$})}),e[5]=t):t=e[5],t}let l;bb0:switch(c.view){case`detail`:{let t;e[6]===c.id?t=e[7]:(t=c.id?(0,H.jsx)(f,{label:`Dashboard detail`,children:(0,H.jsx)(ze,{id:c.id})}):(0,H.jsx)(Z,{}),e[6]=c.id,e[7]=t),l=t;break bb0}case`settings`:{let t;e[8]===c.id?t=e[9]:(t=c.id?(0,H.jsx)(f,{label:`Dashboard settings`,children:(0,H.jsx)(Be,{id:c.id})}):(0,H.jsx)(Z,{}),e[8]=c.id,e[9]=t),l=t;break bb0}case`overview`:{let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(f,{label:`Dashboard overview`,children:(0,H.jsx)(Ve,{})}),e[10]=t):t=e[10],l=t;break bb0}case`rewind`:case`gallery`:default:{let t;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(Z,{}),e[11]=t):t=e[11],l=t}}let u=l,d;e[12]===c.view?d=e[13]:(d=(0,H.jsx)(me,{view:c.view}),e[12]=c.view,e[13]=d);let p;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,H.jsx)(S,{kind:`monitoring`,className:`dash-risk-note`}),e[14]=p):p=e[14];let m;e[15]===n?m=e[16]:(m=n&&(0,H.jsx)(B.Suspense,{fallback:(0,H.jsx)(`span`,{hidden:!0,"aria-hidden":`true`}),children:(0,H.jsx)(He,{})}),e[15]=n,e[16]=m);let h;e[17]===c.view?h=e[18]:(h=c.view===`rewind`&&(0,H.jsx)(f,{label:`Weekly rewind`,overlay:!0,children:(0,H.jsx)(Le,{onClose:$})}),e[17]=c.view,e[18]=h);let g;return e[19]!==u||e[20]!==d||e[21]!==m||e[22]!==h?(g=(0,H.jsxs)(`div`,{className:`mavea-app dash-app`,children:[d,p,u,m,h]}),e[19]=u,e[20]=d,e[21]=m,e[22]=h,e[23]=g):g=e[23],g}function We(){return s(c())}export{Ue as DashboardsApp};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-C7H7A1rW.js";import{t as r}from"./useFocusTrap-DbfG6zbM.js";import{t as i}from"./providers-wzm7E8Pa.js";import{i as a}from"./store-DrBDvqXF.js";import{D as o,H as s,S as c,V as l,b as u,p as d,s as f,y as p}from"./useStudy-Diy4ITBm.js";import{l as m,n as h}from"./useLiveConfig-Lm0cYTcu.js";import{r as g}from"./store-DoJn3lBF.js";import{t as _}from"./json-B0N3XRZU.js";import{c as v,l as y,n as b}from"./useDashboardLoop-DzbRz-V9.js";/* empty css */import{t as x}from"./relate-DxAi8xpo.js";var S=e(),C=n(),w=new Set([`gt`,`gte`,`lt`,`lte`,`crosses_up`,`crosses_down`,`pct_drop`,`pct_rise`]),T=`You extract a LIVING DASHBOARD from a conversation. The user has been talking through a thesis, goal, project, or set of relationships. Capture their reasoning faithfully so we can later tell them when reality moves AGAINST it.
|
|
2
|
-
|
|
3
|
-
Return ONLY a JSON object, no prose, with this shape:
|
|
4
|
-
{
|
|
5
|
-
"title": "short dashboard name",
|
|
6
|
-
"thesis": { "text": "the user's core claim, QUOTED VERBATIM" },
|
|
7
|
-
"metrics": [ { "label": "US 10-year yield", "query": "US 10 year treasury yield", "unit": "%", "sourceQuote": { "text": "their verbatim words about why this matters" }, "userSupplied": false } ],
|
|
8
|
-
"tripwires": [ { "label": "10Y above 4.5%", "comparator": "gt", "threshold": 4.5, "unit": "%", "metricLabel": "US 10-year yield", "sourceQuote": { "text": "their verbatim reconsider-if line" } } ],
|
|
9
|
-
"widgets": [ { "metricLabel": "US 10-year yield", "blockType": "insight", "span": 1 } ]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
HARD RULES:
|
|
13
|
-
- Quote the user VERBATIM for thesis.text and every sourceQuote.text. Never paraphrase, never invent.
|
|
14
|
-
- A tripwire threshold MUST be a number the user actually stated as their reversal point. If they didn't state one, omit that tripwire — do NOT guess.
|
|
15
|
-
- comparator is one of: gt, gte, lt, lte, crosses_up, crosses_down, pct_drop, pct_rise.
|
|
16
|
-
- If a metric's value is the user's to supply (their weekly mileage, a private target), set "userSupplied": true and leave "query": "". Otherwise give a concrete web-search query for it.
|
|
17
|
-
- Keep it tight: at most 6 metrics and 6 tripwires. Each tripwire's metricLabel must match a metric's label.
|
|
18
|
-
- SINGLE TOPIC ONLY: extract components for the ONE subject the most recent messages are actually about. If any earlier line in this transcript is about a different, unrelated subject, ignore it completely — a number being quantifiable does not make it "a metric worth watching" if it's off-topic. When unsure whether two lines share a subject, prefer fewer, coherent metrics over mixing subjects.`,E=`From the conversation above, extract the living dashboard as a single JSON object following the schema and rules exactly.`;function D(e,t){if(e&&typeof e==`object`){let n=e.text;if(typeof n==`string`&&n.trim()){let r=e.saidAt;return{text:n.trim(),saidAt:typeof r==`number`?r:t}}}return null}function O(e,t=Date.now()){if(!e||typeof e!=`object`)return null;let n=e,r=D(n.thesis,t);if(!r)return null;let i=Array.isArray(n.metrics)?n.metrics:[],a=[];for(let e of i.slice(0,6)){if(!e||typeof e!=`object`)continue;let n=e,r=typeof n.label==`string`?n.label.trim():``;if(!r)continue;let i=n.userSupplied===!0,o=typeof n.query==`string`?n.query.trim():``;!o&&!i||a.push({label:r,query:i?``:o,...typeof n.unit==`string`&&n.unit?{unit:n.unit}:{},sourceQuote:D(n.sourceQuote,t)??{text:r,saidAt:t},userSupplied:i})}let o=new Set(a.map(e=>e.label)),s=Array.isArray(n.tripwires)?n.tripwires:[],c=[];for(let e of s.slice(0,6)){if(!e||typeof e!=`object`)continue;let n=e,r=n.comparator,i=n.threshold,a=D(n.sourceQuote,t),s=typeof n.metricLabel==`string`?n.metricLabel:``;w.has(r)&&(typeof i!=`number`||!Number.isFinite(i)||a&&o.has(s)&&c.push({label:typeof n.label==`string`&&n.label?n.label:s,comparator:r,threshold:i,...typeof n.unit==`string`&&n.unit?{unit:n.unit}:{},sourceQuote:a,metricLabel:s}))}let l=(Array.isArray(n.widgets)?n.widgets:[]).filter(e=>!!e&&typeof e==`object`).map(e=>({metricLabel:typeof e.metricLabel==`string`?e.metricLabel:``,blockType:typeof e.blockType==`string`?e.blockType:`insight`,span:M(e.span)}));return{title:typeof n.title==`string`&&n.title.trim()?n.title.trim():`Untitled dashboard`,thesis:r,metrics:A(a,c,r),tripwires:j(c,a,r),suggestedWidgets:l}}function k(e,t){if(t.size===0)return!0;for(let n of v(e))if(t.has(n))return!0;return!1}function A(e,t,n){if(e.length<=1)return e;let r=v([n.text,...t.map(e=>e.sourceQuote.text)].join(` `)),i=new Set,a=!0;for(;a;){a=!1;for(let t of e){if(i.has(t)||t.userSupplied)continue;let e=`${t.label} ${t.sourceQuote.text}`;if(k(e,r)){i.add(t),a=!0;for(let t of v(e))r.add(t)}}}return e.filter(e=>e.userSupplied||i.has(e))}function j(e,t,n){return e.filter(e=>{let r=t.find(t=>t.label===e.metricLabel),i=v(`${n.text} ${e.metricLabel} ${r?.sourceQuote.text??``}`);return k(`${e.label} ${e.sourceQuote.text}`,i)})}function M(e){return e===2?2:e===3?3:1}function N(e){for(let t=e.length-1;t>=0;t--)if(e[t].mode===`replace`)return t;return 0}function P(e,t){return e.length===t.length*2?e.slice(N(t)*2).slice(-12):e.slice(-12)}async function F(e,t,n,r=Date.now()){try{return O(_((await i(n.provider).generate({system:T,history:P(e,t),user:E,maxTokens:1900,temperature:.2,thinkingLevel:`low`},n)).raw),r)}catch{return null}}function I(e,t,n=Date.now()){let r=[...e].reverse().find(e=>e.role===`user`),i=t[t.length-1],a=i?.spec.title||i?.question||`New dashboard`,o={text:r?.content?.trim()||a,saidAt:n},s=[],c=i?.spec.blocks??[];for(let e of c){if(s.length>=4)break;let t=e.props?.title;(e.type===`insight`||e.type===`kpi`)&&typeof t==`string`&&t.trim()&&s.push({label:t.trim(),query:``,sourceQuote:{text:t.trim(),saidAt:n},userSupplied:!0})}return{title:a,thesis:o,metrics:s,tripwires:[],suggestedWidgets:[]}}function L(e,t){let n=t.now??Date.now(),r=o(),i=e.metrics.map((e,t)=>({id:`m${t}`,label:e.label,query:e.query,...e.unit?{unit:e.unit}:{},sourceQuote:e.sourceQuote,lastValue:null,origin:`empty`,...e.userSupplied?{blankKey:`m${t}`}:{}})),a=new Map(e.metrics.map((e,t)=>[e.label,`m${t}`])),c=e.tripwires.map((e,t)=>({id:`t${t}`,label:e.label,metricId:a.get(e.metricLabel)??``,comparator:e.comparator,threshold:e.threshold,...e.unit?{unit:e.unit}:{},sourceQuote:e.sourceQuote,state:`AWAITING`})),l=[],u=0,d=(e,n,r)=>{l.push({id:`w${u++}`,block:e,span:n,fromSource:t.conversationId,...r?{metricId:r}:{}})};d({type:`thesis`,col:8,id:`w-thesis`,props:{reasoning:e.thesis.text}},2),d({type:`alignmentgauge`,col:4,id:`w-align`,props:{pct:null}},1),i.forEach(e=>{d({type:`insight`,col:4,id:`w-${e.id}`,num:String(u),props:{title:e.label,stat:`—`,conf:`inferred`,summary:e.sourceQuote.text}},1,e.id)}),c.length>0&&d({type:`standingalerts`,col:4,id:`w-alerts`,props:{alerts:[]}},1),d({type:`sourceslineage`,col:8,id:`w-sources`,props:{rows:[]}},2);let f=t.cadence??{data:`manual`,ai:`manual`},p=i.some(e=>e.query.trim()!==``&&!e.blankKey);return{id:r,title:e.title,question:t.conversationTitle,thesis:e.thesis,tripwires:c,metrics:i,sources:[{kind:`ORIGIN`,conversationId:t.conversationId,title:t.conversationTitle,contributed:`Created this dashboard from this conversation.`,at:n}],widgets:l,cadence:f,smartTrigger:!0,alerts:{inApp:!0,push:!1},createdAt:n,updatedAt:n,nextDataAt:s(f,n),nextAiAt:2**53-1,lastRefreshedAt:null,...p?{oneShotAt:n,oneShotLabel:`first check`}:{}}}function R(e,t,n,r=Date.now()){let i=new Set(e.metrics.map(e=>y(e.label))),a=new Map(e.metrics.map(e=>[y(e.label),e.id])),o=[],s=[],c=e.widgets.length;t.metrics.forEach((e,t)=>{if(i.has(y(e.label)))return;let l=`m-${r}-${t}`;o.push({id:l,label:e.label,query:e.query,...e.unit?{unit:e.unit}:{},sourceQuote:e.sourceQuote,lastValue:null,origin:`empty`,...e.userSupplied?{blankKey:l}:{}}),a.set(y(e.label),l),s.push({id:`w-${r}-${t}`,block:{type:`insight`,col:4,id:`wadd-${r}-${t}`,num:String(++c),props:{title:e.label,stat:`—`,conf:`inferred`,summary:e.sourceQuote.text}},span:1,fromSource:n,metricId:l})});let l=new Set(e.tripwires.map(e=>y(e.label))),d=t.tripwires.filter(e=>a.has(y(e.metricLabel))&&!l.has(y(e.label))).map((e,t)=>({id:`t-${r}-${t}`,label:e.label,metricId:a.get(y(e.metricLabel)),comparator:e.comparator,threshold:e.threshold,...e.unit?{unit:e.unit}:{},sourceQuote:e.sourceQuote,state:`AWAITING`})),f=o.length+d.length,p=[];o.length&&p.push(`${o.length} metric${o.length>1?`s`:``}`),d.length&&p.push(`${d.length} alert${d.length>1?`s`:``}`);let m={kind:`ADDED`,conversationId:y(n),title:n,contributed:p.length?`Added: ${p.join(` + `)}`:`Linked this conversation.`,at:r};return u(e.id,{metrics:o,tripwires:d,widgets:s,source:m}),f}var z=t();function B(e){return e.toLowerCase().replace(/\s+/g,` `).trim()}function V(){let e=[],t=``,n=a();if(n&&n.frames.length>0){let r=n.frames[N(n.frames)];t=r.question||r.spec.title||`Your latest conversation`,e.push({id:`session`,label:t,history:n.history,frames:n.frames,title:t,live:!0})}for(let n of g()){let r=n.title||n.question;if(t&&B(r)===B(t))continue;let i={question:n.question,narration:``,mode:`replace`,tour:[],at:n.savedAt,spec:n.spec};e.push({id:`lib-`+n.id,label:r,history:[{role:`user`,content:n.question}],frames:[i],title:r,live:!1})}return e}function H(e){let t=[{text:e.thesis.text,tag:`GOAL`}];return e.tripwires.forEach(e=>t.push({text:e.sourceQuote.text,tag:`RISK`})),e.metrics.forEach(e=>t.push({text:e.sourceQuote.text,tag:`METRIC`})),t.filter(e=>e.text.trim().length>2)}function U(e,t){let n=e.toLowerCase();for(let r of t){let t=n.indexOf(r.text.toLowerCase());if(t>=0)return(0,z.jsxs)(z.Fragment,{children:[e.slice(0,t),(0,z.jsxs)(`mark`,{className:`xt-hl xt-${r.tag.toLowerCase()}`,children:[e.slice(t,t+r.text.length),(0,z.jsx)(`span`,{className:`xt-tag`,children:r.tag})]}),e.slice(t+r.text.length)]})}return e}function W({onClose:e,initialSourceId:t}){let n=(0,S.useRef)(null);r(n,{onEscape:e});let i=(0,S.useMemo)(V,[]),[a,o]=(0,S.useState)(()=>t&&i.some(e=>e.id===t)?t:i[0]?.id??``),s=(0,S.useMemo)(()=>i.find(e=>e.id===a)??null,[i,a]),[u,g]=(0,S.useState)(!0),[_,v]=(0,S.useState)(null),[y,C]=(0,S.useState)(``),[w,T]=(0,S.useState)(new Set),[E,D]=(0,S.useState)(new Set),[O,k]=(0,S.useState)(null),A=(0,S.useRef)(``),[j,M]=(0,S.useState)(`manual`);(0,S.useEffect)(()=>{if(!s||A.current===s.id)return;A.current=s.id,g(!0),T(new Set),D(new Set);let e=!1,t=m(h()),n=!!t.apiKey,r=()=>I(s.history,s.frames),i=t=>{e||(v(t),C(t.title),g(!1))};return n&&s.live?F(s.history,s.frames,t).then(e=>i(e??r())).catch(()=>i(r())):i(r()),()=>{e=!0}},[s]);let N=(0,S.useMemo)(()=>_?H(_):[],[_]),P=(0,S.useMemo)(()=>c(),[]),W=()=>_?{..._,title:y.trim()||_.title,metrics:_.metrics.filter((e,t)=>!w.has(t)),tripwires:_.tripwires.filter((e,t)=>!E.has(t))}:null,q=()=>{let t=W();if(!t||!s)return;let n=L(t,{conversationId:B(s.title),conversationTitle:s.title,cadence:{data:j,ai:`manual`}});d(n),b(n.id),e(),window.location.hash=f.detail(n.id)},J=t=>{let n=W();!n||!s||(R(t,n,s.title),p(t.id),b(t.id),e(),window.location.hash=f.detail(t.id))},Y=e=>{if(O===e.id){J(e);return}let t=W();if(!t)return;let n=x(P,{text:`${t.title} ${t.thesis.text}`});if(!n||n.id!==e.id){k(e.id);return}J(e)};return(0,z.jsx)(`div`,{className:`xt-scrim`,onClick:t=>{t.target===t.currentTarget&&e()},role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===` `)&&(t.key===` `&&t.preventDefault(),e())},children:(0,z.jsxs)(`div`,{className:`xt-modal`,ref:n,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`What Mavéa found in your conversation`,children:[(0,z.jsxs)(`div`,{className:`xt-head`,children:[(0,z.jsx)(`span`,{className:`xt-head-title`,children:`What Mavéa found in your conversation`}),(0,z.jsx)(`button`,{type:`button`,className:`xt-close`,onClick:e,"aria-label":`Close`,children:`×`})]}),i.length===0?(0,z.jsxs)(`div`,{className:`xt-empty`,children:[(0,z.jsx)(`p`,{className:`dash-empty-title`,children:`No conversation to track yet.`}),(0,z.jsxs)(`p`,{className:`dash-empty-how`,children:[`Have a conversation in `,(0,z.jsx)(`a`,{href:`#/live`,children:`Live`}),` — talk through a goal, a decision, or something you’re tracking — then come back here to turn it into a living dashboard.`]})]}):(0,z.jsxs)(z.Fragment,{children:[i.length>1&&(0,z.jsxs)(`div`,{className:`xt-pick`,children:[(0,z.jsx)(`span`,{className:`xt-pick-label`,children:`Build from`}),(0,z.jsx)(`div`,{className:`xt-pick-chips`,children:i.map(e=>(0,z.jsxs)(`button`,{type:`button`,className:`xt-pick-chip`+(e.id===a?` is-active`:``),onClick:()=>o(e.id),title:e.title,children:[e.live?`● `:``,e.label]},e.id))})]}),u?(0,z.jsx)(`div`,{className:`xt-loading`,children:`Reading your conversation…`}):_&&s?(0,z.jsxs)(`div`,{className:`xt-split`,children:[(0,z.jsxs)(`div`,{className:`xt-left`,children:[(0,z.jsx)(`div`,{className:`xt-section-label`,children:s.live?`Your words`:`The conversation`}),s.history.filter(e=>e.role===`user`).map((e,t)=>(0,z.jsx)(`p`,{className:`xt-line`,children:U(e.content,N)},t))]}),(0,z.jsxs)(`div`,{className:`xt-right`,children:[(0,z.jsx)(`div`,{className:`xt-section-label`,children:`Components — include or remove`}),(0,z.jsxs)(`div`,{className:`xt-comp xt-comp--goal`,children:[(0,z.jsx)(`div`,{className:`xt-comp-head`,children:(0,z.jsx)(`span`,{className:`xt-comp-kind`,children:`GOAL`})}),(0,z.jsxs)(`div`,{className:`xt-comp-body`,children:[`“`,_.thesis.text,`”`]})]}),_.metrics.map((e,t)=>(0,z.jsx)(K,{kind:`METRIC`,body:`${e.label}${e.userSupplied?` · you’ll fill this`:``}`,on:!w.has(t),onToggle:()=>G(T,t)},`m${t}`)),_.tripwires.map((e,t)=>(0,z.jsx)(K,{kind:`RISK`,body:`Alert: ${e.label}`,on:!E.has(t),onToggle:()=>G(D,t)},`t${t}`)),(0,z.jsxs)(`div`,{className:`xt-pick xt-cadence-pick`,children:[(0,z.jsx)(`span`,{className:`xt-pick-label`,children:`How often`}),(0,z.jsxs)(`div`,{className:`xt-pick-chips`,children:[(0,z.jsx)(`button`,{type:`button`,className:`xt-pick-chip`+(j===`manual`?` is-active`:``),"aria-pressed":j===`manual`,onClick:()=>M(`manual`),children:`Manual — only when you ask`}),(0,z.jsx)(`button`,{type:`button`,className:`xt-pick-chip`+(j===`hourly`?` is-active`:``),"aria-pressed":j===`hourly`,onClick:()=>M(`hourly`),children:`Suggested — hourly checks`})]})]}),(0,z.jsx)(`p`,{className:`dash-plan-estimate`,children:l(j)>0?`≈ ${l(j)} searches/mo on your key, at this cadence — change it any time from the dashboard.`:`No standing searches — this refreshes only when you ask.`}),(0,z.jsxs)(`div`,{className:`xt-build-row`,children:[(0,z.jsx)(`input`,{className:`xt-name`,value:y,onChange:e=>C(e.target.value),"aria-label":`Dashboard name`}),(0,z.jsx)(`button`,{type:`button`,className:`xt-build`,onClick:q,children:`Build dashboard →`})]}),P.length>0&&(0,z.jsxs)(`div`,{className:`xt-fold`,children:[(0,z.jsx)(`div`,{className:`xt-fold-label`,children:`Or add this conversation to an existing dashboard`}),(0,z.jsx)(`div`,{className:`xt-fold-chips`,children:P.map(e=>{let t=O===e.id;return(0,z.jsx)(`button`,{type:`button`,className:`xt-fold-chip`+(t?` xt-fold-armed`:``),onClick:()=>Y(e),onMouseLeave:()=>t&&k(null),title:t?`This doesn’t look related to “${e.title}” — fold anyway?`:`Fold these into “${e.title}”`,children:t?`Doesn’t look related — fold anyway?`:`+ ${e.title}`},e.id)})})]})]})]}):null]})]})})}function G(e,t){e(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n})}function K(e){let t=(0,C.c)(16),{kind:n,body:r,on:i,onToggle:a}=e,o;t[0]===n?o=t[1]:(o=n.toLowerCase(),t[0]=n,t[1]=o);let s=`xt-comp xt-comp--${o} ${i?``:`xt-off`}`,c;t[2]===n?c=t[3]:(c=(0,z.jsx)(`span`,{className:`xt-comp-kind`,children:n}),t[2]=n,t[3]=c);let l=i?`Included ✓`:`Removed ✕`,u;t[4]!==a||t[5]!==l?(u=(0,z.jsx)(`button`,{type:`button`,className:`xt-comp-toggle`,onClick:a,children:l}),t[4]=a,t[5]=l,t[6]=u):u=t[6];let d;t[7]!==c||t[8]!==u?(d=(0,z.jsxs)(`div`,{className:`xt-comp-head`,children:[c,u]}),t[7]=c,t[8]=u,t[9]=d):d=t[9];let f;t[10]===r?f=t[11]:(f=(0,z.jsx)(`div`,{className:`xt-comp-body`,children:r}),t[10]=r,t[11]=f);let p;return t[12]!==s||t[13]!==d||t[14]!==f?(p=(0,z.jsxs)(`div`,{className:s,children:[d,f]}),t[12]=s,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}export{W as ExtractionPreview};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,M as r,N as i,P as a,dt as o,ht as s,q as c}from"./index-C7H7A1rW.js";import{n as l}from"./icons-CHVz6kv_.js";import{t as u}from"./TopicCanvas-BRu3xVL8.js";import"./catalog-DF7YTNju.js";import{i as d,n as ee,t as f}from"./facts-BBTt3ImG.js";import{t as p}from"./homeTarget-BcZYH3DY.js";var m=e(),h=s(),g=new Set([`geomap`,`maproute`,`zoningmap`,`carousel`,`mindshape`,`atlas`,`globe`,`spinner`,`deflist`,`messagescriptset`,`slidedeck`,`pagination`,`kanban`,`emotionwheel`,`expressionheatmap`,`weathernow`,`boardgamescore`,`claimgrid`,`cohortgrid`,`financialstatement`]),_=e=>e===`auto`||e===`scroll`;function v(e){let t=e.tagName.toLowerCase(),n=(e.getAttribute(`class`)||``).split(` `)[0],r=``;return(t===`text`||t===`tspan`||e.childElementCount===0)&&(r=(e.textContent||``).trim().slice(0,30)),`${t}${n?`.`+n:``}${r?` "${r}"`:``}`}function y(e,t){let n=e.getAttribute(`class`)||``;if(/\bic\b/.test(n)||/\bcanvas-hscroll\b/.test(n)&&_(t.overflowX)&&e.getAttribute(`tabindex`)===`0`&&e.getAttribute(`aria-label`))return!0;let r=t.webkitLineClamp||t.getPropertyValue(`-webkit-line-clamp`);return!!(r&&r!==`none`||_(t.overflowY)&&t.maxHeight&&t.maxHeight!==`none`)}var b=new Set([`b`,`i`,`em`,`strong`,`mark`,`small`,`span`,`a`,`code`,`sub`,`sup`]),x=new Set([`rect`,`path`,`circle`,`ellipse`,`polygon`,`polyline`,`line`]),S=new Set([`none`,`transparent`,`rgba(0, 0, 0, 0)`]);function C(e){let t=S.has(e.fill),n=S.has(e.stroke)||parseFloat(e.strokeWidth)===0;return t&&n}function w(e,t=3.5){let n={};for(let r of e.querySelectorAll(`*`)){let i=r.getBoundingClientRect();if(i.width===0&&i.height===0)continue;let a=getComputedStyle(r);if(parseFloat(a.opacity)===0||a.visibility===`hidden`)continue;let o=r.tagName.toLowerCase();if(x.has(o)&&C(a))continue;let s=r.parentElement,c=null,l=(a.clipPath||`none`)!==`none`;for(;s;){let t=getComputedStyle(s);if((t.clipPath||`none`)!==`none`&&(l=!0),s.tagName===`svg`&&s.getAttribute(`preserveAspectRatio`)===`none`&&(l=!0),t.overflowX!==`visible`||t.overflowY!==`visible`){c=t;break}if(s===e)break;s=s.parentElement}if(!s||!c||l||y(s,c))continue;let u=s.getBoundingClientRect();if(u.height<6||u.width<6)continue;let d=Math.max(u.left-i.left,i.right-u.right),ee=Math.max(u.top-i.top,i.bottom-u.bottom),f=Math.max(d,ee);if(f<=t||b.has(o)&&ee>=d&&f<24)continue;let p=_(c.overflowX)||_(c.overflowY)?`scroll`:`clip`,m={px:Math.round(f),kind:p,el:v(r),clipper:`.`+(s.getAttribute(`class`)||s.tagName).split(` `)[0]},h=p===`clip`?`clip`:`scroll`;(!n[h]||m.px>n[h].px)&&(n[h]=m)}return n}function te(e=document,{clipTol:t=3.5,scrollTol:n=8}={}){let r=performance.now(),i=[...e.querySelectorAll(`.vlib-tile`)],a=[],o=[];for(let e of i){let r=e.querySelector(`.vlib-type`)?.textContent?.trim()||`?`,i=e.querySelector(`.vlib-fam`)?.textContent?.trim()||`?`,s=e.querySelector(`.card`);if(!s||g.has(r))continue;let c=w(s,t);c.clip&&c.clip.px>t&&a.push({...c.clip,type:r,family:i}),c.scroll&&c.scroll.px>n&&o.push({...c.scroll,type:r,family:i})}return a.sort((e,t)=>t.px-e.px),o.sort((e,t)=>t.px-e.px),{scanned:i.length,ms:Math.round(performance.now()-r),clip:a,scroll:o}}function T(e,t){let n=e;for(;n&&n!==t;){let e=n.getAttribute?.(`transform`);if(e&&/\brotate\s*\(/.test(e))return!0;let t=getComputedStyle(n).transform,r=t&&t!==`none`?/matrix\(([^)]+)\)/.exec(t):null;if(r){let e=r[1].split(`,`).map(Number);if(Math.abs(e[1])>.02||Math.abs(e[2])>.02)return!0}n=n.parentElement}return!1}function E(e,t=400){let n=[],r=r=>{if(n.length>=t)return;let i=getComputedStyle(r);if(i.visibility===`hidden`||parseFloat(i.opacity)<.4)return;let a=r.tagName.toLowerCase()===`text`?i.fill:i.color,o=/rgba\(\s*[\d.]+\s*,\s*[\d.]+\s*,\s*[\d.]+\s*,\s*([\d.]+)\s*\)/.exec(a)??/rgba?\([^)]*\/\s*([\d.]+)\s*\)/.exec(a);if(o&&parseFloat(o[1])<.4||T(r,e))return;let s=r.getBoundingClientRect();s.width<2||s.height<2||n.push({el:r,rect:s,text:(r.textContent||``).trim()})};for(let t of e.querySelectorAll(`text`))r(t);for(let t of e.querySelectorAll(`*`)){let e=t.tagName.toLowerCase();e===`text`||e===`tspan`||t.childElementCount>0||(t.textContent||``).trim()&&r(t)}return n}function D(e,t=3){let n=E(e),r;for(let e=0;e<n.length;e++)for(let i=e+1;i<n.length;i++){let a=n[e],o=n[i];if(a.el.contains(o.el)||o.el.contains(a.el)||a.text&&a.text===o.text)continue;let s=Math.min(a.rect.right,o.rect.right)-Math.max(a.rect.left,o.rect.left),c=Math.min(a.rect.bottom,o.rect.bottom)-Math.max(a.rect.top,o.rect.top);if(s<=t||c<=t)continue;let l=Math.round(s*c);(!r||l>r.px)&&(r={px:l,a:v(a.el),b:v(o.el)})}return r}function O(e=document,{tol:t=3}={}){let n=performance.now(),r=[...e.querySelectorAll(`.vlib-tile`)],i=[];for(let e of r){let n=e.querySelector(`.vlib-type`)?.textContent?.trim()||`?`,r=e.querySelector(`.vlib-fam`)?.textContent?.trim()||`?`,a=e.querySelector(`.card`);if(!a||g.has(n))continue;let o=D(a,t);o&&i.push({...o,type:n,family:r})}return i.sort((e,t)=>t.px-e.px),{scanned:r.length,ms:Math.round(performance.now()-n),overlaps:i}}var k=/^(search|filter|filtering|loading|working|running|saving|updating|syncing|type|start typing|choose|select|add|new|untitled|more)\b/i;function A(e){let t=[],n=new Set,r=(e,r,i)=>{n.has(r)||(n.add(r),t.push({kind:e,el:v(r),text:i.slice(0,40)}))},i=e=>parseFloat(e.opacity)!==0&&e.visibility!==`hidden`,a=e=>!!e.closest(`[data-text-disclosure]`)||e.hasAttribute(`data-semantic-ellipsis`),o=e=>{let t=document.createRange();t.selectNodeContents(e);let n=[];for(let e of t.getClientRects())e.width<1||e.height<1||n.some(t=>Math.abs(t-e.top)<2)||n.push(e.top);return t.detach(),n.length};for(let t of e.querySelectorAll(`text`)){let e=(t.textContent||``).trim();i(getComputedStyle(t))&&/…$/.test(e)&&!k.test(e)&&!a(t)&&r(`ellipsis`,t,e)}for(let t of e.querySelectorAll(`*`)){if(t.namespaceURI!==`http://www.w3.org/1999/xhtml`)continue;let e=getComputedStyle(t);if(!i(e))continue;let n=(t.textContent||``).trim();if(!n||k.test(n)||a(t))continue;if(t.childElementCount===0&&/…$/.test(n)){r(`ellipsis`,t,n);continue}let s=e.webkitLineClamp||e.getPropertyValue(`-webkit-line-clamp`),c=Number.parseInt(s,10),l=e.textOverflow===`ellipsis`&&e.whiteSpace.includes(`nowrap`)&&t.scrollWidth>t.clientWidth+1,u=Number.isFinite(c)&&c>0&&o(t)>c;(l||u)&&r(`clamp`,t,n)}return t}function ne(e=document){let t=performance.now(),n=[...e.querySelectorAll(`.vlib-tile`)],r=[];for(let e of n){let t=e.querySelector(`.vlib-type`)?.textContent?.trim()||`?`,n=e.querySelector(`.vlib-fam`)?.textContent?.trim()||`?`,i=e.querySelector(`.card`);if(!(!i||g.has(t)))for(let e of A(i))r.push({...e,type:t,family:n})}return{scanned:n.length,ms:Math.round(performance.now()-t),truncations:r}}n();var j={ai:()=>c(()=>import(`./ai-Ba4lZJ9Y.js`).then(e=>e.default),[]),charts1:()=>c(()=>import(`./charts1-EOoxU_K3.js`).then(e=>e.default),[]),charts2:()=>c(()=>import(`./charts2-tyUiQPff.js`).then(e=>e.default),[]),code:()=>c(()=>import(`./code-CpjYCNS8.js`).then(e=>e.default),[]),compose:()=>c(()=>import(`./compose-BJ9EfcQS.js`).then(e=>e.default),[]),core:()=>c(()=>import(`./core-DEFyprhs.js`).then(e=>e.default),[]),diagrams:()=>c(()=>import(`./diagrams-CaSfjT4I.js`).then(e=>e.default),[]),display:()=>c(()=>import(`./display-OvC57CMc.js`).then(e=>e.default),[]),docs:()=>c(()=>import(`./docs-B2aDtm5K.js`).then(e=>e.default),[]),everyday:()=>c(()=>import(`./everyday-CoZa4kDZ.js`).then(e=>e.default),[]),finance:()=>c(()=>import(`./finance-Bxn_Q1p0.js`).then(e=>e.default),[]),flows:()=>c(()=>import(`./flows-BL81J7yN.js`).then(e=>e.default),[]),forms:()=>c(()=>import(`./forms-DeoXOxdD.js`).then(e=>e.default),[]),layout:()=>c(()=>import(`./layout-CkO0Psde.js`).then(e=>e.default),[]),learn:()=>c(()=>import(`./learn-DVfqN-nf.js`).then(e=>e.default),[]),media:()=>c(()=>import(`./media-CsrUl279.js`).then(e=>e.default),[]),nav:()=>c(()=>import(`./nav-Czm-NzPV.js`).then(e=>e.default),[]),overlays:()=>c(()=>import(`./overlays-JxbHtA2o.js`).then(e=>e.default),[]),pickers:()=>c(()=>import(`./pickers-B4-3HOR8.js`).then(e=>e.default),[]),reference:()=>c(()=>import(`./reference-sJzyMiL4.js`).then(e=>e.default),[]),stats:()=>c(()=>import(`./stats-BeP5Bws0.js`).then(e=>e.default),[]),status:()=>c(()=>import(`./status-BY02LIJt.js`).then(e=>e.default),[]),tables:()=>c(()=>import(`./tables-Dzd3rTqG.js`).then(e=>e.default),[])},re=new Map;function M(e,t){let n=j[e];if(!n)return Promise.resolve(void 0);let r=re.get(e);return r||(r=n(),re.set(e,r)),r.then(e=>e[t])}var N=t(),ie={charts1:`Charts · hierarchy & flow`,charts2:`Charts · trends & ranges`,diagrams:`Diagrams & schematics`,learn:`Learn · math & assessment`,stats:`Stats & KPIs`,tables:`Tables & matrices`,flows:`Flows & plans`,media:`Media & maps`,docs:`Documents & evidence`,reference:`Reference & language`,ai:`AI & reasoning`,layout:`Layout & content`,compose:`Compose & messages`,everyday:`Everyday & utilities`,nav:`Navigation`,overlays:`Overlays`,forms:`Forms & inputs`,pickers:`Pickers`,status:`Status & feedback`,display:`Display`,code:`Code & syntax`,dashboard:`Living dashboards`,finance:`Finance & Fundraising`,core:`Core blocks`},P=Object.keys(ie),ae=f.map(e=>e.type);function F(e){return{id:`money`,workspace:``,title:``,sub:``,opener:``,context:[],blocks:[{...e,col:12,delay:0}],proof:null,extras:{},group:`home`,suggests:[],keywords:[]}}function I(){let e=new Map;for(let t of ae){let n=d(t)??`core`,r=e.get(n);r?r.push(t):e.set(n,[t])}return P.flatMap(t=>{let n=e.get(t);return n?[{id:t,label:ie[t]??t,types:n.sort()}]:[]})}var oe=I(),se=ae.length,L=class extends m.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){}render(){return this.state.failed?(0,N.jsx)(`div`,{className:`vlib-render-error`,role:`alert`,"data-block-type":this.props.type,children:`This preview could not be rendered.`}):this.props.children}};function ce(){if(typeof window>`u`)return!1;let e=window.location.hash.split(`?`)[1]??``;return new URLSearchParams(e).get(`mountall`)===`1`}function le(e){let t=(0,h.c)(26),{type:n,flag:r,mountAll:i}=e,a;t[0]===n?a=t[1]:(a=ee(n),t[0]=n,t[1]=a);let s=a,[c,l]=(0,m.useState)(null),[f,p]=(0,m.useState)(!1),g=s?.colDefault??6,_=g>=10?` vlib-full`:g>=7?` vlib-wide`:``,v=r?` vlib-tile--${r.kind}`:``,y;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(y={rootMargin:`900px 0px`,threshold:0},t[2]=y):y=t[2];let[b,x]=o(y),S=i||x,C,w;t[3]!==s||t[4]!==S||t[5]!==n?(C=()=>{let e=s?.family;if(!S||!s||!e)return;let t=!0;return p(!1),M(e,n).then(e=>{if(t){if(!e||typeof e!=`object`||Array.isArray(e)){p(!0);return}l({type:n,props:e,col:s.colDefault,delay:0})}}).catch(()=>{t&&p(!0)}),()=>{t=!1}},w=[S,n,s],t[3]=s,t[4]=S,t[5]=n,t[6]=C,t[7]=w):(C=t[6],w=t[7]),(0,m.useEffect)(C,w);let te=`vlib-tile`+_+v,T;t[8]===n?T=t[9]:(T=(0,N.jsx)(`span`,{className:`vlib-type`,children:n}),t[8]=n,t[9]=T);let E;t[10]!==r||t[11]!==n?(E=r?(0,N.jsxs)(`span`,{className:`vlib-flag vlib-flag--${r.kind}`,title:`${r.el} → ${r.clipper}`,children:[r.kind===`clip`?`clipped`:`scroll`,` `,r.px,`px`]}):(0,N.jsx)(`span`,{className:`vlib-fam`,children:d(n)??`core`}),t[10]=r,t[11]=n,t[12]=E):E=t[12];let D;t[13]!==T||t[14]!==E?(D=(0,N.jsxs)(`div`,{className:`vlib-tile-head`,children:[T,E]}),t[13]=T,t[14]=E,t[15]=D):D=t[15];let O;t[16]!==c||t[17]!==f||t[18]!==S||t[19]!==n?(O=S&&f?(0,N.jsx)(`div`,{className:`vlib-render`,children:(0,N.jsx)(`div`,{className:`vlib-render-error`,role:`alert`,"data-block-type":n,children:`This preview could not be loaded.`})}):S&&c?(0,N.jsx)(`div`,{className:`vlib-render`,children:(0,N.jsx)(L,{type:n,children:(0,N.jsx)(u,{data:F(c),spot:null,built:{},onProve:R})})}):(0,N.jsx)(`div`,{className:`vlib-render vlib-render--pending`,"aria-hidden":`true`}),t[16]=c,t[17]=f,t[18]=S,t[19]=n,t[20]=O):O=t[20];let k;return t[21]!==b||t[22]!==te||t[23]!==D||t[24]!==O?(k=(0,N.jsxs)(`div`,{ref:b,className:te,children:[D,O]}),t[21]=b,t[22]=te,t[23]=D,t[24]=O,t[25]=k):k=t[25],k}function R(){}function z(){let e=(0,h.c)(69),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=p(),e[0]=t):t=e[0];let n=t,[o,s]=(0,m.useState)(``),[c,u]=(0,m.useState)(`all`),[d,ee]=(0,m.useState)(i),[f,g]=(0,m.useState)(null),[_,v]=(0,m.useState)(null),[y,b]=(0,m.useState)(null),[x,S]=(0,m.useState)(ce),C=(0,m.useRef)(null),w,T;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{C.current?.focus()},T=[],e[1]=w,e[2]=T):(w=e[1],T=e[2]),(0,m.useEffect)(w,T);let E,D;e[3]===d?(E=e[4],D=e[5]):(E=()=>{typeof document<`u`&&r(d),a(d)},D=[d],e[3]=d,e[4]=E,e[5]=D),(0,m.useEffect)(E,D);let k,A;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>{let e=()=>S(ce());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},A=[],e[6]=k,e[7]=A):(k=e[6],A=e[7]),(0,m.useEffect)(k,A);let j;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>{let e=te(),t=new Map;for(let n of e.clip)t.has(n.type)||t.set(n.type,n);for(let n of e.scroll)t.has(n.type)||t.set(n.type,n);return g(t),e},e[8]=j):j=e[8];let re=j,M;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{let e=O();return v(e.overlaps.length),e},e[9]=M):M=e[9];let ie=M,P;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>{let e=ne();return b(e.truncations.length),e},e[10]=P):P=e[10];let ae=P,F,I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>{},I=[re,ie,ae],e[11]=F,e[12]=I):(F=e[11],I=e[12]),(0,m.useEffect)(F,I);let L;if(e[13]!==c||e[14]!==o){let t=o.trim().toLowerCase(),n;e[16]===c?n=e[17]:(n=e=>c===`all`||e.id===c,e[16]=c,e[17]=n),L=oe.filter(n).map(e=>({...e,types:t?e.types.filter(n=>n.includes(t)||e.label.toLowerCase().includes(t)||e.id.includes(t)):e.types})).filter(fe),e[13]=c,e[14]=o,e[15]=L}else L=e[15];let R=L,z;e[18]===R?z=e[19]:(z=R.reduce(de,0),e[18]=R,e[19]=z);let pe=z,me=`vlib`+(x?` vlib--mountall`:``),he;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,N.jsxs)(`button`,{className:`vlib-back`,type:`button`,onClick:()=>{window.location.hash=n.href},children:[`← Back to `,n.label]}),e[20]=he):he=e[20];let ge;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,N.jsx)(`h1`,{children:`Visual library`}),e[21]=ge):ge=e[21];let B;e[22]===pe?B=e[23]:(B=(0,N.jsxs)(`div`,{className:`vlib-headline`,children:[ge,(0,N.jsxs)(`p`,{className:`vlib-subtitle`,children:[`Production-rendered library. `,pe,` of `,se,` browsable types shown. Every card is fixed demonstration data, not advice.`]})]}),e[22]=pe,e[23]=B);let _e;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(_e=e=>s(e.target.value),e[24]=_e):_e=e[24];let V;e[25]===o?V=e[26]:(V=(0,N.jsx)(`input`,{ref:C,className:`vlib-search`,type:`search`,placeholder:`Search visuals… (e.g. funnel, modal, kanban)`,value:o,onChange:_e,"aria-label":`Search visuals`}),e[25]=o,e[26]=V);let H;e[27]!==f||e[28]!==_||e[29]!==y?(H=!1,e[27]=f,e[28]=_,e[29]=y,e[30]=H):H=e[30];let ve;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(ve=()=>ee(ue),e[31]=ve):ve=e[31];let ye=`Switch to ${d===`dark`?`light`:`dark`} theme`,be=`Switch to ${d===`dark`?`light`:`dark`} theme`,U;e[32]===d?U=e[33]:(U=d===`dark`?(0,N.jsx)(l.sun,{}):(0,N.jsx)(l.moon,{}),e[32]=d,e[33]=U);let W;e[34]!==ye||e[35]!==be||e[36]!==U?(W=(0,N.jsx)(`button`,{className:`vlib-theme`,type:`button`,onClick:ve,"aria-label":ye,title:be,children:U}),e[34]=ye,e[35]=be,e[36]=U,e[37]=W):W=e[37];let G;e[38]!==V||e[39]!==H||e[40]!==W?(G=(0,N.jsxs)(`div`,{className:`vlib-controls`,children:[V,H,W]}),e[38]=V,e[39]=H,e[40]=W,e[41]=G):G=e[41];let K;e[42]!==B||e[43]!==G?(K=(0,N.jsxs)(`div`,{className:`vlib-bar-top`,children:[he,B,G]}),e[42]=B,e[43]=G,e[44]=K):K=e[44];let xe=c===`all`,Se=`vlib-chip ${c===`all`?`active`:``}`,q;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(q=()=>u(`all`),e[45]=q):q=e[45];let Ce;e[46]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,N.jsx)(`span`,{className:`vlib-chip-n`,children:se}),e[46]=Ce):Ce=e[46];let J;e[47]!==xe||e[48]!==Se?(J=(0,N.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":xe,className:Se,onClick:q,children:[`All `,Ce]}),e[47]=xe,e[48]=Se,e[49]=J):J=e[49];let Y;e[50]===c?Y=e[51]:(Y=oe.map(e=>(0,N.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":c===e.id,className:`vlib-chip ${c===e.id?`active`:``}`,onClick:()=>u(e.id),children:[e.label,` `,(0,N.jsx)(`span`,{className:`vlib-chip-n`,children:e.types.length})]},e.id)),e[50]=c,e[51]=Y);let X;e[52]!==J||e[53]!==Y?(X=(0,N.jsxs)(`div`,{className:`vlib-chips`,role:`tablist`,"aria-label":`Filter by family`,children:[J,Y]}),e[52]=J,e[53]=Y,e[54]=X):X=e[54];let Z;e[55]!==K||e[56]!==X?(Z=(0,N.jsxs)(`div`,{className:`vlib-bar`,children:[K,X]}),e[55]=K,e[56]=X,e[57]=Z):Z=e[57];let Q;e[58]!==f||e[59]!==x||e[60]!==o||e[61]!==R?(Q=R.length===0?(0,N.jsxs)(`p`,{className:`vlib-empty`,children:[`No visuals match “`,o,`”.`]}):R.map(e=>(0,N.jsxs)(`section`,{className:`vlib-section`,children:[(0,N.jsxs)(`div`,{className:`vlib-section-head`,children:[(0,N.jsx)(`h2`,{children:e.label}),(0,N.jsx)(`span`,{className:`vlib-count`,children:e.types.length})]}),(0,N.jsx)(`div`,{className:`vlib-grid`,children:e.types.map(e=>(0,N.jsx)(le,{type:e,flag:f?.get(e),mountAll:x},e))})]},e.id)),e[58]=f,e[59]=x,e[60]=o,e[61]=R,e[62]=Q):Q=e[62];let $;e[63]===Q?$=e[64]:($=(0,N.jsx)(`div`,{className:`vlib-body`,children:Q}),e[63]=Q,e[64]=$);let we;return e[65]!==me||e[66]!==Z||e[67]!==$?(we=(0,N.jsxs)(`div`,{className:me,children:[Z,$]}),e[65]=me,e[66]=Z,e[67]=$,e[68]=we):we=e[68],we}function ue(e){return e===`dark`?`light`:`dark`}function de(e,t){return e+t.types.length}function fe(e){return e.types.length}export{z as GalleryApp};
|