@mavea/mavea 1.0.13 → 1.0.15
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/CHANGELOG.md +20 -0
- package/README.md +4 -3
- package/dist/.vite/manifest.json +605 -623
- package/dist/assets/{AppCommandPalette-D_g8-7C0.js → AppCommandPalette-Dzl_DbDd.js} +1 -1
- package/dist/assets/{BlockEmpty-Ddhgr5pu.js → BlockEmpty-B5Q0hgDJ.js} +1 -1
- package/dist/assets/{BriefingPlayer-D-QhLgXI.js → BriefingPlayer-Dy7JCGm-.js} +1 -1
- package/dist/assets/{CanvasSkeleton-BIiOmCMG.js → CanvasSkeleton-CJwPWnFG.js} +2 -2
- package/dist/assets/{CheckLogRail-ZrDqyjQ7.js → CheckLogRail-DNtXlkcR.js} +1 -1
- package/dist/assets/{CodeOutput-D7sVg1Nr.js → CodeOutput-Bg64AyKu.js} +1 -1
- package/dist/assets/{CommandPalette-DNa2q8E_.js → CommandPalette-mO1FEvlx.js} +1 -1
- package/dist/assets/{CourseLessonReader-BIpGjcJk.js → CourseLessonReader-CKfvBMtL.js} +2 -2
- package/dist/assets/{CourseRail-CQaotzN0.js → CourseRail-CRcB319H.js} +1 -1
- package/dist/assets/{CoursesApp-q3kZJmu1.js → CoursesApp-BbCGxAav.js} +2 -2
- package/dist/assets/{CrossExamPanel-BIJslibV.js → CrossExamPanel-Deywo95y.js} +1 -1
- package/dist/assets/{DashPresent-DGSE0vYM.js → DashPresent-BEm1tGse.js} +1 -1
- package/dist/assets/{DashboardDetail-BpaLNg8R.js → DashboardDetail-tK6FpgtH.js} +2 -2
- package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +1 -0
- package/dist/assets/{DashboardOverview-8x3OxX2i.js → DashboardOverview-DrdqBgds.js} +1 -1
- package/dist/assets/{DashboardSettings-f_zxcs5j.js → DashboardSettings-CBhzLW0P.js} +1 -1
- package/dist/assets/DashboardsApp-Dc43FBIi.js +2 -0
- package/dist/assets/{DeepZoomApp-E7bDmzuL.js → DeepZoomApp-Chz6laKc.js} +1 -1
- package/dist/assets/{DelegatePanel-_9RZiLHM.css → DelegatePanel-Cf85-0qE.css} +1 -1
- package/dist/assets/DelegatePanel-DmtTY_lE.js +33 -0
- package/dist/assets/{DemoGallery-DDzX8Z7I.js → DemoGallery-zw3d7ap9.js} +1 -1
- package/dist/assets/{DropSelect-BMZYAX6q.js → DropSelect-Bo2Oyi-2.js} +1 -1
- package/dist/assets/{ExportModal-CTMJaU1l.js → ExportModal-DICXavg9.js} +2 -2
- package/dist/assets/{ExtractionPreview-C9wq7CrK.js → ExtractionPreview-C636AVw-.js} +1 -1
- package/dist/assets/{FlagshipCTA-DPNSflKv.js → FlagshipCTA-B-7nH43r.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-55zqyPFm.js → FlagshipCommandPalette-DgTL_Kjj.js} +1 -1
- package/dist/assets/{FlagshipShowcase-BWpoPWOn.js → FlagshipShowcase-CbAC2s4X.js} +1 -1
- package/dist/assets/{FlashcardsApp-apCj3I17.js → FlashcardsApp-CatYcaJJ.js} +1 -1
- package/dist/assets/{ForecastPanel-CMRD-UKn.js → ForecastPanel-BOG361kr.js} +1 -1
- package/dist/assets/{GalleryApp-CcsbirLT.js → GalleryApp-uW6b1Y0d.js} +1 -1
- package/dist/assets/{HonestByDesign-DU4qmc61.js → HonestByDesign-hCxc0A7b.js} +1 -1
- package/dist/assets/{HowItWorks-CkZXftN-.js → HowItWorks-BlbQcUxx.js} +1 -1
- package/dist/assets/{LegalApp-BmZpqH-6.js → LegalApp-sCZjJYWx.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-CcbAfubz.js → LegalMarkdownDocument-Bk3U7ChN.js} +1 -1
- package/dist/assets/{LegalPageShell-raMATqhx.js → LegalPageShell-BsgRV7aL.js} +1 -1
- package/dist/assets/{LeverPanel-DVUgGcYW.js → LeverPanel-CP32QcIf.js} +1 -1
- package/dist/assets/{Library-D725dNcx.js → Library-CJTnp1pC.js} +1 -1
- package/dist/assets/{LibraryOverlay-D7PzQIpH.js → LibraryOverlay-geQRGAzG.js} +1 -1
- package/dist/assets/LiveApp-C0BN0o3_.js +61 -0
- package/dist/assets/LiveApp-Dj_6EQuL.css +1 -0
- package/dist/assets/LiveSettings-CzSXXMoo.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-CIMuABKE.js → MindMapViewerDrawer-7HLErRQF.js} +1 -1
- package/dist/assets/{MindShape-0KPrv0CF.js → MindShape-Bhu4yoIj.js} +1 -1
- package/dist/assets/MindShape-DjHtMW_5.css +1 -0
- package/dist/assets/{PinToDashboard-ML4NFCAU.js → PinToDashboard-Cj8S9XKC.js} +1 -1
- package/dist/assets/{PlanReview-CbJ_7Ld1.js → PlanReview-3NxZD9wt.js} +1 -1
- package/dist/assets/{Presence-B_zDfiE7.js → Presence-DDxb6yE5.js} +1 -1
- package/dist/assets/{PresentationDeck-Tm3PUdh5.js → PresentationDeck-B6AHRYEA.js} +1 -1
- package/dist/assets/{PrismApp-Bc-6PO_P.js → PrismApp-BlPpWxao.js} +2 -2
- package/dist/assets/{PrismAskController-OwqFx5Pk.js → PrismAskController-DUvOTeW9.js} +1 -1
- package/dist/assets/{PrismBriefingPlayer-Bu_ZxYdh.js → PrismBriefingPlayer-Bmo9tOGX.js} +2 -2
- package/dist/assets/{PrismOverlay-UTsJ8R5d.js → PrismOverlay-9Q_14eEO.js} +4 -4
- package/dist/assets/{PrivacyApp-BLXan6dm.js → PrivacyApp-CatB3OpJ.js} +1 -1
- package/dist/assets/{Recap-5rYrcMCC.js → Recap-DkKrrqi5.js} +1 -1
- package/dist/assets/{ReelJelly-Dg3XGB0c.js → ReelJelly-DCD4bG10.js} +1 -1
- package/dist/assets/{ReplayCard-wMIMlorH.js → ReplayCard-Bz69tOST.js} +2 -2
- package/dist/assets/{ReplayOverlay-BomkTonB.js → ReplayOverlay-DbJX08Kr.js} +1 -1
- package/dist/assets/{RewindOverlay-Izf89nG9.js → RewindOverlay-Bop4a63b.js} +1 -1
- package/dist/assets/{RippleApp-8QSIEjTX.js → RippleApp-u3hCfb5b.js} +2 -2
- package/dist/assets/{RippleAskController-Cd86GrKs.js → RippleAskController-CK4iSwT0.js} +1 -1
- package/dist/assets/{RippleOverlay-SCrXZTqz.js → RippleOverlay-BM_B9JEc.js} +2 -2
- package/dist/assets/{SeeDontRead-Bp8qsF20.js → SeeDontRead-CGGKmvBV.js} +1 -1
- package/dist/assets/{ShareModal-C-sD-aia.js → ShareModal-D4En6Y3L.js} +1 -1
- package/dist/assets/{ShipCascade-Cq_I4c_v.js → ShipCascade-k_GWrcau.js} +1 -1
- package/dist/assets/{ShipCourse-CzsJyMnT.js → ShipCourse-BQOY4MyI.js} +1 -1
- package/dist/assets/{ShipHotspots-OMjPhQWP.js → ShipHotspots-vLRK0w_b.js} +1 -1
- package/dist/assets/{ShipIncident-Cqn6ZmKz.js → ShipIncident-BWxerYtX.js} +1 -1
- package/dist/assets/{ShipMigration-5_ZWn7K9.js → ShipMigration-OgAGEbjm.js} +1 -1
- package/dist/assets/{ShipOnboarding-Yr8oKgmQ.js → ShipOnboarding-B_2IEq3N.js} +1 -1
- package/dist/assets/{ShipRead-Bnw7mnv3.js → ShipRead--gGqg2SE.js} +1 -1
- package/dist/assets/{ShipRollout-ECsDrqAd.js → ShipRollout-B_U2P8Yw.js} +1 -1
- package/dist/assets/{ShipSuggestions-C6oDw2F8.js → ShipSuggestions-D9coTmgw.js} +1 -1
- package/dist/assets/{ShipWorkspace-BT6gZrqd.js → ShipWorkspace-BmdcHZXa.js} +1 -1
- package/dist/assets/{SignatureLoop-D7sibSnc.js → SignatureLoop-KA6Cf93g.js} +1 -1
- package/dist/assets/{SynthesisApp-B768x2r_.js → SynthesisApp-BCBhCJhx.js} +2 -2
- package/dist/assets/{SynthesisOverlay-Ds0MhZLQ.js → SynthesisOverlay-BuGIeaKq.js} +1 -1
- package/dist/assets/{TermsApp-Da8FeMj3.js → TermsApp-CleIlDtR.js} +1 -1
- package/dist/assets/{TopicCanvas-D64O3lvD.js → TopicCanvas-BRu3xVL8.js} +2 -2
- package/dist/assets/{TopicCanvas-D2Nax9II.css → TopicCanvas-uRuHi99s.css} +1 -1
- package/dist/assets/{TourPrism-CTf1G-Vv.js → TourPrism-zbVLe2ag.js} +1 -1
- package/dist/assets/{TrackerTile-DeujTCk-.js → TrackerTile-D9Wa3CSq.js} +2 -2
- package/dist/assets/{TwoSurfaces-kyK2yqm0.js → TwoSurfaces-TyWXgAdq.js} +1 -1
- package/dist/assets/{UnderstoodPanel-Dgwk_Cuj.js → UnderstoodPanel-BS9OhgLJ.js} +1 -1
- package/dist/assets/{WhyMachineOverlay-C4eQC0lg.js → WhyMachineOverlay-B-KJhCjr.js} +1 -1
- package/dist/assets/{WowFeatures-CaBZ5WPM.js → WowFeatures-Bv1-PmXF.js} +1 -1
- package/dist/assets/{ZoomDeck-DnCtbhx1.js → ZoomDeck-C2Q6xbgX.js} +1 -1
- package/dist/assets/{alternateFinishes-FSV_gA1A.js → alternateFinishes-BG6svkXG.js} +1 -1
- package/dist/assets/{annotationAuto-x_dV8z65.js → annotationAuto-BpBsjbDQ.js} +1 -1
- package/dist/assets/{annotationReel-SeXzv0P-.js → annotationReel-yzysA-Gr.js} +1 -1
- package/dist/assets/{backup-0zODkqi-.js → backup-BdeBr3wq.js} +1 -1
- package/dist/assets/canvas-Ep2Kfupo.js +1 -0
- package/dist/assets/{catalog-Car_1ocN.js → catalog-DF7YTNju.js} +1 -1
- package/dist/assets/{dashboardEvents-BqcPN-K8.js → dashboardEvents-C_XvGVLJ.js} +1 -1
- package/dist/assets/{dist-BTg4yEWr.js → dist-CBEt6Q8V.js} +1 -1
- package/dist/assets/{fit-I3tuibfX.js → fit-B1LJWvMO.js} +1 -1
- package/dist/assets/{generateLive-Dk24OxVt.js → generateLive-ChhSWKbq.js} +1 -1
- package/dist/assets/gesture-Bouqjr3g.js +2 -0
- package/dist/assets/{index-CWqRe4-B.js → index-C7H7A1rW.js} +3 -3
- package/dist/assets/{jspdf.es.min-wkD3BzGZ.js → jspdf.es.min-DutJi91O.js} +1 -1
- package/dist/assets/{kokoro-B-3GqktX.js → kokoro-kGWf7M0e.js} +1 -1
- package/dist/assets/{lib-CwruVYU_.js → lib-C7zXL8h0.js} +1 -1
- package/dist/assets/{liveSchema-CCpVMy0H.js → liveSchema-DCL21WdS.js} +2 -2
- package/dist/assets/{motion-CURfDtdH.js → motion-dfA87zbb.js} +1 -1
- package/dist/assets/{notes-BG5QP-Dj.js → notes-DblI4Ko_.js} +1 -1
- package/dist/assets/{pdf-x4qTBJIZ.js → pdf-DFYCstCC.js} +1 -1
- package/dist/assets/{penStrokes-9Q_l7NTt.js → penStrokes-DlHnO9xE.js} +1 -1
- package/dist/assets/{perfProbe-BFwfpxJt.js → perfProbe-CCSPF3EA.js} +1 -1
- package/dist/assets/{pin-DRN5H7py.js → pin-D5_Ebl_s.js} +1 -1
- package/dist/assets/{portal-BYHo9LOD.js → portal-BndazODr.js} +1 -1
- package/dist/assets/{pptxgen.es-DGywGiaX.js → pptxgen.es-CwCkoJdp.js} +1 -1
- package/dist/assets/{prewarm-CQNCE4Uq.js → prewarm--KODwuMi.js} +1 -1
- package/dist/assets/{quietHours-CKjQ2pGY.js → quietHours-DVPplPtM.js} +1 -1
- package/dist/assets/{registry-CfTTYQrE.js → registry-0E1uKPCI.js} +1 -1
- package/dist/assets/{registry-Bpx4VBWb.js → registry-B3V5-8v0.js} +1 -1
- package/dist/assets/{registry-_T6pLDPG.js → registry-B51MhOLx.js} +2 -2
- package/dist/assets/{registry-DrqQbf_n.js → registry-BH6FfyZk.js} +1 -1
- package/dist/assets/{registry-CqfjqOX5.js → registry-Ba9xMFO4.js} +2 -2
- package/dist/assets/{registry-CNr6L-3z.js → registry-BlB0FYf0.js} +1 -1
- package/dist/assets/{registry-DFmFBfRz.js → registry-C30HGS2G.js} +1 -1
- package/dist/assets/{registry-1BWL6SXY.js → registry-CIa1EU-G.js} +1 -1
- package/dist/assets/{registry-DEgW3zel.js → registry-COxprhRN.js} +1 -1
- package/dist/assets/{registry-Dw42uggW.js → registry-CWkBxxsI.js} +1 -1
- package/dist/assets/{registry-9S6KiKjR.js → registry-D-qEhm1d.js} +1 -1
- package/dist/assets/registry-D5oMqeSa.js +1 -0
- package/dist/assets/{registry-BZQeYzgv.js → registry-D7rspCZr.js} +1 -1
- package/dist/assets/{registry-Bl3NkU-0.js → registry-DNzF-nvu.js} +1 -1
- package/dist/assets/{registry-aUZZeh27.js → registry-DQIm_hbI.js} +1 -1
- package/dist/assets/{registry-cPmSqaRu.js → registry-Dphh5ADP.js} +1 -1
- package/dist/assets/{registry-GLjcQX0n.js → registry-DrNMbrA_.js} +1 -1
- package/dist/assets/{registry-DBsjgIxw.js → registry-Dvv84L9K.js} +1 -1
- package/dist/assets/{registry-D84Bs-bD.js → registry-M3VgAiQv.js} +1 -1
- package/dist/assets/{registry-BueBIP-N.js → registry-Pr5IKqro.js} +1 -1
- package/dist/assets/{registry-BpBiRe-o.js → registry-WJE8Z0T1.js} +1 -1
- package/dist/assets/registry-hsSlT6pi.js +1 -0
- package/dist/assets/{registry-Bc6_RQ8l.js → registry-nG70-amx.js} +1 -1
- package/dist/assets/{registry-BklPTZre.js → registry-wJhGGVuP.js} +1 -1
- package/dist/assets/{relate-yq30L3hZ.js → relate-DxAi8xpo.js} +1 -1
- package/dist/assets/{shikiHighlight-BgZoQAHs.js → shikiHighlight-B_TEagaE.js} +1 -1
- package/dist/assets/{useDashboardLoop-mGmJwv27.js → useDashboardLoop-DzbRz-V9.js} +3 -3
- package/dist/assets/{useLiveConfig-vMyjo2gV.js → useLiveConfig-Lm0cYTcu.js} +1 -1
- package/dist/assets/{useSpatialCanvas-CEXy6ZC2.js → useSpatialCanvas-D_C8VoCy.js} +1 -1
- package/dist/assets/{useSpotlightWalk-B9XJ6OLK.js → useSpotlightWalk-CCQT0-_g.js} +1 -1
- package/dist/assets/{useSrsCards-Vc6B2_he.js → useSrsCards-BKCPBPYw.js} +1 -1
- package/dist/assets/{useStudy-6QnY-Fw_.js → useStudy-Diy4ITBm.js} +1 -1
- package/dist/assets/{useZoomGesture-BONUz5cE.js → useZoomGesture-B82XnSfi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/DashboardLoopRuntime-14yzj-xx.js +0 -1
- package/dist/assets/DashboardsApp-mvMbGmp0.js +0 -2
- package/dist/assets/DelegatePanel-pwRk9pFf.js +0 -26
- package/dist/assets/LiveApp-B8Jw1Q0h.js +0 -61
- package/dist/assets/LiveApp-DQhDk2ma.css +0 -1
- package/dist/assets/LiveSettings-BQ06gZB7.js +0 -6
- package/dist/assets/MindShape-Bel2yDqO.css +0 -1
- package/dist/assets/RehearsalPanel-BCU615wg.css +0 -1
- package/dist/assets/RehearsalPanel-CM4466Os.js +0 -6
- package/dist/assets/canvas-uhcwigAL.js +0 -1
- package/dist/assets/gesture-DabMpPcq.js +0 -2
- package/dist/assets/registry-BffpZK5w.js +0 -1
- package/dist/assets/registry-Z3TIPbYJ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-
|
|
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
2
|
|
|
3
3
|
Return ONLY a JSON object, no prose, with this shape:
|
|
4
4
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-C7H7A1rW.js";import{t as n}from"./Orb-B0NEVfqL.js";var r=t(),i=e(),a=[{id:`bars`,x:`13%`,y:`22%`,gx:-46,gy:12,o:.14},{id:`line`,x:`86%`,y:`26%`,gx:44,gy:10,o:.13},{id:`donut`,x:`7%`,y:`58%`,gx:-38,gy:-8,o:.12},{id:`pin`,x:`92%`,y:`62%`,gx:40,gy:-10,o:.13},{id:`node`,x:`20%`,y:`86%`,gx:-30,gy:22,o:.11},{id:`claim`,x:`79%`,y:`87%`,gx:34,gy:24,o:.12},{id:`wave`,x:`50%`,y:`7%`,gx:0,gy:-26,o:.11}];function o(e){let t=(0,r.c)(7),{id:n}=e;switch(n){case`bars`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsxs)(`svg`,{viewBox:`0 0 74 54`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`6`,y:`26`,width:`14`,height:`24`,rx:`3`}),(0,i.jsx)(`rect`,{x:`30`,y:`10`,width:`14`,height:`40`,rx:`3`}),(0,i.jsx)(`rect`,{x:`54`,y:`34`,width:`14`,height:`16`,rx:`3`})]}),t[0]=e):e=t[0],e}case`line`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsxs)(`svg`,{viewBox:`0 0 74 54`,"aria-hidden":`true`,children:[(0,i.jsx)(`polyline`,{points:`4,46 22,30 38,36 56,14 70,20`}),(0,i.jsx)(`circle`,{cx:`56`,cy:`14`,r:`3`})]}),t[1]=e):e=t[1],e}case`donut`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsx)(`svg`,{viewBox:`0 0 54 54`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`27`,cy:`27`,r:`19`,strokeDasharray:`89 30`,strokeDashoffset:`-12`})}),t[2]=e):e=t[2],e}case`pin`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsxs)(`svg`,{viewBox:`0 0 54 54`,"aria-hidden":`true`,children:[(0,i.jsx)(`path`,{d:`M27 6a15 15 0 0 1 15 15c0 10-15 27-15 27S12 31 12 21A15 15 0 0 1 27 6z`}),(0,i.jsx)(`circle`,{cx:`27`,cy:`21`,r:`5`})]}),t[3]=e):e=t[3],e}case`node`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsxs)(`svg`,{viewBox:`0 0 74 54`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`14`,y:`18`,width:`46`,height:`20`,rx:`10`}),(0,i.jsx)(`path`,{d:`M4 28h10M60 28h10`})]}),t[4]=e):e=t[4],e}case`claim`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsxs)(`svg`,{viewBox:`0 0 74 54`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`6`,y:`8`,width:`62`,height:`38`,rx:`7`}),(0,i.jsx)(`path`,{d:`M14 22h34M14 32h24`})]}),t[5]=e):e=t[5],e}default:{let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,i.jsx)(`svg`,{viewBox:`0 0 74 54`,"aria-hidden":`true`,children:(0,i.jsx)(`path`,{d:`M8 27v0M20 18v18M32 10v34M44 16v22M56 22v10M68 25v4`})}),t[6]=e):e=t[6],e}}}function s({onEnterLive:e}){return(0,i.jsxs)(`div`,{className:`fl-cta`,children:[a.map((e,t)=>(0,i.jsx)(`span`,{className:`fl-cta-ghost`,"aria-hidden":`true`,style:{left:e.x,top:e.y,"--gx":`${e.gx}px`,"--gy":`${e.gy}px`,"--go":String(e.o),"--g-i":String(t)},children:(0,i.jsx)(o,{id:e.id})},e.id)),(0,i.jsx)(n,{size:84,className:`fl-cta-orb`}),(0,i.jsxs)(`h2`,{className:`fl-cta-title`,children:[`Talk to it. Type to it.`,(0,i.jsx)(`br`,{}),(0,i.jsx)(`em`,{className:`fl-grad`,children:`See what it means.`})]}),(0,i.jsxs)(`button`,{type:`button`,className:`fl-cta-btn`,onClick:()=>e(),children:[`Open Mavéa`,(0,i.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,i.jsx)(`path`,{d:`M5 12h14M13 6l6 6-6 6`})})]}),(0,i.jsx)(`div`,{className:`fl-cta-note`,children:`No account. The demo is key-free — Live runs on your keys. Provider terms and charges apply; AI output can be wrong.`})]})}export{s as FlagshipCTA};
|
package/dist/assets/{FlagshipCommandPalette-55zqyPFm.js → FlagshipCommandPalette-DgTL_Kjj.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{j as n}from"./index-
|
|
1
|
+
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{j as n}from"./index-C7H7A1rW.js";import{t as r}from"./registry-D5oMqeSa.js";import{CommandPalette as i}from"./CommandPalette-mO1FEvlx.js";import{t as a}from"./demoPaletteItems-NPCSaSU6.js";var o=e(),s=t();function c({onClose:e,startTour:t,watchInLive:c,enterLive:l}){return(0,s.jsx)(i,{items:(0,o.useMemo)(()=>a(r,{direct:{dashboards:()=>{window.location.hash=`#/dashboards`},how:t},watchInLive:c,enterLive:l}).map(e=>({...e,watch:e.feature.id===`how`?t:e.watch,preload:e.feature.id===`dashboards`?()=>n(`#/dashboards`)??Promise.resolve():()=>n(`#/live`)??Promise.resolve()})),[l,t,c]),surface:`demo`,onClose:e})}export{c as FlagshipCommandPalette};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{at as t,ht as n,it as r,ot as i,st as a}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{at as t,ht as n,it as r,ot as i,st as a}from"./index-C7H7A1rW.js";var o=n(),s=e();function c(){let e=[{x:52,y:18,w:118,t:`Federal funds rate target`,fx:-74,fy:28},{x:48,y:50,w:104,t:`Drivers of elevated inflation`,fx:-66,fy:2},{x:62,y:74,w:112,t:`Commitment to dual mandate`,fx:-92,fy:-32}],t=[`p.1`,`p.2`,`p.3`,`p.4`,`p.5`,`p.6`],n=new Set([`p.1`,`p.3`]);return(0,s.jsxs)(`div`,{className:`fs-scene fs-prism`,"aria-hidden":`true`,children:[(0,s.jsxs)(`span`,{className:`fs-prism-doc`,children:[(0,s.jsx)(`i`,{className:`fs-prism-hl`,style:{top:`24%`}}),(0,s.jsx)(`i`,{className:`fs-prism-hl short`,style:{top:`62%`}})]}),(0,s.jsx)(`span`,{className:`fs-prism-region`,style:{right:`16%`,bottom:`8%`},children:`Policy stance`}),(0,s.jsxs)(`svg`,{className:`fs-prism-thread`,viewBox:`0 0 200 120`,preserveAspectRatio:`none`,children:[(0,s.jsx)(`path`,{pathLength:1,d:`M100,26 C82,28 64,33 51,40`}),(0,s.jsx)(`path`,{pathLength:1,style:{animationDelay:`900ms`},d:`M96,62 C80,64 60,66 45,69`})]}),e.map((e,t)=>(0,s.jsxs)(`span`,{className:`fs-prism-claim`,style:{left:`${e.x}%`,top:`${e.y}%`,width:e.w,animationDelay:`${400+t*340}ms`,"--fx":`${e.fx}px`,"--fy":`${e.fy}px`},children:[(0,s.jsxs)(`i`,{children:[`p.`,t+1]}),e.t]},e.t)),(0,s.jsx)(`span`,{className:`fs-prism-pages`,children:t.map(e=>(0,s.jsx)(`i`,{className:n.has(e)?`cited`:void 0,children:e},e))})]})}function l(){let e=(0,o.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[{x:50,y:50,label:`auth-service`,kind:`change`,glyph:``},{x:82,y:30,label:`src/api`,kind:`breaks`,glyph:`▲`},{x:80,y:76,label:`src/web`,kind:`safe`,glyph:`✓`,order:1},{x:18,y:30,label:`tests`,kind:`untested`,glyph:`·`,order:3},{x:20,y:74,label:`migrations`,kind:`migration`,glyph:`·`,order:2}],e[0]=t):t=e[0];let n=t,r,i,a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsxs)(`svg`,{viewBox:`0 0 200 120`,preserveAspectRatio:`none`,children:[(0,s.jsx)(`path`,{className:`fs-ripple-diff add`,d:`M7,16 h8 M7,44 h8 M7,72 h8 M7,100 h8`}),(0,s.jsx)(`path`,{className:`fs-ripple-diff del`,d:`M7,30 h5 M7,58 h5 M7,86 h5`}),(0,s.jsx)(`circle`,{className:`fs-ripple-ring`,cx:`100`,cy:`60`,r:`18`}),(0,s.jsx)(`circle`,{className:`fs-ripple-ring late`,cx:`100`,cy:`60`,r:`18`}),n.slice(1).map(p)]}),i=n.map(f),a=n.filter(d).map(u),e[1]=r,e[2]=i,e[3]=a):(r=e[1],i=e[2],a=e[3]);let c;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsxs)(`div`,{className:`fs-scene fs-ripple`,"aria-hidden":`true`,children:[r,i,a,(0,s.jsxs)(`span`,{className:`fs-ripple-course`,children:[(0,s.jsxs)(`i`,{"aria-hidden":`true`,children:[(0,s.jsx)(`b`,{className:`done d1`}),(0,s.jsx)(`b`,{className:`done d2`}),(0,s.jsx)(`b`,{}),(0,s.jsx)(`b`,{}),(0,s.jsx)(`b`,{})]}),`Repo course · lesson 2 of 5`]})]}),e[4]=c):c=e[4],c}function u(e){return(0,s.jsx)(`span`,{className:`fs-ripple-order o${e.order}`,style:{left:`${e.x+8}%`,top:`${e.y-16}%`},children:e.order},`o-${e.label}`)}function d(e){return e.order}function f(e,t){return(0,s.jsxs)(`span`,{className:`fs-ripple-node is-${e.kind}`,style:{left:`${e.x}%`,top:`${e.y}%`,animationDelay:`${t*220}ms`},children:[e.glyph&&(0,s.jsx)(`i`,{children:e.glyph}),e.label]},e.label)}function p(e){let t=e.x*2,n=e.y*1.2;return(0,s.jsx)(`path`,{className:`fs-ripple-edge is-${e.kind}`,pathLength:1,d:`M100,60 Q${(100+t)/2},${(60+n)/2-14} ${t},${n}`},e.label)}function m(){let e=[{x:50,y:24,kind:`option`,t:`Moving to Austin`},{x:16,y:58,kind:`person`,t:`Sister`},{x:78,y:52,kind:`fear`,t:`Starting over`},{x:44,y:80,kind:`loop`,t:`Is it the right time?`}];return(0,s.jsxs)(`div`,{className:`fs-scene fs-think`,"aria-hidden":`true`,children:[(0,s.jsxs)(`svg`,{className:`fs-think-links`,viewBox:`0 0 200 120`,preserveAspectRatio:`none`,children:[e.map((e,t)=>{let n=e.x*2,r=e.y*1.2;return(0,s.jsx)(`path`,{className:`fs-think-link`,pathLength:1,style:{transitionDelay:`${300+t*480}ms`},d:`M100,60 Q${(100+n)/2+8},${(60+r)/2-10} ${n},${r}`},e.t)}),(0,s.jsx)(`path`,{className:`fs-think-tension`,d:`M156,62 Q136,30 108,30`})]}),(0,s.jsx)(`span`,{className:`fs-think-orb`}),[{t:`austin…`,tx:0,ty:-34,delay:150},{t:`my sister…`,tx:-60,ty:-2,delay:630},{t:`right time?`,tx:-12,ty:26,delay:1590}].map(e=>(0,s.jsx)(`span`,{className:`fs-think-wisp`,style:{animationDelay:`${e.delay}ms`,"--tx":`${e.tx}px`,"--ty":`${e.ty}px`},children:e.t},e.t)),e.map((e,t)=>(0,s.jsxs)(`span`,{className:`fs-think-atom`,style:{left:`${e.x}%`,top:`${e.y}%`,animationDelay:`${400+t*480}ms`},children:[(0,s.jsx)(`i`,{children:e.kind}),e.t]},e.t))]})}function h(){let e=(0,o.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=Array.from({length:22},y),e[0]=t):t=e[0];let n=t,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=[{x:26,y:34,label:`Money`,tone:`presence`},{x:68,y:26,label:`Space`,tone:`blue`},{x:56,y:70,label:`Travel`,tone:`insight`}],e[1]=r):r=e[1];let i=r,a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=i.map(v),e[2]=a):a=e[2];let c;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsxs)(`div`,{className:`fs-scene fs-atlas`,"aria-hidden":`true`,children:[a,(0,s.jsxs)(`svg`,{className:`fs-atlas-sky`,viewBox:`0 0 200 120`,preserveAspectRatio:`none`,children:[(0,s.jsx)(`path`,{className:`fs-atlas-line`,pathLength:1,d:`M22,26 L40,20 L58,34 L44,48 L24,44`}),(0,s.jsx)(`path`,{className:`fs-atlas-line`,pathLength:1,d:`M122,18 L142,26 L158,20 L166,38`}),(0,s.jsx)(`path`,{className:`fs-atlas-line`,pathLength:1,d:`M96,86 L112,76 L132,88 L124,102`}),(0,s.jsx)(`path`,{className:`fs-atlas-route`,d:`M52,44 C70,64 90,58 110,80`})]}),n.map(_),i.map(g)]}),e[3]=c):c=e[3],c}function g(e,t){return(0,s.jsxs)(`span`,{className:`fs-atlas-hood tone-`+e.tone,style:{left:`${e.x}%`,top:`${e.y}%`,animationDelay:`${t*260}ms`},children:[(0,s.jsx)(`i`,{}),e.label]},e.label)}function _(e,t){return(0,s.jsx)(`span`,{className:`fs-atlas-dot`+(e.bright?` bright`:``),style:{left:`${e.x}%`,top:`${e.y}%`,width:e.size,height:e.size,animationDelay:`${t%5*300}ms`}},t)}function v(e){return(0,s.jsx)(`span`,{className:`fs-atlas-region tone-`+e.tone,style:{left:`${e.x}%`,top:`${e.y}%`}},`r-${e.label}`)}function y(e,t){return{x:6+t*37%90,y:8+t*53%84,size:2+t%2,bright:t%7==3}}var b=[{id:`prism`,chapter:`prism`,name:`Prism`,line:`Drop in a document — inspect a map of claims and return cited evidence to its page.`,scene:(0,s.jsx)(c,{})},{id:`ripple`,chapter:`ripple`,name:`Ripple`,line:`A change’s blast radius, explained aloud at the altitude you choose — or a whole repo turned into its own onboarding course.`,scene:(0,s.jsx)(l,{})},{id:`think`,chapter:`think`,name:`Watch Me Think`,line:`Ramble out loud — your half-formed thinking becomes a live map of options, fears, loops.`,scene:(0,s.jsx)(m,{})},{id:`atlas`,chapter:`atlas`,name:`Atlas`,line:`Kept conversations become neighborhoods of thought you can wander.`,scene:(0,s.jsx)(h,{})}],x=[{label:`Present it`,detail:`a full deck, ten looks`,chapter:`present`},{label:`Print it`,detail:`a typeset PDF, ten templates`,chapter:`export`},{label:`Reel it`,detail:`a vertical clip built to share`,chapter:`share`},{label:`Flashcards`,detail:`saved from answers, scheduled for review`,chapter:`flashcards`},{label:`Focus`,detail:`one card at a time`,chapter:`focus`},{label:`Memory`,detail:`local, opt-in, yours`,chapter:`memory`}];[...b.filter(e=>e.id!==`ripple`).map(e=>e.chapter),...x.map(e=>e.chapter)];function S(e){let n=(0,o.c)(19),{onEnterLive:c}=e,l;n[0]===c?l=n[1]:(l=e=>{i(),a(),t(e),c()},n[0]=c,n[1]=l);let u=l,d;n[2]!==c||n[3]!==u?(d=e=>{if(e.id===`ripple`){r(),c();return}u(e.chapter)},n[2]=c,n[3]=u,n[4]=d):d=n[4];let f=d,p;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,s.jsx)(`div`,{className:`fl-eyebrow`,children:`The flagships`}),n[5]=p):p=n[5];let m;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,s.jsxs)(`h2`,{className:`fl-h2`,children:[`Four ways to inspect`,(0,s.jsx)(`br`,{}),`more than an answer.`]}),n[6]=m):m=n[6];let h;n[7]===f?h=n[8]:(h=b.map(e=>(0,s.jsxs)(`article`,{className:`fs-card`,children:[e.scene,(0,s.jsxs)(`div`,{className:`fs-card-body`,children:[(0,s.jsx)(`h3`,{className:`fs-card-name`,children:e.name}),(0,s.jsx)(`p`,{className:`fs-card-line`,children:e.line}),(0,s.jsxs)(`button`,{type:`button`,className:`fs-card-cta`,onClick:()=>f(e),children:[`Open scripted demo `,(0,s.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]})]})]},e.id)),n[7]=f,n[8]=h);let g;n[9]===h?g=n[10]:(g=(0,s.jsx)(`div`,{className:`fs-grid`,children:h}),n[9]=h,n[10]=g);let _;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,s.jsx)(`span`,{className:`fs-after-kicker`,children:`And when the answer lands —`}),n[11]=_):_=n[11];let v;n[12]===u?v=n[13]:(v=x.map(e=>(0,s.jsx)(`button`,{type:`button`,className:`fs-after-item`,title:e.detail,onClick:()=>u(e.chapter),children:e.label},e.label)),n[12]=u,n[13]=v);let y;n[14]===v?y=n[15]:(y=(0,s.jsxs)(`div`,{className:`fs-after`,children:[_,v]}),n[14]=v,n[15]=y);let S;return n[16]!==g||n[17]!==y?(S=(0,s.jsxs)(`section`,{className:`fs-root`,"aria-label":`Flagship experiences`,children:[p,m,g,y]}),n[16]=g,n[17]=y,n[18]=S):S=n[18],S}export{S as FlagshipShowcase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{M as n,N as r,T as i,ht as a}from"./index-CWqRe4-B.js";import{n as o}from"./icons-CHVz6kv_.js";import{t as s}from"./FeatureUseNotice-CoK5HkbR.js";import{t as c}from"./homeTarget-BcZYH3DY.js";import"./queue-J4h7E3uc.js";import{_ as l,f as u,g as ee,h as te,i as d,p as f}from"./store-DXmC_fP2.js";import{i as p,n as m,r as ne,t as re}from"./useSrsCards-Vc6B2_he.js";import{CardEditor as h}from"./CardEditor-DzJXb0G7.js";import{SrsReview as g,t as ie}from"./SrsReview-BoaYb6XN.js";var ae=a(),_=e(),v=t(),y=[{value:`collection`,label:`Just save them`},{value:`spaced`,label:`Help me remember`}];function b(e,t,n){let r=ie(t);return e.suspended?{label:r.status.parked,cls:`is-suspended`}:t===`collection`?e.seen?{label:r.status.touched,cls:`is-seen`}:{label:r.status.fresh,cls:`is-new`}:e.reps===0?{label:r.status.fresh,cls:`is-new`}:e.nextReview<=n?{label:`Due`,cls:`is-due`}:{label:r.status.touched,cls:`is-sched`}}function x(){let e=(0,ae.c)(59),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=c(),e[0]=t):t=e[0];let n=t,r=ne(p()),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],e[1]=i):i=e[1],(0,_.useEffect)(k,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],e[2]=a):a=e[2],(0,_.useEffect)(O,a),re();let b=r.view===`deck`?r.deck??null:null,[x,j]=(0,_.useState)(`all`),[M,N]=(0,_.useState)(null),[P,F]=(0,_.useState)(``),[I,oe]=(0,_.useState)(D),[se,ce]=(0,_.useState)(null),[le,L]=(0,_.useState)(null),[ue,R]=(0,_.useState)(!1),[de,fe]=(0,_.useState)(!1),[pe,me]=(0,_.useState)(``),z=d(),B=ie(z.style),V=B.filters.some(e=>e.key===x)?x:`all`,H=te({deck:b??void 0,tag:M??void 0,filter:V,search:P}),U=z.decks.map(E),he;e[3]===I?he=e[4]:(he=[...I],e[3]=I,e[4]=he);let W=he,ge;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(ge=e=>oe(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),e[5]=ge):ge=e[5];let _e=ge,ve;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(ve=()=>{oe(new Set),fe(!1),me(``)},e[6]=ve):ve=e[6];let ye=ve,be=H.length>0&&H.every(e=>I.has(e.id)),xe=()=>oe(be?new Set:new Set(H.map(T))),Se={deck:b??void 0,tag:M??void 0,filter:V===`suspended`?`all`:V},Ce=b??(M?`#${M}`:null),we=B.filterAdjective[V],G=we?Ce?`${we} · ${Ce}`:`${we} cards`:Ce??`All cards`,Te=W.some(e=>H.find(t=>t.id===e)?.suspended),Ee;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,v.jsxs)(`button`,{type:`button`,className:`fc-nav-back`,onClick:()=>{window.location.hash=n.href},children:[(0,v.jsx)(o.chevL,{}),` `,n.label]}),e[7]=Ee):Ee=e[7];let K;e[8]===R?K=e[9]:(K=()=>R(!0),e[8]=R,e[9]=K);let De;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,v.jsx)(o.plus,{}),e[10]=De):De=e[10];let q;e[11]===K?q=e[12]:(q=(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn`,onClick:K,children:[De,` New card`]}),e[11]=K,e[12]=q);let Oe=z.total===0,ke=()=>ce(Se),Ae;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,v.jsx)(o.play,{}),e[13]=Ae):Ae=e[13];let J;e[14]!==G||e[15]!==Oe||e[16]!==ke?(J=(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-primary`,disabled:Oe,onClick:ke,children:[Ae,` Study `,G]}),e[14]=G,e[15]=Oe,e[16]=ke,e[17]=J):J=e[17];let je;e[18]!==J||e[19]!==q?(je=(0,v.jsxs)(`div`,{className:`fc-nav-actions`,children:[q,J]}),e[18]=J,e[19]=q,e[20]=je):je=e[20];let Me;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Study`}),e[21]=Me):Me=e[21];let Ne;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Decks`}),e[22]=Ne):Ne=e[22];let Pe=`fc-side-item`+(b===null?` is-active`:``),Y;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,v.jsx)(`span`,{children:`All decks`}),e[23]=Y):Y=e[23];let Fe;e[24]===Pe?Fe=e[25]:(Fe=(0,v.jsx)(`button`,{type:`button`,className:Pe,onClick:w,children:Y}),e[24]=Pe,e[25]=Fe);let X;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,v.jsx)(s,{kind:`learning`}),e[26]=X):X=e[26];let Ie;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=e=>F(e.target.value),e[27]=Ie):Ie=e[27];let Z;e[28]===P?Z=e[29]:(Z=(0,v.jsx)(`div`,{className:`fc-search`,children:(0,v.jsx)(`input`,{type:`search`,placeholder:`Search cards…`,value:P,onChange:Ie,"aria-label":`Search cards`})}),e[28]=P,e[29]=Z);let Le=H.length>0&&(0,v.jsx)(`button`,{type:`button`,className:`fc-selectall`,onClick:xe,children:be?`Clear selection`:`Select all`}),Q;e[30]!==Z||e[31]!==Le?(Q=(0,v.jsxs)(`div`,{className:`fc-toolbar`,children:[Z,Le]}),e[30]=Z,e[31]=Le,e[32]=Q):Q=e[32];let Re=W.length>0&&(0,v.jsxs)(`div`,{className:`fc-bulk`,role:`region`,"aria-label":`Bulk actions`,children:[(0,v.jsxs)(`span`,{className:`fc-bulk-n`,children:[W.length,` selected`]}),(0,v.jsxs)(`div`,{className:`fc-bulk-move`,children:[(0,v.jsx)(`input`,{list:`fc-bulk-decks`,className:`fc-bulk-input`,placeholder:`Move to deck…`,value:pe,onChange:e=>me(e.target.value),onKeyDown:e=>{e.key===`Enter`&&pe.trim()&&(u(W,pe.trim()),ye())}}),(0,v.jsx)(`datalist`,{id:`fc-bulk-decks`,children:U.map(C)})]}),(0,v.jsx)(`button`,{type:`button`,className:`fc-btn fc-btn-sm`,onClick:()=>{W.forEach(e=>l(e,!Te)),ye()},children:Te?B.parkVerb.unpark:B.parkVerb.park}),de?(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-sm fc-btn-danger`,onClick:()=>{f(W),ye()},children:[`Confirm delete `,W.length]}):(0,v.jsx)(`button`,{type:`button`,className:`fc-btn fc-btn-sm`,onClick:()=>fe(!0),children:`Delete`}),(0,v.jsx)(`button`,{type:`button`,className:`fc-bulk-clear`,onClick:ye,children:`Cancel`})]}),$;e[33]!==H||e[34]!==z||e[35]!==I||e[36]!==R||e[37]!==L||e[38]!==N||e[39]!==_e?($=H.length===0?(0,v.jsxs)(`div`,{className:`fc-empty`,children:[(0,v.jsx)(`div`,{className:`fc-empty-icon`,"aria-hidden":`true`,children:(0,v.jsx)(o.layers,{})}),(0,v.jsx)(`div`,{className:`fc-empty-head`,children:z.total===0?`No flashcards yet`:`Nothing here`}),(0,v.jsx)(`div`,{className:`fc-empty-sub`,children:z.total===0?`Tap “Cards” on any answer to turn it into flashcards, or make one by hand.`:`No cards match this filter. Try “All”, another deck, or clear the search.`}),z.total===0&&(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-primary`,onClick:()=>R(!0),children:[(0,v.jsx)(o.plus,{}),` New card`]})]}):(0,v.jsx)(`ul`,{className:`fc-list`,children:H.map(e=>(0,v.jsx)(A,{card:e,checked:I.has(e.id),onToggle:()=>_e(e.id),onEdit:()=>L(e),style:z.style,onSuspend:()=>l(e.id,!e.suspended),onDelete:()=>f([e.id]),onTag:e=>N(e)},e.id))}),e[33]=H,e[34]=z,e[35]=I,e[36]=R,e[37]=L,e[38]=N,e[39]=_e,e[40]=$):$=e[40];let ze;e[41]!==X||e[42]!==Q||e[43]!==Re||e[44]!==$?(ze=(0,v.jsxs)(`main`,{className:`fc-main`,children:[X,Q,Re,$]}),e[41]=X,e[42]=Q,e[43]=Re,e[44]=$,e[45]=ze):ze=e[45];let Be;e[46]!==ce||e[47]!==G||e[48]!==se?(Be=se&&(0,v.jsx)(g,{scope:se,title:`STUDY · ${G}`,onClose:()=>ce(null)}),e[46]=ce,e[47]=G,e[48]=se,e[49]=Be):Be=e[49];let Ve;e[50]!==ue||e[51]!==b||e[52]!==U||e[53]!==R?(Ve=ue&&(0,v.jsx)(h,{mode:`add`,initial:[{front:``,back:``}],deck:b??`General`,origin:`manual`,heading:`New card`,decks:U,onSaved:S,onClose:()=>R(!1)}),e[50]=ue,e[51]=b,e[52]=U,e[53]=R,e[54]=Ve):Ve=e[54];let He;return e[55]!==U||e[56]!==le||e[57]!==L?(He=le&&(0,v.jsx)(h,{mode:`edit`,card:le,decks:U,onClose:()=>L(null)}),e[55]=U,e[56]=le,e[57]=L,e[58]=He):He=e[58],(0,v.jsxs)(`div`,{className:`mavea-app fc-app`,children:[(0,v.jsxs)(`header`,{className:`fc-nav`,children:[Ee,(0,v.jsxs)(`div`,{className:`fc-nav-title`,children:[`Flashcards`,(0,v.jsxs)(`span`,{className:`fc-nav-sub`,children:[z.total,` card`,z.total===1?``:`s`]})]}),je]}),(0,v.jsxs)(`div`,{className:`fc-body`,children:[(0,v.jsxs)(`aside`,{className:`fc-side`,children:[(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[Me,B.filters.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-side-item`+(V===e.key?` is-active`:``),onClick:()=>j(e.key),children:[(0,v.jsx)(`span`,{children:e.label}),e.showCount&&(0,v.jsx)(`span`,{className:`fc-side-count`,children:z[e.key]})]},e.key))]}),(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[Ne,Fe,z.decks.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-side-item`+(b===e.name?` is-active`:``),onClick:()=>{window.location.hash=m.deck(e.name)},children:[(0,v.jsx)(`span`,{className:`fc-side-name`,children:e.name}),e.due>0&&(0,v.jsx)(`span`,{className:`fc-side-badge`,children:e.due})]},e.name))]}),z.tags.length>0&&(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Tags`}),(0,v.jsx)(`div`,{className:`fc-side-tags`,children:z.tags.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-tag-chip`+(M===e.name?` is-active`:``),onClick:()=>N(t=>t===e.name?null:e.name),children:[e.name,(0,v.jsx)(`span`,{className:`fc-tag-n`,children:e.count})]},e.name))})]}),z.total>0&&(0,v.jsxs)(`div`,{className:`fc-side-group fc-side-style`,children:[(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Study style`}),(0,v.jsx)(`div`,{className:`fc-style-seg`,role:`radiogroup`,"aria-label":`Study style`,children:y.map(e=>(0,v.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":z.style===e.value,className:`fc-style-opt`+(z.style===e.value?` is-active`:``),onClick:()=>ee(e.value),children:e.label},e.value))}),(0,v.jsx)(`p`,{className:`fc-style-note`,children:z.style===`collection`?`A plain pile you flip through whenever you like.`:`Cards come back just before you would forget them.`})]})]}),ze]}),Be,Ve,He]})}function S(){}function C(e){return(0,v.jsx)(`option`,{value:e},e)}function w(){window.location.hash=m.gallery}function T(e){return e.id}function E(e){return e.name}function D(){return new Set}function O(){return i(document)}function k(){return n(r())}function A(e){let t=(0,ae.c)(56),{card:n,checked:r,onToggle:i,onEdit:a,style:s,onSuspend:c,onDelete:l,onTag:u}=e,[ee,te]=(0,_.useState)(!1),d;t[0]===s?d=t[1]:(d=ie(s),t[0]=s,t[1]=d);let f=d.parkVerb,p;t[2]!==n||t[3]!==s?(p=b(n,s,Date.now()),t[2]=n,t[3]=s,t[4]=p):p=t[4];let m=p,ne=`fc-row`+(r?` is-checked`:``),re=`Select card: ${n.front}`,h;t[5]!==r||t[6]!==i||t[7]!==re?(h=(0,v.jsx)(`input`,{type:`checkbox`,className:`fc-row-check`,checked:r,onChange:i,"aria-label":re}),t[5]=r,t[6]=i,t[7]=re,t[8]=h):h=t[8];let g;t[9]===n.front?g=t[10]:(g=(0,v.jsx)(`div`,{className:`fc-row-front`,children:n.front}),t[9]=n.front,t[10]=g);let y;t[11]===n.back?y=t[12]:(y=(0,v.jsx)(`div`,{className:`fc-row-back`,children:n.back}),t[11]=n.back,t[12]=y);let x=`fc-status `+m.cls,S;t[13]!==m.label||t[14]!==x?(S=(0,v.jsx)(`span`,{className:x,children:m.label}),t[13]=m.label,t[14]=x,t[15]=S):S=t[15];let C;t[16]===n.deck?C=t[17]:(C=(0,v.jsx)(`span`,{className:`fc-row-deck`,children:n.deck}),t[16]=n.deck,t[17]=C);let w;if(t[18]!==n.tags||t[19]!==u){let e;t[21]===u?e=t[22]:(e=e=>(0,v.jsx)(`button`,{type:`button`,className:`fc-row-tag`,onClick:()=>u(e),children:e},e),t[21]=u,t[22]=e),w=n.tags.map(e),t[18]=n.tags,t[19]=u,t[20]=w}else w=t[20];let T;t[23]===n.origin?T=t[24]:(T=n.origin===`auto`&&(0,v.jsx)(`span`,{className:`fc-row-origin`,children:`auto`}),t[23]=n.origin,t[24]=T);let E;t[25]!==C||t[26]!==w||t[27]!==T||t[28]!==S?(E=(0,v.jsxs)(`div`,{className:`fc-row-meta`,children:[S,C,w,T]}),t[25]=C,t[26]=w,t[27]=T,t[28]=S,t[29]=E):E=t[29];let D;t[30]!==E||t[31]!==g||t[32]!==y?(D=(0,v.jsxs)(`div`,{className:`fc-row-main`,children:[g,y,E]}),t[30]=E,t[31]=g,t[32]=y,t[33]=D):D=t[33];let O;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,v.jsx)(o.edit,{}),t[34]=O):O=t[34];let k;t[35]===a?k=t[36]:(k=(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":`Edit card`,onClick:a,children:O}),t[35]=a,t[36]=k);let A=`${n.suspended?f.unpark:f.park} card`,j=n.suspended?f.unpark:f.title,M;t[37]===n.suspended?M=t[38]:(M=n.suspended?(0,v.jsx)(o.play,{}):(0,v.jsx)(o.clock,{}),t[37]=n.suspended,t[38]=M);let N;t[39]!==c||t[40]!==A||t[41]!==j||t[42]!==M?(N=(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":A,title:j,onClick:c,children:M}),t[39]=c,t[40]=A,t[41]=j,t[42]=M,t[43]=N):N=t[43];let P;t[44]!==ee||t[45]!==l?(P=ee?(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn fc-icon-danger`,"aria-label":`Confirm delete`,onClick:l,children:(0,v.jsx)(o.check,{})}):(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":`Delete card`,onClick:()=>te(!0),onBlur:()=>te(!1),children:(0,v.jsx)(o.x,{})}),t[44]=ee,t[45]=l,t[46]=P):P=t[46];let F;t[47]!==k||t[48]!==N||t[49]!==P?(F=(0,v.jsxs)(`div`,{className:`fc-row-actions`,children:[k,N,P]}),t[47]=k,t[48]=N,t[49]=P,t[50]=F):F=t[50];let I;return t[51]!==D||t[52]!==F||t[53]!==ne||t[54]!==h?(I=(0,v.jsxs)(`li`,{className:ne,children:[h,D,F]}),t[51]=D,t[52]=F,t[53]=ne,t[54]=h,t[55]=I):I=t[55],I}export{x as FlashcardsApp};
|
|
1
|
+
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{M as n,N as r,T as i,ht as a}from"./index-C7H7A1rW.js";import{n as o}from"./icons-CHVz6kv_.js";import{t as s}from"./FeatureUseNotice-CoK5HkbR.js";import{t as c}from"./homeTarget-BcZYH3DY.js";import"./queue-J4h7E3uc.js";import{_ as l,f as u,g as ee,h as te,i as d,p as f}from"./store-DXmC_fP2.js";import{i as p,n as m,r as ne,t as re}from"./useSrsCards-BKCPBPYw.js";import{CardEditor as h}from"./CardEditor-DzJXb0G7.js";import{SrsReview as g,t as ie}from"./SrsReview-BoaYb6XN.js";var ae=a(),_=e(),v=t(),y=[{value:`collection`,label:`Just save them`},{value:`spaced`,label:`Help me remember`}];function b(e,t,n){let r=ie(t);return e.suspended?{label:r.status.parked,cls:`is-suspended`}:t===`collection`?e.seen?{label:r.status.touched,cls:`is-seen`}:{label:r.status.fresh,cls:`is-new`}:e.reps===0?{label:r.status.fresh,cls:`is-new`}:e.nextReview<=n?{label:`Due`,cls:`is-due`}:{label:r.status.touched,cls:`is-sched`}}function x(){let e=(0,ae.c)(59),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=c(),e[0]=t):t=e[0];let n=t,r=ne(p()),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],e[1]=i):i=e[1],(0,_.useEffect)(k,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],e[2]=a):a=e[2],(0,_.useEffect)(O,a),re();let b=r.view===`deck`?r.deck??null:null,[x,j]=(0,_.useState)(`all`),[M,N]=(0,_.useState)(null),[P,F]=(0,_.useState)(``),[I,oe]=(0,_.useState)(D),[se,ce]=(0,_.useState)(null),[le,L]=(0,_.useState)(null),[ue,R]=(0,_.useState)(!1),[de,fe]=(0,_.useState)(!1),[pe,me]=(0,_.useState)(``),z=d(),B=ie(z.style),V=B.filters.some(e=>e.key===x)?x:`all`,H=te({deck:b??void 0,tag:M??void 0,filter:V,search:P}),U=z.decks.map(E),he;e[3]===I?he=e[4]:(he=[...I],e[3]=I,e[4]=he);let W=he,ge;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(ge=e=>oe(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),e[5]=ge):ge=e[5];let _e=ge,ve;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(ve=()=>{oe(new Set),fe(!1),me(``)},e[6]=ve):ve=e[6];let ye=ve,be=H.length>0&&H.every(e=>I.has(e.id)),xe=()=>oe(be?new Set:new Set(H.map(T))),Se={deck:b??void 0,tag:M??void 0,filter:V===`suspended`?`all`:V},Ce=b??(M?`#${M}`:null),we=B.filterAdjective[V],G=we?Ce?`${we} · ${Ce}`:`${we} cards`:Ce??`All cards`,Te=W.some(e=>H.find(t=>t.id===e)?.suspended),Ee;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,v.jsxs)(`button`,{type:`button`,className:`fc-nav-back`,onClick:()=>{window.location.hash=n.href},children:[(0,v.jsx)(o.chevL,{}),` `,n.label]}),e[7]=Ee):Ee=e[7];let K;e[8]===R?K=e[9]:(K=()=>R(!0),e[8]=R,e[9]=K);let De;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,v.jsx)(o.plus,{}),e[10]=De):De=e[10];let q;e[11]===K?q=e[12]:(q=(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn`,onClick:K,children:[De,` New card`]}),e[11]=K,e[12]=q);let Oe=z.total===0,ke=()=>ce(Se),Ae;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,v.jsx)(o.play,{}),e[13]=Ae):Ae=e[13];let J;e[14]!==G||e[15]!==Oe||e[16]!==ke?(J=(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-primary`,disabled:Oe,onClick:ke,children:[Ae,` Study `,G]}),e[14]=G,e[15]=Oe,e[16]=ke,e[17]=J):J=e[17];let je;e[18]!==J||e[19]!==q?(je=(0,v.jsxs)(`div`,{className:`fc-nav-actions`,children:[q,J]}),e[18]=J,e[19]=q,e[20]=je):je=e[20];let Me;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Study`}),e[21]=Me):Me=e[21];let Ne;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Decks`}),e[22]=Ne):Ne=e[22];let Pe=`fc-side-item`+(b===null?` is-active`:``),Y;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,v.jsx)(`span`,{children:`All decks`}),e[23]=Y):Y=e[23];let Fe;e[24]===Pe?Fe=e[25]:(Fe=(0,v.jsx)(`button`,{type:`button`,className:Pe,onClick:w,children:Y}),e[24]=Pe,e[25]=Fe);let X;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,v.jsx)(s,{kind:`learning`}),e[26]=X):X=e[26];let Ie;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=e=>F(e.target.value),e[27]=Ie):Ie=e[27];let Z;e[28]===P?Z=e[29]:(Z=(0,v.jsx)(`div`,{className:`fc-search`,children:(0,v.jsx)(`input`,{type:`search`,placeholder:`Search cards…`,value:P,onChange:Ie,"aria-label":`Search cards`})}),e[28]=P,e[29]=Z);let Le=H.length>0&&(0,v.jsx)(`button`,{type:`button`,className:`fc-selectall`,onClick:xe,children:be?`Clear selection`:`Select all`}),Q;e[30]!==Z||e[31]!==Le?(Q=(0,v.jsxs)(`div`,{className:`fc-toolbar`,children:[Z,Le]}),e[30]=Z,e[31]=Le,e[32]=Q):Q=e[32];let Re=W.length>0&&(0,v.jsxs)(`div`,{className:`fc-bulk`,role:`region`,"aria-label":`Bulk actions`,children:[(0,v.jsxs)(`span`,{className:`fc-bulk-n`,children:[W.length,` selected`]}),(0,v.jsxs)(`div`,{className:`fc-bulk-move`,children:[(0,v.jsx)(`input`,{list:`fc-bulk-decks`,className:`fc-bulk-input`,placeholder:`Move to deck…`,value:pe,onChange:e=>me(e.target.value),onKeyDown:e=>{e.key===`Enter`&&pe.trim()&&(u(W,pe.trim()),ye())}}),(0,v.jsx)(`datalist`,{id:`fc-bulk-decks`,children:U.map(C)})]}),(0,v.jsx)(`button`,{type:`button`,className:`fc-btn fc-btn-sm`,onClick:()=>{W.forEach(e=>l(e,!Te)),ye()},children:Te?B.parkVerb.unpark:B.parkVerb.park}),de?(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-sm fc-btn-danger`,onClick:()=>{f(W),ye()},children:[`Confirm delete `,W.length]}):(0,v.jsx)(`button`,{type:`button`,className:`fc-btn fc-btn-sm`,onClick:()=>fe(!0),children:`Delete`}),(0,v.jsx)(`button`,{type:`button`,className:`fc-bulk-clear`,onClick:ye,children:`Cancel`})]}),$;e[33]!==H||e[34]!==z||e[35]!==I||e[36]!==R||e[37]!==L||e[38]!==N||e[39]!==_e?($=H.length===0?(0,v.jsxs)(`div`,{className:`fc-empty`,children:[(0,v.jsx)(`div`,{className:`fc-empty-icon`,"aria-hidden":`true`,children:(0,v.jsx)(o.layers,{})}),(0,v.jsx)(`div`,{className:`fc-empty-head`,children:z.total===0?`No flashcards yet`:`Nothing here`}),(0,v.jsx)(`div`,{className:`fc-empty-sub`,children:z.total===0?`Tap “Cards” on any answer to turn it into flashcards, or make one by hand.`:`No cards match this filter. Try “All”, another deck, or clear the search.`}),z.total===0&&(0,v.jsxs)(`button`,{type:`button`,className:`fc-btn fc-btn-primary`,onClick:()=>R(!0),children:[(0,v.jsx)(o.plus,{}),` New card`]})]}):(0,v.jsx)(`ul`,{className:`fc-list`,children:H.map(e=>(0,v.jsx)(A,{card:e,checked:I.has(e.id),onToggle:()=>_e(e.id),onEdit:()=>L(e),style:z.style,onSuspend:()=>l(e.id,!e.suspended),onDelete:()=>f([e.id]),onTag:e=>N(e)},e.id))}),e[33]=H,e[34]=z,e[35]=I,e[36]=R,e[37]=L,e[38]=N,e[39]=_e,e[40]=$):$=e[40];let ze;e[41]!==X||e[42]!==Q||e[43]!==Re||e[44]!==$?(ze=(0,v.jsxs)(`main`,{className:`fc-main`,children:[X,Q,Re,$]}),e[41]=X,e[42]=Q,e[43]=Re,e[44]=$,e[45]=ze):ze=e[45];let Be;e[46]!==ce||e[47]!==G||e[48]!==se?(Be=se&&(0,v.jsx)(g,{scope:se,title:`STUDY · ${G}`,onClose:()=>ce(null)}),e[46]=ce,e[47]=G,e[48]=se,e[49]=Be):Be=e[49];let Ve;e[50]!==ue||e[51]!==b||e[52]!==U||e[53]!==R?(Ve=ue&&(0,v.jsx)(h,{mode:`add`,initial:[{front:``,back:``}],deck:b??`General`,origin:`manual`,heading:`New card`,decks:U,onSaved:S,onClose:()=>R(!1)}),e[50]=ue,e[51]=b,e[52]=U,e[53]=R,e[54]=Ve):Ve=e[54];let He;return e[55]!==U||e[56]!==le||e[57]!==L?(He=le&&(0,v.jsx)(h,{mode:`edit`,card:le,decks:U,onClose:()=>L(null)}),e[55]=U,e[56]=le,e[57]=L,e[58]=He):He=e[58],(0,v.jsxs)(`div`,{className:`mavea-app fc-app`,children:[(0,v.jsxs)(`header`,{className:`fc-nav`,children:[Ee,(0,v.jsxs)(`div`,{className:`fc-nav-title`,children:[`Flashcards`,(0,v.jsxs)(`span`,{className:`fc-nav-sub`,children:[z.total,` card`,z.total===1?``:`s`]})]}),je]}),(0,v.jsxs)(`div`,{className:`fc-body`,children:[(0,v.jsxs)(`aside`,{className:`fc-side`,children:[(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[Me,B.filters.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-side-item`+(V===e.key?` is-active`:``),onClick:()=>j(e.key),children:[(0,v.jsx)(`span`,{children:e.label}),e.showCount&&(0,v.jsx)(`span`,{className:`fc-side-count`,children:z[e.key]})]},e.key))]}),(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[Ne,Fe,z.decks.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-side-item`+(b===e.name?` is-active`:``),onClick:()=>{window.location.hash=m.deck(e.name)},children:[(0,v.jsx)(`span`,{className:`fc-side-name`,children:e.name}),e.due>0&&(0,v.jsx)(`span`,{className:`fc-side-badge`,children:e.due})]},e.name))]}),z.tags.length>0&&(0,v.jsxs)(`div`,{className:`fc-side-group`,children:[(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Tags`}),(0,v.jsx)(`div`,{className:`fc-side-tags`,children:z.tags.map(e=>(0,v.jsxs)(`button`,{type:`button`,className:`fc-tag-chip`+(M===e.name?` is-active`:``),onClick:()=>N(t=>t===e.name?null:e.name),children:[e.name,(0,v.jsx)(`span`,{className:`fc-tag-n`,children:e.count})]},e.name))})]}),z.total>0&&(0,v.jsxs)(`div`,{className:`fc-side-group fc-side-style`,children:[(0,v.jsx)(`div`,{className:`fc-side-eyebrow`,children:`Study style`}),(0,v.jsx)(`div`,{className:`fc-style-seg`,role:`radiogroup`,"aria-label":`Study style`,children:y.map(e=>(0,v.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":z.style===e.value,className:`fc-style-opt`+(z.style===e.value?` is-active`:``),onClick:()=>ee(e.value),children:e.label},e.value))}),(0,v.jsx)(`p`,{className:`fc-style-note`,children:z.style===`collection`?`A plain pile you flip through whenever you like.`:`Cards come back just before you would forget them.`})]})]}),ze]}),Be,Ve,He]})}function S(){}function C(e){return(0,v.jsx)(`option`,{value:e},e)}function w(){window.location.hash=m.gallery}function T(e){return e.id}function E(e){return e.name}function D(){return new Set}function O(){return i(document)}function k(){return n(r())}function A(e){let t=(0,ae.c)(56),{card:n,checked:r,onToggle:i,onEdit:a,style:s,onSuspend:c,onDelete:l,onTag:u}=e,[ee,te]=(0,_.useState)(!1),d;t[0]===s?d=t[1]:(d=ie(s),t[0]=s,t[1]=d);let f=d.parkVerb,p;t[2]!==n||t[3]!==s?(p=b(n,s,Date.now()),t[2]=n,t[3]=s,t[4]=p):p=t[4];let m=p,ne=`fc-row`+(r?` is-checked`:``),re=`Select card: ${n.front}`,h;t[5]!==r||t[6]!==i||t[7]!==re?(h=(0,v.jsx)(`input`,{type:`checkbox`,className:`fc-row-check`,checked:r,onChange:i,"aria-label":re}),t[5]=r,t[6]=i,t[7]=re,t[8]=h):h=t[8];let g;t[9]===n.front?g=t[10]:(g=(0,v.jsx)(`div`,{className:`fc-row-front`,children:n.front}),t[9]=n.front,t[10]=g);let y;t[11]===n.back?y=t[12]:(y=(0,v.jsx)(`div`,{className:`fc-row-back`,children:n.back}),t[11]=n.back,t[12]=y);let x=`fc-status `+m.cls,S;t[13]!==m.label||t[14]!==x?(S=(0,v.jsx)(`span`,{className:x,children:m.label}),t[13]=m.label,t[14]=x,t[15]=S):S=t[15];let C;t[16]===n.deck?C=t[17]:(C=(0,v.jsx)(`span`,{className:`fc-row-deck`,children:n.deck}),t[16]=n.deck,t[17]=C);let w;if(t[18]!==n.tags||t[19]!==u){let e;t[21]===u?e=t[22]:(e=e=>(0,v.jsx)(`button`,{type:`button`,className:`fc-row-tag`,onClick:()=>u(e),children:e},e),t[21]=u,t[22]=e),w=n.tags.map(e),t[18]=n.tags,t[19]=u,t[20]=w}else w=t[20];let T;t[23]===n.origin?T=t[24]:(T=n.origin===`auto`&&(0,v.jsx)(`span`,{className:`fc-row-origin`,children:`auto`}),t[23]=n.origin,t[24]=T);let E;t[25]!==C||t[26]!==w||t[27]!==T||t[28]!==S?(E=(0,v.jsxs)(`div`,{className:`fc-row-meta`,children:[S,C,w,T]}),t[25]=C,t[26]=w,t[27]=T,t[28]=S,t[29]=E):E=t[29];let D;t[30]!==E||t[31]!==g||t[32]!==y?(D=(0,v.jsxs)(`div`,{className:`fc-row-main`,children:[g,y,E]}),t[30]=E,t[31]=g,t[32]=y,t[33]=D):D=t[33];let O;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,v.jsx)(o.edit,{}),t[34]=O):O=t[34];let k;t[35]===a?k=t[36]:(k=(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":`Edit card`,onClick:a,children:O}),t[35]=a,t[36]=k);let A=`${n.suspended?f.unpark:f.park} card`,j=n.suspended?f.unpark:f.title,M;t[37]===n.suspended?M=t[38]:(M=n.suspended?(0,v.jsx)(o.play,{}):(0,v.jsx)(o.clock,{}),t[37]=n.suspended,t[38]=M);let N;t[39]!==c||t[40]!==A||t[41]!==j||t[42]!==M?(N=(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":A,title:j,onClick:c,children:M}),t[39]=c,t[40]=A,t[41]=j,t[42]=M,t[43]=N):N=t[43];let P;t[44]!==ee||t[45]!==l?(P=ee?(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn fc-icon-danger`,"aria-label":`Confirm delete`,onClick:l,children:(0,v.jsx)(o.check,{})}):(0,v.jsx)(`button`,{type:`button`,className:`fc-icon-btn`,"aria-label":`Delete card`,onClick:()=>te(!0),onBlur:()=>te(!1),children:(0,v.jsx)(o.x,{})}),t[44]=ee,t[45]=l,t[46]=P):P=t[46];let F;t[47]!==k||t[48]!==N||t[49]!==P?(F=(0,v.jsxs)(`div`,{className:`fc-row-actions`,children:[k,N,P]}),t[47]=k,t[48]=N,t[49]=P,t[50]=F):F=t[50];let I;return t[51]!==D||t[52]!==F||t[53]!==ne||t[54]!==h?(I=(0,v.jsxs)(`li`,{className:ne,children:[h,D,F]}),t[51]=D,t[52]=F,t[53]=ne,t[54]=h,t[55]=I):I=t[55],I}export{x as FlashcardsApp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-C7H7A1rW.js";import{r as n}from"./sourceHost-BV3t2XDb.js";var r=t(),i=e(),a={hit:{label:`HELD`,token:`var(--insight)`},missed:{label:`MISSED`,token:`var(--danger)`},"not-due":{label:`NOT DUE`,token:`#8c90a0`},incomparable:{label:`NOT COMPARABLE`,token:`#8c90a0`},unknown:{label:`UNKNOWN`,token:`#8c90a0`}};function o(e){let t=(0,r.c)(33),{grades:o,busy:d,onFocusForecast:f,activeId:p,onClose:m}=e,h=u,g;t[0]===o?g=t[1]:(g=o.filter(l),t[0]=o,t[1]=g);let _=g.length,v;t[2]===o?v=t[3]:(v=o.filter(c),t[2]=o,t[3]=v);let y=v.length,b=o.length-_-y,x;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,i.jsxs)(`span`,{className:`prism-fa-title`,children:[(0,i.jsx)(`span`,{className:`prism-fa-spark`,"aria-hidden":`true`}),`Forecast autopsy`]}),t[4]=x):x=t[4];let S;t[5]===m?S=t[6]:(S=(0,i.jsxs)(`header`,{className:`prism-fa-head`,children:[x,(0,i.jsx)(`button`,{type:`button`,className:`prism-fa-min`,onClick:m,"aria-label":`Hide forecast autopsy`,children:`▾`})]}),t[5]=m,t[6]=S);let C;t[7]!==d||t[8]!==o.length||t[9]!==_||t[10]!==y||t[11]!==b?(C=!d&&o.length>0&&(0,i.jsxs)(`p`,{className:`prism-fa-standing`,children:[o.length,` prediction`,o.length===1?``:`s`,` graded ·`,` `,(0,i.jsx)(`strong`,{children:_}),` held · `,(0,i.jsx)(`strong`,{className:`prism-fa-missn`,children:y}),` missed`,b>0?` · ${b} not yet settled`:``]}),t[7]=d,t[8]=o.length,t[9]=_,t[10]=y,t[11]=b,t[12]=C):C=t[12];let w;t[13]===d?w=t[14]:(w=d&&(0,i.jsxs)(`p`,{className:`prism-fa-empty`,children:[(0,i.jsx)(`span`,{className:`prism-fa-dot`,"aria-hidden":`true`}),`Grading the document’s predictions against what happened…`]}),t[13]=d,t[14]=w);let T;t[15]!==d||t[16]!==o.length?(T=!d&&o.length===0&&(0,i.jsx)(`p`,{className:`prism-fa-empty`,children:`No dated predictions found to grade in this document.`}),t[15]=d,t[16]=o.length,t[17]=T):T=t[17];let E;if(t[18]!==p||t[19]!==o||t[20]!==f){let e;t[22]!==p||t[23]!==f?(e=e=>{let t=e.citation?n(e.citation.url):null,r=e.citation&&(0,i.jsxs)(i.Fragment,{children:[`“`,e.citation.quote,`”`,(0,i.jsxs)(`span`,{className:`prism-fa-host`,children:[`— `,e.citation.host,e.citation.date?` · ${e.citation.date}`:``]})]});return(0,i.jsxs)(`div`,{role:`button`,tabIndex:0,className:`prism-fa-row`+(p===e.claimId?` is-active`:``)+` is-${e.status}`,onClick:()=>f(e),onKeyDown:t=>{t.key!==`Enter`&&t.key!==` `||(t.preventDefault(),f(e))},title:e.predicted,children:[(0,i.jsxs)(`span`,{className:`prism-fa-seal`,"data-status":e.status,style:{"--fa-color":a[e.status].token},children:[a[e.status].label,e.factor&&e.factor>=1.5?` ${+e.factor.toFixed(+(e.factor<10))}×`:``]}),(0,i.jsxs)(`span`,{className:`prism-fa-pred`,children:[(0,i.jsx)(`span`,{className:`prism-fa-tag`,children:`PREDICTED`}),` `,e.predicted,` `,(0,i.jsxs)(`span`,{className:`prism-fa-page`,children:[`· p.`,e.page]})]}),e.actual&&(0,i.jsxs)(`span`,{className:`prism-fa-act`,children:[(0,i.jsx)(`span`,{className:`prism-fa-tag`,children:`ACTUAL`}),` `,e.actual,e.delta&&e.status===`missed`?(0,i.jsxs)(`span`,{className:`prism-fa-delta`,children:[` (`,e.delta,`)`]}):``]}),r&&(t?(0,i.jsx)(`a`,{className:`prism-fa-cite`,href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:s,children:r}):(0,i.jsx)(`span`,{className:`prism-fa-cite`,children:r})),!e.actual&&(0,i.jsx)(`span`,{className:`prism-fa-note`,children:e.note})]},e.claimId)},t[22]=p,t[23]=f,t[24]=e):e=t[24],E=o.map(e),t[18]=p,t[19]=o,t[20]=f,t[21]=E}else E=t[21];let D;t[25]!==w||t[26]!==T||t[27]!==E?(D=(0,i.jsxs)(`div`,{className:`prism-fa-list`,children:[w,T,E]}),t[25]=w,t[26]=T,t[27]=E,t[28]=D):D=t[28];let O;return t[29]!==S||t[30]!==C||t[31]!==D?(O=(0,i.jsxs)(`section`,{className:`prism-fa`,"aria-label":`Forecast autopsy`,onPointerDown:h,onWheel:h,onClick:h,children:[S,C,D]}),t[29]=S,t[30]=C,t[31]=D,t[32]=O):O=t[32],O}function s(e){return e.stopPropagation()}function c(e){return e.status===`missed`}function l(e){return e.status===`hit`}function u(e){return e.stopPropagation()}export{o as ForecastPanel};
|
|
@@ -1 +1 @@
|
|
|
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-CWqRe4-B.js";import{n as l}from"./icons-CHVz6kv_.js";import{t as u}from"./TopicCanvas-D64O3lvD.js";import"./catalog-Car_1ocN.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};
|
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ut as t}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ut as t}from"./index-C7H7A1rW.js";var n=e(),r=[`wikipedia.org`,`report.pdf · p.4`,`search · 9 more`];function i(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t,{eyebrow:`Transparent by design`,children:[`Know `,(0,n.jsx)(`em`,{children:`what you’re looking at.`})]}),(0,n.jsxs)(`div`,{className:`fl-trust`,children:[(0,n.jsx)(`svg`,{className:`fl-trust-spine`,viewBox:`0 0 1032 40`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{pathLength:1,d:`M0,20 C172,4 344,36 516,20 S860,4 1032,20`})}),(0,n.jsxs)(`div`,{className:`fl-trust-card grounded`,children:[(0,n.jsx)(`span`,{className:`fl-badge grounded`,children:`Grounded in · 11`}),(0,n.jsx)(`div`,{className:`fl-trust-title`,children:`Sources stay attached`}),(0,n.jsx)(`p`,{className:`fl-trust-body`,children:`When search or an uploaded document supplies evidence, its citations stay with the answer for inspection. A citation does not guarantee that the claim is correct.`}),(0,n.jsx)(`div`,{className:`fl-trust-demo`,"aria-hidden":`true`,children:r.map((e,t)=>(0,n.jsx)(`span`,{className:`fl-src-chip`,style:{"--src-i":String(t)},children:e},e))})]}),(0,n.jsxs)(`div`,{className:`fl-trust-card inferred`,children:[(0,n.jsx)(`span`,{className:`fl-badge inferred`,children:`Inferred`}),(0,n.jsx)(`div`,{className:`fl-trust-title`,children:`Inferences can be labelled`}),(0,n.jsx)(`p`,{className:`fl-trust-body`,children:`Estimates can carry an Inferred badge, keeping them distinct from cited evidence.`}),(0,n.jsxs)(`div`,{className:`fl-trust-demo`,"aria-hidden":`true`,children:[(0,n.jsx)(`span`,{className:`fl-stamp-value`,children:`Runway ≈ 4 months`}),(0,n.jsx)(`span`,{className:`fl-badge inferred fl-stamp-badge`,children:`Inferred`})]})]}),(0,n.jsxs)(`div`,{className:`fl-trust-card keys`,children:[(0,n.jsx)(`span`,{className:`fl-trust-icon`,"aria-hidden":`true`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`4`,y:`11`,width:`16`,height:`10`,rx:`2`}),(0,n.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 8 0v4`})]})}),(0,n.jsx)(`div`,{className:`fl-trust-title`,children:`You control key storage`}),(0,n.jsx)(`p`,{className:`fl-trust-body`,children:`Keys are session-only by default. Optional remembering encrypts them locally. Requests reach your chosen provider through the app’s same-origin proxy — on your machine, that server is yours. Anyone hosting a copy for you can access keys and content in transit.`}),(0,n.jsx)(`div`,{className:`fl-trust-demo`,"aria-hidden":`true`,children:(0,n.jsxs)(`span`,{className:`fl-key-boundary`,children:[(0,n.jsxs)(`svg`,{className:`fl-key-glyph`,viewBox:`0 0 24 24`,children:[(0,n.jsx)(`circle`,{cx:`7`,cy:`12`,r:`3.2`}),(0,n.jsx)(`path`,{d:`M10.2 12h9.8M16 12v3M20 12v2.4`})]}),(0,n.jsxs)(`svg`,{className:`fl-key-lock`,viewBox:`0 0 24 24`,children:[(0,n.jsx)(`rect`,{x:`5`,y:`10`,width:`14`,height:`9`,rx:`2`}),(0,n.jsx)(`path`,{d:`M8 10V7a4 4 0 0 1 8 0v3`})]}),(0,n.jsx)(`i`,{children:`this session`})]})})]})]})]})}export{i as HonestByDesign};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{n}from"./icons-CHVz6kv_.js";import{t as r}from"./TopicCanvas-
|
|
1
|
+
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{n}from"./icons-CHVz6kv_.js";import{t as r}from"./TopicCanvas-BRu3xVL8.js";import"./canvas-Ep2Kfupo.js";import{n as i}from"./screen-DLR7p_yP.js";import{t as a}from"./generateBeats-b64CL54v.js";var o=e(),s={type:`insight`,col:12,delay:0,id:`seed-1`,num:`1`,props:{title:`Ask anything — Mavéa shows what it means`,summary:`These cards are just examples of the visuals Mavéa can draw. Ask a real question and it fills them with real, live data — narrated by voice.`,conf:`inferred`}},c=[{type:`kpi`,col:6,id:`seed-kpi`,props:{title:`What it draws on`,kpis:[{val:`130+`,label:`components`},{val:`40+`,label:`chart types`},{val:`Live`,label:`by voice`}]}},{type:`donut`,col:6,id:`seed-donut`,props:{title:`Example — a composition`,rows:[{label:`Needs`,pct:50,color:`var(--presence)`},{label:`Wants`,pct:30,color:`var(--insight)`},{label:`Savings`,pct:20,color:`var(--warning)`}]}},{type:`gauge`,col:4,id:`seed-gauge`,props:{title:`Example — a score`,value:72,max:100,band:`on track`}},{type:`bars`,col:8,id:`seed-bars`,props:{title:`Example — comparing amounts`,bars:[{label:`Mon`,value:3},{label:`Tue`,value:5},{label:`Wed`,value:4,hot:!0},{label:`Thu`,value:7},{label:`Fri`,value:8}]}},{type:`ring`,col:6,id:`seed-ring`,props:{title:`Example — progress`,rings:[{label:`Toward the goal`,pct:.6,display:`60%`,hint:`example`}]}},{type:`stack`,col:6,id:`seed-stack`,props:{title:`Example — parts of a total`,total:`100`,segments:[{label:`A`,value:50,display:`50`,color:`var(--presence)`},{label:`B`,value:30,display:`30`,color:`var(--insight)`},{label:`C`,value:20,display:`20`,color:`var(--warning)`}]}},{type:`breakdown`,col:6,id:`seed-breakdown`,props:{title:`Example — a split`,rows:[{name:`Part A`,val:`half`,pct:50},{name:`Part B`,val:`a third`,pct:30},{name:`Part C`,val:`the rest`,pct:20,tag:`example`}]}},{type:`chart`,col:12,id:`seed-chart`,props:{title:`Example — a trend over time`,labels:[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`],series:[{name:`Example`,color:`var(--presence)`,data:[3,5,4,7,8]}],footer:`A real question fills this with your own data.`}},{type:`timeline`,col:6,id:`seed-timeline`,props:{events:[{time:`Step 1`,title:`You ask`,detail:`by voice or text`},{time:`Step 2`,title:`Mavéa answers`,detail:`out loud`},{time:`Step 3`,title:`The canvas builds`,detail:`visuals appear`}]}},{type:`compare`,col:6,id:`seed-compare`,props:{eyebrow:`Example`,options:[{name:`Option A`,pick:!0},{name:`Option B`}],criteria:[{label:`Speed`,cells:[{v:`Fast`,win:!0},{v:`Slower`}]},{label:`Cost`,cells:[{v:`Low`,win:!0},{v:`High`}]}]}}];function l(e=i()){return{id:`live`,workspace:`Live`,title:`What Mavéa can show`,sub:`A living canvas of visuals for every question — narrated by voice.`,opener:`Ask me anything — I answer out loud and show what I mean.`,context:[],blocks:[s,...c.slice(0,Math.max(0,e-1))].map((e,t)=>({...e,delay:Math.min(t*70,600)})),proof:null,extras:{},group:`home`,suggests:[],keywords:[]}}var u=t(),d=`Here's how it works — ask anything, and a living canvas builds while I talk.`;function f({onClose:e,speak:t,onFullTour:i}){let s=(0,o.useMemo)(()=>l(),[]),[c,f]=(0,o.useState)(null),p=(0,o.useRef)(null);return(0,o.useEffect)(()=>{t?.(d);let e=a(s.blocks,{opener:d,maxStops:3}),n=!1,r,i=0,o=()=>{if(n||i>=e.length)return;let t=e[i++];t.set&&`spot`in t.set&&f(t.set.spot??null),r=setTimeout(o,t.ms??0)};return o(),()=>{n=!0,r&&clearTimeout(r)}},[]),(0,o.useEffect)(()=>{if(!c)return;let e=window.setTimeout(()=>{let e=p.current;if(!e)return;let t=e.querySelector(`.spotlit`);if(!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top-n.top-(e.clientHeight-r.height)/2;e.scrollTo({top:Math.max(0,e.scrollTop+i),behavior:`smooth`})},90);return()=>window.clearTimeout(e)},[c]),(0,o.useEffect)(()=>{let t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e]),(0,u.jsxs)(`div`,{onClick:t=>t.target===t.currentTarget&&e(),role:`dialog`,"aria-modal":`true`,"aria-label":`How Live works — an example`,style:{position:`fixed`,inset:0,zIndex:60,background:`rgba(0,0,0,0.55)`,display:`flex`,flexDirection:`column`,padding:24},children:[(0,u.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10,marginBottom:12,background:`var(--surface-elevated)`,border:`1px solid var(--line)`,borderRadius:12,padding:`10px 14px`,flexWrap:`wrap`},children:[(0,u.jsxs)(`span`,{style:{fontWeight:600,display:`flex`,alignItems:`center`,gap:8,color:`var(--text-primary)`},children:[(0,u.jsx)(n.spark,{style:{width:16,height:16,color:`var(--presence)`}}),`Example — how Live answers`]}),(0,u.jsx)(`span`,{style:{fontSize:12.5,color:`var(--text-secondary)`},children:`a sample canvas · ask a real question for real, live data`}),i&&(0,u.jsx)(`button`,{type:`button`,className:`entry-action`,style:{marginLeft:`auto`,fontSize:13},onClick:i,children:`Take the full tour →`}),(0,u.jsx)(`button`,{className:`entry-action`,style:{marginLeft:i?void 0:`auto`,fontSize:13},onClick:e,children:`Got it`})]}),(0,u.jsx)(`div`,{ref:p,className:`canvas-scroll`,style:{flex:1,overflow:`auto`,background:`var(--surface-default)`,border:`1px solid var(--line-strong)`,borderRadius:12,padding:16,boxShadow:`var(--shadow-modal)`},children:(0,u.jsx)(`div`,{className:`topic-wrap`,children:(0,u.jsx)(r,{data:s,spot:c,built:{},onProve:()=>{}})})})]})}export{f as HowItWorks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t}from"./index-C7H7A1rW.js";import{t as n}from"./LegalPageShell-BsgRV7aL.js";var r=t(),i=e(),a=[{title:`AI output needs human review`,body:`AI output can be incomplete, inaccurate, outdated, internally inconsistent, biased, offensive, unsafe, or fabricated. A citation, quotation, calculation, forecast, confidence indicator, source highlight, or polished visual is not proof that a result is correct. Check original sources and have a qualified person review consequential decisions.`},{title:`Not professional or emergency help`,body:`Mavéa is not a provider of medical, legal, financial, tax, mental-health, safety, or other professional advice. It is not an emergency, crisis, or monitoring service. If someone may be in danger, contact local emergency services or an appropriate crisis service now.`},{title:`Third-party providers process requests`,body:`Prompts, attachments, conversation context, search requests, and connected-app data may be sent to the AI provider, search provider, or connected service you select so the requested feature can work. Their terms, privacy practices, retention rules, availability, and billing apply. You are responsible for provider charges, and Mavéa does not control third-party services.`},{title:`Remembered keys remain your responsibility`,body:`Provider and search keys are secrets. With Remember off, Mavéa keeps them in memory only until reload. With Remember on, Mavéa stores encrypted ciphertext in this browser using a device-bound key when browser cryptography is available; otherwise keys remain session-only. Encryption at rest is a convenience, not a guarantee against an unlocked, shared, lost, or compromised device, browser profile, extension, same-origin app code, deployment, or provider. Keys pass through this deployment’s same-origin request proxy when used. Use restricted, revocable keys on a trusted device, rotate or revoke them if exposure is possible, and monitor your provider account. Settings exports exclude provider and search keys.`},{title:`Protect sensitive and confidential information`,body:`Local storage describes where Mavéa saves information on this device; it does not mean requests sent to a selected provider stay local. Anything you type, paste, attach, or upload may be transmitted to selected providers. Do not submit passwords, secrets, work-related or personal material, identifiable information, confidential information, regulated data, or another person’s information unless you are authorized to share it and accept the providers’ processing and retention practices.`},{title:`Use content you have the right to use`,body:`Only upload, transform, publish, or share material you have the rights and permission to use. AI output may not be unique, may resemble other material, may include protected content, or may not qualify for copyright protection. Mavéa does not guarantee ownership or non-infringement; review output before publishing or commercial use.`},{title:`Review actions before they leave Mavéa`,body:`Connected apps, exports, code suggestions, generated messages, and other actions can affect external systems or people. Check the destination, content, permissions, and consequences before confirming or using them. You are responsible for actions you take and material you share.`}];function o(){let e=(0,r.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(`p`,{children:`Mavéa uses AI models and connected services selected by you. These plain-language notices apply across Live, Courses, Deep Zoom, Prism, Ripple, Reels, exports, and connected apps.`}),e[0]=t):t=e[0];let o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,i.jsx)(`div`,{className:`legal-grid`,children:a.map(s)}),e[1]=o):o=e[1];let c;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,i.jsxs)(n,{page:`important`,kicker:`Before you rely on an answer`,title:`Important information`,intro:t,children:[o,(0,i.jsxs)(`aside`,{className:`legal-warranty`,"aria-label":`Warranty and responsibility notice`,children:[(0,i.jsx)(`strong`,{children:`Service and responsibility`}),(0,i.jsx)(`p`,{children:`Features, providers, sources, and results can change, fail, or become unavailable. To the fullest extent permitted by law, Mavéa and its outputs are provided “as is” and “as available,” without warranties, and Mavéa is not responsible for decisions, actions, losses, harm, unauthorized submissions, credential misuse, provider charges, or third-party processing or retention arising from their use. You use the service and its outputs at your own risk. Nothing here limits rights or liability that cannot legally be limited.`})]}),(0,i.jsx)(`p`,{className:`legal-fineprint`,children:`This notice does not replace the terms and privacy notices of the providers and connected services you choose.`})]}),e[2]=c):c=e[2],c}function s(e,t){return(0,i.jsxs)(`section`,{className:`legal-item`,children:[(0,i.jsx)(`span`,{className:`legal-number`,"aria-hidden":!0,children:String(t+1).padStart(2,`0`)}),(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`h2`,{children:e.title}),(0,i.jsx)(`p`,{children:e.body})]})]},e.title)}export{o as LegalApp};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ft as n,ht as r}from"./index-
|
|
1
|
+
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ft as n,ht as r}from"./index-C7H7A1rW.js";import{n as i,t as a}from"./LegalPageShell-BsgRV7aL.js";var o=e(),s=r();function c(e){let t=[],n=0;for(;n<e.length;){let r=e[n].trim();if(!r){n+=1;continue}if(r.startsWith(`- `)){let r=[];for(;n<e.length&&e[n].trim().startsWith(`- `);)r.push(e[n].trim().slice(2)),n+=1;t.push({kind:`list`,items:r});continue}let i=[];for(;n<e.length;){let t=e[n].trim();if(!t||t.startsWith(`## `)||t.startsWith(`- `))break;i.push(t),n+=1}i.length&&t.push({kind:`paragraph`,text:i.join(` `)})}return t}function l(e){let t=e.replace(/\r\n?/g,`
|
|
2
2
|
`).trim().split(`
|
|
3
3
|
`),n=t.shift()?.trim()??``;if(!n.startsWith(`# `))throw Error(`Legal document must begin with an H1`);let r=n.slice(2).trim(),i,a=[],o=[],s=0;for(;s<t.length&&!t[s].startsWith(`## `);){let e=t[s],n=e.match(/^Effective:\s*(.+)$/i);n?i=n[1].trim():a.push(e),s+=1}for(;s<t.length;){let e=t[s].trim();if(!e.startsWith(`## `)){s+=1;continue}let n=e.slice(3).trim(),r=n.match(/^(\d+)\.\s+(.+)$/);s+=1;let i=[];for(;s<t.length&&!t[s].startsWith(`## `);)i.push(t[s]),s+=1;o.push({number:r?Number(r[1]):o.length+1,title:r?r[2]:n,blocks:c(i)})}return{title:r,effectiveDate:i,intro:c(a),sections:o}}var u=t(),d={"./LICENSE":`LICENSE.txt`,"./TERMS.md":`TERMS.md`,"./DISCLAIMER.md":`DISCLAIMER.md`,"./PRIVACY.md":`PRIVACY.md`,"./TRADEMARKS.md":`TRADEMARKS.md`,"./SUPPORT.md":`SUPPORT.md`,"./SECURITY.md":`SECURITY.md`};function f(){if(typeof window>`u`)return``;let e=window.location.hash.split(`?`)[1]??``;return new URLSearchParams(e).get(`from`)===`live`?`?from=live`:`?from=home`}function p(e){if(e===`./TERMS.md`)return{href:`#/terms${f()}`,external:!1};if(e===`./PRIVACY.md`)return{href:`#/privacy${f()}`,external:!1};let t=d[e];if(t)return{href:n(t),external:!0};try{let t=new URL(e);if(t.protocol===`https:`)return{href:t.href,external:!0}}catch{}return null}function m(e){let t=/(\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`)/g,n=[],r=0,i;for(;i=t.exec(e);){i.index>r&&n.push(e.slice(r,i.index));let a=`${i.index}-${i[0]}`;if(i[2]!==void 0&&i[3]!==void 0){let e=p(i[3]);n.push(e?(0,u.jsx)(`a`,{href:e.href,...e.external?{target:`_blank`,rel:`noreferrer noopener`}:void 0,children:i[2]},a):(0,u.jsx)(o.Fragment,{children:i[2]},a))}else i[4]===void 0?n.push((0,u.jsx)(`code`,{children:i[5]},a)):n.push((0,u.jsx)(`strong`,{children:i[4]},a));r=t.lastIndex}return r<e.length&&n.push(e.slice(r)),n}function h(e){let t=e.replace(/[^A-Za-z]/g,``);return t.length>=40&&t===t.toUpperCase()}function g(e){let t=(0,s.c)(4),{value:n}=e,r;t[0]===n?r=t[1]:(r=n.map(_),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,u.jsx)(u.Fragment,{children:r}),t[2]=r,t[3]=i),i}function _(e,t){return e.kind===`paragraph`?(0,u.jsx)(`p`,{className:h(e.text)?`legal-caps`:void 0,children:m(e.text)},t):(0,u.jsx)(`ul`,{children:e.items.map(v)},t)}function v(e,t){return(0,u.jsx)(`li`,{children:m(e)},t)}function y(e){let t=(0,s.c)(22),{markdown:n,page:r,kicker:i}=e,o,c,d,f,p,m,h,_;if(t[0]!==i||t[1]!==n||t[2]!==r){let e=l(n);o=a,f=r,p=i,m=e.title,h=e.effectiveDate,_=(0,u.jsx)(g,{value:e.intro}),c=`legal-prose`,d=e.sections.map(b),t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=c,t[5]=d,t[6]=f,t[7]=p,t[8]=m,t[9]=h,t[10]=_}else o=t[3],c=t[4],d=t[5],f=t[6],p=t[7],m=t[8],h=t[9],_=t[10];let v;t[11]!==c||t[12]!==d?(v=(0,u.jsx)(`div`,{className:c,children:d}),t[11]=c,t[12]=d,t[13]=v):v=t[13];let y;return t[14]!==o||t[15]!==f||t[16]!==p||t[17]!==m||t[18]!==h||t[19]!==_||t[20]!==v?(y=(0,u.jsx)(o,{page:f,kicker:p,title:m,effectiveDate:h,intro:_,children:v}),t[14]=o,t[15]=f,t[16]=p,t[17]=m,t[18]=h,t[19]=_,t[20]=v,t[21]=y):y=t[21],y}function b(e){return(0,u.jsx)(i,{number:e.number,title:e.title,children:(0,u.jsx)(g,{value:e.blocks})},e.number)}export{y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ft as t,ht as n}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ft as t,ht as n}from"./index-C7H7A1rW.js";var r=n(),i=e();function a(){if(typeof window>`u`)return``;let e=window.location.hash.split(`?`)[1]??``;return new URLSearchParams(e).get(`from`)===`live`?`?from=live`:`?from=home`}function o(){return a()===`?from=live`?`#/live`:`#/`}function s(e){return`#/${e}${a()}`}function c(e){let n=(0,r.c)(31),{page:a,kicker:c,title:l,intro:u,effectiveDate:d,children:f}=e,p;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,i.jsxs)(`a`,{className:`legal-brand`,href:`#/`,"aria-label":`Mavéa home`,children:[(0,i.jsx)(`span`,{className:`legal-brand-mark`,"aria-hidden":!0}),`Mavéa`]}),n[0]=p):p=n[0];let m;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,i.jsxs)(`header`,{className:`legal-topbar`,children:[p,(0,i.jsx)(`a`,{className:`legal-back`,href:o(),children:`← Back to Mavéa`})]}),n[1]=m):m=n[1];let h;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=s(`legal`),n[2]=h):h=n[2];let g=a===`important`?`page`:void 0,_;n[3]===g?_=n[4]:(_=(0,i.jsx)(`a`,{href:h,"aria-current":g,children:`Important information`}),n[3]=g,n[4]=_);let v;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=s(`terms`),n[5]=v):v=n[5];let y=a===`terms`?`page`:void 0,b;n[6]===y?b=n[7]:(b=(0,i.jsx)(`a`,{href:v,"aria-current":y,children:`Terms of use`}),n[6]=y,n[7]=b);let x;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(x=s(`privacy`),n[8]=x):x=n[8];let S=a===`privacy`?`page`:void 0,C;n[9]===S?C=n[10]:(C=(0,i.jsx)(`a`,{href:x,"aria-current":S,children:`Privacy`}),n[9]=S,n[10]=C);let w;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,i.jsx)(`a`,{href:t(`LICENSE.txt`),target:`_blank`,rel:`noreferrer noopener`,children:`License`}),n[11]=w):w=n[11];let T;n[12]!==C||n[13]!==_||n[14]!==b?(T=(0,i.jsxs)(`nav`,{className:`legal-document-nav`,"aria-label":`Legal and safety information`,children:[_,b,C,w]}),n[12]=C,n[13]=_,n[14]=b,n[15]=T):T=n[15];let E;n[16]===c?E=n[17]:(E=(0,i.jsx)(`p`,{className:`legal-kicker`,children:c}),n[16]=c,n[17]=E);let D;n[18]===l?D=n[19]:(D=(0,i.jsx)(`h1`,{children:l}),n[18]=l,n[19]=D);let O;n[20]===d?O=n[21]:(O=d&&(0,i.jsxs)(`p`,{className:`legal-effective`,children:[`Effective `,d]}),n[20]=d,n[21]=O);let k;n[22]===u?k=n[23]:(k=(0,i.jsx)(`div`,{className:`legal-intro`,children:u}),n[22]=u,n[23]=k);let A;return n[24]!==f||n[25]!==T||n[26]!==E||n[27]!==D||n[28]!==O||n[29]!==k?(A=(0,i.jsxs)(`main`,{className:`legal-app`,children:[m,(0,i.jsxs)(`article`,{className:`legal-sheet`,children:[T,E,D,O,k,f]})]}),n[24]=f,n[25]=T,n[26]=E,n[27]=D,n[28]=O,n[29]=k,n[30]=A):A=n[30],A}function l(e){let t=(0,r.c)(12),{number:n,title:a,children:o}=e,s=String(n),c;t[0]===s?c=t[1]:(c=s.padStart(2,`0`),t[0]=s,t[1]=c);let l;t[2]===c?l=t[3]:(l=(0,i.jsx)(`span`,{className:`legal-number`,"aria-hidden":!0,children:c}),t[2]=c,t[3]=l);let u;t[4]===a?u=t[5]:(u=(0,i.jsx)(`h2`,{children:a}),t[4]=a,t[5]=u);let d;t[6]!==o||t[7]!==u?(d=(0,i.jsxs)(`div`,{children:[u,o]}),t[6]=o,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==l||t[10]!==d?(f=(0,i.jsxs)(`section`,{className:`legal-prose-section`,children:[l,d]}),t[9]=l,t[10]=d,t[11]=f):f=t[11],f}export{l as n,c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-
|
|
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{n as r,t as i}from"./dag-C3Xx8pOD.js";var a=e(),o=n(),s=t();function c(e){let t=Math.abs(e),n=e<0?`−`:``;return t>=1e9?`${n}$${+(t/1e9).toFixed(2)}B`:t>=1e6?`${n}$${+(t/1e6).toFixed(2)}M`:t>=1e3?`${n}$${+(t/1e3).toFixed(1)}k`:`${n}$${Math.round(t)}`}function l(e){let t=Math.abs(e),n=e<0?`−`:``;return t>=1e9?`${n}${+(t/1e9).toFixed(2)}B`:t>=1e6?`${n}${+(t/1e6).toFixed(2)}M`:t>=1e3?`${n}${+(t/1e3).toFixed(1)}k`:`${n}${Math.round(t)}`}function u(e,t){return Number.isFinite(e)?t===`%`?`${+e.toFixed(1)}%`:t===`x`?`${+e.toFixed(2)}×`:t===`currency`?c(e):t===`count`?l(e):`${+e.toFixed(2)}`:`—`}function d(e){let t=(0,o.c)(32),{model:n,busy:c,onFocusNode:l,onClose:d}=e,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={},t[0]=g):g=t[0];let[_,v]=(0,a.useState)(g),y=h,b;t[1]!==n||t[2]!==_?(b=n?r(n.nodes,new Map(Object.entries(_))):{values:new Map,unresolved:new Set},t[1]=n,t[2]=_,t[3]=b):b=t[3];let x=b,S;t[4]===n?.nodes?S=t[5]:(S=new Map((n?.nodes??[]).map(m)),t[4]=n?.nodes,t[5]=S);let C=S,w;if(t[6]!==c||t[7]!==C||t[8]!==n||t[9]!==d||t[10]!==l||t[11]!==_||t[12]!==x){let e;t[14]===C?e=t[15]:(e=e=>C.get(e),t[14]=C,t[15]=e);let r=(n?.inputs??[]).map(e).filter(p),a=(n?.nodes??[]).filter(f),o;t[16]===_?o=t[17]:(o=Object.keys(_),t[16]=_,t[17]=o);let m=o.length>0,h;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,s.jsxs)(`span`,{className:`prism-lv-title`,children:[(0,s.jsx)(`span`,{className:`prism-lv-spark`,"aria-hidden":`true`}),`Live levers`]}),t[18]=h):h=t[18];let g;t[19]!==m||t[20]!==n?(g=n&&m&&(0,s.jsx)(`button`,{type:`button`,className:`prism-lv-reset`,onClick:()=>v({}),children:`Reset`}),t[19]=m,t[20]=n,t[21]=g):g=t[21];let b;t[22]===d?b=t[23]:(b=(0,s.jsx)(`button`,{type:`button`,className:`prism-lv-min`,onClick:d,"aria-label":`Hide live levers`,children:`▾`}),t[22]=d,t[23]=b);let S;t[24]!==g||t[25]!==b?(S=(0,s.jsxs)(`header`,{className:`prism-lv-head`,children:[h,(0,s.jsxs)(`div`,{className:`prism-lv-head-right`,children:[g,b]})]}),t[24]=g,t[25]=b,t[26]=S):S=t[26];let T;t[27]===c?T=t[28]:(T=c&&(0,s.jsxs)(`p`,{className:`prism-lv-empty`,children:[(0,s.jsx)(`span`,{className:`prism-lv-dot`,"aria-hidden":`true`}),`Extracting the model implied under the document…`]}),t[27]=c,t[28]=T);let E;t[29]!==c||t[30]!==n?(E=!c&&!n&&(0,s.jsx)(`p`,{className:`prism-lv-empty`,children:`No quantitative model to drive — the document’s figures don’t form a model whose arithmetic checks out against itself.`}),t[29]=c,t[30]=n,t[31]=E):E=t[31],w=(0,s.jsxs)(`section`,{className:`prism-lv`,"aria-label":`Live levers`,onPointerDown:y,onWheel:y,onClick:y,children:[S,T,E,!c&&n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`p`,{className:`prism-lv-intro`,children:`Drag an assumption — every figure traces to a page; the conclusion recomputes live.`}),(0,s.jsxs)(`div`,{className:`prism-lv-body`,children:[(0,s.jsx)(`p`,{className:`prism-lv-group`,children:`Assumptions`}),r.map(e=>{let t=_[e.id]??e.printed,n=e.min??0,r=e.max??(e.printed*2||100),i=(r-n)/200||1;return(0,s.jsxs)(`div`,{className:`prism-lv-input`,children:[(0,s.jsxs)(`div`,{className:`prism-lv-input-head`,children:[(0,s.jsx)(`button`,{type:`button`,className:`prism-lv-label`,onClick:()=>l(e),title:e.quote,children:e.label}),(0,s.jsx)(`span`,{className:`prism-lv-val`+(t===e.printed?``:` is-changed`),children:u(t,e.unit)})]}),(0,s.jsx)(`input`,{type:`range`,className:`prism-lv-slider`,min:n,max:r,step:i,value:t,onChange:t=>v(n=>({...n,[e.id]:Number(t.target.value)})),"aria-label":`${e.label} (drag to change)`})]},e.id)}),(0,s.jsx)(`p`,{className:`prism-lv-group`,children:`Conclusions`}),a.map(e=>{let t=x.values.get(e.id),n=t===void 0?null:e.bound?i(e.bound,t):null;return(0,s.jsxs)(`button`,{type:`button`,className:`prism-lv-out`+(n===!1?` is-violated`:``),onClick:()=>l(e),title:e.quote,children:[(0,s.jsx)(`span`,{className:`prism-lv-out-label`,children:e.label}),(0,s.jsx)(`span`,{className:`prism-lv-out-val`,children:t===void 0?`—`:u(t,e.unit)}),e.bound&&(0,s.jsxs)(`span`,{className:`prism-lv-bound`+(n===!1?` is-violated`:``),children:[n===!1?`✕ `:`✓ `,e.bound.label??`must be ${e.bound.op} ${e.bound.value}`]})]},e.id)})]})]})]}),t[6]=c,t[7]=C,t[8]=n,t[9]=d,t[10]=l,t[11]=_,t[12]=x,t[13]=w}else w=t[13];return w}function f(e){return e.formula}function p(e){return!!e}function m(e){return[e.id,e]}function h(e){return e.stopPropagation()}export{d as LeverPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-
|
|
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{n as r}from"./icons-CHVz6kv_.js";import{n as i}from"./blockLabel-DAqaHKy3.js";import{i as a,o,r as s}from"./neighborhoods-DFqKm9Xi.js";import{t as c}from"./time-BHTmJR1s.js";var l=e(),u=n(),d=1,f=.4;function p(e,t,n,r){e.entries.push(t);for(let[t,r]of n)e.centroid.set(t,(e.centroid.get(t)??0)+r);let i=new Set(r);for(let t of i)e.df.has(t)||e.order.push(t),e.df.set(t,(e.df.get(t)??0)+1);for(let n of[t.title,t.question].join(` `).split(/[^a-zA-Z0-9$%]+/)){let t=n.trim();if(!t)continue;let r=t.toLowerCase();i.has(r)&&!e.caseMap.has(r)&&e.caseMap.set(r,t)}}function m(e){let t=0;for(let n of e.entries)n.savedAt>t&&(t=n.savedAt);return t}function h(e){let t=e.trim();return t&&t[0].toUpperCase()+t.slice(1)}function g(e){let t=e.entries[0];if(e.entries.length===1)return(t.title||t.question).trim();let n=Math.max(2,Math.ceil(e.entries.length/2)),r=e.order.filter(t=>(e.df.get(t)??0)>=n);if(r.length)return h(r.slice(0,2).map(t=>e.caseMap.get(t)??t).join(` `));let i=e.entries.find(e=>e.topic?.trim())?.topic?.trim();return i?h(i):(t.title||t.question).trim()}function _(e){let t=[];for(let n of e){let e=s(n),r=o(e,n.topic,d),i=null,c=f;for(let e of t){let t=a(r,e.centroid);t>c&&(i=e,c=t)}if(i)p(i,n,r,e);else{let i={entries:[],centroid:new Map,df:new Map,order:[],caseMap:new Map};p(i,n,r,e),t.push(i)}}return t.sort((e,t)=>m(t)-m(e)),t.map(e=>({id:`grp-`+e.entries[0].id,name:g(e),entries:e.entries}))}var v=new Set([`insight`,`quotes`,`kpi`,`callout`,`note`,`insightcard`]),y=3;function b(e){let t=e.spec.blocks??[],n=[{icon:`ask`,text:e.question}];for(let e of t.slice(0,y))n.push({icon:v.has(e.type)?`finding`:`evidence`,text:i(e)});return{moments:n,more:Math.max(0,t.length-y)}}var x=t(),S=[`var(--presence)`,`var(--insight)`,`var(--warning)`];function C(e){let t=(0,u.c)(3),{icon:n}=e;if(n===`ask`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,x.jsx)(r.mic,{}),t[0]=e):e=t[0],e}let i=n===`finding`?`✦`:`⊞`,a;return t[1]===i?a=t[2]:(a=(0,x.jsx)(`span`,{"aria-hidden":!0,children:i}),t[1]=i,t[2]=a),a}function w(e){let{moments:t}=b(e);return[e.title,e.question,...t.map(e=>e.text)].join(` `).toLowerCase()}var T=10080*60*1e3,E=6,D=4;function O({entry:e,accent:t,onResume:n,onRemove:i}){let{moments:a,more:o}=b(e),s=e.spec.blocks.length;return(0,x.jsxs)(`div`,{className:`lib-card`,style:{"--lib-accent":t},children:[(0,x.jsxs)(`button`,{type:`button`,className:`lib-open`,onClick:()=>n(e),"aria-label":`Resume "${e.title||e.question}"`,children:[(0,x.jsxs)(`div`,{className:`lib-card-head`+(i?` has-remove`:``),children:[(0,x.jsx)(`span`,{className:`lib-dot`}),(0,x.jsx)(`span`,{className:`lib-card-title`,children:e.title||e.question}),(0,x.jsx)(`span`,{className:`lib-count tab-num`,children:s})]}),(0,x.jsxs)(`ul`,{className:`lib-moments`,children:[a.map((e,t)=>(0,x.jsxs)(`li`,{className:`lib-moment`,children:[(0,x.jsx)(`span`,{className:`lib-moment-icon`,children:(0,x.jsx)(C,{icon:e.icon})}),(0,x.jsx)(`span`,{className:`lib-moment-text`,children:e.text})]},t)),o>0&&(0,x.jsxs)(`li`,{className:`lib-moment lib-moment-more`,children:[`+ `,o,` more `,o===1?`moment`:`moments`]})]}),(0,x.jsxs)(`div`,{className:`lib-meta`,children:[(0,x.jsxs)(`span`,{children:[`saved `,c(e.savedAt)]}),(0,x.jsx)(`span`,{className:`lib-resume`,children:`Resume →`})]})]}),i&&(0,x.jsx)(`button`,{type:`button`,className:`lib-remove`,"aria-label":`Remove "${e.title||e.question}" from your library`,onClick:()=>i(e.id),children:(0,x.jsx)(r.x,{})})]})}function k({group:e,accent:t,onResume:n,onRemove:i}){let[a,o]=(0,l.useState)(!1),s=a?e.entries:e.entries.slice(0,D),u=e.entries.length-s.length,d=e.entries.length,f=e.entries[0];return(0,x.jsxs)(`div`,{className:`lib-card lib-group`,style:{"--lib-accent":t},children:[(0,x.jsxs)(`div`,{className:`lib-card-head`,children:[(0,x.jsx)(`span`,{className:`lib-dot`}),(0,x.jsx)(`span`,{className:`lib-card-title`,children:e.name}),(0,x.jsx)(`span`,{className:`lib-count tab-num`,"aria-label":`${d} conversations`,children:d})]}),(0,x.jsxs)(`ul`,{className:`lib-sessions`,children:[s.map(e=>(0,x.jsxs)(`li`,{className:`lib-session`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`lib-session-open`,onClick:()=>n(e),"aria-label":`Resume "${e.title||e.question}"`,children:[(0,x.jsx)(`span`,{className:`lib-session-title`,children:e.title||e.question}),(0,x.jsx)(`span`,{className:`lib-session-ago`,children:c(e.savedAt)})]}),i&&(0,x.jsx)(`button`,{type:`button`,className:`lib-session-remove`,"aria-label":`Remove "${e.title||e.question}" from your library`,onClick:()=>i(e.id),children:(0,x.jsx)(r.x,{})})]},e.id)),u>0&&(0,x.jsx)(`li`,{children:(0,x.jsxs)(`button`,{type:`button`,className:`lib-session-more`,onClick:()=>o(!0),children:[`+ `,u,` more `,u===1?`conversation`:`conversations`]})})]}),(0,x.jsxs)(`div`,{className:`lib-meta`,children:[(0,x.jsxs)(`span`,{children:[`latest `,c(f.savedAt)]}),(0,x.jsxs)(`span`,{className:`lib-group-count`,children:[d,` conversation`,d===1?``:`s`]})]})]})}function A({entries:e,onResume:t,onRemove:n,heading:r=`Your library`,sub:i}){let[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(`recent`),[u,d]=(0,l.useState)(!1),f=(0,l.useMemo)(()=>new Map(e.map(e=>[e.id,w(e)])),[e]),p=(0,l.useMemo)(()=>{let t=a.trim().toLowerCase(),n=t?e.filter(e=>(f.get(e.id)??``).includes(t)):e;return s===`topic`?_(n):n.map(e=>({id:e.id,name:e.title||e.question,entries:[e]}))},[e,f,a,s]),m=!u&&!a.trim()&&p.length>E,h=m?p.slice(0,E):p;if(e.length===0)return null;let g=e.filter(e=>Date.now()-e.savedAt<T).length,v=e.length>=3;return(0,x.jsxs)(`section`,{className:`library`,"aria-label":`Your library`,children:[(0,x.jsxs)(`div`,{className:`library-head`,children:[(0,x.jsx)(`h2`,{className:`library-title`,children:r}),(0,x.jsx)(`p`,{className:`library-sub`,children:i??`Every canvas stays here after the conversation — tap one to pick it back up.`}),(0,x.jsxs)(`p`,{className:`library-count`,children:[g,` this week · `,e.length,` all time`]})]}),v&&(0,x.jsxs)(`div`,{className:`library-tools`,children:[(0,x.jsxs)(`label`,{className:`lib-search`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,children:`⌕`}),(0,x.jsx)(`input`,{type:`search`,value:a,onChange:e=>o(e.target.value),placeholder:`Search moments`,"aria-label":`Search your conversations`})]}),(0,x.jsx)(`div`,{className:`lib-tabs`,role:`tablist`,"aria-label":`Sort conversations`,children:[`recent`,`topic`].map(e=>(0,x.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":s===e,className:`lib-tab`+(s===e?` on`:``),onClick:()=>c(e),children:e===`recent`?`Recent`:`By topic`},e))})]}),h.length===0&&(0,x.jsxs)(`p`,{className:`library-none`,children:[`Nothing matches “`,a.trim(),`” — try fewer words.`]}),(0,x.jsx)(`div`,{className:`library-grid`,children:h.map((e,r)=>{let i=S[r%S.length];return e.entries.length===1?(0,x.jsx)(O,{entry:e.entries[0],accent:i,onResume:t,onRemove:n},e.id):(0,x.jsx)(k,{group:e,accent:i,onResume:t,onRemove:n},e.id)})}),m&&(0,x.jsxs)(`button`,{type:`button`,className:`lib-more-btn`,onClick:()=>d(!0),children:[`Show all `,p.length]})]})}export{A as Library};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-
|
|
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{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./portal-BndazODr.js";import{Library as a}from"./Library-CJTnp1pC.js";var o=e(),s=n(),c=t();function l(e){let t=(0,s.c)(21),{entries:n,onResume:l,onRemove:u,onClose:d}=e,f=(0,o.useRef)(null),p=(0,o.useRef)(null),m,h;if(t[0]===d?(m=t[1],h=t[2]):(m=()=>{p.current=document.activeElement??null;let e=e=>{e.key===`Escape`&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),(f.current?.querySelector(`input, button, [tabindex]`))?.focus(),()=>{window.removeEventListener(`keydown`,e),p.current?.focus?.()}},h=[d],t[0]=d,t[1]=m,t[2]=h),(0,o.useEffect)(m,h),n.length===0)return null;let g;t[3]===d?g=t[4]:(g=e=>{e.target===e.currentTarget&&d()},t[3]=d,t[4]=g);let _;t[5]===d?_=t[6]:(_=e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),d())},t[5]=d,t[6]=_);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(r.x,{}),t[7]=v):v=t[7];let y;t[8]===d?y=t[9]:(y=(0,c.jsx)(`button`,{type:`button`,className:`lib-ov-close`,onClick:d,"aria-label":`Close past conversations`,title:`Close`,children:v}),t[8]=d,t[9]=y);let b;t[10]!==n||t[11]!==u||t[12]!==l?(b=(0,c.jsx)(a,{entries:n,onResume:l,onRemove:u,heading:`Past conversations`,sub:`Pick any earlier answer to step back into it — everything stays on this device.`}),t[10]=n,t[11]=u,t[12]=l,t[13]=b):b=t[13];let x;t[14]!==y||t[15]!==b?(x=(0,c.jsxs)(`div`,{className:`lib-ov-panel`,role:`dialog`,"aria-modal":`true`,"aria-label":`Past conversations`,ref:f,children:[y,b]}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;return t[17]!==g||t[18]!==_||t[19]!==x?(S=(0,c.jsx)(i,{children:(0,c.jsx)(`div`,{className:`lib-ov-scrim`,onClick:g,role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:_,children:x})}),t[17]=g,t[18]=_,t[19]=x,t[20]=S):S=t[20],S}export{l as LibraryOverlay};
|