@mavea/mavea 2.0.1 → 2.1.0
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 +75 -0
- package/PRIVACY.md +9 -2
- package/README.md +13 -1
- package/SECURITY.md +1 -1
- package/TERMS.md +4 -2
- package/TRADEMARKS.md +3 -1
- package/dist/.vite/manifest.json +898 -858
- package/dist/assets/AnnotationLayer-BRYhJ1LB.css +1 -0
- package/dist/assets/AnnotationLayer-Bh1yiSAK.js +2 -0
- package/dist/assets/{AppCommandPalette-Cucwjk5N.js → AppCommandPalette-DS4sLY_K.js} +1 -1
- package/dist/assets/{AtlasView-DO_p0TdZ.js → AtlasView-CYZ9sfXb.js} +1 -1
- package/dist/assets/BlockEmpty-B-giiUPy.js +1 -0
- package/dist/assets/{CadenceCard-DxceyiPA.js → CadenceCard-j1V7XOxX.js} +1 -1
- package/dist/assets/{CheckLogRail-vq2lZ7a5.js → CheckLogRail-onH7DaxW.js} +1 -1
- package/dist/assets/{CommandPalette-Bs6tpdZl.js → CommandPalette-Cz8h94Jd.js} +1 -1
- package/dist/assets/ConversationVideoStudio-adb7legp.js +1 -0
- package/dist/assets/CourseLessonReader-CkzViEij.js +2 -0
- package/dist/assets/CourseLessonReader-DNHFQOkX.css +1 -0
- package/dist/assets/{CourseRail-CUa7uIGG.css → CourseRail-BDQIWara.css} +1 -1
- package/dist/assets/{CourseRail-BQmUsG6v.js → CourseRail-DD8gtAn4.js} +1 -1
- package/dist/assets/CoursesApp-B0HFM8Al.js +2 -0
- package/dist/assets/{DashPresent-DZcRdu6R.js → DashPresent-BdOJ7F9D.js} +1 -1
- package/dist/assets/DashboardDetail-Chrpi1Yk.js +2 -0
- package/dist/assets/DashboardLoopGate-B01Hpm7O.js +2 -0
- package/dist/assets/DashboardLoopRuntime-BcdZtIgH.js +1 -0
- package/dist/assets/{DashboardSettings-DJon1Q4o.js → DashboardSettings-5tn-dw6G.js} +1 -1
- package/dist/assets/DashboardsApp--jjj-GVX.js +2 -0
- package/dist/assets/DeepZoomApp-BpQbKTjc.js +37 -0
- package/dist/assets/DelegatePanel-e4y0CJsn.js +33 -0
- package/dist/assets/{DemoGallery-BcQ9yz2u.js → DemoGallery-DF1ShRG4.js} +1 -1
- package/dist/assets/{DropSelect-GKioj__f.js → DropSelect-D3Q9Su_x.js} +1 -1
- package/dist/assets/{ExportModal-1pWr-c7I.js → ExportModal-DkmyBpeN.js} +1 -1
- package/dist/assets/ExportModal-sX8MPVPW.css +1 -0
- package/dist/assets/{ExtractionPreview-TKyfEqwM.js → ExtractionPreview-C6F1q3qG.js} +2 -2
- package/dist/assets/FeatureUseNotice-CCI4mM39.js +1 -0
- package/dist/assets/{FlagshipCommandPalette-D1pv3hfZ.js → FlagshipCommandPalette-BkjvGrKT.js} +1 -1
- package/dist/assets/{FlagshipShowcase-CCFFcaL7.js → FlagshipShowcase-Dx2noFrP.js} +1 -1
- package/dist/assets/{FlashcardsApp-Dbe-8UkQ.js → FlashcardsApp-C1TeLlkY.js} +1 -1
- package/dist/assets/GalleryApp-7oBldBKU.js +1 -0
- package/dist/assets/{HonestByDesign-ByOR1sRQ.js → HonestByDesign-DlRrxgrO.js} +1 -1
- package/dist/assets/{HowItWorks-Dllc30ph.js → HowItWorks-BM2yn2dq.js} +1 -1
- package/dist/assets/LegalApp-DPfTD0jz.js +1 -0
- package/dist/assets/{LegalMarkdownDocument-CmxHsXlb.js → LegalMarkdownDocument-DJgwmK1q.js} +1 -1
- package/dist/assets/{LegalPageShell-CDD6D6T_.js → LegalPageShell-DuIwSVSJ.js} +1 -1
- package/dist/assets/Library-CDgWdTiF.js +1 -0
- package/dist/assets/{LibraryOverlay-CHmubwG3.js → LibraryOverlay-DsLhiJzF.js} +1 -1
- package/dist/assets/LiveApp-CEaISHEZ.css +1 -0
- package/dist/assets/LiveApp-DNYYimuo.js +79 -0
- package/dist/assets/LiveSettings-CDHQnEtF.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-BLRBWsTz.js → MindMapViewerDrawer-C3BgiubE.js} +1 -1
- package/dist/assets/{MindShape-CaDuLyGa.js → MindShape-DVlgSR1B.js} +1 -1
- package/dist/assets/{PinToDashboard-ChK2Ou73.js → PinToDashboard-Dd_egidB.js} +1 -1
- package/dist/assets/{PlanReview-Dg6VE0xF.js → PlanReview-wOsBpofo.js} +1 -1
- package/dist/assets/PresentationDeck-BSMzp5T9.js +1 -0
- package/dist/assets/PrismApp-DbbDNVpy.js +2 -0
- package/dist/assets/{PrismAskController-C4MuB8om.js → PrismAskController-BgwijoI2.js} +1 -1
- package/dist/assets/PrismBriefingPlayer-B1_ziOwl.js +2 -0
- package/dist/assets/PrismOverlay-5ZVXu4WL.css +1 -0
- package/dist/assets/PrismOverlay-DLxvsh9l.js +105 -0
- package/dist/assets/PrismWorkbench-ZlhI7Mhw.js +1 -0
- package/dist/assets/{PrivacyApp-CBPMqUEA.js → PrivacyApp-Ki_5bM9Z.js} +10 -3
- package/dist/assets/ReplayCard-WKBKeSKc.js +2 -0
- package/dist/assets/ReplayOverlay-PFSJv540.js +1 -0
- package/dist/assets/{RewindOverlay-BO7YgDsW.js → RewindOverlay-okltPbfw.js} +1 -1
- package/dist/assets/{RippleApp-BnIUhIA0.js → RippleApp-DqVyZYKV.js} +2 -2
- package/dist/assets/{RippleAskController-BzdwYcYY.js → RippleAskController-BqnazbZ7.js} +1 -1
- package/dist/assets/{RippleOverlay-C9W7uVOp.js → RippleOverlay-4McJCSV8.js} +2 -2
- package/dist/assets/{SeeDontRead-ByW9HnOj.js → SeeDontRead-gARjJuF7.js} +1 -1
- package/dist/assets/ShareModal-C5HVVMtQ.js +2 -0
- package/dist/assets/{ShipCourse-CT_F9oJH.js → ShipCourse-BUm4TKUk.js} +1 -1
- package/dist/assets/{SignatureLoop-DejFTZ-Y.js → SignatureLoop-CYspJuij.js} +1 -1
- package/dist/assets/SynthesisApp-BNhF9aJ2.js +2 -0
- package/dist/assets/SynthesisOverlay-Bvwdc8uQ.js +66 -0
- package/dist/assets/TemplatePicker-DBa4lkpf.js +1 -0
- package/dist/assets/{TermsApp-ZzlhrXhd.js → TermsApp-BvwDtgIz.js} +5 -3
- package/dist/assets/TopicCanvas-Cwc6-K3q.js +2 -0
- package/dist/assets/{TourPrism-Cng4h9Ly.js → TourPrism-CCjys3-x.js} +1 -1
- package/dist/assets/{TrackerTile-DuUsFQTj.js → TrackerTile-B4j5qtop.js} +2 -2
- package/dist/assets/{TwoSurfaces-BeYMvVuX.js → TwoSurfaces-fGm1MJrD.js} +1 -1
- package/dist/assets/WorldOverlay-CLWtwuSl.css +1 -0
- package/dist/assets/WorldOverlay-JOp1rLyU.js +2 -0
- package/dist/assets/{WowFeatures-D58JgpLg.js → WowFeatures-D5dJvp9W.js} +1 -1
- package/dist/assets/{ZoomDeck-CPG2XQhr.js → ZoomDeck-DYmkT0TA.js} +1 -1
- package/dist/assets/{alternateFinishes-Cgks49KV.js → alternateFinishes-BHcX08Hs.js} +2 -2
- package/dist/assets/annotationAuto-B8_I3PNS.js +1 -0
- package/dist/assets/annotationReel-BA8Fv9Or.js +1 -0
- package/dist/assets/audioTrack-BJ2D_nuy.js +1 -0
- package/dist/assets/{BlockEmpty-B82uCse8.js → axis-DHAV38YM.js} +1 -1
- package/dist/assets/backup-DkCsHNEE.js +1 -0
- package/dist/assets/cache-7UEbF3S6.js +1 -0
- package/dist/assets/canvas-CYrbzF43.js +1 -0
- package/dist/assets/capture-Y6Qm8zCN.js +2 -0
- package/dist/assets/{catalog-DfIYAG3v.js → catalog-CRekRbKO.js} +1 -1
- package/dist/assets/chapters-DcdG3Lu8.js +1 -0
- package/dist/assets/{codeContext-goNoLAIr.js → codeContext-CFnI3GLf.js} +1 -1
- package/dist/assets/{confirmAdd-CxWIORcu.js → confirmAdd-D-TTCQ31.js} +1 -1
- package/dist/assets/contentVault-XKWjF2FB.js +1 -0
- package/dist/assets/{dashboardEvents-D1OP4ARB.js → dashboardEvents-MzCzak6K.js} +1 -1
- package/dist/assets/{deepen-BhP9OmH3.js → deepen-FZiVqiEc.js} +1 -1
- package/dist/assets/effort-BftNJCCV.js +39 -0
- package/dist/assets/empty-D51uhW0E.js +1 -0
- package/dist/assets/explode-niun7Zqc.js +15 -0
- package/dist/assets/{format-g3dP8OI3.js → format-BkvssSOr.js} +1 -1
- package/dist/assets/{generate-COfYQFmT.js → generate-BZobrQPX.js} +1 -1
- package/dist/assets/{generateBeats-CtffeoEa.js → generateBeats-Dqtfd8HC.js} +1 -1
- package/dist/assets/generateCourse-DPL0bO3L.js +28 -0
- package/dist/assets/generateLive-B7nlaqz8.js +24 -0
- package/dist/assets/{gesture-Bouqjr3g.js → gesture-BBS5nQEi.js} +2 -2
- package/dist/assets/{githubBrowser-BDiuD9dz.js → githubBrowser-CErQprLW.js} +1 -1
- package/dist/assets/homeTarget-CDc-r2mj.js +1 -0
- package/dist/assets/http-Bqk6nJiH.js +2 -0
- package/dist/assets/index-CFE0vqqO.css +1 -0
- package/dist/assets/{index-CdUH6Eo9.js → index-Db-FgYxX.js} +4 -4
- package/dist/assets/json-J4Y32_i9.js +1 -0
- package/dist/assets/kokoro-yB7iU_JU.js +1 -0
- package/dist/assets/{ledger-Cv0LBflx.js → ledger-DHS2di3l.js} +1 -1
- package/dist/assets/lens-DyGK7Owa.js +1 -0
- package/dist/assets/{lib-u95BsX_B.js → lib-Dkb5WBRc.js} +1 -1
- package/dist/assets/liveSchema-Z_39HuDI.js +125 -0
- package/dist/assets/{loader-ChcXMM9W.js → loader-Ciz6XbG-.js} +2 -2
- package/dist/assets/{model-CAewjw45.js → model-FR-9md4s.js} +1 -1
- package/dist/assets/{neighborhoods-CqECCmo8.js → neighborhoods-B56WegJs.js} +1 -1
- package/dist/assets/notes-CEloxKQ3.js +1 -0
- package/dist/assets/offers-eBNj_lSP.js +1 -0
- package/dist/assets/{openWorld-BHTJM39n.js → openWorld-B4VY6xO7.js} +1 -1
- package/dist/assets/{owners-HRBX7JN_.js → owners-CP-4Q59L.js} +1 -1
- package/dist/assets/{pen-DtEW1xf4.js → pen-UKrUHlDA.js} +1 -1
- package/dist/assets/{penStrokes-DlHnO9xE.js → penStrokes-CTC3AYiz.js} +1 -1
- package/dist/assets/{perfProbe-DaLsQQBb.js → perfProbe-DrOeB7yd.js} +1 -1
- package/dist/assets/{pin-BcKMUOiV.js → pin-C5_s4Ju5.js} +1 -1
- package/dist/assets/{planTracker-BwoKEftp.js → planTracker-BA-x4jbw.js} +1 -1
- package/dist/assets/{portal-BIN_aqvw.js → portal-TqJbr2rR.js} +1 -1
- package/dist/assets/prewarm-Bt5X_9CM.js +1 -0
- package/dist/assets/providers-CPhoN8j0.js +1 -0
- package/dist/assets/quietHours-LtXDl4-v.js +1 -0
- package/dist/assets/{ready-yBSGJubb.js → ready-_sg3IJkE.js} +1 -1
- package/dist/assets/{registry-DdgeK4fY.js → registry-BHDUu15I.js} +1 -1
- package/dist/assets/{registry-C8FuGbOr.js → registry-BPLbZIVz.js} +1 -1
- package/dist/assets/registry-BQuygaKz.js +1 -0
- package/dist/assets/registry-B_wlsfxh.js +1 -0
- package/dist/assets/{registry-Bl2qfp5V.js → registry-Bjf2Ggs6.js} +1 -1
- package/dist/assets/{registry-CE1T0z9x.js → registry-BmjYillB.js} +1 -1
- package/dist/assets/{registry-DGNSqTxE.js → registry-BodYWiga.js} +1 -1
- package/dist/assets/{registry-Dt0wu9rC.js → registry-BwlvYVHq.js} +1 -1
- package/dist/assets/{registry-CcHxIYQN.js → registry-BxkAuBx8.js} +1 -1
- package/dist/assets/{registry-BdHj_oIs.js → registry-C3bIc5Kp.js} +1 -1
- package/dist/assets/{registry-BFQQpjO2.js → registry-CfIJ9dJS.js} +1 -1
- package/dist/assets/{registry-CvylL2BN.css → registry-CmWPyj7Q.css} +1 -1
- package/dist/assets/{registry-BDXwUn3i.js → registry-CvtHBjkb.js} +1 -1
- package/dist/assets/{registry-Dd1lcXrO.js → registry-Cz5cZREW.js} +2 -2
- package/dist/assets/{registry-DdVZGvkL.js → registry-Di1fTdpi.js} +1 -1
- package/dist/assets/registry-GxnzELw0.js +1 -0
- package/dist/assets/{registry-Cgo4C0ux.js → registry-JRteQJcE.js} +1 -1
- package/dist/assets/registry-MwJlqlFZ.js +1 -0
- package/dist/assets/{registry-B53EEn8S.js → registry-YrewlFlo.js} +1 -1
- package/dist/assets/{registry-qRfnKTt4.js → registry-uiAoJKXu.js} +1 -1
- package/dist/assets/{relate-CqYpFpsO.js → relate-CCma73G9.js} +1 -1
- package/dist/assets/{replay-NognvQfM.js → replay-dMDmsTaD.js} +1 -1
- package/dist/assets/{run-CwMSPOps.js → run-BVgCc5Xi.js} +1 -1
- package/dist/assets/{run-DCQrxgHA.js → run-CW67JOGe.js} +1 -1
- package/dist/assets/{run-CuHaB8wF.js → run-DqsfL9JC.js} +1 -1
- package/dist/assets/{select-Dp-OeZfq.js → select-BuqyXI8k.js} +1 -1
- package/dist/assets/sentenceCase-CLDiNB0f.js +1 -0
- package/dist/assets/shard070-BmNyRhxw.js +1 -0
- package/dist/assets/spokenText-Dy-GZvZV.js +1 -0
- package/dist/assets/store-C9s8Bfz0.js +1 -0
- package/dist/assets/store-CgA7mKy1.js +1 -0
- package/dist/assets/store-D16dGt7I.js +1 -0
- package/dist/assets/{store-BWLbFXiY.js → store-DqOaVRLn.js} +1 -1
- package/dist/assets/store-gfPI5TVE.js +1 -0
- package/dist/assets/useDashboardLoop-Cnxmf7wU.js +5 -0
- package/dist/assets/{useDashboards-lgQnk2Al.js → useDashboards-B-EjE8FH.js} +1 -1
- package/dist/assets/{useLedger-1WVXef68.js → useLedger-D4cXEwI0.js} +1 -1
- package/dist/assets/useLiveConfig-CvOQTr0s.js +1 -0
- package/dist/assets/useStudy-70Iz4ZVn.js +1 -0
- package/dist/assets/validate-MQG0EcTD.js +4 -0
- package/dist/assets/walkSync-D6leFb_u.js +1 -0
- package/dist/fonts/LICENSE.txt +2 -0
- package/dist/fonts/PROVENANCE.md +1 -0
- package/dist/fonts/caveat-var-latin.woff2 +0 -0
- package/dist/fonts/fonts.css +10 -0
- package/dist/index.html +6 -2
- package/dist/legal/PRIVACY.md +9 -2
- package/dist/legal/SECURITY.md +1 -1
- package/dist/legal/TERMS.md +4 -2
- package/dist/legal/TRADEMARKS.md +3 -1
- package/docs/media/go-hub.jpg +0 -0
- package/docs/media/living-answer.jpg +0 -0
- package/package.json +1 -1
- package/dist/assets/AnnotationLayer-BsAcAd59.js +0 -0
- package/dist/assets/AnnotationLayer-ClU-e6qL.css +0 -1
- package/dist/assets/BriefingPlayer-74mRKyjl.js +0 -1
- package/dist/assets/ConversationVideoStudio-Df892wqs.js +0 -1
- package/dist/assets/CourseLessonReader-COmTQdSK.css +0 -1
- package/dist/assets/CourseLessonReader-DKQimh2S.js +0 -2
- package/dist/assets/CoursesApp-LeqL6dWT.js +0 -2
- package/dist/assets/DashboardDetail-2XL-J4rS.js +0 -2
- package/dist/assets/DashboardLoopGate-B95S4oKR.js +0 -2
- package/dist/assets/DashboardLoopRuntime-Wzk85QXi.js +0 -1
- package/dist/assets/DashboardsApp-ZGuT2QBi.js +0 -2
- package/dist/assets/DeepZoomApp-CPOsar8c.js +0 -37
- package/dist/assets/DelegatePanel-BkTtUMSl.js +0 -33
- package/dist/assets/ExportModal-D4WpAg2c.css +0 -1
- package/dist/assets/FeatureUseNotice-pQe4YHgJ.js +0 -1
- package/dist/assets/GalleryApp-CCLYcEqn.js +0 -1
- package/dist/assets/LegalApp-CpblxmmB.js +0 -1
- package/dist/assets/Library-CVj7R6F4.js +0 -1
- package/dist/assets/LiveApp-CSbjhgzM.js +0 -79
- package/dist/assets/LiveApp-CziqEsOb.css +0 -1
- package/dist/assets/LiveSettings-B4T6x41n.js +0 -6
- package/dist/assets/PresentationDeck-oEd6TXdN.js +0 -1
- package/dist/assets/PrismApp-Bju264hL.js +0 -2
- package/dist/assets/PrismBriefingPlayer-BY0RREUu.js +0 -2
- package/dist/assets/PrismOverlay-BwnF4BEn.css +0 -1
- package/dist/assets/PrismOverlay-DOWyOUVW.js +0 -105
- package/dist/assets/PrismWorkbench-9RonO2uv.js +0 -1
- package/dist/assets/ReplayCard-BnX73r9n.js +0 -2
- package/dist/assets/ReplayOverlay-B-Ok0mEs.js +0 -1
- package/dist/assets/ShareModal-Mo-dkgAZ.js +0 -2
- package/dist/assets/SynthesisApp-6W04mrMU.js +0 -2
- package/dist/assets/SynthesisOverlay-DDyFFiO8.js +0 -66
- package/dist/assets/TopicCanvas-CkqP92SC.js +0 -2
- package/dist/assets/WorldOverlay-D7ay5y4D.css +0 -1
- package/dist/assets/WorldOverlay-DeVpS8HE.js +0 -2
- package/dist/assets/annotationAuto-B2UdfJNj.js +0 -1
- package/dist/assets/annotationReel-K2FYv-3B.js +0 -1
- package/dist/assets/backup-CtEvuZoL.js +0 -1
- package/dist/assets/cache-CvbSI-pr.js +0 -1
- package/dist/assets/canvas-Ct-O9Jok.js +0 -1
- package/dist/assets/capture-CgaD86-q.js +0 -2
- package/dist/assets/chapters-CIvdCeBC.js +0 -1
- package/dist/assets/contentVault-xfUwSJ3i.js +0 -1
- package/dist/assets/effort-Bqti44UZ.js +0 -39
- package/dist/assets/empty-BO1NC9qY.js +0 -1
- package/dist/assets/explode-CPnvJiTg.js +0 -15
- package/dist/assets/friendlyAsk-BBdRZIar.js +0 -1
- package/dist/assets/generateCourse-BldPpgdh.js +0 -28
- package/dist/assets/generateLive-D5M8v38b.js +0 -24
- package/dist/assets/homeTarget-CwFsJYwb.js +0 -1
- package/dist/assets/http-Lar_UMKb.js +0 -2
- package/dist/assets/index-BIUYTk1W.css +0 -1
- package/dist/assets/json-B0N3XRZU.js +0 -1
- package/dist/assets/kokoro-D15HDMcP.js +0 -1
- package/dist/assets/lens-ChFJD9il.js +0 -1
- package/dist/assets/liveSchema-B8Y9HZxd.js +0 -100
- package/dist/assets/notes-BG5pIVAJ.js +0 -1
- package/dist/assets/prewarm-CyvSJKv4.js +0 -1
- package/dist/assets/providers-0DthJW_I.js +0 -1
- package/dist/assets/quietHours-D1nboK5q.js +0 -1
- package/dist/assets/registry-BQzvA61G.js +0 -1
- package/dist/assets/registry-CPImC7mO.js +0 -1
- package/dist/assets/registry-DPBJYRmC.js +0 -1
- package/dist/assets/registry-QbArAJKB.js +0 -1
- package/dist/assets/shard070-Dm9m2a5U.js +0 -1
- package/dist/assets/spokenText-C88IQJ0M.js +0 -1
- package/dist/assets/store-Ba9vzL4H.js +0 -1
- package/dist/assets/store-BwyOArJl.js +0 -1
- package/dist/assets/store-D-f8ZuaK.js +0 -1
- package/dist/assets/store-ruEsXJjU.js +0 -1
- package/dist/assets/useDashboardLoop-C3iCNS8X.js +0 -5
- package/dist/assets/useLiveConfig-B4CmBiAK.js +0 -1
- package/dist/assets/useStudy-CwCIyiTb.js +0 -1
- package/dist/assets/validate-sGUCmPAs.js +0 -4
- package/dist/assets/walkSync-DC9iE0BX.js +0 -1
- /package/dist/assets/{BriefingPlayer-DHV4vMga.css → PrismBriefingPlayer-DHV4vMga.css} +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{R as r,l as i}from"./index-CdUH6Eo9.js";import{n as a}from"./spokenText-C88IQJ0M.js";import{t as o}from"./useFocusTrap-CJmpNZv2.js";import{t as s}from"./Presence-UqXfH4Y-.js";import{w as c}from"./kokoro-D15HDMcP.js";import{t as l}from"./FeatureUseNotice-pQe4YHgJ.js";import{t as u}from"./providers-0DthJW_I.js";var d=e(),f=t(),p=1600,m=1300;function h(e){let t=`right`,n=e.speaking;return n?.side===`yours`?n.pointing?{state:`acting`,emotion:`focused`,gaze:t}:{state:`speaking`,emotion:`focused`,gaze:t}:n?.side===`theirs`?{state:`idle`,emotion:n.offer?`curious`:`neutral`,gaze:t}:e.whoseTurn===`yours`?{state:`thinking`,emotion:e.guarded?`concerned`:`focused`,gaze:t}:{state:`idle`,emotion:`neutral`,gaze:t}}function g(e){let t=`left`,n=e.speaking;return n?.side===`theirs`?{state:`speaking`,emotion:n.offer?`focused`:`neutral`,gaze:t}:n?.side===`yours`?{state:`idle`,emotion:n.offer?`curious`:`neutral`,gaze:t}:e.whoseTurn===`theirs`?{state:`thinking`,emotion:`neutral`,gaze:t}:{state:`idle`,emotion:e.guarded?`curious`:`neutral`,gaze:t}}function _(e){switch(e.kind){case`running`:return{yours:h(e),theirs:g(e)};case`deal`:return{yours:{state:`idle`,emotion:`celebrate`,gaze:`center`},theirs:{state:`idle`,emotion:`warm`,gaze:`center`}};case`approved`:return{yours:{state:`idle`,emotion:`warm`,gaze:`center`},theirs:{state:`idle`,emotion:`neutral`,gaze:`center`}};case`nodeal`:return{yours:{state:`idle`,emotion:e.boundaryHeld?`focused`:`concerned`,gaze:`center`},theirs:{state:`idle`,emotion:`neutral`,gaze:`center`}};case`stopped`:return{yours:{state:`idle`,emotion:`sleepy`,gaze:`down`},theirs:{state:`idle`,emotion:`sleepy`,gaze:`down`}}}}function v(e){return[`You are role-playing the OTHER SIDE of a conversation the user is rehearsing: ${e.counterpart}.`,`The conversation: ${e.scenario}.`,`Ground everything in this context the user supplied — and NOTHING else:`,`"""${e.context||`(none given)`}"""`,`If the context does not tell you how this person would react, play a realistic, generic version of the role — never invent specific facts, history, or quotes about the real person.`,`Stay in character. Push back the way this role realistically would; do not cave easily, do not be cartoonishly hostile.`,`The reply is displayed AND spoken. Keep normal spelling on screen, but wrap every name, place, brand, or non-English term a voice might mispronounce as [[shown|said]] — for example [[Omakase|oh-mah-kah-seh]]. The said side must be lowercase voice-safe syllables matching a native/source-language pronunciation, never IPA or an Anglicized guess.`,`Reply ONLY with JSON: {"reply":"what you say next, 1-3 sentences, spoken language"}. No other keys, no prose outside the JSON.`].join(`
|
|
2
|
-
`)}function y(){return[`You are a direct, warm conversation coach. The user just finished a practice take of a hard conversation.`,`Judge ONLY what is in the transcript — quote or reference their actual words; never invent things they said.`,`If an earlier take summary is given, say concretely what improved or regressed since it.`,`Reply ONLY with JSON: {"note":"how this take went, 1-2 sentences","tip":"ONE concrete thing to do differently next take, 1-2 sentences"}.`].join(`
|
|
3
|
-
`)}var b=900,x=1e3;function ee(e){try{return typeof e==`string`?JSON.parse(e.match(/\{[\s\S]*\}/)?.[0]??`{}`):e}catch{return{}}}function S(e){return e.map(e=>({role:e.who===`you`?`user`:`assistant`,content:e.text}))}async function te(e,t,n,r){try{let i=S(t),a=i.pop();if(!a||a.role!==`user`)return``;let o=await u(n.provider).generate({system:v(e),history:i,user:a.content,maxTokens:b,thinkingLevel:`minimal`,signal:r},n);if(r.aborted)return``;let s=ee(o.raw).reply;return typeof s==`string`?s.trim().slice(0,600):``}catch{return``}}async function C(e,t,n,r,i,a){try{if(!t.some(e=>e.who===`you`))return null;let o=t.map(t=>`${t.who===`you`?`USER`:e.counterpart.toUpperCase()}: ${t.text}`).join(`
|
|
4
|
-
`),s=[`Conversation being rehearsed: ${e.scenario}`,r?`Earlier take, your summary then: ${r}`:null,`Take ${n} transcript:`,o].filter(Boolean).join(`
|
|
5
|
-
`),c=await u(i.provider).generate({system:y(),history:[],user:s,maxTokens:x,thinkingLevel:`minimal`,signal:a},i);if(a.aborted)return null;let l=ee(c.raw),d=typeof l.note==`string`?l.note.trim().slice(0,400):``,f=typeof l.tip==`string`?l.tip.trim().slice(0,400):``;return d&&f?{note:d,tip:f}:null}catch{return null}}function ne(e){return`Debrief: I had the real "${e.scenario}" conversation. Here's what happened: `}var w=n();function re(e){let t=(0,f.c)(112),{setup:n,themLabel:i,cfg:o,speak:u,onDebrief:m,onAdjustBrief:h}=e,g=r(),[v,y]=(0,d.useState)(1),b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=[],t[0]=b):b=t[0];let[x,ee]=(0,d.useState)(b),[S,re]=(0,d.useState)(``),[E,ae]=(0,d.useState)(null),[D,oe]=(0,d.useState)(!1),[O,se]=(0,d.useState)(!1),[k,ce]=(0,d.useState)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),de=(0,d.useRef)(null),A,j;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>()=>{de.current?.abort(),c()},j=[],t[1]=A,t[2]=j):(A=t[1],j=t[2]),(0,d.useEffect)(A,j);let fe;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(fe=()=>{let e=ue.current;e&&(e.scrollTop=e.scrollHeight)},t[3]=fe):fe=t[3];let M;t[4]!==E||t[5]!==x?(M=[x,E],t[4]=E,t[5]=x,t[6]=M):M=t[6],(0,d.useEffect)(fe,M);let[pe,me]=(0,d.useState)(!1),he=(0,d.useRef)(0),ge,_e;t[7]===x?(ge=t[8],_e=t[9]):(ge=()=>{if(x.length===he.current)return;if(he.current=x.length,x[x.length-1]?.who!==`them`){me(!1);return}me(!0);let e=window.setTimeout(()=>me(!1),p);return()=>window.clearTimeout(e)},_e=[x],t[7]=x,t[8]=ge,t[9]=_e),(0,d.useEffect)(ge,_e);let ve=E===`reply`?`theirs`:`yours`,ye;t[10]!==pe||t[11]!==ve?(ye=_({kind:`running`,whoseTurn:ve,guarded:!1,speaking:pe?{side:`theirs`,offer:!1,pointing:!1}:null}),t[10]=pe,t[11]=ve,t[12]=ye):ye=t[12];let be=ye,xe;t[13]!==o||t[14]!==n||t[15]!==u?(xe=async e=>{de.current?.abort();let t=new AbortController;de.current=t,ae(`reply`),oe(!1);let r=await te(n,e,o,t.signal);if(!t.signal.aborted){if(ae(null),!r){oe(!0);return}ee([...e,{who:`them`,text:a(r)}]),u?.(r)}},t[13]=o,t[14]=n,t[15]=u,t[16]=xe):xe=t[16];let Se=xe,Ce;t[17]!==E||t[18]!==S||t[19]!==x||t[20]!==Se?(Ce=()=>{let e=S.trim();if(!e||E)return;re(``),ce(null),se(!1);let t=[...x,{who:`you`,text:e}];ee(t),Se(t)},t[17]=E,t[18]=S,t[19]=x,t[20]=Se,t[21]=Ce):Ce=t[21];let we=Ce,Te;t[22]!==E||t[23]!==o||t[24]!==x||t[25]!==n||t[26]!==v?(Te=async()=>{if(E)return;de.current?.abort();let e=new AbortController;de.current=e,ae(`coach`),se(!1);let t=await C(n,x,v,le.current,o,e.signal);if(!e.signal.aborted){if(ae(null),!t){se(!0);return}ce(t),le.current=t.note,y(ie),ee([])}},t[22]=E,t[23]=o,t[24]=x,t[25]=n,t[26]=v,t[27]=Te):Te=t[27];let Ee=Te,N;t[28]===i?N=t[29]:(N=e=>(0,w.jsxs)(`span`,{className:`dlg-side ${e===`you`?`yours`:`theirs`}`,children:[(0,w.jsx)(`span`,{className:`dlg-avatar`,"aria-hidden":`true`}),(0,w.jsx)(`span`,{className:`dlg-side-text`,children:(0,w.jsx)(`span`,{className:`dlg-side-name`,children:e===`you`?`You`:i})})]}),t[28]=i,t[29]=N);let P=N,De;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,w.jsx)(l,{kind:`simulation`,from:`live`}),t[30]=De):De=t[30];let Oe;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,w.jsxs)(`div`,{className:`dlg-seat yours`,children:[(0,w.jsx)(`span`,{className:`dlg-seat-you`,"aria-hidden":`true`}),(0,w.jsx)(`span`,{className:`dlg-seat-name`,children:`You`})]}),t[31]=Oe):Oe=t[31];let ke;t[32]===v?ke=t[33]:(ke=(0,w.jsx)(`div`,{className:`dlg-meta`,children:(0,w.jsxs)(`span`,{className:`dlg-take-badge`,children:[`Take `,v]})}),t[32]=v,t[33]=ke);let Ae;t[34]===be.theirs?Ae=t[35]:(Ae=(0,w.jsx)(s,{...be.theirs}),t[34]=be.theirs,t[35]=Ae);let je;t[36]!==Ae||t[37]!==g?(je=(0,w.jsx)(`span`,{className:`dlg-jelly ghost`,"aria-hidden":`true`,ref:g,children:Ae}),t[36]=Ae,t[37]=g,t[38]=je):je=t[38];let Me;t[39]===i?Me=t[40]:(Me=(0,w.jsx)(`span`,{className:`dlg-seat-name`,children:i}),t[39]=i,t[40]=Me);let Ne;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,w.jsx)(`span`,{className:`dlg-seat-tag`,children:`in character`}),t[41]=Ne):Ne=t[41];let Pe;t[42]!==je||t[43]!==Me?(Pe=(0,w.jsxs)(`div`,{className:`dlg-seat theirs`,children:[je,Me,Ne]}),t[42]=je,t[43]=Me,t[44]=Pe):Pe=t[44];let Fe;t[45]!==ke||t[46]!==Pe?(Fe=(0,w.jsxs)(`div`,{className:`dlg-tablescape`,children:[Oe,ke,Pe]}),t[45]=ke,t[46]=Pe,t[47]=Fe):Fe=t[47];let Ie;if(t[48]!==P||t[49]!==x){let e;t[51]===P?e=t[52]:(e=(e,t)=>(0,w.jsxs)(`li`,{className:`dlg-turn ${e.who===`you`?`yours`:`theirs`}`,children:[P(e.who),(0,w.jsx)(`p`,{className:`dlg-turn-say`,children:e.text})]},t),t[51]=P,t[52]=e),Ie=x.map(e),t[48]=P,t[49]=x,t[50]=Ie}else Ie=t[50];let F;t[53]!==E||t[54]!==P?(F=E===`reply`&&(0,w.jsxs)(`li`,{className:`dlg-turn theirs thinking`,"aria-hidden":`true`,children:[P(`them`),(0,w.jsxs)(`span`,{className:`dlg-typing`,children:[(0,w.jsx)(`i`,{}),(0,w.jsx)(`i`,{}),(0,w.jsx)(`i`,{})]})]}),t[53]=E,t[54]=P,t[55]=F):F=t[55];let I;t[56]!==D||t[57]!==x||t[58]!==Se?(I=D&&(0,w.jsxs)(`li`,{className:`dlg-failed`,children:[`They didn't respond.`,` `,(0,w.jsx)(`button`,{type:`button`,onClick:()=>void Se(x),children:`Try again`})]}),t[56]=D,t[57]=x,t[58]=Se,t[59]=I):I=t[59];let Le;t[60]!==Ie||t[61]!==F||t[62]!==I?(Le=(0,w.jsxs)(`ol`,{className:`dlg-log`,ref:ue,role:`log`,"aria-live":`polite`,"aria-label":`The take`,children:[Ie,F,I]}),t[60]=Ie,t[61]=F,t[62]=I,t[63]=Le):Le=t[63];let L;t[64]===k?L=t[65]:(L=k&&(0,w.jsxs)(`aside`,{className:`dlg-coach`,"aria-label":`Coach, between takes`,children:[(0,w.jsx)(`span`,{className:`dlg-coach-kicker`,children:`COACH — BETWEEN TAKES`}),(0,w.jsx)(`p`,{className:`dlg-coach-note`,children:k.note}),(0,w.jsx)(`p`,{className:`dlg-coach-tip`,children:k.tip})]}),t[64]=k,t[65]=L);let Re;t[66]===E?Re=t[67]:(Re=E===`coach`&&(0,w.jsx)(`p`,{className:`dlg-coach-wait`,children:`Coach is watching the take back…`}),t[66]=E,t[67]=Re);let R;t[68]!==O||t[69]!==Ee?(R=O&&(0,w.jsxs)(`p`,{className:`dlg-failed`,role:`status`,children:[`The coach didn’t respond — your take is still here.`,` `,(0,w.jsx)(`button`,{type:`button`,onClick:()=>void Ee(),children:`Try again`})]}),t[68]=O,t[69]=Ee,t[70]=R):R=t[70];let ze;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(ze=e=>re(e.target.value),t[71]=ze):ze=t[71];let z;t[72]===we?z=t[73]:(z=e=>{e.key===`Enter`&&we()},t[72]=we,t[73]=z);let Be=x.length===0?`Open the conversation — your first line`:`Your next line`,Ve;t[74]!==S||t[75]!==z||t[76]!==Be?(Ve=(0,w.jsx)(`input`,{value:S,onChange:ze,onKeyDown:z,placeholder:Be,"aria-label":`Your line`}),t[74]=S,t[75]=z,t[76]=Be,t[77]=Ve):Ve=t[77];let B;t[78]!==E||t[79]!==S?(B=!S.trim()||E!==null,t[78]=E,t[79]=S,t[80]=B):B=t[80];let V;t[81]!==we||t[82]!==B?(V=(0,w.jsx)(`button`,{type:`button`,className:`dlg-say`,disabled:B,onClick:we,children:`Say it`}),t[81]=we,t[82]=B,t[83]=V):V=t[83];let H;t[84]!==Ve||t[85]!==V?(H=(0,w.jsxs)(`div`,{className:`dlg-compose`,children:[Ve,V]}),t[84]=Ve,t[85]=V,t[86]=H):H=t[86];let U;t[87]!==E||t[88]!==x?(U=E!==null||!x.some(T),t[87]=E,t[88]=x,t[89]=U):U=t[89];let W;t[90]===Ee?W=t[91]:(W=()=>void Ee(),t[90]=Ee,t[91]=W);let G;t[92]!==U||t[93]!==W?(G=(0,w.jsx)(`button`,{type:`button`,className:`dlg-end-take`,disabled:U,onClick:W,children:`End take · get coached`}),t[92]=U,t[93]=W,t[94]=G):G=t[94];let K;t[95]===h?K=t[96]:(K=(0,w.jsx)(`button`,{type:`button`,className:`dlg-followup-btn ghost`,onClick:h,children:`Adjust the brief`}),t[95]=h,t[96]=K);let q;t[97]!==m||t[98]!==n?(q=m&&(0,w.jsx)(`button`,{type:`button`,className:`dlg-real-debrief`,onClick:()=>m(ne(n)),title:`Had the real conversation? Tell Mavéa how it went.`,children:`Debrief the real one`}),t[97]=m,t[98]=n,t[99]=q):q=t[99];let J;t[100]!==G||t[101]!==K||t[102]!==q?(J=(0,w.jsxs)(`div`,{className:`dlg-take-actions`,children:[G,K,q]}),t[100]=G,t[101]=K,t[102]=q,t[103]=J):J=t[103];let He;return t[104]!==Fe||t[105]!==Le||t[106]!==L||t[107]!==Re||t[108]!==R||t[109]!==H||t[110]!==J?(He=(0,w.jsxs)(`div`,{className:`dlg-table`,"data-seat":`you`,children:[De,Fe,Le,L,Re,R,H,J]}),t[104]=Fe,t[105]=Le,t[106]=L,t[107]=Re,t[108]=R,t[109]=H,t[110]=J,t[111]=He):He=t[111],He}function T(e){return e.who===`you`}function ie(e){return e+1}var E=`Reply with ONLY a JSON object (no prose, no fences):
|
|
6
|
-
{"say": "<ONE short spoken line for the negotiation log>", "offer": "<the full current proposal in plain words, or null>", "decision": "offer" | "accept" | "pass"}
|
|
7
|
-
"accept" means you take the OTHER side's standing offer as-is (only when one exists). "pass" ends the talks with no deal. Keep every "say" under 25 words.`;function ae(e){return`You are the user's Mavéa, negotiating on their behalf with ${e.counterpart}'s side.
|
|
8
|
-
THE GOAL: ${e.goal}
|
|
9
|
-
YOU MAY OFFER (nothing else exists): ${e.mine}
|
|
10
|
-
${e.boundaries.length?`HARD BOUNDARIES — these are NEVER offered, in any form: ${e.boundaries.join(`; `)}`:``}
|
|
11
|
-
You are at the table to REACH an agreement the goal can live with, not to demonstrate firmness: open your first move with a concrete offer near the goal (never pass on your first move), concede in small steps toward the middle, and accept a standing offer when it clearly serves the goal. Walking away is a last resort for a genuinely unacceptable table, not a default. ${E}`}function D(e){return`You are a stand-in negotiator for ${e.counterpart}. Everything you know about ${e.counterpart}'s side: ${e.theirs}
|
|
12
|
-
Argue that side's interest in GOOD FAITH: counter with concrete terms rather than walking away, concede only for real gains, and accept a standing offer when it is genuinely fair to ${e.counterpart}. Never pass on your first move, and never invent assets the brief above doesn't mention. ${E}`}function oe(e){let t=e.indexOf(`{`),n=e.lastIndexOf(`}`);if(t<0||n<=t)return null;try{let r=JSON.parse(e.slice(t,n+1)),i=typeof r.say==`string`?r.say.trim():``,a=typeof r.offer==`string`&&r.offer.trim()?r.offer.trim():null,o=r.decision===`accept`||r.decision===`pass`||r.decision===`offer`?r.decision:`offer`;return i?{say:i,offer:a,decision:o}:null}catch{return null}}var O=e=>e.toLowerCase().replace(/[\s,]/g,``);function se(e,t){let n=O(e);for(let e of t){let t=O(e);if(t&&n.includes(t))return e}return null}function k(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.offer&&(n.side===`yours`||n.side===`theirs`))return{offer:n.offer,by:n.side}}return null}function ce(e){let t=new Set,n=[];for(let r of e.split(/(?<!\d)[,;\n]|[,;\n](?!\d)/)){let e=r.trim();if(!e)continue;let i=e.toLowerCase();t.has(i)||(t.add(i),n.push(e))}return n}function le(e,t){return e.length===0?`(no moves yet — you open)`:e.map(e=>`${e.side===`yours`?`YOUR SIDE`:e.side===`theirs`?`${t.counterpart}'S SIDE`:`—`}: ${e.say}${e.offer?` [standing offer: ${e.offer}]`:``}`).join(`
|
|
13
|
-
`)}async function ue(e,t,n,r){let i=[],a=e=>{i.push(e),n(e)},o=e.maxRounds??8,s=null,c=null,l=0;for(;l<o&&!c&&!r?.aborted;l++){let n=l%2==0?`yours`:`theirs`,o=n===`yours`?ae(e):D(e),u=`Negotiation so far:\n${le(i,e)}\nYour move.`,d=null,f=!i.some(e=>e.side===n),p=!1;for(let i=0;i<3;i++){let i=await t(o,u).catch(()=>``);if(r?.aborted)break;if(d=oe(i),!d){p=!0,u+=`
|
|
14
|
-
Your last reply was not the required JSON object. Reply with ONLY {"say":…, "offer":…, "decision":…} — no prose, no fences.`;continue}if(p=!1,f&&d.decision===`pass`){u+=`
|
|
15
|
-
It is too early to end the talks — the table deserves your best concrete move first. Make an offer or a counter.`,d=null;continue}let s=n===`yours`&&d.offer?se(d.offer,e.boundaries):null;if(!s)break;a({side:`engine`,kind:`boundary`,say:`Withheld — "${s}" is outside your boundary.`}),u+=`\nYour previous offer was WITHHELD: it included "${s}", which is never offered. Make a different move.`,d=null}if(r?.aborted)break;if(!d){a({side:n,kind:`pass`,say:p?`No reply arrived — the run ended early.`:`No further moves.`});break}if(d.decision===`accept`&&s&&s.by!==n){c=s.offer,a({side:n,kind:`accept`,say:d.say,offer:c});break}if(d.decision===`pass`||d.decision===`accept`&&(!s||s.by===n)){a({side:n,kind:`pass`,say:d.say});break}d.offer&&(s={offer:d.offer,by:n}),a({side:n,kind:i.some(e=>e.kind===`offer`||e.kind===`counter`)?`counter`:`offer`,say:d.say,offer:d.offer??void 0})}return{events:i,deal:c,rounds:l}}var de=`Reply with ONLY a JSON object (no prose, no fences):
|
|
16
|
-
{"moved": [{"point": "<an argument the user's side made that the other side visibly responded to>", "turn": <the 1-based line number it happened on>}],
|
|
17
|
-
"exposed": [{"point": "<something the other side pushed that the user's side had no good answer for>", "turn": <line number>}],
|
|
18
|
-
"openers": ["<a line to open the REAL conversation with>", "...", "..."]}
|
|
19
|
-
"moved" and "exposed" may each be an empty array when the transcript doesn't support them — never invent one just to fill the slot — and otherwise at most 2 entries each. "openers" is up to 3 short lines (under 20 words), each usable as-is, grounded only in the brief and transcript below. Cite ONLY real line numbers from the transcript; never invent facts, numbers, or concessions.`;function A(e){return e?`They agreed: ${e}.`:`No deal was reached.`}function j(e,t){return e.map((e,n)=>{let r=e.side===`yours`?`YOUR SIDE`:e.side===`theirs`?`${t.counterpart}'S SIDE`:`REFEREE`;return`${n+1}. ${r}: ${e.say}${e.offer?` [standing offer: ${e.offer}]`:``}`}).join(`
|
|
20
|
-
`)}function fe(e,t,n){return{system:`You are a negotiation coach reviewing a practice run. Judge ONLY the numbered transcript below — never anything outside it. ${de}`,user:`THE GOAL: ${e.goal}
|
|
21
|
-
WHAT THE USER COULD OFFER: ${e.mine}
|
|
22
|
-
${e.counterpart.toUpperCase()}'S POSITION, AS THE USER DESCRIBED IT: ${e.theirs}
|
|
23
|
-
THE TRANSCRIPT:
|
|
24
|
-
${j(t,e)}
|
|
25
|
-
OUTCOME: ${A(n)}`}}function M(e,t){let n=e.indexOf(`{`),r=e.lastIndexOf(`}`);if(n<0||r<=n)return null;try{let i=JSON.parse(e.slice(n,r+1)),a=e=>{if(!Array.isArray(e))return[];let n=[];for(let r of e){if(n.length>=2)break;if(!r||typeof r!=`object`)continue;let e=r,i=typeof e.point==`string`?e.point.trim():``;if(!i)continue;let a=typeof e.turn==`number`&&e.turn>=1&&e.turn<=t?Math.trunc(e.turn):null;n.push({point:i,turn:a})}return n},o=a(i.moved),s=a(i.exposed),c=Array.isArray(i.openers)?i.openers.filter(e=>typeof e==`string`&&e.trim().length>0).map(e=>e.trim()).slice(0,3):[];return!o.length&&!s.length&&!c.length?null:{moved:o,exposed:s,openers:c}}catch{return null}}async function pe(e,t,n,r,i){if(i?.aborted)return null;let{system:a,user:o}=fe(e,t,n),s=await r(a,o).catch(()=>``);return i?.aborted||!s?null:M(s,t.length)}function me(e,t,n){return`I ran a practice negotiation as a rehearsal: my Mavéa argued my side against a stand-in for ${e.counterpart}, built only from my own notes. Nothing was sent to anyone — this was a scouting run on my own key.
|
|
26
|
-
My goal: ${e.goal}
|
|
27
|
-
What I could offer: ${e.mine}
|
|
28
|
-
${e.counterpart}'s position, as I described it: ${e.theirs}
|
|
29
|
-
The full exchange:
|
|
30
|
-
${j(t,e)}
|
|
31
|
-
Outcome: ${A(n)}
|
|
32
|
-
Help me prepare for the real conversation: what to open with, where my case is weakest, and how to phrase my strongest point. Work only from this transcript and brief — invent nothing about ${e.counterpart}.`}function he(e){let t=`Negotiation prep: ${e.trim()}`;return t.length>60?`${t.slice(0,57)}…`:t}function ge(e,t,n=1200){return async(r,i)=>{let a=await u(e.provider).generate({system:r,history:[],user:i,maxTokens:n,temperature:.7,thinkingLevel:`minimal`,signal:t},e);return typeof a.raw==`string`?a.raw:JSON.stringify(a.raw)}}var _e=1200,ve=[{tag:`Ask for a raise`,counterpart:`Priya`,goal:`A raise to $95k, up from $82k, this cycle`,mine:`I led the billing migration and can mentor two juniors`,theirs:`My manager. Budget's tight this quarter; she values retention and won't set precedents`,boundaries:`working weekends, a title bump instead of pay`},{tag:`Buy a used car`,counterpart:`the dealer`,goal:`Get the 2019 Civic to $14,000 out the door`,mine:`Pay cash today, skip the extended warranty, take it as-is`,theirs:`Wants it off the lot this month; won't budge on the doc fee`,boundaries:`going above $15,000, financing through them`},{tag:`Split the rent`,counterpart:`Sam`,goal:`Split rent by room size — I take the smaller room for $200 less`,mine:`I'll set up the utilities and cover the parking spot`,theirs:`My roommate. Thinks a straight 50/50 split is only fair, and always pays on time`,boundaries:`paying more than half`}],ye=e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,`0`)}`;function be(){let e=(0,f.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,w.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,"aria-hidden":`true`,children:(0,w.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`})}),e[0]=t):t=e[0],t}function xe(){let e=(0,f.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,w.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,"aria-hidden":`true`,children:[(0,w.jsx)(`path`,{d:`M12 3l7 2.5v5c0 4.4-2.9 8-7 9.5-4.1-1.5-7-5.1-7-9.5v-5L12 3z`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinejoin:`round`}),(0,w.jsx)(`path`,{d:`M9 12l2 2 4-4.5`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`})]}),e[0]=t):t=e[0],t}function Se(){let e=(0,f.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,w.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,"aria-hidden":`true`,children:(0,w.jsx)(`path`,{d:`M4 12.5l5 5 11-12`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}),e[0]=t):t=e[0],t}function Ce(e){let t=(0,f.c)(6),{side:n,name:r}=e,i=n===`yours`,a=`dlg-side ${n}`,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,w.jsx)(`span`,{className:`dlg-avatar`,"aria-hidden":`true`}),t[0]=o):o=t[0];let s=i?`Your Mavéa`:r,c;t[1]===s?c=t[2]:(c=(0,w.jsx)(`span`,{className:`dlg-side-text`,children:(0,w.jsx)(`span`,{className:`dlg-side-name`,children:s})}),t[1]=s,t[2]=c);let l;return t[3]!==a||t[4]!==c?(l=(0,w.jsxs)(`span`,{className:a,children:[o,c]}),t[3]=a,t[4]=c,t[5]=l):l=t[5],l}function we(e){let t=(0,f.c)(10),{turns:n,running:r}=e,i=r?Math.min(n+1,8):n,a=r?`Round ${i} of 8`:`${n} turns`,o=r?`Round ${i}`:`${n} turn${n===1?``:`s`}`,s;t[0]===o?s=t[1]:(s=(0,w.jsx)(`span`,{className:`dlg-rounds-label`,children:o}),t[0]=o,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=Array.from({length:8}),t[2]=c):c=t[2];let l;t[3]!==r||t[4]!==n?(l=(0,w.jsx)(`span`,{className:`dlg-rounds-track`,"aria-hidden":`true`,children:c.map((e,t)=>(0,w.jsx)(`i`,{className:t<n?`on`:t===n&&r?`now`:``},t))}),t[3]=r,t[4]=n,t[5]=l):l=t[5];let u;return t[6]!==a||t[7]!==s||t[8]!==l?(u=(0,w.jsxs)(`div`,{className:`dlg-rounds`,"aria-label":a,children:[s,l]}),t[6]=a,t[7]=s,t[8]=l,t[9]=u):u=t[9],u}function Te(e){let t=(0,f.c)(15),{label:n,onConfirm:r}=e,[i,a]=(0,d.useState)(!1),o=(0,d.useRef)(void 0),s;t[0]===r?s=t[1]:(s=()=>{window.clearTimeout(o.current),a(!0),o.current=window.setTimeout(()=>{a(!1),r()},_e)},t[0]=r,t[1]=s);let c=s,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{a(!1),window.clearTimeout(o.current)},t[2]=l):l=t[2];let u=l,p,m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>()=>window.clearTimeout(o.current),m=[],t[3]=p,t[4]=m):(p=t[3],m=t[4]),(0,d.useEffect)(p,m);let h=`dlg-hold`+(i?` holding`:``),g;t[5]===c?g=t[6]:(g=e=>{e.repeat||(e.key===`Enter`||e.key===` `)&&c()},t[5]=c,t[6]=g);let _;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,w.jsx)(`span`,{className:`dlg-hold-fill`,"aria-hidden":`true`}),t[7]=_):_=t[7];let v;t[8]===n?v=t[9]:(v=(0,w.jsx)(`span`,{className:`dlg-hold-label`,children:n}),t[8]=n,t[9]=v);let y;return t[10]!==c||t[11]!==h||t[12]!==g||t[13]!==v?(y=(0,w.jsxs)(`button`,{type:`button`,className:h,onPointerDown:c,onPointerUp:u,onPointerLeave:u,onKeyDown:g,onKeyUp:u,children:[_,v]}),t[10]=c,t[11]=h,t[12]=g,t[13]=v,t[14]=y):y=t[14],y}function Ee(e){let t=(0,f.c)(5),[n,r]=(0,d.useState)(null),i=(0,d.useRef)(void 0),a=(0,d.useRef)(0),o,s;t[0]===e?(o=t[1],s=t[2]):(o=()=>{if(e.length===a.current)return;a.current=e.length,window.clearTimeout(i.current);let t=e[e.length-1];if(!t||t.side===`engine`){r(null);return}let n=!!t.offer;r({side:t.side,offer:n,pointing:!1}),t.side===`yours`&&n?i.current=window.setTimeout(()=>{r({side:`yours`,offer:!0,pointing:!0}),i.current=window.setTimeout(()=>r(null),m)},p):i.current=window.setTimeout(()=>r(null),p)},s=[e],t[0]=e,t[1]=o,t[2]=s),(0,d.useEffect)(o,s);let c,l;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>()=>window.clearTimeout(i.current),l=[],t[3]=c,t[4]=l):(c=t[3],l=t[4]),(0,d.useEffect)(c,l),n}function N(e,t){return e.side===`yours`?`Your Mavéa`:e.side===`theirs`?`${t}’s stand-in`:`Referee`}function P(e){let t=(0,f.c)(21),{debrief:n,events:r,themLabel:i,onRetry:a}=e;if(n===`idle`)return null;if(n===`loading`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,w.jsxs)(`div`,{className:`dlg-debrief`,"data-state":`loading`,children:[(0,w.jsx)(`span`,{className:`dlg-debrief-eyebrow`,children:`Debrief — drawn from this run`}),(0,w.jsx)(`p`,{className:`dlg-debrief-wait`,children:`Reading back what happened…`})]}),t[0]=e):e=t[0],e}if(n===`failed`){let e,n;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,w.jsx)(`span`,{className:`dlg-debrief-eyebrow`,children:`Debrief — drawn from this run`}),n=(0,w.jsx)(`p`,{className:`dlg-debrief-wait`,children:`Couldn’t draw a debrief from this run.`}),t[1]=e,t[2]=n):(e=t[1],n=t[2]);let r;return t[3]===a?r=t[4]:(r=(0,w.jsxs)(`div`,{className:`dlg-debrief`,"data-state":`failed`,children:[e,n,(0,w.jsx)(`button`,{type:`button`,className:`dlg-debrief-retry`,onClick:a,children:`Try again`})]}),t[3]=a,t[4]=r),r}let o;t[5]!==r||t[6]!==i?(o=e=>{if(e===null)return null;let t=r[e-1];return t?(0,w.jsxs)(`p`,{className:`dlg-debrief-quote`,children:[(0,w.jsx)(`span`,{className:`dlg-debrief-quote-who`,children:N(t,i)}),`“${t.say}”`]}):null},t[5]=r,t[6]=i,t[7]=o):o=t[7];let s=o,c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,w.jsx)(`span`,{className:`dlg-debrief-eyebrow`,children:`Debrief — drawn from this run`}),t[8]=c):c=t[8];let l;t[9]!==n.moved||t[10]!==s?(l=n.moved.length>0&&(0,w.jsxs)(`div`,{className:`dlg-debrief-group`,children:[(0,w.jsx)(`h4`,{children:`What moved them`}),(0,w.jsx)(`ul`,{children:n.moved.map((e,t)=>(0,w.jsxs)(`li`,{children:[(0,w.jsx)(`p`,{className:`dlg-debrief-point`,children:e.point}),s(e.turn)]},t))})]}),t[9]=n.moved,t[10]=s,t[11]=l):l=t[11];let u;t[12]!==n.exposed||t[13]!==s?(u=n.exposed.length>0&&(0,w.jsxs)(`div`,{className:`dlg-debrief-group`,children:[(0,w.jsx)(`h4`,{children:`Where you’re exposed`}),(0,w.jsx)(`ul`,{children:n.exposed.map((e,t)=>(0,w.jsxs)(`li`,{children:[(0,w.jsx)(`p`,{className:`dlg-debrief-point`,children:e.point}),s(e.turn)]},t))})]}),t[12]=n.exposed,t[13]=s,t[14]=u):u=t[14];let d;t[15]===n.openers?d=t[16]:(d=n.openers.length>0&&(0,w.jsxs)(`div`,{className:`dlg-debrief-group`,children:[(0,w.jsx)(`h4`,{children:`Say this first`}),(0,w.jsx)(`ol`,{className:`dlg-debrief-openers`,children:n.openers.map(De)}),(0,w.jsx)(`p`,{className:`dlg-debrief-footnote`,children:`Mavéa’s suggestions, drawn from the run above — the stand-in only knows what you wrote.`})]}),t[15]=n.openers,t[16]=d);let p;return t[17]!==l||t[18]!==u||t[19]!==d?(p=(0,w.jsxs)(`div`,{className:`dlg-debrief`,"data-state":`ready`,children:[c,l,u,d]}),t[17]=l,t[18]=u,t[19]=d,t[20]=p):p=t[20],p}function De(e,t){return(0,w.jsx)(`li`,{children:e},t)}function Oe(e){let t=(0,f.c)(202),{cfg:n,onClose:a,onPrepTurn:c,memoryNodes:u,speak:p,onDebrief:m}=e,h=(0,d.useRef)(null);o(h);let g=r(),v=(0,d.useRef)(null),[y,b]=(0,d.useState)(`brief`),[x,ee]=(0,d.useState)(`mavea`),[S,te]=(0,d.useState)(!1),[C,ne]=(0,d.useState)(``),[T,ie]=(0,d.useState)(``),[E,ae]=(0,d.useState)(``),[D,oe]=(0,d.useState)(``),[O,se]=(0,d.useState)(``),[le,de]=(0,d.useState)(!1),A;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(A=[],t[0]=A):A=t[0];let[j,fe]=(0,d.useState)(A),[M,_e]=(0,d.useState)(null),[N,De]=(0,d.useState)(!1),[Oe,F]=(0,d.useState)(!1),[I,Le]=(0,d.useState)(!1),[L,Re]=(0,d.useState)(0),[R,ze]=(0,d.useState)(`idle`),z;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(z=[],t[1]=z):z=t[1];let[Be,Ve]=(0,d.useState)(z),B=(0,d.useRef)(null),V=(0,d.useRef)(null),H=(0,d.useRef)(!1),U=(0,d.useRef)(!0),W,G;t[2]===y?(W=t[3],G=t[4]):(W=()=>{if(y!==`running`)return;let e=window.setInterval(()=>{i()||Re(Ie)},1e3);return()=>window.clearInterval(e)},G=[y],t[2]=y,t[3]=W,t[4]=G),(0,d.useEffect)(W,G);let K,q;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>()=>{U.current=!1,B.current?.abort(),V.current?.abort()},q=[],t[5]=K,t[6]=q):(K=t[5],q=t[6]),(0,d.useEffect)(K,q);let J,He;t[7]===a?(J=t[8],He=t[9]):(J=()=>{let e=e=>{e.key===`Escape`&&a()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},He=[a],t[7]=a,t[8]=J,t[9]=He),(0,d.useEffect)(J,He);let Ue;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=()=>{let e=v.current;e&&(e.scrollTop=e.scrollHeight)},t[10]=Ue):Ue=t[10];let We;t[11]===j?We=t[12]:(We=[j],t[11]=j,t[12]=We),(0,d.useEffect)(Ue,We);let Ge;t[13]===O?Ge=t[14]:(Ge=ce(O),t[13]=O,t[14]=Ge);let Ke=Ge,qe;t[15]===C?qe=t[16]:(qe=C.trim(),t[15]=C,t[16]=qe);let Je;t[17]===T?Je=t[18]:(Je=T.trim(),t[17]=T,t[18]=Je);let Ye;t[19]===E?Ye=t[20]:(Ye=E.trim(),t[19]=E,t[20]=Ye);let Xe;t[21]===D?Xe=t[22]:(Xe=D.trim(),t[21]=D,t[22]=Xe);let Ze;t[23]!==Ke||t[24]!==qe||t[25]!==Je||t[26]!==Ye||t[27]!==Xe?(Ze={counterpart:qe,goal:Je,mine:Ye,theirs:Xe,boundaries:Ke},t[23]=Ke,t[24]=qe,t[25]=Je,t[26]=Ye,t[27]=Xe,t[28]=Ze):Ze=t[28];let Y=Ze,Qe;t[29]!==u||t[30]!==S?(Qe=S?(u??[]).map(Fe).join(`. `):``,t[29]=u,t[30]=S,t[31]=Qe):Qe=t[31];let $e=Qe,et;t[32]===T?et=t[33]:(et=T.trim(),t[32]=T,t[33]=et);let tt;t[34]===C?tt=t[35]:(tt=C.trim(),t[34]=C,t[35]=tt);let nt;t[36]===D?nt=t[37]:(nt=D.trim(),t[36]=D,t[37]=nt);let rt;t[38]!==$e||t[39]!==nt?(rt=[nt,$e].filter(Boolean),t[38]=$e,t[39]=nt,t[40]=rt):rt=t[40];let it=rt.join(`
|
|
33
|
-
`),at;t[41]!==et||t[42]!==tt||t[43]!==it?(at={scenario:et,counterpart:tt,context:it},t[41]=et,t[42]=tt,t[43]=it,t[44]=at):at=t[44];let ot=at,st;t[45]===j?st=t[46]:(st=k(j),t[45]=j,t[46]=st);let ct=st,lt;t[47]===j?lt=t[48]:(lt=j.filter(Pe),t[47]=j,t[48]=lt);let ut=lt.length,dt;t[49]===j?dt=t[50]:(dt=j.some(Ne),t[49]=j,t[50]=dt);let ft=dt,pt=j.length>0&&j[j.length-1].side===`engine`,mt=[...j].reverse().find(Me),ht=mt&&mt.side===`yours`?`theirs`:`yours`,gt=Ee(j),_t;bb0:{if(y===`done`){if(M&&N){let e;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(e={kind:`approved`},t[51]=e):e=t[51],_t=e;break bb0}if(M){let e;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(e={kind:`deal`},t[52]=e):e=t[52],_t=e;break bb0}if(I){let e;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(e={kind:`stopped`},t[53]=e):e=t[53],_t=e;break bb0}let e;t[54]===ft?e=t[55]:(e={kind:`nodeal`,boundaryHeld:ft},t[54]=ft,t[55]=e),_t=e;break bb0}let e;t[56]!==pt||t[57]!==gt||t[58]!==ht?(e={kind:`running`,whoseTurn:ht,guarded:pt,speaking:gt},t[56]=pt,t[57]=gt,t[58]=ht,t[59]=e):e=t[59],_t=e}let vt=_t,yt;t[60]===vt?yt=t[61]:(yt=_(vt),t[60]=vt,t[61]=yt);let bt=yt,xt;t[62]!==C||t[63]!==T||t[64]!==E||t[65]!==x||t[66]!==D?(xt=x===`you`?!!(C.trim()&&T.trim()):!!(C.trim()&&T.trim()&&E.trim()&&D.trim()),t[62]=C,t[63]=T,t[64]=E,t[65]=x,t[66]=D,t[67]=xt):xt=t[67];let X=xt,St;t[68]===C?St=t[69]:(St=C.trim()||`the other side`,t[68]=C,t[69]=St);let Z=St,Ct;t[70]!==O||t[71]!==C||t[72]!==T||t[73]!==E||t[74]!==D?(Ct=e=>C===e.counterpart&&T===e.goal&&E===e.mine&&D===e.theirs&&O===e.boundaries,t[70]=O,t[71]=C,t[72]=T,t[73]=E,t[74]=D,t[75]=Ct):Ct=t[75];let wt=Ct,Tt,Et,Q,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,$;if(t[76]!==O||t[77]!==Ke||t[78]!==Y||t[79]!==n||t[80]!==C||t[81]!==M||t[82]!==j||t[83]!==T||t[84]!==u||t[85]!==E||t[86]!==a||t[87]!==c||t[88]!==X||t[89]!==x||t[90]!==wt||t[91]!==le||t[92]!==y||t[93]!==D||t[94]!==S||t[95]!==g){let e=e=>{ne(e.counterpart),ie(e.goal),ae(e.mine),oe(e.theirs),se(e.boundaries),de(!1),requestAnimationFrame(()=>{U.current&&de(!0)})},r;t[115]!==Y||t[116]!==n?(r=(e,t)=>{ze(`loading`);let r=new AbortController;V.current=r,pe(Y,e,t,ge(n,r.signal,1600),r.signal).then(e=>{!U.current||r.signal.aborted||ze(e??`failed`)})},t[115]=Y,t[116]=n,t[117]=r):r=t[117],Q=r;let i;t[118]!==Y||t[119]!==n||t[120]!==X||t[121]!==Q?(i=()=>{if(!X)return;let e=new AbortController;B.current=e,V.current?.abort(),fe([]),_e(null),De(!1),F(!1),Le(!1),H.current=!1,Re(0),ze(`idle`),b(`running`),ue(Y,ge(n,e.signal),e=>{U.current&&fe(t=>[...t,e])},e.signal).then(e=>{if(!U.current)return;_e(e.deal),b(`done`);let t=e.events.filter(je).length;Ve(n=>[...n,{n:n.length+1,outcome:H.current?`stopped`:e.deal?`deal`:`nodeal`,deal:e.deal,turns:t}]),!H.current&&t>=2&&Q(e.events,e.deal)}).catch(()=>{U.current&&b(`done`)})},t[118]=Y,t[119]=n,t[120]=X,t[121]=Q,t[122]=i):i=t[122],Tt=i;let o;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{H.current=!0,Le(!0),B.current?.abort()},t[123]=o):o=t[123],Dt=o;let d;t[124]!==Y||t[125]!==M||t[126]!==j||t[127]!==c?(d=()=>{c?.(me(Y,j,M),he(Y.goal))},t[124]=Y,t[125]=M,t[126]=j,t[127]=c,t[128]=d):d=t[128],Et=d,Lt=`dlg-scrim`,t[129]===a?Rt=t[130]:(Rt=e=>{e.target===e.currentTarget&&a()},t[129]=a,t[130]=Rt),zt=`button`,Bt=0,Vt=`Close`,t[131]===a?$=t[132]:($=e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),a())},t[131]=a,t[132]=$),Ot=`dlg-panel`,kt=h,At=-1,jt=`dialog`,Mt=`true`,Nt=`The Rehearsal — practice a hard conversation`,Pt=y;let f;t[133]!==X||t[134]!==y||t[135]!==g?(f=y===`brief`&&(0,w.jsx)(`span`,{className:`dlg-jelly brief`,"aria-hidden":`true`,ref:g,children:(0,w.jsx)(s,{state:X?`thinking`:`reading`,gaze:X?`center`:`down`})}),t[133]=X,t[134]=y,t[135]=g,t[136]=f):f=t[136];let p;t[137]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,w.jsx)(`h2`,{children:`The Rehearsal`}),t[137]=p):p=t[137];let m=y===`brief`?`Practice the conversation before you have it for real`:x===`you`?`Your take — say it like you will for real`:`Two agents, talking it out on your key`,_;t[138]===m?_=t[139]:(_=(0,w.jsxs)(`div`,{className:`dlg-title`,children:[p,(0,w.jsx)(`p`,{className:`dlg-kicker`,children:m})]}),t[138]=m,t[139]=_);let v;t[140]!==f||t[141]!==_?(v=(0,w.jsxs)(`div`,{className:`dlg-head-id`,children:[f,_]}),t[140]=f,t[141]=_,t[142]=v):v=t[142];let re;t[143]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,w.jsx)(be,{}),t[143]=re):re=t[143];let k;t[144]===a?k=t[145]:(k=(0,w.jsx)(`button`,{type:`button`,className:`dlg-x`,onClick:a,"aria-label":`Close`,children:re}),t[144]=a,t[145]=k),t[146]!==v||t[147]!==k?(Ft=(0,w.jsxs)(`header`,{className:`dlg-head`,children:[v,k]}),t[146]=v,t[147]=k,t[148]=Ft):Ft=t[148],It=y===`brief`&&(0,w.jsxs)(`form`,{className:`dlg-brief`,onSubmit:e=>{e.preventDefault(),x===`you`?X&&b(`running`):Tt()},children:[(0,w.jsxs)(`p`,{className:`dlg-lede`,children:[`The other side is a `,(0,w.jsx)(`strong`,{children:`stand-in`}),`, played only from what you write here — nothing is sent to them.`]}),(0,w.jsxs)(`div`,{className:`dlg-seatpick`,role:`radiogroup`,"aria-label":`Who sits on your side`,children:[(0,w.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":x===`mavea`,className:`dlg-seatpick-opt`,onClick:()=>ee(`mavea`),children:[(0,w.jsx)(`span`,{className:`dlg-seatpick-name`,children:`Send your Mavéa`}),(0,w.jsx)(`span`,{className:`dlg-seatpick-sub`,children:`Two agents talk it out while you watch`})]}),(0,w.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":x===`you`,className:`dlg-seatpick-opt`,onClick:()=>ee(`you`),children:[(0,w.jsx)(`span`,{className:`dlg-seatpick-name`,children:`Take the seat yourself`}),(0,w.jsx)(`span`,{className:`dlg-seatpick-sub`,children:`You say your lines; they answer in character, out loud`})]})]}),(0,w.jsx)(l,{kind:`simulation`,from:`live`}),(0,w.jsxs)(`div`,{className:`dlg-seeds`,role:`group`,"aria-label":`Start from an example`,children:[(0,w.jsx)(`span`,{className:`dlg-seeds-label`,children:`Try one`}),ve.map(t=>(0,w.jsx)(`button`,{type:`button`,className:`dlg-seed`,"aria-pressed":wt(t),onClick:()=>e(t),children:t.tag},t.tag))]}),(0,w.jsxs)(`fieldset`,{className:`dlg-group`+(le?` dlg-seed-fill`:``),children:[(0,w.jsx)(`legend`,{children:`The other side`}),(0,w.jsxs)(`label`,{className:`dlg-field`,children:[(0,w.jsx)(`span`,{className:`dlg-field-name`,children:`Who you're negotiating with`}),(0,w.jsx)(`input`,{value:C,onChange:e=>ne(e.target.value),placeholder:`Priya, my manager`})]}),(0,w.jsxs)(`label`,{className:`dlg-field`,children:[(0,w.jsx)(`span`,{className:`dlg-field-name`,children:`Their position, as you see it`}),(0,w.jsx)(`textarea`,{rows:2,value:D,onChange:e=>oe(e.target.value),placeholder:`Budget's tight this quarter; she values retention and won't set precedents`}),(0,w.jsx)(`span`,{className:`dlg-field-hint`,children:x===`you`?`This is all they'll know — where it runs out, they play the role straight instead of pretending to know the real person.`:`This is all the stand-in knows — it argues only from this.`})]}),x===`you`&&u&&u.length>0&&(0,w.jsxs)(`label`,{className:`dlg-memory`,children:[(0,w.jsx)(`input`,{type:`checkbox`,checked:S,onChange:e=>te(e.target.checked)}),`Also ground them in what Mavéa remembers (`,u.length,` `,u.length===1?`concept`:`concepts`,`)`]})]}),(0,w.jsxs)(`fieldset`,{className:`dlg-group`+(le?` dlg-seed-fill`:``),children:[(0,w.jsx)(`legend`,{children:`Your side`}),(0,w.jsxs)(`label`,{className:`dlg-field`,children:[(0,w.jsx)(`span`,{className:`dlg-field-name`,children:`What you're after`}),(0,w.jsx)(`input`,{value:T,onChange:e=>ie(e.target.value),placeholder:`A raise to $95k, up from $82k, this cycle`})]}),x===`mavea`&&(0,w.jsxs)(`label`,{className:`dlg-field`,children:[(0,w.jsx)(`span`,{className:`dlg-field-name`,children:`What you'll put on the table`}),(0,w.jsx)(`textarea`,{rows:2,value:E,onChange:e=>ae(e.target.value),placeholder:`I led the billing migration; I can mentor two juniors`})]})]}),x===`mavea`&&(0,w.jsxs)(`fieldset`,{className:`dlg-group dlg-group-line`+(le?` dlg-seed-fill`:``),children:[(0,w.jsxs)(`legend`,{children:[`Your line `,(0,w.jsx)(`span`,{className:`dlg-enforced`,children:`enforced`})]}),(0,w.jsx)(`p`,{className:`dlg-line-note`,children:`Mavéa never offers these. Every proposal is checked in code, and any that crosses your line is pulled back — not just discouraged.`}),(0,w.jsxs)(`label`,{className:`dlg-field`,children:[(0,w.jsx)(`span`,{className:`dlg-field-name sr-only`,children:`Never offer`}),(0,w.jsx)(`input`,{value:O,onChange:e=>se(e.target.value),placeholder:`working weekends, a title bump instead of pay`})]}),Ke.length>0&&(0,w.jsx)(`ul`,{className:`dlg-line-chips`,"aria-hidden":`true`,children:Ke.map(Ae)})]}),(0,w.jsxs)(`div`,{className:`dlg-brief-actions`,children:[(0,w.jsx)(`button`,{type:`submit`,className:`dlg-start`,disabled:!X,children:x===`you`?`Start take 1`:`Start the negotiation`}),(0,w.jsx)(`span`,{className:`dlg-brief-cost`,children:x===`you`?`one short call per line, one for the coach`:`≈ one answer's worth of calls, debrief included`})]})]}),t[76]=O,t[77]=Ke,t[78]=Y,t[79]=n,t[80]=C,t[81]=M,t[82]=j,t[83]=T,t[84]=u,t[85]=E,t[86]=a,t[87]=c,t[88]=X,t[89]=x,t[90]=wt,t[91]=le,t[92]=y,t[93]=D,t[94]=S,t[95]=g,t[96]=Tt,t[97]=Et,t[98]=Q,t[99]=Dt,t[100]=Ot,t[101]=kt,t[102]=At,t[103]=jt,t[104]=Mt,t[105]=Nt,t[106]=Pt,t[107]=Ft,t[108]=It,t[109]=Lt,t[110]=Rt,t[111]=zt,t[112]=Bt,t[113]=Vt,t[114]=$}else Tt=t[96],Et=t[97],Q=t[98],Dt=t[99],Ot=t[100],kt=t[101],At=t[102],jt=t[103],Mt=t[104],Nt=t[105],Pt=t[106],Ft=t[107],It=t[108],Lt=t[109],Rt=t[110],zt=t[111],Bt=t[112],Vt=t[113],$=t[114];let Ht;t[149]!==n||t[150]!==m||t[151]!==ot||t[152]!==x||t[153]!==p||t[154]!==y||t[155]!==Z?(Ht=y!==`brief`&&x===`you`&&(0,w.jsx)(re,{setup:ot,themLabel:Z,cfg:n,speak:p,onDebrief:m,onAdjustBrief:()=>b(`brief`)}),t[149]=n,t[150]=m,t[151]=ot,t[152]=x,t[153]=p,t[154]=y,t[155]=Z,t[156]=Ht):Ht=t[156];let Ut;t[157]!==N||t[158]!==Tt||t[159]!==ft||t[160]!==Oe||t[161]!==C||t[162]!==M||t[163]!==R||t[164]!==L||t[165]!==j||t[166]!==Et||t[167]!==bt||t[168]!==a||t[169]!==c||t[170]!==Be||t[171]!==x||t[172]!==y||t[173]!==ct||t[174]!==Q||t[175]!==Dt||t[176]!==I||t[177]!==Z||t[178]!==ut||t[179]!==g||t[180]!==ht?(Ut=y!==`brief`&&x===`mavea`&&(0,w.jsxs)(`div`,{className:`dlg-table`,children:[(0,w.jsxs)(`div`,{className:`dlg-tablescape`,children:[(0,w.jsxs)(`div`,{className:`dlg-seat yours`,children:[(0,w.jsx)(`span`,{className:`dlg-jelly`,"aria-hidden":`true`,ref:g,children:(0,w.jsx)(s,{...bt.yours})}),(0,w.jsx)(`span`,{className:`dlg-seat-name`,children:`Your Mavéa`})]}),(0,w.jsxs)(`div`,{className:`dlg-meta`,children:[(0,w.jsx)(we,{turns:ut,running:y===`running`}),(0,w.jsx)(`span`,{className:`dlg-clock tab-num`,"aria-label":`${L} seconds elapsed`,children:ye(L)})]}),(0,w.jsxs)(`div`,{className:`dlg-seat theirs`,children:[(0,w.jsx)(`span`,{className:`dlg-jelly ghost`,"aria-hidden":`true`,ref:g,children:(0,w.jsx)(s,{...bt.theirs})}),(0,w.jsx)(`span`,{className:`dlg-seat-name`,children:C}),(0,w.jsx)(`span`,{className:`dlg-seat-tag`,children:`stand-in`})]})]}),(0,w.jsxs)(`div`,{className:`dlg-offer`,"data-empty":!ct||void 0,"data-by":ct?.by,children:[(0,w.jsx)(`span`,{className:`dlg-offer-eyebrow`,children:`On the table`}),ct?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`p`,{className:`dlg-offer-text`,children:ct.offer},ct.offer),(0,w.jsx)(`span`,{className:`dlg-offer-by`,children:ct.by===`yours`?`Your Mavéa proposed this`:`${Z}'s stand-in countered`})]}):(0,w.jsx)(`p`,{className:`dlg-offer-empty`,children:y===`running`?`Opening the table…`:`No offer was tabled.`})]}),(0,w.jsxs)(`ol`,{className:`dlg-log`,ref:v,role:`log`,"aria-live":`polite`,"aria-label":`The exchange`,children:[j.map((e,t)=>e.side===`engine`?(0,w.jsxs)(`li`,{className:`dlg-referee`,children:[(0,w.jsx)(xe,{}),(0,w.jsx)(`span`,{children:e.say})]},t):(0,w.jsxs)(`li`,{className:`dlg-turn ${e.side} ${e.kind}`,children:[(0,w.jsx)(Ce,{side:e.side,name:C}),(0,w.jsx)(`p`,{className:`dlg-turn-say`,children:e.say}),e.offer&&e.kind!==`accept`&&(0,w.jsx)(`span`,{className:`dlg-turn-tag`,children:`Now on the table`}),e.kind===`accept`&&(0,w.jsx)(`span`,{className:`dlg-turn-tag agreed`,children:`Accepted`})]},t)),y===`running`&&(0,w.jsxs)(`li`,{className:`dlg-turn ${ht} thinking`,"aria-hidden":`true`,children:[(0,w.jsx)(Ce,{side:ht,name:C}),(0,w.jsxs)(`span`,{className:`dlg-typing`,children:[(0,w.jsx)(`i`,{}),(0,w.jsx)(`i`,{}),(0,w.jsx)(`i`,{})]})]})]}),y===`running`&&(0,w.jsx)(`div`,{className:`dlg-foot`,children:(0,w.jsx)(`button`,{type:`button`,className:`dlg-stop`,onClick:Dt,children:`Stop`})}),y===`done`&&M&&!N&&(0,w.jsxs)(`div`,{className:`dlg-result deal`,children:[(0,w.jsxs)(`div`,{className:`dlg-result-head`,children:[(0,w.jsx)(`span`,{className:`dlg-result-mark`,children:(0,w.jsx)(Se,{})}),(0,w.jsx)(`h3`,{children:`Both Mavéas agreed`})]}),(0,w.jsx)(`p`,{className:`dlg-result-terms`,children:M}),(0,w.jsxs)(`p`,{className:`dlg-result-honest`,children:[`Pending both humans — nothing's been sent. Approve your side and you'll get the summary to send to `,Z,` yourself.`]}),(0,w.jsx)(P,{debrief:R,events:j,themLabel:Z,onRetry:()=>Q(j,M)}),(0,w.jsxs)(`div`,{className:`dlg-result-actions`,children:[(0,w.jsx)(Te,{label:`Hold to approve your side`,onConfirm:()=>{De(!0),navigator.clipboard?.writeText(`Proposed deal with ${C}: ${M}`).then(()=>F(!0)).catch(()=>F(!1))}}),(0,w.jsx)(`button`,{type:`button`,className:`dlg-pass`,onClick:a,children:`Not yet`})]})]}),y===`done`&&M&&N&&(0,w.jsxs)(`div`,{className:`dlg-result approved`,children:[(0,w.jsxs)(`div`,{className:`dlg-result-head`,children:[(0,w.jsx)(`span`,{className:`dlg-result-mark`,children:(0,w.jsx)(Se,{})}),(0,w.jsx)(`h3`,{children:`Approved on your side`})]}),(0,w.jsx)(`p`,{className:`dlg-result-terms`,children:M}),(0,w.jsx)(`p`,{className:`dlg-result-honest`,children:Oe?`The summary's on your clipboard. ${Z} still has to say yes for real — you send it.`:`${Z} still has to say yes for real — copy the summary above and send it yourself.`}),(0,w.jsx)(P,{debrief:R,events:j,themLabel:Z,onRetry:()=>Q(j,M)}),(0,w.jsx)(`button`,{type:`button`,className:`dlg-done`,onClick:a,children:`Done`})]}),y===`done`&&!M&&(0,w.jsxs)(`div`,{className:`dlg-result nodeal`,children:[(0,w.jsxs)(`div`,{className:`dlg-result-head`,children:[(0,w.jsx)(`span`,{className:`dlg-result-mark line`,"aria-hidden":`true`}),(0,w.jsx)(`h3`,{children:I?`Stopped`:ft?`No deal — your line held`:`No deal this run`})]}),(0,w.jsx)(`p`,{className:`dlg-result-honest`,children:I?`You called it off — nothing was sent.`:ft?`Mavéa pulled back every offer that crossed your line, and the sides couldn’t meet without it. Nothing was sent — that’s the point of scouting. Here’s where your case got tested.`:`The two sides couldn’t meet in ${ut} turn${ut===1?``:`s`}. Nothing was sent — that’s the point of scouting. Here’s where your case got tested.`}),I&&ut>=2&&R===`idle`?(0,w.jsx)(`button`,{type:`button`,className:`dlg-followup-btn`,onClick:()=>Q(j,M),children:`Debrief what happened`}):(0,w.jsx)(P,{debrief:R,events:j,themLabel:Z,onRetry:()=>Q(j,M)}),(0,w.jsx)(`button`,{type:`button`,className:`dlg-done`,onClick:a,children:`Close`})]}),y===`done`&&(0,w.jsxs)(`div`,{className:`dlg-followup`,children:[c&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`button`,{type:`button`,className:`dlg-followup-btn`,onClick:Et,children:`Bring this into the conversation`}),(0,w.jsx)(`span`,{className:`dlg-followup-hint`,children:`Runs one normal answer in Live, grounded in this transcript.`})]}),(0,w.jsxs)(`div`,{className:`dlg-followup-actions`,children:[(0,w.jsx)(`button`,{type:`button`,className:`dlg-followup-btn ghost`,onClick:()=>b(`brief`),children:`Adjust the brief`}),(0,w.jsx)(`button`,{type:`button`,className:`dlg-followup-btn ghost`,onClick:Tt,children:`Run it again`})]})]}),y===`done`&&Be.length>=2&&(0,w.jsx)(`div`,{className:`dlg-runs`,"aria-label":`Runs this session`,children:Be.map(ke)})]}),t[157]=N,t[158]=Tt,t[159]=ft,t[160]=Oe,t[161]=C,t[162]=M,t[163]=R,t[164]=L,t[165]=j,t[166]=Et,t[167]=bt,t[168]=a,t[169]=c,t[170]=Be,t[171]=x,t[172]=y,t[173]=ct,t[174]=Q,t[175]=Dt,t[176]=I,t[177]=Z,t[178]=ut,t[179]=g,t[180]=ht,t[181]=Ut):Ut=t[181];let Wt;t[182]!==Ot||t[183]!==kt||t[184]!==At||t[185]!==jt||t[186]!==Mt||t[187]!==Nt||t[188]!==Pt||t[189]!==Ft||t[190]!==It||t[191]!==Ht||t[192]!==Ut?(Wt=(0,w.jsxs)(`section`,{className:Ot,ref:kt,tabIndex:At,role:jt,"aria-modal":Mt,"aria-label":Nt,"data-stage":Pt,children:[Ft,It,Ht,Ut]}),t[182]=Ot,t[183]=kt,t[184]=At,t[185]=jt,t[186]=Mt,t[187]=Nt,t[188]=Pt,t[189]=Ft,t[190]=It,t[191]=Ht,t[192]=Ut,t[193]=Wt):Wt=t[193];let Gt;return t[194]!==Lt||t[195]!==Rt||t[196]!==zt||t[197]!==Bt||t[198]!==Vt||t[199]!==$||t[200]!==Wt?(Gt=(0,w.jsx)(`div`,{className:Lt,onClick:Rt,role:zt,tabIndex:Bt,"aria-label":Vt,onKeyDown:$,children:Wt}),t[194]=Lt,t[195]=Rt,t[196]=zt,t[197]=Bt,t[198]=Vt,t[199]=$,t[200]=Wt,t[201]=Gt):Gt=t[201],Gt}function ke(e){return(0,w.jsx)(`span`,{className:`dlg-runs-item`,children:`Run ${e.n} — ${e.outcome===`deal`?`deal`:e.outcome===`stopped`?`stopped`:`no deal`} · ${e.turns} turn${e.turns===1?``:`s`}${e.deal?` · ${e.deal}`:``}`},e.n)}function Ae(e){return(0,w.jsxs)(`li`,{className:`dlg-line-chip`,children:[(0,w.jsx)(xe,{}),e]},e)}function je(e){return e.side!==`engine`}function Me(e){return e.side!==`engine`}function Ne(e){return e.side===`engine`}function Pe(e){return e.side!==`engine`}function Fe(e){return e.body}function Ie(e){return e+1}export{Oe as DelegatePanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ex-page,.ex-measure-host{overflow-wrap:break-word}.ex-page *,.ex-measure-host *{min-width:0}.mavea-export-doc{display:none}@media print{@page mavea-export{size:Letter;margin:0}@page mavea-export-a4{size:A4;margin:0}body.mavea-printing>:not(.mavea-export-doc){display:none!important}body.mavea-printing .mavea-export-doc{display:block!important}.mavea-export-doc *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.mavea-export-doc .ex-doc{gap:0!important;display:block!important}.mavea-export-doc .ex-page{page:mavea-export;break-after:page;box-shadow:none!important;border-radius:0!important;margin:0!important}.mavea-export-doc .ex-page[data-format=a4]{page:mavea-export-a4}.mavea-export-doc .ex-page:last-child{break-after:auto}@page mavea-slide{size:1920px 1080px landscape;margin:0}.mavea-export-slides .slide-page{page:mavea-slide;break-after:page;box-shadow:none!important;border-radius:0!important;margin:0!important}.mavea-export-slides .slide-page:last-child{break-after:auto}@page mavea-slide-notes{size:1920px 1400px landscape;margin:0}.mavea-export-slides-notes .slide-page-notes{page:mavea-slide-notes;break-after:page;background:#fff;flex-direction:column;display:flex}.mavea-export-slides-notes .slide-page-notes:last-child{break-after:auto}.mavea-export-slides-notes .slide-page{flex:none;box-shadow:none!important;border-radius:0!important;margin:0!important}.mavea-export-slides-notes .slide-notes-block{box-sizing:border-box;color:#16181d;background:#fff;flex:none;height:320px;padding:32px 56px;font-family:-apple-system,system-ui,sans-serif;overflow:hidden}.mavea-export-slides-notes .slide-notes-label{letter-spacing:.1em;text-transform:uppercase;color:#767b85;margin-bottom:10px;font-size:16px;font-weight:700}.mavea-export-slides-notes .slide-notes-text{margin:0;font-size:30px;line-height:1.45}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{i as n}from"./index-CdUH6Eo9.js";var r=e(),i=t(),a=`mavea-feature-notice-dismissed-v1:`,o=new Set([`learning`,`monitoring`,`simulation`,`voice-data`]);function s(e){return`${a}${e}`}function c(e){try{return localStorage.getItem(s(e))===`1`}catch{return!1}}function l(e){try{localStorage.setItem(s(e),`1`)}catch{}}function u({kind:e,from:t=`home`,className:a=``}){let s=n[e],u=o.has(e),[d,f]=(0,r.useState)(()=>u&&c(e)),p=(0,r.useId)();return d?null:(0,i.jsxs)(`aside`,{className:`feature-use-notice ${a}`.trim(),"data-kind":e,role:`note`,children:[(0,i.jsx)(`span`,{className:`feature-use-notice-dot`,"aria-hidden":!0}),(0,i.jsxs)(`p`,{id:p,children:[(0,i.jsxs)(`strong`,{children:[s.title,`.`]}),` `,s.body]}),(0,i.jsxs)(`div`,{className:`feature-use-notice-actions`,children:[(0,i.jsx)(`a`,{href:`#/legal?from=${t}`,children:`Details`}),u&&(0,i.jsx)(`button`,{type:`button`,className:`feature-use-notice-dismiss`,"aria-label":`Dismiss ${s.title} notice`,"aria-describedby":p,onClick:()=>{f(!0),l(e)},children:(0,i.jsx)(`span`,{"aria-hidden":!0,children:`×`})})]})]})}export{u as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{n}from"./useInView-DsTvv7L_.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,t as a}from"./preload-helper-CiWYd9n-.js";import{n as o,r as s,t as c}from"./theme-D5D55hZi.js";import{n as l}from"./icons-gLFQTv74.js";import{t as u}from"./TopicCanvas-CkqP92SC.js";import"./catalog-DfIYAG3v.js";import{i as d,n as ee,t as f}from"./facts-BUGuVUIc.js";import{t as p}from"./homeTarget-CwFsJYwb.js";var m=e(),h=t(),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.textContent||``).trim(),c=[];if(r.tagName.toLowerCase()!==`text`){let e=document.createRange();if(e.selectNodeContents(r),typeof e.getClientRects==`function`){let t=r.getBoundingClientRect(),n=i.overflowX!==`visible`||i.textOverflow===`ellipsis`,a=parseFloat(i.fontSize)||t.height;for(let r of e.getClientRects()){let e=n?Math.max(r.left,t.left):r.left,i=n?Math.min(r.right,t.right):r.right,o=Math.min(r.height,a),s=r.top+(r.height-o)/2;c.push({...r,left:e,right:i,top:s,bottom:s+o,width:Math.max(0,i-e),height:o})}}}c.length||c.push(r.getBoundingClientRect());for(let e of c){if(n.length>=t)return;e.width<2||e.height<2||n.push({el:r,rect:e,text:s})}};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))continue;let s=a.el.closest(`[data-tight-lockup]`);if(s!==null&&s===o.el.closest(`[data-tight-lockup]`)||a.el.closest(`.maplibregl-marker`)&&o.el.closest(`.maplibregl-marker`)||a.text&&a.text===o.text)continue;let c=Math.min(a.rect.right,o.rect.right)-Math.max(a.rect.left,o.rect.left),l=Math.min(a.rect.bottom,o.rect.bottom)-Math.max(a.rect.top,o.rect.top);if(c<=t||l<=t)continue;let u=Math.round(c*l);(!r||u>r.px)&&(r={px:u,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}}i();var j={ai:()=>a(()=>import(`./ai-Ba4lZJ9Y.js`).then(e=>e.default),[]),charts1:()=>a(()=>import(`./charts1-EOoxU_K3.js`).then(e=>e.default),[]),charts2:()=>a(()=>import(`./charts2-CaKGzkgJ.js`).then(e=>e.default),[]),code:()=>a(()=>import(`./code-CpjYCNS8.js`).then(e=>e.default),[]),compose:()=>a(()=>import(`./compose-D-OsDiU9.js`).then(e=>e.default),[]),core:()=>a(()=>import(`./core-DEFyprhs.js`).then(e=>e.default),[]),diagrams:()=>a(()=>import(`./diagrams-1DJMD4j-.js`).then(e=>e.default),[]),display:()=>a(()=>import(`./display-OvC57CMc.js`).then(e=>e.default),[]),docs:()=>a(()=>import(`./docs-B2aDtm5K.js`).then(e=>e.default),[]),everyday:()=>a(()=>import(`./everyday-CoZa4kDZ.js`).then(e=>e.default),[]),finance:()=>a(()=>import(`./finance-Bxn_Q1p0.js`).then(e=>e.default),[]),flows:()=>a(()=>import(`./flows-BL81J7yN.js`).then(e=>e.default),[]),forms:()=>a(()=>import(`./forms-DeoXOxdD.js`).then(e=>e.default),[]),layout:()=>a(()=>import(`./layout-CHn3XWJd.js`).then(e=>e.default),[]),learn:()=>a(()=>import(`./learn-CXstDWJf.js`).then(e=>e.default),[]),media:()=>a(()=>import(`./media-VLRh6CX2.js`).then(e=>e.default),[]),nav:()=>a(()=>import(`./nav-Czm-NzPV.js`).then(e=>e.default),[]),overlays:()=>a(()=>import(`./overlays-JxbHtA2o.js`).then(e=>e.default),[]),pickers:()=>a(()=>import(`./pickers-B4-3HOR8.js`).then(e=>e.default),[]),reference:()=>a(()=>import(`./reference-BjexflMu.js`).then(e=>e.default),[]),stats:()=>a(()=>import(`./stats-BeP5Bws0.js`).then(e=>e.default),[]),status:()=>a(()=>import(`./status-BY02LIJt.js`).then(e=>e.default),[]),tables:()=>a(()=>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=r(),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:r,flag:i,mountAll:a}=e,o;t[0]===r?o=t[1]:(o=ee(r),t[0]=r,t[1]=o);let s=o,[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=i?` vlib-tile--${i.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]=n(y),S=a||x,C,w;t[3]!==s||t[4]!==S||t[5]!==r?(C=()=>{let e=s?.family;if(!S||!s||!e)return;let t=!0;return p(!1),M(e,r).then(e=>{if(t){if(!e||typeof e!=`object`||Array.isArray(e)){p(!0);return}l({type:r,props:e,col:s.colDefault,delay:0})}}).catch(()=>{t&&p(!0)}),()=>{t=!1}},w=[S,r,s],t[3]=s,t[4]=S,t[5]=r,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]===r?T=t[9]:(T=(0,N.jsx)(`span`,{className:`vlib-type`,children:r}),t[8]=r,t[9]=T);let E;t[10]!==i||t[11]!==r?(E=i?(0,N.jsxs)(`span`,{className:`vlib-flag vlib-flag--${i.kind}`,title:`${i.el} → ${i.clipper}`,children:[i.kind===`clip`?`clipped`:`scroll`,` `,i.px,`px`]}):(0,N.jsx)(`span`,{className:`vlib-fam`,children:d(r)??`core`}),t[10]=i,t[11]=r,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]!==r?(O=S&&f?(0,N.jsx)(`div`,{className:`vlib-render`,children:(0,N.jsx)(`div`,{className:`vlib-render-error`,role:`alert`,"data-block-type":r,children:`This preview could not be loaded.`})}):S&&c?(0,N.jsx)(`div`,{className:`vlib-render`,children:(0,N.jsx)(L,{type:r,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]=r,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,[r,i]=(0,m.useState)(``),[a,u]=(0,m.useState)(`all`),[d,ee]=(0,m.useState)(o),[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`&&c(d),s(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]!==a||e[14]!==r){let t=r.trim().toLowerCase(),n;e[16]===a?n=e[17]:(n=e=>a===`all`||e.id===a,e[16]=a,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]=a,e[14]=r,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=>i(e.target.value),e[24]=_e):_e=e[24];let V;e[25]===r?V=e[26]:(V=(0,N.jsx)(`input`,{ref:C,className:`vlib-search`,type:`search`,placeholder:`Search visuals… (e.g. funnel, modal, kanban)`,value:r,onChange:_e,"aria-label":`Search visuals`}),e[25]=r,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=a===`all`,Se=`vlib-chip ${a===`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]===a?Y=e[51]:(Y=oe.map(e=>(0,N.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e.id,className:`vlib-chip ${a===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]=a,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]!==r||e[61]!==R?(Q=R.length===0?(0,N.jsxs)(`p`,{className:`vlib-empty`,children:[`No visuals match “`,r,`”.`]}):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]=r,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 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{t as n}from"./LegalPageShell-CDD6D6T_.js";var r=e(),i=t(),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 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{n as i}from"./blockLabel-FogyzEQY.js";import{i as a,o,r as s}from"./neighborhoods-CqECCmo8.js";import{t as c}from"./time-BHTmJR1s.js";var l=e(),u=t(),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=n(),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=6048e5,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};
|