{"version":3,"file":"TeamWorkspaceMap.BCEmmbfE.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","de","init_jsx_runtime","c","p","ce","initMap","cleanups","PEOPLE","AREAS","R","P","G","WF","LINKS","ZC","W","byId","w","i","a","r","cnt","s","y","x","pById","linksOf","l","id","stage","root","panel","flat","st","el","e","tag","cls","html","parent","world","block","f","top","h","z","d","ev","selectBox","refresh","NS","svg","cx","cy","curve","x1","y1","x2","y2","b","plines","stem","togglePerson","buildFlat","pr","ar","g","clearSel","zoneOk","sel","any","lit","shared","focus","k","on","boxPeople","renderPanel","zt","chip","o","both","ws","sh","bridges","n","fit","cam","bb","drag","dx","dy","act","t","mode","ro","TeamWorkspaceMap","ref","host","props","CSS","HTML","init_TeamWorkspaceMap"],"sources":["https:/framerusercontent.com/modules/qJJpYLe3m9O0D0vS7Gux/nQpz9CJauwmemTytOUdB/TeamWorkspaceMap.js"],"sourcesContent":["// @ts-nocheck\n// TeamWorkspaceMap: interactive example Team AI Workspace (3D workflow map + tabs).\n// Example · fictional team. Ported from the local mockup /workspace/sales-site/mockups/map3d.js.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";const CSS='.twm{font-family:Inter,system-ui,sans-serif;color:#0c2454;line-height:1.55;-webkit-font-smoothing:antialiased}.twm{--navy:#0c2454;--navy2:#263b63;--blue:#1769e0;--bg:#f7fbff;--soft:#eaf3ff;--line:#dce7f5;--muted:#587092;--green:#2fc78d;--orange:#f0a22e;--purple:#8b5ce6;\\n--d-bg:#2b2e34;--d-card:#202328;--d-line:#3a3e45;--d-text:#e9ebee;--d-muted:#9a9da5;--robot:#2fb8a6;--partner:#f08c3c;--genius:#4a8fe0}.twm *{box-sizing:border-box}.twm{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--navy);background:var(--bg);line-height:1.55;-webkit-font-smoothing:antialiased}.twm a{color:inherit}.twm .wrap{max-width:1160px;margin:0 auto;padding:0 32px}.twm .preview-bar{background:#fff3d6;color:#6b4a00;font-size:12px;text-align:center;padding:6px 12px;font-weight:600}.twm header.nav{position:sticky;top:0;z-index:10;background:rgba(247,251,255,.95);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}.twm .nav .wrap{display:flex;align-items:center;gap:26px;height:64px}.twm .brand{font-weight:800;letter-spacing:.08em;font-size:13px;text-decoration:none;margin-right:auto}.twm .nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;font-size:14px;font-weight:500}.twm .nav li a{text-decoration:none}.twm .nav li a.on{color:var(--blue)}.twm .nav .dd{position:relative}.twm .nav .dd span{cursor:default}.twm .nav .dd small{font-size:10px}.twm .btn{display:inline-block;background:var(--navy);color:#fff;text-decoration:none;font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;padding:12px 18px;border-radius:6px;border:1px solid var(--navy)}.twm .btn.blue{background:var(--blue);border-color:var(--blue)}.twm .btn.ghost{background:transparent;color:var(--navy)}.twm .btn.sm{padding:9px 14px;font-size:12px}.twm .burger{display:none;font-size:22px}.twm .eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin:0 0 12px}.twm h1{font-size:54px;line-height:1.08;letter-spacing:-.02em;margin:0 0 20px;font-weight:700}.twm h2{font-size:36px;line-height:1.15;letter-spacing:-.015em;margin:0 0 14px;font-weight:700}.twm h3{font-size:19px;margin:0 0 8px}.twm .lead{font-size:19px;color:var(--navy2);max-width:640px}.twm .muted{color:var(--muted)}.twm section{padding:88px 0}.twm .hero{padding:80px 0 64px}.twm .hero .ctas{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0 18px}.twm .ticks{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.twm .ticks span:before{content:\"✓ \";color:var(--green);font-weight:700}.twm .grid{display:grid;gap:20px}.twm .g2{grid-template-columns:repeat(2,1fr)}.twm .g3{grid-template-columns:repeat(3,1fr)}.twm .g4{grid-template-columns:repeat(4,1fr)}.twm .card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;box-shadow:0 1px 2px rgba(12,36,84,.04)}.twm .card p{margin:0;color:var(--navy2);font-size:15px}.twm .card .num{font-size:12px;font-weight:700;color:var(--blue);letter-spacing:.1em}.twm .band{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.twm .alt-head{border:1px dashed var(--orange);background:#fff8ec;border-radius:10px;padding:14px 18px;font-size:14px;margin-top:22px;max-width:640px}.twm .alt-head b{color:#9a5b00}.twm .steps{counter-reset:s}.twm .step{position:relative;padding-left:56px;margin-bottom:26px}.twm .step:before{counter-increment:s;content:counter(s,decimal-leading-zero);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:20px;background:var(--soft);color:var(--blue);font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}.twm .step p{margin:0;color:var(--navy2)}.twm .quote{font-size:24px;line-height:1.4;font-weight:600;max-width:820px}.twm .price{border:2px solid var(--navy);border-radius:16px;padding:34px;background:#fff;max-width:680px}.twm .price .p{font-size:30px;font-weight:800;margin:4px 0 6px}.twm details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-bottom:12px}.twm summary{font-weight:700;cursor:pointer}.twm details p{margin:10px 0 0;color:var(--navy2)}.twm .cta-final{background:var(--navy);color:#fff;border-radius:20px;padding:56px;text-align:center}.twm .cta-final p{color:#c9d6ea;max-width:600px;margin:0 auto 24px}.twm .cta-final .btn{background:#fff;color:var(--navy);border-color:#fff}.twm footer{padding:56px 0 40px;border-top:1px solid var(--line);margin-top:40px;font-size:14px}.twm footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}.twm footer h4{font-size:12px;letter-spacing:.12em;color:var(--muted);margin:0 0 10px}.twm footer a{display:block;text-decoration:none;margin-bottom:6px}.twm .pill{display:inline-block;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--blue)}.twm .route{display:flex;flex-direction:column;gap:12px}.twm .route ul{margin:0;padding-left:18px;color:var(--navy2);font-size:15px}.twm .route .btn{align-self:flex-start;margin-top:auto}.twm .dims{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.twm .dim{background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;padding:16px 18px}.twm .dim p{margin:4px 0 0;font-size:14px;color:var(--muted)}.twm .week{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.twm .dash{background:var(--d-bg);color:var(--d-text);border-radius:18px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(12,36,84,.45);border:1px solid #1a1c20;position:relative}.twm .dash .bar{display:flex;gap:16px;align-items:center;padding:12px 20px;background:#1d1f23;font-size:12px;color:var(--d-muted);overflow:hidden;white-space:nowrap}.twm .dash .bar b{color:#fff}.twm .dash .ex{position:absolute;top:10px;right:14px;background:var(--orange);color:#2a1a00;font-weight:800;font-size:11px;letter-spacing:.08em;padding:4px 10px;border-radius:6px;z-index:2}.twm .dash .in{padding:26px}.twm .dash h4{margin:0 0 10px;font-size:15px}.twm .dash .sub{font-size:12px;color:var(--d-muted)}.twm .dcard{background:var(--d-card);border:1px solid var(--d-line);border-radius:10px;padding:16px}.twm .kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.twm .kpi b{font-size:26px;display:block;line-height:1.1}.twm .kpi span{font-size:12px;font-weight:700}.twm .kpi p{font-size:11px;color:var(--d-muted);margin:4px 0 0;line-height:1.4}.twm .chip{display:inline-block;font-size:11px;border:1px solid #4d6b5c;color:#bfe7cf;border-radius:999px;padding:2px 8px}.twm .chip.grey{border-color:#555;color:#aaa}.twm .cps{display:flex;align-items:center;gap:0}.twm .cp{width:22px;height:22px;border-radius:11px;border:2px dashed #8d9097;display:flex;align-items:center;justify-content:center;font-size:10px}.twm .cp.done{background:#2f6b4f;border:2px solid #6fae8c;color:#d6f2e3}.twm .cpl{flex:1;height:2px;background:#4a4e55;min-width:30px}.twm .bars .row{display:grid;grid-template-columns:170px 1fr 34px;gap:10px;align-items:center;font-size:12px;margin:7px 0}.twm .track{height:8px;background:#3a3e45;border-radius:4px;overflow:hidden}.twm .track i{display:block;height:100%;background:linear-gradient(90deg,#6fae8c,#9fd6b8)}.twm table.roster{width:100%;border-collapse:collapse;font-size:12px}.twm table.roster td,.twm table.roster th{padding:8px 6px;border-bottom:1px solid var(--d-line);text-align:left}.twm table.roster th{color:var(--d-muted);font-weight:600;font-size:10px;letter-spacing:.08em}.twm .zone{display:inline-block;width:9px;height:9px;border-radius:5px;margin-right:5px}.twm .wbox{background:#2b2e34;border:1px solid var(--d-line);border-left:4px solid var(--partner);border-radius:6px;padding:7px 9px;font-size:11px;font-weight:600}.twm .wbox small{display:block;color:var(--d-muted);font-weight:400}.twm .wb-r{border-left-color:var(--robot)}.twm .wb-g{border-left-color:var(--genius)}.twm .area{border:1px solid var(--d-line);border-radius:12px;padding:10px;background:rgba(255,255,255,.02)}.twm .area>div:first-child{font-size:10px;text-align:center;color:var(--d-muted);margin-bottom:6px}.twm .swot{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px}.twm .swot div{background:var(--d-card);border:1px solid var(--d-line);border-radius:8px;padding:10px}.twm .swot b{display:block;margin-bottom:4px}.twm .mod-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--orange);text-transform:uppercase;margin-bottom:6px}.twm .modules .card h3{display:flex;gap:10px;align-items:center}.twm .modules .card h3 i{font-style:normal;font-size:12px;background:var(--soft);color:var(--blue);border-radius:6px;padding:2px 7px}@media (max-width:860px){.twm .wrap{padding:0 20px}.twm .nav ul,.twm .nav .btn{display:none}.twm .burger{display:block}.twm h1{font-size:36px}.twm h2{font-size:28px}.twm section{padding:56px 0}.twm .hero{padding:48px 0 40px}.twm .g2,.twm .g3,.twm .g4,.twm .dims,.twm .week{grid-template-columns:1fr}.twm .kpis{grid-template-columns:repeat(2,1fr)}.twm .dash .in{padding:16px}.twm .bars .row{grid-template-columns:110px 1fr 30px}.twm .hide-m{display:none}.twm .cta-final{padding:36px 22px}.twm footer .cols{grid-template-columns:1fr 1fr}.twm .quote{font-size:20px}.twm .dgrid{grid-template-columns:1fr!important}}.twm .grid>*{min-width:0}.twm .dash .kpis .kpi b small{font-size:13px}.twm .wrap.wide{max-width:1340px}.twm .app{background:#1b1d21;border-radius:16px;overflow:hidden;border:1px solid #0d0e10;box-shadow:0 40px 80px -30px rgba(12,36,84,.55),0 0 0 1px rgba(255,255,255,.03) inset;color:var(--d-text);position:relative}.twm .app-title{height:40px;display:flex;align-items:center;gap:8px;padding:0 14px;background:#141518;border-bottom:1px solid #26282d;font-size:12px;color:var(--d-muted)}.twm .app-title i{width:11px;height:11px;border-radius:6px;display:inline-block}.twm .app-title .t{margin:0 auto;font-weight:600;color:#cfd2d8}.twm .exb{background:var(--orange);color:#2a1a00;font-weight:800;font-size:10.5px;letter-spacing:.08em;padding:4px 9px;border-radius:5px;white-space:nowrap}.twm .app-body{display:grid;grid-template-columns:200px 1fr}.twm .app-side{background:#17191c;border-right:1px solid #26282d;padding:16px 10px;font-size:13px}.twm .app-side .ws{display:flex;gap:8px;align-items:center;padding:6px 8px 16px;font-weight:700;color:#fff}.twm .app-side .ws span{width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,#1769e0,#2fc78d);display:flex;align-items:center;justify-content:center;font-size:11px}.twm .app-side .grp{font-size:10px;letter-spacing:.12em;color:#6d7078;margin:14px 8px 6px}.twm .app-side button{display:flex;width:100%;gap:9px;align-items:center;background:none;border:0;color:#b9bcc3;font:500 13px Inter,sans-serif;padding:8px 10px;border-radius:7px;cursor:pointer;text-align:left}.twm .app-side button.on,.twm .app-side button:hover{background:#25282e;color:#fff}.twm .app-side button em{font-style:normal;width:16px;text-align:center;opacity:.8}.twm .app-main{min-width:0;display:flex;flex-direction:column}.twm .app-tabs{display:flex;gap:2px;padding:0 14px;border-bottom:1px solid #26282d;background:#1b1d21;overflow-x:auto}.twm .app-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#9a9da5;font:600 13px Inter,sans-serif;padding:12px 14px;cursor:pointer;white-space:nowrap}.twm .app-tabs button.on{color:#fff;border-bottom-color:var(--blue)}.twm .tool{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 14px;border-bottom:1px solid #26282d;font-size:12px;color:var(--d-muted)}.twm .tool .tb{background:#25282e;border:1px solid #33363d;color:#e6e7ea;border-radius:7px;font:600 12px Inter,sans-serif;padding:6px 10px;cursor:pointer}.twm .tool .tb.on{background:#e9ebee;color:#16181b}.twm .tool .sep{width:1px;height:20px;background:#33363d;margin:0 4px}.twm .tool .seg{display:inline-flex;border-radius:7px;overflow:hidden;border:1px solid #33363d}.twm .tool .seg .tb{border:0;border-radius:0}.twm .legend{display:flex;flex-wrap:wrap;gap:14px;padding:8px 14px;border-bottom:1px solid #26282d;font-size:12px;color:#c3c6cc;background:#1e2024}.twm .legend .d{display:inline-block;width:9px;height:9px;border-radius:5px;margin-right:6px}.twm .mapview{display:grid;grid-template-columns:1fr 320px;height:640px}.twm .stage{position:relative;overflow:hidden;perspective:1700px;perspective-origin:50% 40%;background:radial-gradient(ellipse at 50% 40%,#2c3038 0%,#1a1c20 75%);cursor:grab;touch-action:none;user-select:none}.twm .stage:active{cursor:grabbing}.twm .world{position:absolute;left:50%;top:50%;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.2,.7,.2,1);background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:40px 40px;border-radius:20px}.twm .face{position:absolute;box-sizing:border-box;backface-visibility:visible}.twm .face.plat.top{background:rgba(58,62,70,.92);border:1px solid #4b5059;border-radius:14px}.twm .face.plat.side{background:#23262b}.twm .face.strip.top{background:rgba(48,52,60,.92)}.twm .plat-label{position:absolute;top:10px;left:0;right:0;text-align:center;font-size:13px;font-weight:700;color:#aeb2ba;letter-spacing:.04em}.twm .face.blk.top{background:#2b2e34;border:1px solid #474b53;border-left:6px solid var(--partner);border-radius:8px;padding:10px 12px;cursor:pointer;transition:background .2s,box-shadow .2s,opacity .2s}.twm .face.blk.top b{display:block;font-size:17px;color:#fff}.twm .face.blk.top small{display:block;color:#a7abb3;font-size:13px;margin-top:2px}.twm .face.blk.top i{position:absolute;right:10px;top:10px;font-style:normal;font-size:11px;color:#8d9097}.twm .face.blk.side{background:#202227;transition:opacity .2s}.twm .face.blk.z-Robot.top{border-left-color:var(--robot)}.twm .face.blk.z-Genius.top{border-left-color:var(--genius)}.twm .face.blk.z-Robot.side.lf{background:#1d5e56}.twm .face.blk.z-Partner.side.lf{background:#7a4a20}.twm .face.blk.z-Genius.side.lf{background:#26497a}.twm .face.dm{opacity:.22}.twm .face.blk.top.lit{background:#353a44;border-color:#8fa3c4}.twm .face.blk.top.hov{background:#383c45}.twm .face.blk.top.sel{background:#1e3a66;border-color:#7fb0ff;box-shadow:0 0 0 2px #7fb0ff,0 0 30px rgba(127,176,255,.5)}.twm .face.blk.top.shared{background:#20473a;border-color:#6fe0b0;box-shadow:0 0 0 2px #6fe0b0,0 0 30px rgba(111,224,176,.45)}.twm svg.links{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.twm svg.links .lk{fill:none;stroke:#7f8796;stroke-width:2;stroke-dasharray:5 6;opacity:.55;transition:all .2s}.twm svg.links .lk.on{stroke:#ffd27a;stroke-width:4;stroke-dasharray:none;opacity:1;filter:drop-shadow(0 0 5px rgba(255,210,122,.7))}.twm svg.links .lk.dimln{opacity:.12}.twm svg.links .pl{stroke:#9fc3ff;stroke-width:2;opacity:0;transition:opacity .2s}.twm svg.links .pl.on{opacity:.75}.twm .stem{position:absolute;width:2px;height:64px;background:linear-gradient(#9aa3b3,rgba(154,163,179,.1));transform-origin:top center}.twm .person{position:absolute;width:100px;height:80px;text-align:center;cursor:pointer;transform-origin:50% 35%}.twm .person span{display:flex;margin:0 auto;width:48px;height:48px;border-radius:24px;background:#3a3e46;border:2px solid #8d93a0;color:#fff;font-weight:800;font-size:15px;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,0,0,.4)}.twm .person small{display:block;font-size:11px;color:#c7cad0;margin-top:4px;line-height:1.2}.twm .person.on span{background:#1769e0;border-color:#cfe0ff;box-shadow:0 0 0 4px rgba(23,105,224,.35),0 8px 18px rgba(0,0,0,.4)}.twm .person.dm span{background:#2a2d33;border-color:#4a4e55;color:#7d8088;box-shadow:none}.twm .person.dm small{color:#6d7078}.twm .hint{position:absolute;left:12px;bottom:10px;font-size:11px;color:#9a9da5;background:rgba(20,21,24,.75);padding:5px 9px;border-radius:6px;pointer-events:none}.twm .panel{border-left:1px solid #26282d;background:#1f2125;padding:16px;overflow:auto;font-size:13px}.twm .panel .ph{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);font-weight:800;margin-bottom:6px}.twm .panel h4{margin:0 0 4px;font-size:17px;color:#fff}.twm .panel .pm{color:#9a9da5;font-size:12px;margin:2px 0}.twm .panel .ps{font-size:11px;font-weight:700;color:#c9ccd2;margin:14px 0 6px;letter-spacing:.04em}.twm .steps3{list-style:none;padding:0;margin:0;counter-reset:k}.twm .steps3 li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 8px;background:#2a2d33;border-radius:6px;margin-bottom:5px}.twm .ztag{font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;color:#111;background:var(--c);white-space:nowrap}.twm .pchip{display:inline-block;background:#2a2d33;border:1px solid #3b3f46;color:#e6e7ea;border-radius:999px;padding:4px 9px;margin:0 4px 5px 0;font:500 11px Inter,sans-serif;cursor:pointer}.twm .conn{display:block;width:100%;text-align:left;background:#2a2d33;border:1px solid #3b3f46;border-left:3px solid #ffd27a;color:#fff;border-radius:7px;padding:7px 9px;margin-bottom:6px;cursor:pointer;font:500 12px Inter,sans-serif}.twm .conn small{display:block;color:#9a9da5;font-size:11px}.twm .pcard{border-top:1px solid #33363d;padding-top:10px;margin-top:10px}.twm .pcard:first-of-type{border-top:0;margin-top:0}.twm .sharebox{background:#1d3a30;border:1px solid #3c7d63;border-radius:9px;padding:10px;margin-bottom:10px}.twm .sharebox .conn{border-left-color:#6fe0b0}.twm .howto{padding-left:18px;color:#c7cad0;font-size:12.5px}.twm .howto li{margin-bottom:6px}.twm .flat{display:none;padding:12px}.twm .is-flat .flat{display:block}.twm .is-flat .stage{display:none}.twm .f-people{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:6px}.twm .f-person{flex:0 0 auto;width:78px;background:none;border:0;color:#c7cad0;font:500 10px Inter,sans-serif;cursor:pointer;transition:opacity .2s}.twm .f-person span{display:flex;margin:0 auto 4px;width:40px;height:40px;border-radius:20px;background:#3a3e46;border:2px solid #8d93a0;color:#fff;font-weight:800;font-size:13px;align-items:center;justify-content:center}.twm .f-person.on span{background:#1769e0;border-color:#cfe0ff}.twm .f-person.dm{opacity:.35}.twm .f-area{background:#2c3037;border:1px solid #444850;border-radius:12px;padding:10px;margin-bottom:10px}.twm .f-al{font-size:11px;color:#aeb2ba;text-align:center;font-weight:700;margin-bottom:8px}.twm .f-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.twm .f-box{text-align:left;background:#22252a;border:1px solid #474b53;border-left:5px solid var(--partner);border-radius:7px;padding:8px;color:#fff;font:600 12px Inter,sans-serif;cursor:pointer;transition:all .2s}.twm .f-box small{display:block;color:#9a9da5;font-weight:400;font-size:10.5px}.twm .f-box.z-Robot{border-left-color:var(--robot)}.twm .f-box.z-Genius{border-left-color:var(--genius)}.twm .f-box.dm{opacity:.25}.twm .f-box.lit{border-color:#8fa3c4}.twm .f-box.sel{background:#1e3a66;border-color:#7fb0ff}.twm .f-box.shared{background:#20473a;border-color:#6fe0b0}.twm .pane{padding:18px}.twm .sw-hero{background:radial-gradient(ellipse at 70% 0%,#dcebfa 0%,var(--bg) 60%)}.twm .badge{display:inline-flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 12px 5px 6px;font-size:13px;font-weight:600;margin-bottom:18px}.twm .badge b{background:var(--navy);color:#fff;border-radius:999px;padding:2px 8px;font-size:11px}.twm .vs{display:grid;grid-template-columns:1fr 1fr;gap:20px}.twm .vs .card{padding:28px}.twm .vs .bad{border-top:4px solid #e0a3a3}.twm .vs .good{border-top:4px solid var(--green)}.twm .vs ul{margin:10px 0 0;padding-left:18px;color:var(--navy2)}.twm .vs li{margin-bottom:6px}@media (max-width:860px){.twm .app-body{grid-template-columns:1fr}.twm .app-side{display:none}.twm .mapview{grid-template-columns:1fr;height:auto}.twm .panel{border-left:0;border-top:1px solid #26282d;max-height:none}.twm .vs{grid-template-columns:1fr}.twm .tool .hide-m{display:none}.twm .app-title .t{font-size:11px}.twm .app-title .dots{display:none}}.twm .mapview>*{min-width:0}.twm .is-flat .tool .seg{display:none}.twm .app.is-flat .app-body{grid-template-columns:1fr}.twm .app.is-flat .app-side{display:none}.twm .app.is-flat .mapview{grid-template-columns:1fr;height:auto}.twm .app.is-flat .panel{border-left:0;border-top:1px solid #26282d}.twm .app.is-flat .tool .hide-m{display:none}.twm .app.is-flat .dgrid{grid-template-columns:1fr!important}.twm .app.is-flat .kpis{grid-template-columns:repeat(2,1fr)}.twm .app.is-flat .app-title .dots{display:none}.twm .app.is-flat .pane{padding:12px}';const HTML='<div class=\"app\" id=\"wfapp\">\\n<div class=\"app-title\"><span class=\"dots\"><i style=\"background:#ff5f57\"></i> <i style=\"background:#febc2e\"></i> <i style=\"background:#28c840\"></i></span><span class=\"t\">Team AI Workspace \\xb7 Comms team</span><span class=\"exb\">EXAMPLE \\xb7 FICTIONAL TEAM</span></div>\\n<div class=\"app-body\"><aside class=\"app-side\"><div class=\"ws\"><span>CT</span>Comms team</div>\\n<div class=\"grp\">WORKSPACE</div><button class=\"on\" data-tab=\"map\"><em>◈</em>Workflow map</button><button class=\"\" data-tab=\"ready\"><em>◔</em>Team readiness</button><button class=\"\" data-tab=\"over\"><em>⇄</em>Overlaps</button><button class=\"\" data-tab=\"init\"><em>✦</em>Initiatives</button>\\n<div class=\"grp\">TEAM</div><button><em>☺</em>People \\xb7 8</button><button><em>⚙</em>AI tools</button><button><em>✉</em>Suggest</button>\\n<div class=\"grp\">CYCLE</div><button><em>●</em>Baseline \\xb7 done</button><button><em>○</em>T1 \\xb7 next</button></aside>\\n<div class=\"app-main\"><div class=\"app-tabs\"><button class=\"on\" data-tab=\"map\">Map</button><button data-tab=\"ready\">Team readiness</button><button data-tab=\"over\">Overlaps</button><button data-tab=\"init\">Initiatives</button></div>\\n<div data-pane=\"map\">\\n<div class=\"tool\"><span class=\"seg\"><button class=\"tb\" data-view=\"3d\">3D</button><button class=\"tb\" data-view=\"2d\">Top</button></span><span class=\"sep hide-m\"></span>\\n<span class=\"hide-m\">Zone</span><button class=\"tb\" data-zone=\"Robot\">Robot</button><button class=\"tb\" data-zone=\"Partner\">Partner</button><button class=\"tb\" data-zone=\"Genius\">Genius</button><span class=\"sep hide-m\"></span>\\n<button class=\"tb hide-m\" data-act=\"rl\">⟲</button><button class=\"tb hide-m\" data-act=\"rr\">⟳</button><button class=\"tb hide-m\" data-act=\"zout\">−</button><button class=\"tb hide-m\" data-act=\"zin\">+</button><button class=\"tb hide-m\" data-act=\"reset\">Reset view</button><button class=\"tb\" data-act=\"clear\">Clear</button></div>\\n<div class=\"legend\"><span><i class=\"d\" style=\"background:var(--robot)\"></i>Robot: AI does the step, a person checks</span><span><i class=\"d\" style=\"background:var(--partner)\"></i>Partner: AI drafts, a person edits and decides</span><span><i class=\"d\" style=\"background:var(--genius)\"></i>Genius: human judgement, relationships, final say</span><span><i class=\"d\" style=\"background:#ffd27a\"></i>Shared work between workflows</span></div>\\n<div class=\"mapview\"><div class=\"stage\"><div class=\"hint\">Drag to rotate \\xb7 scroll to zoom \\xb7 click a person or a box</div></div><div class=\"flat\"></div><div class=\"panel\"></div></div></div>\\n<div class=\"pane\" data-pane=\"ready\" hidden=\"\"><div style=\"display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:18px\"><div><div class=\"sub\" style=\"letter-spacing:.1em;text-transform:uppercase;font-size:10px\">Example organisation \\xb7 AI readiness and workflow dashboard</div>\\n<div style=\"font-size:26px;font-weight:800;margin:4px 0 8px\">Comms team</div><span class=\"chip\">Survey 8/8 \\xb7 Baseline</span> <span class=\"chip\">Initial 1-on-1s 6/8</span><div class=\"sub\" style=\"margin-top:6px\">Private team link \\xb7 view only</div></div>\\n<div style=\"min-width:260px\"><div style=\"display:flex;justify-content:space-between;font-size:11px;font-weight:700;margin-bottom:6px\"><span>Scorecard checkpoints</span><span>1 of 4</span></div>\\n<div class=\"cps\"><div class=\"cp done\">✓</div><div class=\"cpl\"></div><div class=\"cp\"></div><div class=\"cpl\"></div><div class=\"cp\"></div><div class=\"cpl\"></div><div class=\"cp\"></div></div>\\n<div style=\"display:flex;justify-content:space-between;font-size:10px;color:var(--d-muted);margin-top:4px\"><span>Baseline</span><span>T1</span><span>T2</span><span>T3</span></div></div></div>\\n<div class=\"kpis\"><div class=\"dcard kpi\"><b>12</b><span>Workflows mapped</span><p>36 steps across 4 theme areas</p></div><div class=\"dcard kpi\"><b>52<small>h/mo</small></b><span>Hours entered</span><p>Where people gave a figure: a floor</p></div><div class=\"dcard kpi\"><b>21<small>h/mo</small></b><span>Hours freed (estimate)</span><p>Hours weighted by zone</p></div><div class=\"dcard kpi\"><b>24<small>%</small></b><span>Variance</span><p>How far apart the team\\'s scores are</p></div><div class=\"dcard kpi\"><b>12</b><span>Overlaps</span><p>Places where workflows meet</p></div></div><div class=\"grid dgrid\" style=\"grid-template-columns:1fr 1fr;gap:12px;margin-top:12px\"><div class=\"dcard\"><div class=\"mod-label\">Readiness</div><h4>Team readiness: 32 / 100 \\xb7 Emerging</h4><div class=\"bars\"><div class=\"row\"><span>Strategy and Leadership</span><div class=\"track\"><i style=\"width:34%\"></i></div><b>34</b></div><div class=\"row\"><span>People and Capability</span><div class=\"track\"><i style=\"width:41%\"></i></div><b>41</b></div><div class=\"row\"><span>Technology and Knowledge</span><div class=\"track\"><i style=\"width:29%\"></i></div><b>29</b></div><div class=\"row\"><span>Governance</span><div class=\"track\"><i style=\"width:18%\"></i></div><b>18</b></div><div class=\"row\"><span>Workflows</span><div class=\"track\"><i style=\"width:46%\"></i></div><b>46</b></div><div class=\"row\"><span>Measurement and Optimisation</span><div class=\"track\"><i style=\"width:22%\"></i></div><b>22</b></div></div><div class=\"sub\">Baseline set. Change is measured from T1.</div></div><div class=\"dcard\"><div class=\"mod-label\">Team</div><h4>Who has taken part</h4><table class=\"roster\"><tr><th>PERSON</th><th>TITLE</th><th>SURVEY</th><th>1-ON-1</th></tr><tr><td><b>AM</b></td><td>Head of Communications</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>BK</b></td><td>Content Lead</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>CR</b></td><td>Social Media Lead</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>DL</b></td><td>Press Officer</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>EF</b></td><td>Video Producer</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>GN</b></td><td>Digital Editor</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip grey\">Booked</span></td></tr><tr><td><b>HP</b></td><td>Events Coordinator</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip\">✓ Done</span></td></tr><tr><td><b>JT</b></td><td>Designer</td><td><span class=\"chip\">✓ Responded</span></td><td><span class=\"chip grey\">Not held</span></td></tr></table><div class=\"sub\" style=\"margin-top:8px\">Yes or no only. No scores, no rankings.</div></div></div></div>\\n<div class=\"pane\" data-pane=\"over\" hidden=\"\"><div class=\"grid dgrid\" style=\"grid-template-columns:1fr 1fr 1fr;gap:12px\"><div class=\"dcard\"><div class=\"mod-label\">Overlaps</div><h4>Where workflows meet</h4><div style=\"display:flex;justify-content:space-between;border-bottom:1px solid var(--d-line);padding:7px 0;font-size:12px\"><b>Content plan ↔ Social posting</b><span class=\"sub\">BK, CR, GN</span></div><div style=\"display:flex;justify-content:space-between;border-bottom:1px solid var(--d-line);padding:7px 0;font-size:12px\"><b>Press releases ↔ Media enquiries</b><span class=\"sub\">AM, DL</span></div><div style=\"display:flex;justify-content:space-between;border-bottom:1px solid var(--d-line);padding:7px 0;font-size:12px\"><b>Video edits ↔ Run sheets</b><span class=\"sub\">EF</span></div><div style=\"display:flex;justify-content:space-between;border-bottom:1px solid var(--d-line);padding:7px 0;font-size:12px\"><b>Design requests ↔ Event briefs</b><span class=\"sub\">HP</span></div><div class=\"sub\" style=\"margin-top:6px\">Shared work is where one fix helps several people.</div></div><div class=\"dcard\"><div class=\"mod-label\">Genius list</div><h4>What stays human, by theme</h4><div style=\"margin:6px 0;font-size:12px\"><span class=\"zone\" style=\"background:var(--genius)\"></span><b>Press and media</b><div class=\"sub\" style=\"margin-left:14px\">Journalist relationships, crisis judgement</div></div><div style=\"margin:6px 0;font-size:12px\"><span class=\"zone\" style=\"background:var(--genius)\"></span><b>Events</b><div class=\"sub\" style=\"margin-left:14px\">Speaker care, on-the-day calls</div></div><div style=\"margin:6px 0;font-size:12px\"><span class=\"zone\" style=\"background:var(--genius)\"></span><b>Leadership</b><div class=\"sub\" style=\"margin-left:14px\">Year plan, priorities</div></div></div><div class=\"dcard\"><div class=\"mod-label\">SWOT</div><h4>Team AI readiness</h4><div class=\"swot\"><div><b style=\"color:#6fae8c\">Strengths</b>Willing team, clear workflows</div><div><b style=\"color:#f08c3c\">Weaknesses</b>No shared AI rules yet</div><div><b style=\"color:#4a8fe0\">Opportunities</b>Reporting and captions</div><div><b style=\"color:#d66\">Threats</b>Tools adopted one by one</div></div></div></div></div>\\n<div class=\"pane\" data-pane=\"init\" hidden=\"\"><div class=\"grid dgrid\" style=\"grid-template-columns:1fr 1fr 1fr;gap:12px\"><div class=\"dcard\"><div class=\"mod-label\">AI initiatives</div><h4>Proofs of concept by checkpoint</h4>\\n<div style=\"font-size:12px\"><div style=\"font-weight:700;margin-bottom:4px\">T0</div>\\n<div class=\"wbox wb-r\" style=\"margin-bottom:5px\">Coverage report draft<small>Quick win</small></div><div class=\"wbox\" style=\"margin-bottom:5px\">Shared content plan<small>Candidate</small></div><div class=\"wbox wb-g\" style=\"margin-bottom:8px\">Team AI rules<small>To explore</small></div>\\n<div class=\"sub\" style=\"border-top:1px solid var(--d-line);padding:6px 0\">▸ T1</div><div class=\"sub\" style=\"border-top:1px solid var(--d-line);padding:6px 0\">▸ T2</div><div class=\"sub\" style=\"border-top:1px solid var(--d-line);padding:6px 0\">▸ T3</div></div></div><div class=\"dcard\"><div class=\"mod-label\">Team AI tools</div><h4>What the team really uses</h4><span class=\"chip grey\" style=\"margin:3px 3px 0 0;display:inline-block\">Chat assistant</span><span class=\"chip grey\" style=\"margin:3px 3px 0 0;display:inline-block\">Transcription app</span><span class=\"chip grey\" style=\"margin:3px 3px 0 0;display:inline-block\">Design tool</span><span class=\"chip grey\" style=\"margin:3px 3px 0 0;display:inline-block\">Scheduling tool</span><span class=\"chip grey\" style=\"margin:3px 3px 0 0;display:inline-block\">Translation tool</span><div class=\"sub\" style=\"margin-top:8px\">Confirmed use only, updated as the team changes.</div></div><div class=\"dcard\"><div class=\"mod-label\">Suggest</div><h4>✉ Suggest an update</h4><div style=\"background:#2b2e34;border:1px solid var(--d-line);border-radius:6px;padding:10px;font-size:12px;color:var(--d-muted)\">New workflow, new data, an edit…</div><div class=\"sub\" style=\"margin-top:6px\">Goes straight to Pablo. The team keeps the map true.</div></div></div></div>\\n</div></div></div>';function initMap(root){const cleanups=[];const PEOPLE=[[\"AM\",\"Head of Communications\"],[\"BK\",\"Content Lead\"],[\"CR\",\"Social Media Lead\"],[\"DL\",\"Press Officer\"],[\"EF\",\"Video Producer\"],[\"GN\",\"Digital Editor\"],[\"HP\",\"Events Coordinator\"],[\"JT\",\"Designer\"]];const AREAS=[{id:\"press\",label:\"Press and media\",x:40,y:160,w:540,h:270},{id:\"content\",label:\"Content and social\",x:620,y:160,w:540,h:270},{id:\"events\",label:\"Events and partners\",x:40,y:470,w:540,h:270},{id:\"ops\",label:\"Planning and reporting\",x:620,y:470,w:540,h:270}];const R=\"Robot\",P=\"Partner\",G=\"Genius\";const WF=[{id:\"w1\",t:\"Press releases\",a:\"press\",p:[\"AM\",\"DL\"],s:[[\"Draft from the brief\",P],[\"Check facts and quotes\",G],[\"Translate\",R],[\"Send to the media list\",R]]},{id:\"w2\",t:\"Media enquiries\",a:\"press\",p:[\"DL\",\"AM\"],s:[[\"Sort the shared inbox\",R],[\"Draft replies\",P],[\"Decide who answers\",G]]},{id:\"w3\",t:\"Coverage report\",a:\"press\",p:[\"DL\",\"BK\"],s:[[\"Collect clippings\",R],[\"Summarise coverage\",P],[\"Pick highlights for leadership\",G]]},{id:\"w4\",t:\"Content plan\",a:\"content\",p:[\"BK\",\"CR\",\"GN\",\"AM\"],s:[[\"Gather ideas\",P],[\"Set priorities\",G],[\"Build the weekly calendar\",R]]},{id:\"w5\",t:\"Social posting\",a:\"content\",p:[\"CR\",\"GN\"],s:[[\"Write captions\",P],[\"Resize assets\",R],[\"Schedule posts\",R],[\"Reply to comments\",G]]},{id:\"w6\",t:\"Website articles\",a:\"content\",p:[\"GN\",\"BK\"],s:[[\"First draft\",P],[\"Edit and approve\",G],[\"Add search tags\",R]]},{id:\"w7\",t:\"Video edits\",a:\"content\",p:[\"EF\",\"JT\",\"CR\"],s:[[\"Rough cut\",P],[\"Subtitles\",R],[\"Final sign-off\",G]]},{id:\"w8\",t:\"Event briefs\",a:\"events\",p:[\"HP\",\"AM\",\"BK\"],s:[[\"Gather the details\",R],[\"Draft the brief\",P],[\"Agree key messages\",G]]},{id:\"w9\",t:\"Speaker care\",a:\"events\",p:[\"HP\"],s:[[\"Send invitations\",P],[\"Personal follow-up\",G]]},{id:\"w10\",t:\"Run sheets\",a:\"events\",p:[\"HP\",\"EF\"],s:[[\"Build from the template\",R],[\"Check timings\",P]]},{id:\"w11\",t:\"Monthly report\",a:\"ops\",p:[\"AM\",\"BK\",\"CR\"],s:[[\"Pull channel data\",R],[\"Draft insights\",P],[\"Recommendations\",G]]},{id:\"w12\",t:\"Design requests\",a:\"ops\",p:[\"JT\",\"GN\",\"HP\"],s:[[\"Intake form\",R],[\"First drafts\",P],[\"Brand check\",G]]}];const LINKS=[[\"w1\",\"w2\",\"Same journalists\"],[\"w1\",\"w6\",\"Press release becomes an article\"],[\"w1\",\"w8\",\"Event announcements\"],[\"w4\",\"w5\",\"The plan feeds the posts\"],[\"w4\",\"w6\",\"Articles come from the plan\"],[\"w4\",\"w8\",\"Events go into the plan\"],[\"w5\",\"w7\",\"Video cut for social\"],[\"w3\",\"w11\",\"Coverage feeds the report\"],[\"w5\",\"w11\",\"Social numbers feed the report\"],[\"w7\",\"w10\",\"Filming on the day\"],[\"w12\",\"w5\",\"Assets for posts\"],[\"w12\",\"w8\",\"Event materials\"]];const ZC={Robot:\"#2fb8a6\",Partner:\"#f08c3c\",Genius:\"#4a8fe0\"};const W=1200,H=780,BW=230,BH=80;const byId={};WF.forEach(w=>byId[w.id]=w);// layout\nAREAS.forEach(a=>{let i=0;WF.filter(w=>w.a===a.id).forEach(w=>{const c=i%2,r=Math.floor(i/2);w.x=a.x+30+c*250;w.y=a.y+60+r*100;i++;const cnt={};w.s.forEach(s=>cnt[s[1]]=(cnt[s[1]]||0)+1);w.z=Object.keys(cnt).sort((x,y)=>cnt[y]-cnt[x])[0];});});PEOPLE.forEach((p,i)=>{p.x=110+i*140;p.y=88;});const pById={};PEOPLE.forEach(p=>pById[p[0]]=p);const linksOf=id=>LINKS.filter(l=>l[0]===id||l[1]===id).map(l=>({o:l[0]===id?l[1]:l[0],n:l[2]}));const stage=root.querySelector(\".stage\"),panel=root.querySelector(\".panel\"),flat=root.querySelector(\".flat\");const st={rx:56,rz:-28,zoom:1.12,people:new Set,box:null,hover:null,zones:new Set,flat:false};const el=(tag,cls,parent,html)=>{const e=document.createElement(tag);if(cls)e.className=cls;if(html!=null)e.innerHTML=html;if(parent)parent.appendChild(e);return e;};// ---- 3D world\nconst world=el(\"div\",\"world\",stage);world.style.width=W+\"px\";world.style.height=H+\"px\";function block(x,y,w,h,z,d,cls){const f={};const top=el(\"div\",\"face top \"+cls,world);Object.assign(top.style,{left:x+\"px\",top:y+\"px\",width:w+\"px\",height:h+\"px\",transform:`translateZ(${z+d}px)`});f.top=top;[[\"fr\",x,y+h,w,d,\"top\",\"rotateX(-90deg)\"],[\"bk\",x,y,w,d,\"top\",\"rotateX(-90deg)\"],[\"lf\",x,y,d,h,\"left\",\"rotateY(90deg)\"],[\"rt\",x+w,y,d,h,\"left\",\"rotateY(90deg)\"]].forEach(s=>{const e=el(\"div\",\"face side \"+s[0]+\" \"+cls,world);Object.assign(e.style,{left:s[1]+\"px\",top:s[2]+\"px\",width:s[3]+\"px\",height:s[4]+\"px\",transformOrigin:s[5]+\" left\",transform:`translateZ(${z+d}px) ${s[6]}`});(f.sides=f.sides||[]).push(e);});return f;}// team strip\nconst strip=block(40,30,1120,110,0,6,\"plat strip\");el(\"div\",\"plat-label\",strip.top,\"Team\");AREAS.forEach(a=>{a.f=block(a.x,a.y,a.w,a.h,0,10,\"plat\");el(\"div\",\"plat-label\",a.f.top,a.label);});WF.forEach(w=>{w.f=block(w.x,w.y,BW,BH,10,18,\"blk z-\"+w.z);w.f.top.innerHTML=`<b>${w.t}</b><small>${w.p.join(\", \")}</small><i>${w.s.length} steps</i>`;w.f.top.dataset.box=w.id;w.f.top.addEventListener(\"click\",ev=>{ev.stopPropagation();selectBox(w.id);});w.f.top.addEventListener(\"mouseenter\",()=>{st.hover=w.id;refresh();});w.f.top.addEventListener(\"mouseleave\",()=>{st.hover=null;refresh();});});// svg links layer\nconst NS=\"http://www.w3.org/2000/svg\";const svg=document.createElementNS(NS,\"svg\");svg.setAttribute(\"class\",\"links\");svg.setAttribute(\"width\",W);svg.setAttribute(\"height\",H);svg.setAttribute(\"viewBox\",`0 0 ${W} ${H}`);svg.style.transform=\"translateZ(34px)\";world.appendChild(svg);const cx=w=>w.x+BW/2,cy=w=>w.y+BH/2;const curve=(x1,y1,x2,y2)=>{const mx=(x1+x2)/2,my=(y1+y2)/2-40;return`M${x1},${y1} Q${mx},${my} ${x2},${y2}`;};LINKS.forEach(l=>{const a=byId[l[0]],b=byId[l[1]];const p=document.createElementNS(NS,\"path\");p.setAttribute(\"d\",curve(cx(a),cy(a),cx(b),cy(b)));p.setAttribute(\"class\",\"lk\");svg.appendChild(p);l.el=p;});const plines=[];PEOPLE.forEach(p=>WF.forEach(w=>{if(w.p.includes(p[0])){const e=document.createElementNS(NS,\"path\");e.setAttribute(\"d\",`M${p.x},${p.y+20} L${cx(w)},${cy(w)}`);e.setAttribute(\"class\",\"pl\");svg.appendChild(e);plines.push({p:p[0],w:w.id,el:e});}}));// people billboards\nPEOPLE.forEach(p=>{const stem=el(\"div\",\"stem\",world);Object.assign(stem.style,{left:p.x-1+\"px\",top:p.y+\"px\"});p.stem=stem;const n=el(\"div\",\"person\",world,`<span>${p[0]}</span><small>${p[1]}</small>`);Object.assign(n.style,{left:p.x-50+\"px\",top:p.y-28+\"px\"});n.dataset.person=p[0];p.n=n;n.addEventListener(\"click\",ev=>{ev.stopPropagation();togglePerson(p[0]);});});// ---- flat (2D) fallback\nfunction buildFlat(){flat.innerHTML=\"\";const pr=el(\"div\",\"f-people\",flat);PEOPLE.forEach(p=>{const b=el(\"button\",\"f-person\",pr,`<span>${p[0]}</span><small>${p[1]}</small>`);b.dataset.person=p[0];b.onclick=()=>togglePerson(p[0]);p.fn=b;});AREAS.forEach(a=>{const ar=el(\"div\",\"f-area\",flat,`<div class=\"f-al\">${a.label}</div>`);const g=el(\"div\",\"f-grid\",ar);WF.filter(w=>w.a===a.id).forEach(w=>{const b=el(\"button\",\"f-box z-\"+w.z,g,`<b>${w.t}</b><small>${w.p.join(\", \")}</small>`);b.dataset.box=w.id;b.onclick=()=>selectBox(w.id);w.fb=b;});});}buildFlat();// ---- state logic\nfunction togglePerson(id){st.box=null;st.people.has(id)?st.people.delete(id):st.people.add(id);refresh();}function selectBox(id){st.box=st.box===id?null:id;refresh();}function clearSel(){st.people.clear();st.box=null;refresh();}function zoneOk(w){return!st.zones.size||w.s.some(s=>st.zones.has(s[1]));}function refresh(){const sel=[...st.people];const any=sel.length||st.box;const lit=new Set,shared=new Set;let focus=st.box||st.hover;if(st.box){lit.add(st.box);linksOf(st.box).forEach(x=>lit.add(x.o));}if(sel.length){WF.forEach(w=>{if(w.p.some(x=>st.people.has(x)))lit.add(w.id);if(sel.length>1&&sel.every(x=>w.p.includes(x)))shared.add(w.id);});}WF.forEach(w=>{const c={dm:any&&!lit.has(w.id)||!zoneOk(w),lit:lit.has(w.id),sel:st.box===w.id,shared:shared.has(w.id),hov:st.hover===w.id};[w.f.top,...w.f.sides,w.fb].forEach(e=>{for(const k in c)e.classList.toggle(k,c[k]);});});LINKS.forEach(l=>{const on=focus&&(l[0]===focus||l[1]===focus)||sel.length&&lit.has(l[0])&&lit.has(l[1]);l.el.classList.toggle(\"on\",!!on);l.el.classList.toggle(\"dimln\",!!any&&!on);});const boxPeople=st.box?byId[st.box].p:[];plines.forEach(x=>x.el.classList.toggle(\"on\",st.people.has(x.p)||st.box===x.w));PEOPLE.forEach(p=>{const on=st.people.has(p[0])||boxPeople.includes(p[0]);[p.n,p.fn].forEach(e=>{e.classList.toggle(\"on\",on);e.classList.toggle(\"dm\",!!any&&!on);});});renderPanel(lit,shared);}const zt=z=>`<span class=\"ztag\" style=\"--c:${ZC[z]}\">${z}</span>`;const chip=id=>`<button class=\"pchip\" data-p=\"${id}\">${id} \\xb7 ${pById[id][1]}</button>`;function renderPanel(lit,shared){const sel=[...st.people];let h=\"\";if(st.box){const w=byId[st.box];const ar=AREAS.find(a=>a.id===w.a);h=`<div class=\"ph\">Workflow</div><h4>${w.t}</h4><div class=\"pm\">${ar.label} \\xb7 ${w.s.length} steps</div>\n  <div class=\"ps\">Steps</div><ol class=\"steps3\">${w.s.map(s=>`<li><span>${s[0]}</span>${zt(s[1])}</li>`).join(\"\")}</ol>\n  <div class=\"ps\">Who's involved</div>${w.p.map(chip).join(\"\")}\n  <div class=\"ps\">Connected workflows</div>${linksOf(w.id).map(x=>{const o=byId[x.o];const both=o.p.filter(p=>w.p.includes(p));return`<button class=\"conn\" data-b=\"${o.id}\"><b>${o.t}</b><small>${x.n}</small><small>${o.p.join(\", \")}${both.length?\" \\xb7 shared with \"+both.join(\", \"):\"\"}</small></button>`;}).join(\"\")||'<div class=\"pm\">None yet</div>'}`;}else if(sel.length){h=`<div class=\"ph\">${sel.length>1?sel.length+\" people selected\":\"Person\"}</div>`+sel.map(id=>{const ws=WF.filter(w=>w.p.includes(id));return`<div class=\"pcard\"><h4>${id}</h4><div class=\"pm\">${pById[id][1]} \\xb7 ${ws.length} workflows</div>${ws.map(w=>`<button class=\"conn\" data-b=\"${w.id}\"><b>${w.t}</b><small>${w.s.map(s=>s[1][0]).join(\" \\xb7 \")}${shared.has(w.id)?\" \\xb7 shared by all selected\":\"\"}</small></button>`).join(\"\")}</div>`;}).join(\"\");if(sel.length>1){const sh=[...shared].map(i=>byId[i]);const bridges=LINKS.filter(l=>{const a=byId[l[0]],b=byId[l[1]];return sel.some(x=>a.p.includes(x))&&sel.some(x=>b.p.includes(x))&&!(shared.has(l[0])&&shared.has(l[1]));});h=`<div class=\"ph\">${sel.length} people selected</div><div class=\"sharebox\"><b>Shared work</b>${sh.length?sh.map(w=>`<button class=\"conn\" data-b=\"${w.id}\"><b>${w.t}</b><small>Both work on this</small></button>`).join(\"\"):'<div class=\"pm\">No workflow with all of them yet.</div>'}\n   <b style=\"display:block;margin-top:10px\">Where their work meets</b>${bridges.slice(0,5).map(l=>`<div class=\"pm\">${byId[l[0]].t} ↔ ${byId[l[1]].t} \\xb7 ${l[2]}</div>`).join(\"\")}</div>`+h.replace(/^<div class=\"ph\">[^<]*<\\/div>/,\"\");}}else{h=`<div class=\"ph\">How to read this map</div><h4>Your team's work, in one place</h4><p class=\"pm\">Each box groups a set of workflows. Colours show who should lead each step.</p>\n  <ul class=\"howto\"><li><b>Click a person</b> to see their workflows. Click more people to see the work they share.</li><li><b>Click a box</b> to see its steps, who's involved and what it connects to.</li><li><b>Drag</b> to rotate, scroll or use + and − to zoom.</li></ul>\n  <div class=\"ps\">This example</div><div class=\"pm\">${WF.length} workflow boxes \\xb7 ${WF.reduce((n,w)=>n+w.s.length,0)} steps \\xb7 ${LINKS.length} connections \\xb7 ${PEOPLE.length} people</div>`;}panel.innerHTML=h;panel.querySelectorAll(\"[data-b]\").forEach(b=>b.onclick=()=>{st.people.clear();st.box=b.dataset.b;refresh();});panel.querySelectorAll(\"[data-p]\").forEach(b=>b.onclick=()=>{st.box=null;st.people.clear();st.people.add(b.dataset.p);refresh();});}// ---- camera\nfunction fit(){const r=stage.getBoundingClientRect();return Math.min(r.width/1380,r.height/1e3);}function cam(){const s=fit()*st.zoom;world.style.transform=`translate(-50%,-50%) scale(${s}) rotateX(${st.rx}deg) rotateZ(${st.rz}deg)`;const bb=`rotateZ(${-st.rz}deg) rotateX(${-st.rx}deg)`;PEOPLE.forEach(p=>{p.n.style.transform=`translateZ(64px) ${bb}`;p.stem.style.transform=`rotateZ(${-st.rz}deg) rotateX(-90deg)`;});root.querySelectorAll(\"[data-view]\").forEach(b=>b.classList.toggle(\"on\",b.dataset.view===\"3d\"===st.rx>0));}let drag=null;stage.addEventListener(\"pointerdown\",e=>{if(e.target.closest(\".top.blk,.person\"))return;drag={x:e.clientX,y:e.clientY,rx:st.rx,rz:st.rz,m:false};stage.setPointerCapture(e.pointerId);});stage.addEventListener(\"pointermove\",e=>{if(!drag)return;const dx=e.clientX-drag.x,dy=e.clientY-drag.y;if(Math.abs(dx)+Math.abs(dy)>3)drag.m=true;st.rz=drag.rz+dx*.35;st.rx=Math.max(0,Math.min(72,drag.rx-dy*.25));cam();});stage.addEventListener(\"pointerup\",e=>{if(drag&&!drag.m)clearSel();drag=null;});stage.addEventListener(\"wheel\",e=>{e.preventDefault();st.zoom=Math.max(.6,Math.min(2.2,st.zoom*(e.deltaY<0?1.08:.93)));cam();},{passive:false});const act={zin:()=>st.zoom=Math.min(2.2,st.zoom*1.15),zout:()=>st.zoom=Math.max(.6,st.zoom/1.15),rl:()=>st.rz-=30,rr:()=>st.rz+=30,reset:()=>{st.rx=56;st.rz=-28;st.zoom=1.12;},clear:()=>clearSel()};root.querySelectorAll(\"[data-act]\").forEach(b=>b.onclick=()=>{act[b.dataset.act]();cam();});root.querySelectorAll(\"[data-view]\").forEach(b=>b.onclick=()=>{if(b.dataset.view===\"2d\"){st.rx=0;st.rz=0;}else{st.rx=56;st.rz=-28;}cam();});root.querySelectorAll(\"[data-zone]\").forEach(b=>b.onclick=()=>{const z=b.dataset.zone;st.zones.has(z)?st.zones.delete(z):st.zones.add(z);b.classList.toggle(\"on\");refresh();});// tabs\nroot.querySelectorAll(\"[data-tab]\").forEach(b=>b.onclick=()=>{const t=b.dataset.tab;root.querySelectorAll(\"[data-tab]\").forEach(x=>x.classList.toggle(\"on\",x.dataset.tab===t));root.querySelectorAll(\"[data-pane]\").forEach(p=>p.hidden=p.dataset.pane!==t);if(t===\"map\")cam();});function mode(){st.flat=root.clientWidth<760;root.classList.toggle(\"is-flat\",st.flat);cam();}const ro=new ResizeObserver(()=>mode());ro.observe(root);mode();refresh();cleanups.push(()=>ro.disconnect());return()=>cleanups.forEach(f=>f());}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TeamWorkspaceMap(props){const ref=useRef(null);useEffect(()=>{const host=ref.current;if(!host)return;const root=host.querySelector(\".app\");if(!root)return;return initMap(root);},[]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"twm\",style:{width:\"100%\",...props.style},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:HTML}})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TeamWorkspaceMap\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TeamWorkspaceMap.map"],"mappings":"A,gIAGqt9B,SAASQ,EAAQ,EAAK,CAAC,IAAMC,EAAS,CAAC,EAAQC,EAAO,CAAC,CAAC,KAAK,wBAAwB,EAAE,CAAC,KAAK,cAAc,EAAE,CAAC,KAAK,mBAAmB,EAAE,CAAC,KAAK,eAAe,EAAE,CAAC,KAAK,gBAAgB,EAAE,CAAC,KAAK,gBAAgB,EAAE,CAAC,KAAK,oBAAoB,EAAE,CAAC,KAAK,UAAU,CAAC,EAAQC,EAAM,CAAC,CAAC,GAAG,QAAQ,MAAM,kBAAkB,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,UAAU,MAAM,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,SAAS,MAAM,sBAAsB,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,MAAM,yBAAyB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,EAAQC,EAAE,QAAQC,EAAE,UAAUC,EAAE,SAAeC,EAAG,CAAC,CAAC,GAAG,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC,uBAAuBF,CAAC,EAAE,CAAC,yBAAyBC,CAAC,EAAE,CAAC,YAAYF,CAAC,EAAE,CAAC,yBAAyBA,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,kBAAkB,EAAE,QAAQ,E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