graview 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preview/{chunk.XXMYKBLT.js → chunk.2OBIO5Y6.js} +1 -1
- package/dist/preview/{chunk.3MWBWSYF.js → chunk.2QQAOJET.js} +1 -1
- package/dist/preview/{chunk.FCRFQ7ZW.js → chunk.3P4IIXIT.js} +1 -1
- package/dist/preview/{chunk.FRS3S7DN.js → chunk.3QXHII5W.js} +1 -1
- package/dist/preview/chunk.4J75WRDG.js +1 -0
- package/dist/preview/{chunk.HP3ZEDCD.js → chunk.4NZBMZC7.js} +3 -3
- package/dist/preview/{chunk.HCDKSDIS.js → chunk.5B7NWF7C.js} +1 -1
- package/dist/preview/{chunk.B2WRXGFI.js → chunk.5FZQI2US.js} +1 -1
- package/dist/preview/{chunk.HUKAVTMX.js → chunk.5MCC54VM.js} +1 -1
- package/dist/preview/{chunk.ZTFW7RKP.js → chunk.5VB7DJTL.js} +1 -1
- package/dist/preview/{chunk.HPEGQN6E.js → chunk.656N5BHG.js} +1 -1
- package/dist/preview/{chunk.U5ACEYAN.js → chunk.6J7DR7XQ.js} +1 -1
- package/dist/preview/{chunk.OMMKD2NU.js → chunk.747GGBPR.js} +1 -1
- package/dist/preview/{chunk.CNMITOKP.js → chunk.A3F7MFDR.js} +1 -1
- package/dist/preview/{chunk.JZBBGY4B.js → chunk.AEHPDVLQ.js} +1 -1
- package/dist/preview/{chunk.MWJUZG3C.js → chunk.AINNENYD.js} +2 -2
- package/dist/preview/{chunk.7WHWD5YJ.js → chunk.B2KITMSD.js} +1 -1
- package/dist/preview/{chunk.UA5UYINM.js → chunk.BGW7XTMH.js} +1 -1
- package/dist/preview/{chunk.RH45AW2W.js → chunk.BL6VDLAW.js} +1 -1
- package/dist/preview/{chunk.AHCI7ZDO.js → chunk.CDMV6L5I.js} +1 -1
- package/dist/preview/{chunk.VOFUIWAX.js → chunk.CHJZ7LST.js} +1 -1
- package/dist/preview/{chunk.RN3EZVV4.js → chunk.D4WQEBWV.js} +1 -1
- package/dist/preview/{chunk.WAB6ZS2V.js → chunk.DLT3EE4D.js} +1 -1
- package/dist/preview/{chunk.YJCT3DV2.js → chunk.DPP7ITTU.js} +1 -1
- package/dist/preview/{chunk.6VRJII5M.js → chunk.DQ5HAB3N.js} +1 -1
- package/dist/preview/chunk.DTR5I4BI.js +1 -0
- package/dist/preview/{chunk.35KI7XYV.js → chunk.EAM4NAQH.js} +1 -1
- package/dist/preview/{chunk.VSOB2QEK.js → chunk.EQWOQOFJ.js} +1 -1
- package/dist/preview/{chunk.E7EQ2VTE.js → chunk.FHXXYWL3.js} +1 -1
- package/dist/preview/{chunk.B6VI576I.js → chunk.FIVLFXFB.js} +1 -1
- package/dist/preview/{chunk.T3M4FALL.js → chunk.FVPOSGNG.js} +2 -2
- package/dist/preview/{chunk.6A62UVAE.js → chunk.FX6GH57T.js} +1 -1
- package/dist/preview/{chunk.XZYJRNRY.js → chunk.G2ZPQUXM.js} +1 -1
- package/dist/preview/{chunk.TCSZZAYB.js → chunk.GCGITEON.js} +1 -1
- package/dist/preview/{chunk.RYEAMM73.js → chunk.GCVO6N26.js} +1 -1
- package/dist/preview/{chunk.34CYK2DF.js → chunk.GF7LA4QG.js} +1 -1
- package/dist/preview/{chunk.LCFDM7XY.js → chunk.GO4QBFED.js} +1 -1
- package/dist/preview/{chunk.ETWVQ3A2.js → chunk.H243UV3Z.js} +1 -1
- package/dist/preview/{chunk.VKH3ZPPQ.js → chunk.IX6RNGAT.js} +1 -1
- package/dist/preview/{chunk.7JNDZWD6.js → chunk.JAPYJ53U.js} +1 -1
- package/dist/preview/{chunk.ZJX6ZKKM.js → chunk.JLMLKDVX.js} +1 -1
- package/dist/preview/{chunk.CPW465TM.js → chunk.JMQ6YLQX.js} +1 -1
- package/dist/preview/{chunk.XK4FVT2X.js → chunk.KWCML3BF.js} +1 -1
- package/dist/preview/{chunk.7VUPKOKC.js → chunk.KYH4QIVI.js} +1 -1
- package/dist/preview/{chunk.7HPPJVIV.js → chunk.LRRVBM4F.js} +2 -2
- package/dist/preview/{chunk.2YCFK5HU.js → chunk.LWSTEZIP.js} +1 -1
- package/dist/preview/{chunk.7MTX33WD.js → chunk.MVN6H65Q.js} +1 -1
- package/dist/preview/{chunk.HH6P4BLT.js → chunk.O36ZDLWC.js} +1 -1
- package/dist/preview/{chunk.UCIQIPBQ.js → chunk.OEDCAHII.js} +1 -1
- package/dist/preview/{chunk.7X2ZO5BD.js → chunk.OZ5KJLA2.js} +1 -1
- package/dist/preview/{chunk.WYEYYCBH.js → chunk.PJ2DF6C7.js} +1 -1
- package/dist/preview/{chunk.CZRX2FDI.js → chunk.PKKA6JWA.js} +1 -1
- package/dist/preview/{chunk.GNSAKLP2.js → chunk.PQPTYNW2.js} +1 -1
- package/dist/preview/{chunk.WLBXBNNH.js → chunk.QRMWFEEH.js} +1 -1
- package/dist/preview/chunk.RHYA742Q.js +1 -0
- package/dist/preview/{chunk.BU2DSZ2L.js → chunk.RTB4MMF6.js} +1 -1
- package/dist/preview/{chunk.T2L4NPSB.js → chunk.SBBNIYVB.js} +1 -1
- package/dist/preview/{chunk.2UPGH6FT.js → chunk.SD33BD7A.js} +1 -1
- package/dist/preview/{chunk.JQDYGI6G.js → chunk.SECORXDP.js} +1 -1
- package/dist/preview/{chunk.HJ56Q6WB.js → chunk.TIBZZ2WY.js} +1 -1
- package/dist/preview/{chunk.6XO4PECH.js → chunk.TWWFWHK3.js} +1 -1
- package/dist/preview/{chunk.ZPQKAJRI.js → chunk.U2PYW5MS.js} +1 -1
- package/dist/preview/{chunk.F6WYSDSI.js → chunk.U5EJSTST.js} +2 -2
- package/dist/preview/chunk.UWIYKGYK.js +25 -0
- package/dist/preview/{chunk.G64AREGA.js → chunk.VWHMYPLL.js} +1 -1
- package/dist/preview/chunk.WQBDTLPZ.js +1 -0
- package/dist/preview/{chunk.SIH6RCAI.js → chunk.XSYBNUXF.js} +1 -1
- package/dist/preview/{chunk.PNVR3CXR.js → chunk.Y5Z4ZDTO.js} +2 -2
- package/dist/preview/{chunk.HWITWOP3.js → chunk.ZHXX22AT.js} +1 -1
- package/dist/preview/chunk.ZKXK22AH.js +1 -0
- package/dist/preview/{chunk.WPCGHGDA.js → chunk.ZQNLC33L.js} +1 -1
- package/dist/preview/{chunk.6FBQP336.js → chunk.ZZTDQKM2.js} +1 -1
- package/dist/preview/index.html +26 -26
- package/dist/preview/page.js +2 -2
- package/package.json +6 -6
- package/dist/preview/chunk.KA3KI4UA.js +0 -1
- package/dist/preview/chunk.QPAUQJON.js +0 -1
- package/dist/preview/chunk.SHPXD6FC.js +0 -1
- package/dist/preview/chunk.YCIX53AR.js +0 -1
- package/dist/preview/chunk.YEYY273R.js +0 -1
- package/dist/preview/chunk.ZTD2CNC3.js +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as p}from"./chunk.
|
|
1
|
+
import{h as p}from"./chunk.Y5Z4ZDTO.js";import{Q as c}from"./chunk.UWIYKGYK.js";import{Lb as u}from"./chunk.X7W27IRI.js";import{b as h}from"./chunk.AJZBJBMO.js";var s={person:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="11.6" cy="5.4" r="2.5"/><path d="M7.9 12.4c0-2.1 1.7-3.8 3.7-3.8s3.7 1.7 3.7 3.8v3.2H7.9z"/><path d="M8 12.6 6.4 17.2"/><path d="M15.2 12.6 16.8 17.2"/><path d="M9.8 15.6v5"/><path d="M13.4 15.6v5"/></svg>',plot:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M2.6 9.4 12 4.6l9.4 4.8-9.4 4.8z"/><path d="M2.6 9.4v4.4l9.4 4.8 9.4-4.8V9.4"/><path d="M12 14.2v4.4"/><path d="M7 11.9v3"/><path d="M17 11.9v3"/></svg>',box:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M3.4 7.9 12 3.6l8.6 4.3-8.6 4.3z"/><path d="M3.4 7.9v8.2L12 20.4l8.6-4.3V7.9"/><path d="M12 12.2v8.2"/></svg>',task:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4.4 6.6 12 2.9l7.6 3.7v9.5L12 19.8 4.4 16.1z"/><path d="M12 12.4v7.4"/><path d="M4.4 6.6 12 10.3l7.6-3.7"/><path d="M8 9.6l2.4 2.4L16 8.4"/></svg>',shift:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M3.2 8.2 12 4l8.8 4.2-8.8 4.2z"/><path d="M3.2 8.2v7.2L12 19.6l8.8-4.2V8.2"/><path d="M12 12.4v7.2"/><path d="M6.6 10.8v3.4"/><path d="M9.3 12v3.4"/></svg>',list:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M2.8 10.4 12 6l9.2 4.4-9.2 4.4z"/><path d="M2.8 10.4v3.2L12 18l9.2-4.4v-3.2"/><path d="M6.6 8.6 15.8 13"/><path d="M9.4 7.2 18.6 11.6"/></svg>',vehicle:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M2.8 14.2 5 9.4l8.6-1.6 5.4 3-1 3.6z"/><path d="M2.8 14.2v2.2h2.4"/><path d="M18 16.4h1.9l.1-2.2"/><circle cx="7.6" cy="16.6" r="1.9"/><circle cx="16.1" cy="16.6" r="1.9"/><path d="M8.6 8.2 9.8 12l7.2-1"/></svg>',rule:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5.4 19.4V6.6l12 12.8z"/><path d="M5.4 6.6 7.6 5.5l12 12.8-2.2 1.1"/><path d="M5.4 19.4 7.6 18.3h12"/><path d="M5.4 10.1h1.7"/><path d="M5.4 13.3h1.7"/><path d="M5.4 16.5h1.7"/></svg>',note:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6.2 6.2 14.8 10.5v9L6.2 15.2z"/><path d="M12.4 9.3 14.8 10.5l-.6 2.3"/><path d="M8.2 10.6 12.8 12.9"/><path d="M8.2 13.2 11.4 14.8"/></svg>'},v=Object.keys(s);function i(e){if(e)return s[e]??(e.trimStart().startsWith("<svg")?e:void 0)}var a=h(c(),1);function A({kind:e,schema:o,brand:n,size:r=16,title:t}){let f=o?.tryDefinition?.(e)?.figure,d=i(n?.figures?.[e]??f),l=Math.round(u(e,n?.accents)),g=p(d);return d?(0,a.jsx)("span",{"aria-hidden":t===void 0?"true":void 0,...t===void 0?{}:{role:"img","aria-label":t},"data-graview-figure":e,"data-graview-figure-kind":"figure",dangerouslySetInnerHTML:g,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,height:r,flex:"0 0 auto",color:`hsl(${l} 55% 52%)`,"--graview-figure-size":`${r}px`}}):(0,a.jsx)("span",{"aria-hidden":t===void 0?"true":void 0,...t===void 0?{}:{role:"img","aria-label":t},"data-graview-figure":e,"data-graview-figure-kind":"dot",style:{display:"inline-block",width:Math.round(r*.8),height:Math.round(r*.5),flex:"0 0 auto",background:`hsl(${l} 55% 52%)`,clipPath:"polygon(50% 0, 100% 50%, 50% 100%, 0 50%)"}})}function C(e,o,n){return i(n?.figures?.[e]??o?.tryDefinition?.(e)?.figure)!==void 0}export{A as a,C as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as C,Q as F,sa as H,ua as A}from"./chunk.
|
|
1
|
+
import{F as C,Q as F,sa as H,ua as A}from"./chunk.UWIYKGYK.js";import"./chunk.X7W27IRI.js";import{b as x}from"./chunk.AJZBJBMO.js";var t=x(C(),1),f=x(F(),1),q={faces:'[data-testid="app-faces"]',problems:'[data-testid="standing"], [data-testid="standing-link"]',activity:'[data-testid="activity-button"]',ask:'[data-testid="app-find"], [data-testid="app-find-open"]',find:'[data-testid="app-find"], [data-testid="app-find-open"]',profile:'[data-testid="profile-button"]',home:'[data-testid="app-home"]'};function D(e){if(!e.isConnected||e.closest("[hidden], [inert], [aria-hidden='true']"))return!1;if(typeof e.checkVisibility!="function")return!0;if(!e.checkVisibility({visibilityProperty:!0}))return!1;let a=e.getBoundingClientRect();return a.width>1&&a.height>1}function S(e,a){if(!e||a==="ask"&&!e.querySelector("[data-graview-quick-ask]"))return null;for(let c of e.querySelectorAll(q[a]))if(D(c))return c;return null}function W(e){let a=(u,h,l)=>e.querySelector(u)?.getAttribute(h)?.trim()||l,c=a('[data-testid="app-face-scene"]',"title","Scene"),n=a('[data-testid="app-face-pages"]',"title","Pages");return[{anchor:"faces",title:`${c} or ${n}`,words:`One app, two ways to see it: ${c} draws every record as one picture, ${n} as lists and pages to read and change.`},{anchor:"problems",title:"Whether all is in order",words:"The dot is green while every rule holds. When one is broken it counts what is wrong, and pressing it shows each one and where."},{anchor:"activity",title:"Activity",words:"What has happened here and who did it, each change with its way back."},{anchor:"ask",title:"Ask",words:"Press \u2318K (Ctrl+K) to ask about what you have selected, or right-click it and choose Ask about this\u2026. The answer stands beside it, and a change it proposes waits for you to accept it."}]}var R=300,O=1200,$=15e3;function _({root:e,steps:a,onEnd:c}){let[n,u]=(0,t.useState)(null),h=(0,t.useRef)(null),l=(0,t.useRef)(!1),p=(0,t.useRef)(c);p.current=c,(0,t.useEffect)(()=>{let r=Date.now(),o=Date.now(),s=null,i,v=new MutationObserver(()=>o=Date.now());v.observe(document.body,{childList:!0,subtree:!0});let k=()=>{let L=e(),E=Date.now();if(L?.querySelector('[data-testid="app-bar"]')){if(s??=E,E-o>=R||E-s>=O){let T=[...W(L),...a].filter(P=>S(L,P.anchor)!==null);if(T.length===0){l.current=!0,p.current(null);return}h.current=document.activeElement,u({list:T,at:0});return}}else if(E-r>=$){l.current=!0,p.current(null);return}i=setTimeout(k,100)};return i=setTimeout(k,100),()=>{clearTimeout(i),v.disconnect()}},[]);let y=(0,t.useCallback)(()=>{let r=h.current;(r instanceof HTMLElement&&r!==document.body&&r.isConnected?r:e()?.querySelector('[data-testid="app-home"]'))?.focus({preventScroll:!0})},[e]),m=(0,t.useCallback)((r,o)=>{if(l.current)return;l.current=!0;let s=document.querySelector("[data-testid='first-look']"),i=document.activeElement,v=i===null||i===document.body||s!==null&&s.contains(i);u(null),p.current(r),!(!o&&!v)&&(y(),requestAnimationFrame(()=>{let k=document.activeElement;(k===null||k===document.body)&&y()}))},[y]),w=(0,t.useCallback)((r,o)=>{let s=e();for(let i=o;i<r.length;i++)if(S(s,r[i].anchor))return i;return-1},[e]),b=(0,t.useCallback)(()=>{if(!n)return;let r=w(n.list,n.at+1);r<0?m("finished",!0):u({list:n.list,at:r})},[n,w,m]);if((0,t.useEffect)(()=>{if(!n)return;let r=e();if(!r)return;let o=0,s=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(()=>{S(e(),n.list[n.at].anchor)||b()})},i=new MutationObserver(s);return i.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["hidden","class","data-switch-drawn"]}),()=>{cancelAnimationFrame(o),i.disconnect()}},[n,e,b]),!n)return null;let g=n.list[n.at],d=w(n.list,n.at+1)<0;return(0,f.jsx)(I,{root:e,step:g,position:n.at+1,total:n.list.length,last:d,onNext:b,onEnd:m},n.at)}var N={...H,width:"min(320px, calc(100vw - 24px))",maxHeight:"min(70vh, 420px)",overflow:"auto",padding:"12px 14px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-high)",color:"var(--graview-ink)",fontFamily:"var(--graview-font-body, system-ui)",fontSize:"0.875rem",lineHeight:1.45,overflowWrap:"anywhere"},M={minHeight:32,padding:"0 12px",borderRadius:8,font:"inherit",fontWeight:600,cursor:"pointer"};function I({root:e,step:a,position:c,total:n,last:u,onNext:h,onEnd:l}){let p=(0,t.useRef)(null),y=(0,t.useRef)(null),m=(0,t.useId)().replace(/:/g,""),w=(0,t.useMemo)(()=>({get current(){return S(e(),a.anchor)}}),[e,a.anchor]),[b]=(0,t.useState)(()=>{let d=w.current?.getBoundingClientRect(),r=typeof document>"u"?0:document.documentElement.clientWidth||innerWidth;return d&&d.left+d.width/2<r/2?"start":"end"});A(p,!0,w,{align:b}),(0,t.useLayoutEffect)(()=>{y.current?.focus({preventScroll:!0})},[]);let g=(0,t.useRef)(l);return g.current=l,(0,t.useEffect)(()=>{let d=o=>{o.target instanceof Node&&p.current?.contains(o.target)||g.current("dismissed",!1)},r=o=>{if(o.key!=="Escape"||o.defaultPrevented)return;let s=o.target;s instanceof Node&&p.current?.contains(s)||s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||[...document.querySelectorAll("[data-graview-overlay]:not([hidden])")].some(i=>i!==p.current)||g.current("dismissed",!0)};return document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",r),()=>{document.removeEventListener("pointerdown",d,!0),document.removeEventListener("keydown",r)}},[]),(0,f.jsxs)("div",{ref:p,popover:"manual",role:"dialog","aria-modal":"false","aria-labelledby":`${m}-title`,"aria-describedby":`${m}-words`,tabIndex:-1,"data-testid":"first-look","data-first-look-anchor":a.anchor,"data-graview-overlay":"",onKeyDown:d=>{d.key==="Escape"&&(d.preventDefault(),d.stopPropagation(),l("dismissed",!0))},style:N,children:[(0,f.jsxs)("p",{style:{margin:0,fontSize:"0.75rem",color:"var(--graview-ink-muted)"},"data-testid":"first-look-count",children:[c," of ",n]}),(0,f.jsx)("p",{id:`${m}-title`,style:{margin:"2px 0 4px",fontWeight:600,fontSize:"0.9375rem"},"data-testid":"first-look-title",children:a.title}),(0,f.jsx)("p",{id:`${m}-words`,style:{margin:0},"data-testid":"first-look-words",children:a.words}),(0,f.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:8,marginTop:12},children:[u?null:(0,f.jsx)("button",{type:"button","data-testid":"first-look-skip",onClick:()=>l("dismissed",!0),style:{...M,fontWeight:500,border:"1px solid transparent",background:"none",color:"var(--graview-ink-muted)"},children:"Skip"}),(0,f.jsx)("button",{ref:y,type:"button","data-testid":u?"first-look-done":"first-look-next",onClick:()=>u?l("finished",!0):h(),style:{...M,border:"1px solid var(--graview-accent)",background:"var(--graview-accent)",color:"var(--graview-accent-ink)"},children:u?"Done":"Next"})]})]})}export{_ as FirstLookHints,S as firstLookAnchor};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{b as ee}from"./chunk.FUQVNXLB.js";import"./chunk.Z7ZCR4LN.js";import"./chunk.RIW7SQH4.js";import{c as Z}from"./chunk.FSAHO3LV.js";import{F as ce,Q as X}from"./chunk.
|
|
1
|
+
import{b as ee}from"./chunk.FUQVNXLB.js";import"./chunk.Z7ZCR4LN.js";import"./chunk.RIW7SQH4.js";import{c as Z}from"./chunk.FSAHO3LV.js";import{F as ce,Q as X}from"./chunk.UWIYKGYK.js";import{X as J,_ as U,dc as j}from"./chunk.X7W27IRI.js";import{b as _}from"./chunk.AJZBJBMO.js";var B=_(ce(),1);var ue=6;function ne(v,b,h,f,L){let t=new Set(v),o=new Map;for(let r of b)for(let[u,a,S]of[[r.from,r.to,"out"],[r.to,r.from,"in"]]){if(!t.has(u)||t.has(a))continue;let p=h(a);if(p===void 0)continue;let m=`${u}|${r.kind}|${S}|${p}`,k=o.get(m);k?k.others.includes(a)||k.others.push(a):o.set(m,{self:u,edge:r.kind,direction:S,kind:p,others:[a]})}let d=[];for(let r of o.values()){let u=h(r.self)??"",a=Z(L,r.direction==="out"?u:r.kind,r.edge,r.direction),S=r.others.filter(f),p=r.others.filter(m=>!f(m));if(r.others.length>ue){d.push({...r,others:r.others,lands:"district",words:a});continue}for(let m of S)d.push({...r,others:[m],lands:"record",words:a});p.length>0&&d.push({...r,others:p,lands:"district",words:a})}return d}function te(v,b=[]){let h=[...b],f=new Map,L=t=>h.some(o=>t.x<o.x+o.width&&o.x<t.x+t.width&&t.y<o.y+o.height&&o.y<t.y+t.height);for(let t of[...v].sort((o,d)=>o.y-d.y||o.x-d.x)){let o={x:t.x-t.width/2,y:t.y-t.height,width:t.width,height:t.height};for(let d=0;d<12&&L(o);d++)o.y+=t.height+2;h.push(o),f.set(t.key,{x:o.x,y:o.y})}return f}var s=_(X(),1),ge=4;function we({frame:v,width:b,height:h,stageRef:f,tick:L,store:t,graphVersion:o,selection:d,view:r,rulers:{visibleRect:u,clipQuadratic:a,unsureOf:S,unsureDash:p,unsureOpacity:m}}){let k=n=>t.graph.getNode(n)?.kind,C=ee(d,r,k),$=C.lens===null&&C.records.length<=ge?C.records:[],re=$.join(`
|
|
2
2
|
`),[c,q]=(0,B.useState)(null);(0,B.useLayoutEffect)(()=>{let n=f.current;if(!r.overview||$.length===0||!n||typeof document>"u"||v.t<1){q(null);return}let g=n.getBoundingClientRect(),R=e=>({x:e.left-g.left,y:e.top-g.top,width:e.width,height:e.height}),N=new Map,oe=$.map(e=>`[data-graview-view="${CSS.escape(e)}"]`).join(","),D=e=>{if(N.has(e))return N.get(e);let i=null;for(let y of n.querySelectorAll(`[data-graview-pick="${CSS.escape(e)}"], [data-graview-view="${CSS.escape(e)}"]`))if(!y.closest("[data-graview-offstage], [data-graview-screen]")&&!(!$.includes(e)&&y.closest(oe))&&(i=u(y,n),i))break;if(!i){let y=n.querySelector(`[data-graview-building="${CSS.escape(e)}"]`);y&&(i=R(y.getBoundingClientRect()))}return N.set(e,i),i},T=e=>{let i=n.querySelector(`[data-graview-plot="kind:${CSS.escape(e)}"] .graview-plot-tile`);return i?R(i.getBoundingClientRect()):null},ie=ne($,t.graph.allEdges(),k,e=>D(e)!==null,t.schema),K=[];for(let e of n.querySelectorAll('[data-graview-view^="kind:"] .graview-kind-face')){let i=u(e,n);i&&K.push(i)}let H=e=>({x:e.x+e.width/2,y:e.y+e.height/2}),E=[],W=new Set($),A=new Set;for(let e of ie){let i=k(e.self),y=D(e.self)??(i?T(i):null),Q=e.lands==="record"?D(e.others[0]):T(e.kind);if(!y||!Q)continue;for(let l of e.others)W.add(l);A.add(e.kind),i&&A.add(i);let x=H(y),w=H(Q),O=Math.hypot(w.x-x.x,w.y-x.y);if(O<6)continue;let V=Math.min(40,O*.12)*(E.length%2===0?1:-1),de={x:(x.x+w.x)/2-(w.y-x.y)/O*V,y:(x.y+w.y)/2+(w.x-x.x)/O*V},Y=a({p0:x,c:de,p1:w},K);if(Y.length===0)continue;let ae=Y.map(l=>`M ${l.p0.x.toFixed(1)} ${l.p0.y.toFixed(1)} Q ${l.c.x.toFixed(1)} ${l.c.y.toFixed(1)} ${l.p1.x.toFixed(1)} ${l.p1.y.toFixed(1)}`).join(" "),le=l=>{let F=t.graph.getNode(l);return F?J(t.schema.tryDefinition(F.kind),F):l},G=e.lands==="record"?`${e.words}: ${le(e.others[0])}`:`${e.words}: ${U(t.schema,e.kind,e.others.length)}`,P=e.others[0],I=e.lands==="record"?S?.(e.edge,e.direction==="out"?e.self:P,e.direction==="out"?P:e.self):void 0;E.push({key:`${e.self}|${e.edge}|${e.direction}|${e.lands}|${P}`,link:e,d:ae,end:w,said:I!==void 0?`${G} \xB7 unsure`:G,...I!==void 0?{unsure:I}:{}})}let z=[];for(let e of n.querySelectorAll(".graview-kind-face[data-graview-nameplate]")){let i=u(e,n);i&&z.push(i)}let se=te(E.map(e=>({key:e.key,x:e.end.x,y:e.end.y-6,width:Math.min(260,14+e.said.length*6.6),height:20})),z);q({lines:E,labels:se,reached:[...W],districts:[...A]})},[re,r.overview,v,o,L,b,h,f,t]);let M=(0,B.useMemo)(()=>{if(!c)return"";let n=c.reached.map(R=>`[data-graview-building="${CSS.escape(R)}"]`).join(","),g=c.districts.map(R=>`[data-graview-plot="kind:${CSS.escape(R)}"]`).join(",");return[".graview-ground[data-graview-altitude] .graview-building { opacity: 0.22; }",n?`.graview-ground[data-graview-altitude] .graview-building:is(${n}) { opacity: 1; }`:"",g?`.graview-ground[data-graview-altitude] .graview-plot:not(:is(${g})) .graview-plot-tile { opacity: 0.4; }`:""].join(`
|
|
3
3
|
`)},[c]);return!c||c.lines.length===0?M?(0,s.jsx)("style",{children:M}):null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{children:M}),(0,s.jsx)("svg",{className:"graview-record-links","data-graview-world":"","data-graview-record-links":c.lines.length,"aria-hidden":"true",width:b,height:h,style:{position:"absolute",left:0,top:0,pointerEvents:"none",zIndex:j.lines},children:c.lines.map(n=>(0,s.jsxs)("g",{className:"graview-record-link","data-graview-link":n.link.edge,"data-graview-lands":n.link.lands,"data-graview-direction":n.link.direction,"data-graview-provisional":n.unsure!==void 0||void 0,children:[(0,s.jsx)("path",{className:"graview-record-link-line",d:n.d,...n.unsure!==void 0?{strokeDasharray:p,strokeOpacity:m}:{}}),n.link.lands==="record"?(0,s.jsx)("circle",{className:"graview-record-link-end",cx:n.end.x,cy:n.end.y,r:3}):null]},n.key))}),(0,s.jsx)("div",{"aria-hidden":"true","data-graview-world":"",style:{position:"absolute",inset:0,pointerEvents:"none",zIndex:j.tieLabels},children:c.lines.map(n=>{let g=c.labels.get(n.key);return g?(0,s.jsx)("span",{className:"graview-record-link-said","data-graview-link-said":n.link.edge,"data-graview-lands":n.link.lands,...n.unsure!==void 0?{title:n.unsure}:{},style:{position:"absolute",left:g.x,top:g.y,...n.unsure!==void 0?{pointerEvents:"auto"}:{}},children:n.said},n.key):null})})]})}export{we as RecordLinks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as V}from"./chunk.3H4NVUWV.js";import{o as le,p as $,s as ce,t as ue}from"./chunk.WLBXBNNH.js";import{m as B,n as ae,o as ie,p as Q,q as H}from"./chunk.OJGHDWI6.js";import{c as se}from"./chunk.FSAHO3LV.js";import{b as X,c as re,d as F,e as _,g as oe}from"./chunk.PNVR3CXR.js";import{E as N,F as D,I as Z,N as ee,Q as S,Y as w,Z as te,_ as O,a as A,na as R,pa as ne,xa as E}from"./chunk.ZTD2CNC3.js";import{aa as j,ac as J,fc as K}from"./chunk.X7W27IRI.js";import{b as h}from"./chunk.AJZBJBMO.js";var M=h(D(),1),G=h(S(),1),ge="A",W=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.5A4AOFOA.js","./chunk.KSXB4LDF.js","./chunk.VZHV25JE.js","./chunk.QVUL2FSI.js","./chunk.F6WYSDSI.js","./chunk.PW7YH6JV.js","./chunk.SIH6RCAI.js","./chunk.5EAQDBBE.js","./chunk.YT2CYCVT.js","./chunk.HJCQ6I3S.js","./chunk.DUUARGPE.js","./chunk.FUQVNXLB.js","./chunk.LAF6GTBN.js","./chunk.QU356VB2.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.3C4RJIJU.js","./chunk.YJCT3DV2.js","./chunk.34CYK2DF.js","./chunk.JZBBGY4B.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.HPD5ZDZH.js","./chunk.52QAIGCD.js","./chunk.PPUAPAWR.js","./chunk.IHFNLKXV.js","./chunk.577PGFUT.js","./chunk.FBY5IUGU.js","./chunk.4K5QCJFH.js","./chunk.WLBXBNNH.js","./chunk.7MTX33WD.js","./chunk.OJGHDWI6.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.PNVR3CXR.js","./chunk.ZTD2CNC3.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.OMMKD2NU.js"))));var ve=W.part((e,t)=>(0,G.jsx)(e.InspectorPane,{...t}),{what:"This card's acts"});function he(e){let t=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&e()},n=globalThis;if(n.requestIdleCallback){let p=n.requestIdleCallback(t,{timeout:5e3});return()=>n.cancelIdleCallback?.(p)}let a=setTimeout(t,2500);return()=>clearTimeout(a)}var ye=150,we="[data-graview-pick], [data-graview-view], [data-graview-record], [data-graview-act], [data-graview-field], a[href]";function ke(e){if(e.closest("[data-graview-face='pages'], [data-graview-popover]"))return null;let t=e.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??e.closest("[data-graview-view]")?.getAttribute("data-graview-view");return t?{face:"scene",on:t,about:[t]}:null}function be(e){let{store:t,principal:n,providers:a}=w(),p=ue(),u=(0,M.useRef)({aimAt:e,store:t,principal:n,providers:a,prepareSections:p});u.current={aimAt:e,store:t,principal:n,providers:a,prepareSections:p},(0,M.useEffect)(()=>{if(typeof document>"u")return;let d=null,l=null,f=()=>{d&&clearTimeout(d.timer),d=null},y=s=>{let r=u.current,v=r.aimAt(s);if(!v)return;let b=JSON.stringify([v.face,v.on,v.about,v.field,v.place,v.act,r.store.log.length]);b!==l&&(l=b,r.prepareSections(v),W.load().then(L=>L.prepareActs(r.store,v,{principal:r.principal,providers:r.providers}),()=>{}))},g=s=>s.target instanceof Element?s.target.closest(we):null,c=s=>{if(s.pointerType==="touch")return;let r=g(s);r!==null&&r===d?.element||(f(),r!==null&&(d={element:r,timer:setTimeout(()=>{d=null,y(r)},ye)}))},m=s=>{if(d===null)return;let r=s.relatedTarget;r instanceof Node&&d.element.contains(r)||f()},k=s=>{if(s.pointerType==="mouse")return;let r=g(s);r&&y(r)},i=s=>{let r=g(s);r&&y(r)};return document.addEventListener("pointerover",c,{passive:!0}),document.addEventListener("pointerout",m,{passive:!0}),document.addEventListener("pointerdown",k,{capture:!0,passive:!0}),document.addEventListener("focusin",i),()=>{f(),document.removeEventListener("pointerover",c),document.removeEventListener("pointerout",m),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("focusin",i)}},[])}function Ge({placement:e="float",openActs:t,aimAt:n}={}){let{menuAt:a,setMenuAt:p,registerActsDoor:u}=w(),{selection:d}=R();be(n??ke),(0,M.useEffect)(()=>{if(W.current)return;let g=()=>{k(),W.prefetch()},c=he(g),m=["pointerdown","keydown"];for(let i of m)document.addEventListener(i,g,{capture:!0,passive:!0});function k(){c();for(let i of m)document.removeEventListener(i,g,{capture:!0})}return k},[]),(0,M.useEffect)(()=>{if(e==="menu")return u({key:ge,open:t??(g=>{let c=g.getBoundingClientRect(),m=g.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??g.closest("[data-graview-view]")?.getAttribute("data-graview-view")??void 0;p({x:Math.round(c.left+Math.min(16,c.width/2)),y:Math.round(Math.min(c.bottom,c.top+36)),...m?{on:m}:{}})})}),()=>u(null)},[e,u,p,t]);let l=a!==null||d.length>0,[f,y]=(0,M.useState)(l);return(0,M.useEffect)(()=>{l&&y(!0)},[l]),!f&&!l?null:(0,G.jsx)(M.Suspense,{fallback:null,children:(0,G.jsx)(ve,{placement:e,chosen:t===void 0})})}var q=h(D(),1),z=h(S(),1),Se=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.5A4AOFOA.js","./chunk.KSXB4LDF.js","./chunk.VZHV25JE.js","./chunk.QVUL2FSI.js","./chunk.JQDYGI6G.js","./chunk.VOFUIWAX.js","./chunk.MWJUZG3C.js","./chunk.F6WYSDSI.js","./chunk.PW7YH6JV.js","./chunk.T2L4NPSB.js","./chunk.VKH3ZPPQ.js","./chunk.3H4NVUWV.js","./chunk.SIH6RCAI.js","./chunk.RYEAMM73.js","./chunk.7HPPJVIV.js","./chunk.ETWVQ3A2.js","./chunk.CZRX2FDI.js","./chunk.5EAQDBBE.js","./chunk.YT2CYCVT.js","./chunk.HJCQ6I3S.js","./chunk.DUUARGPE.js","./chunk.FUQVNXLB.js","./chunk.LAF6GTBN.js","./chunk.QU356VB2.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.3C4RJIJU.js","./chunk.YJCT3DV2.js","./chunk.XXMYKBLT.js","./chunk.34CYK2DF.js","./chunk.JZBBGY4B.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.HPD5ZDZH.js","./chunk.WVUJXDXZ.js","./chunk.52QAIGCD.js","./chunk.PPUAPAWR.js","./chunk.IHFNLKXV.js","./chunk.577PGFUT.js","./chunk.FBY5IUGU.js","./chunk.4K5QCJFH.js","./chunk.GZHZLJBF.js","./chunk.WLBXBNNH.js","./chunk.7MTX33WD.js","./chunk.OJGHDWI6.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.PNVR3CXR.js","./chunk.ZTD2CNC3.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.CPW465TM.js")))),Me=Se.part((e,t)=>{let n=e.DraftFrame;return(0,z.jsx)(n,{...t})},{what:"The view"});function _e(e){let{seatTalk:t}=w();return(0,q.useSyncExternalStore)(t.subscribe,()=>t.get().draft!==null,()=>!1)?(0,z.jsx)(q.Suspense,{fallback:null,children:(0,z.jsx)(Me,{...e})}):null}var I=h(D(),1),T=h(S(),1),de=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.YT2CYCVT.js","./chunk.HWITWOP3.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.U5ACEYAN.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.PPUAPAWR.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.PNVR3CXR.js","./chunk.ZTD2CNC3.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.RH45AW2W.js")))),Ae=de.part((e,t)=>{let n=e.QuickAskCard;return(0,T.jsx)(n,{...t})},{what:"The quick ask"});function Ue({face:e,on:t=!0}){let{ai:n,aiDesk:a,selection:p,view:u}=w(),d=ee()?.open??!1,l=t&&N(n)&&!d,f=oe(a),y=(0,I.useRef)(null),g=(0,I.useRef)({selection:p,place:u.within?.view});return g.current={selection:p,place:u.within?.view},(0,I.useEffect)(()=>{if(!l)return;let c=re(a);return c.drawn+=1,F(c),()=>{c.drawn=Math.max(0,c.drawn-1),c.drawn===0&&(c.open=null),F(c)}},[l,a]),(0,I.useEffect)(()=>{if(!l)return;let c=m=>{if(m.defaultPrevented||m.key.toLowerCase()!=="k"||!(m.metaKey||m.ctrlKey)||m.altKey||m.shiftKey)return;let k=y.current?.closest("[data-graview-embed]"),i=m.target,s=!(i instanceof Node)||i===document.body||i===document.documentElement;if(k&&!(s||i instanceof Node&&k.contains(i)))return;m.preventDefault(),de.prefetch();let r=document.activeElement,{selection:v,place:b}=g.current;_(a,{pointed:{...v[0]!==void 0?{on:v[0]}:{},about:v,...b?{place:b}:{}},returnTo:r instanceof HTMLElement&&r!==document.body?r:null})};return window.addEventListener("keydown",c,!0),()=>window.removeEventListener("keydown",c,!0)},[l,a]),l?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("span",{ref:y,hidden:!0,"data-graview-quick-ask":e}),f?(0,T.jsx)(I.Suspense,{fallback:null,children:(0,T.jsx)(Ae,{face:e,opening:f,close:()=>_(a,null)},f.at)}):null]}):null}var C=h(D(),1),x=h(S(),1),U=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.HWITWOP3.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.U5ACEYAN.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.PPUAPAWR.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.PNVR3CXR.js","./chunk.ZTD2CNC3.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.ZPQKAJRI.js")))),Ee=U.part((e,t)=>{let n=e.InlineAiMenu;return(0,x.jsx)(n,{...t})},{what:"The AI's suggestions"}),Te=U.part((e,t)=>{let n=e.GhostTray;return(0,x.jsx)(n,{...t})},{quiet:!0});function Ie(){let{ai:e}=w(),t=N(e);return(0,C.useMemo)(()=>t?n=>({id:"inline-ai",heading:"AI",render:a=>(0,x.jsx)(C.Suspense,{fallback:null,children:(0,x.jsx)(Ee,{target:n,close:a})}),prepare:()=>U.prefetch()}):null,[t])}var xe=[];function Ze({children:e}){let t=Ie(),n=(0,C.useMemo)(()=>t?[t]:xe,[t]);return(0,x.jsx)(ce,{sections:n,children:e})}function et(e){let{ai:t,aiDesk:n}=w(),{ghost:a}=Z(n);return a===null||a.onCard||t.off?null:(0,x.jsx)(C.Suspense,{fallback:null,children:(0,x.jsx)(Te,{...e})})}function ot(e={}){return e.scope===void 0?V:X(V,e.scope)}var P=h(D(),1),o=h(S(),1);function dt({inside:e=!1,widthOf:t}={}){let{store:n,view:a,emphasis:p,setEmphasis:u}=w(),d=le(),{selection:l,set:f}=R(),{show:y}=ne(),g=O(),c=(0,P.useMemo)(()=>{let i=new Map;for(let s of n.graph.allEdges()){let r=i.get(s.kind)??{count:0,ends:new Set};r.count+=1;for(let v of[s.from,s.to]){let b=n.graph.getNode(v);b&&r.ends.add(`kind:${b.kind}`)}i.set(s.kind,r)}return[...i.entries()].sort(([s],[r])=>s.localeCompare(r)).map(([s,r])=>({kind:s,count:r.count,ends:[...r.ends]}))},[n,g]),m=Math.max(0,...c.map(i=>i.count));if((0,P.useEffect)(()=>()=>u(null),[u]),!a.overview&&!e||c.length===0)return null;let k=new Set;for(let i of l){if(i.startsWith("kind:")){k.add(i);continue}let s=n.graph.getNode(i);s&&k.add(`kind:${s.kind}`)}return(0,o.jsxs)("section",{"aria-label":"What the lines mean",role:e?"group":void 0,"data-testid":"relation-key",style:e?{display:"grid",gap:1}:{position:"absolute",left:16,top:14,zIndex:K("rail"),display:"grid",gap:1,padding:"8px 10px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",maxWidth:De,animation:"graview-settle 380ms 280ms ease backwards"},children:[e?null:(0,o.jsx)("span",{style:{fontSize:"0.75rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--graview-ink-faint)",paddingBottom:2},children:c.length===1?"1 relation":`${c.length} relations`}),t?(0,o.jsx)(Le,{aloft:a.overview===!0}):null,c.map(({kind:i,count:s,ends:r})=>{let{connector:v,style:b}=$(d,i),L=Ce(n.schema,i),me=p!==null?p===i:k.size===0||r.some(fe=>k.has(fe));return(0,o.jsxs)("button",{type:"button",title:n.schema.edge(i)?.description===void 0?`${s} of these`:L.words,onMouseEnter:()=>u(i),onMouseLeave:()=>u(null),onFocus:()=>u(i),onBlur:()=>u(null),onClick:()=>{f(r),y(null)},style:{all:"unset",outline:"revert-layer",cursor:"pointer",display:"grid",gridTemplateColumns:"30px 1fr auto",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px",borderRadius:6,opacity:me?1:.4},children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",style:{display:"block",opacity:v.visible?1:.35},children:a.overview&&t?(0,o.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",className:"graview-key-ribbon",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:t(s,m)}):(0,o.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",stroke:Q(b),strokeWidth:H(b,!0),strokeDasharray:B[b.pattern],strokeLinecap:"round"})}),(0,o.jsxs)("span",{style:{display:"grid",minWidth:0},"data-graview-relation-words":i,children:[(0,o.jsx)("span",{style:{fontSize:"0.8125rem",color:"var(--graview-ink)"},children:L.words}),(0,o.jsx)("span",{style:{fontSize:"0.6875rem",color:"var(--graview-ink-faint)"},children:L.ends})]}),v.visible?null:(0,o.jsx)("span",{"data-graview-quiet":i,style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontStyle:"italic"},children:"not drawn"}),(0,o.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontVariantNumeric:"tabular-nums"},children:s})]},i)})]})}var De="min(280px, calc(100% - 28px))";function Ce(e,t,n){let a=e.edge(t)?.from??[],p=new Map;for(let l of n!==void 0&&a.includes(n)?[n]:a.length>0?a:[""]){let f=se(e,l,t,"out");p.set(f,[...p.get(f)??[],l])}let u=l=>l==="*"?"anything":j(e,l),d=[...p].map(([l,f])=>{let y=f.flatMap(c=>e.tryDefinition(c)?.edges[t]?.to??[]),g=f[0]&&y.length>0?`${f.map(u).join(", ")} \u2192 ${(y.includes("*")?["*"]:[...new Set(y)]).map(u).join(", ")}`:"";return[l.charAt(0).toUpperCase()+l.slice(1),g]});return{words:d.map(([l])=>l).join(" \xB7 "),ends:d.flatMap(([,l])=>l?[l]:[]).join(" \xB7 ")}}function pt({edgeKind:e,kit:t,width:n=30}){let a=te(),p=(0,P.useMemo)(()=>J(t??a?.brand?.kit),[t,a?.brand?.kit]),{connector:u,style:d}=$(p,e);return(0,o.jsx)("svg",{width:n,height:"8","aria-hidden":"true","data-testid":"relation-mark","data-graview-relation":e,style:{display:"inline-block",verticalAlign:"middle",opacity:u.visible?1:.35},children:(0,o.jsx)("path",{d:`M 1 4 L ${n-1} 4`,fill:"none",stroke:Q(d),strokeWidth:H(d,!0),strokeDasharray:B[d.pattern],strokeLinecap:"round"})})}function Le({aloft:e}){let t={display:"grid",gridTemplateColumns:"30px 1fr",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px"},n={fontSize:"0.75rem",color:"var(--graview-ink-muted)"};return(0,o.jsxs)("div",{role:"group","aria-label":"The lines","data-testid":"line-manners",style:{display:"grid",gap:1,paddingBottom:6,marginBottom:4,borderBottom:"1px solid var(--graview-edge)"},children:[e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:t,"data-graview-manner":"ribbon",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:6})}),(0,o.jsx)("span",{style:n,children:"A relation between two districts, as wide as the links along it \u2014 point at one for its words"})]}),(0,o.jsxs)("div",{style:t,"data-graview-manner":"record",children:[(0,o.jsxs)("svg",{width:"30",height:"10","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M 1 5 L 25 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeLinecap:"round"}),(0,o.jsx)("circle",{cx:26,cy:5,r:3,fill:"var(--graview-accent)"})]}),(0,o.jsx)("span",{style:n,children:"A chosen record's link to another record, labeled with the relation"})]}),(0,o.jsxs)("div",{style:t,"data-graview-manner":"district",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeDasharray:"5 4"})}),(0,o.jsx)("span",{style:n,children:"A chosen record's links into a district, with how many"})]})]}):null,(0,o.jsxs)("div",{style:t,"data-graview-manner":"unsure",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeOpacity:ie,strokeWidth:1.8,strokeDasharray:ae,strokeLinecap:"round"})}),(0,o.jsx)("span",{style:n,children:"Unsure: a link its maker was less than sure of, until a person keeps it \u2014 point at its words for what it was based on"})]})]})}var pe=h(D(),1),Y=h(S(),1),Pe=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.3C4RJIJU.js","./chunk.YJCT3DV2.js","./chunk.34CYK2DF.js","./chunk.JZBBGY4B.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.PNVR3CXR.js","./chunk.ZTD2CNC3.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.2UPGH6FT.js")))),Ne=Pe.part(e=>(0,Y.jsx)(e.SuggestedTray,{}),{quiet:!0});function vt(){let{store:e}=w(),t=O();return(0,pe.useMemo)(()=>e.log.all().some(a=>a.suggests!==void 0&&!a.withheld),[e,t])?(0,Y.jsx)(Ne,{}):null}export{Ge as a,_e as b,Ue as c,dt as d,De as e,pt as f,Ie as g,Ze as h,et as i,ot as j,vt as k};
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as V}from"./chunk.3H4NVUWV.js";import{o as le,p as $,s as ce,t as ue}from"./chunk.QRMWFEEH.js";import{m as B,n as ae,o as ie,p as Q,q as H}from"./chunk.OJGHDWI6.js";import{c as se}from"./chunk.FSAHO3LV.js";import{b as X,c as re,d as F,e as _,g as oe}from"./chunk.Y5Z4ZDTO.js";import{E as N,F as D,I as Z,N as ee,Q as S,Y as w,Z as te,_ as O,a as A,na as R,pa as ne,xa as E}from"./chunk.UWIYKGYK.js";import{aa as j,ac as J,fc as K}from"./chunk.X7W27IRI.js";import{b as h}from"./chunk.AJZBJBMO.js";var M=h(D(),1),G=h(S(),1),ge="A",W=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.5A4AOFOA.js","./chunk.KSXB4LDF.js","./chunk.VZHV25JE.js","./chunk.QVUL2FSI.js","./chunk.U5EJSTST.js","./chunk.PW7YH6JV.js","./chunk.XSYBNUXF.js","./chunk.5EAQDBBE.js","./chunk.YT2CYCVT.js","./chunk.HJCQ6I3S.js","./chunk.DUUARGPE.js","./chunk.FUQVNXLB.js","./chunk.LAF6GTBN.js","./chunk.QU356VB2.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.3C4RJIJU.js","./chunk.DPP7ITTU.js","./chunk.GF7LA4QG.js","./chunk.AEHPDVLQ.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.HPD5ZDZH.js","./chunk.52QAIGCD.js","./chunk.PPUAPAWR.js","./chunk.IHFNLKXV.js","./chunk.577PGFUT.js","./chunk.FBY5IUGU.js","./chunk.4K5QCJFH.js","./chunk.QRMWFEEH.js","./chunk.MVN6H65Q.js","./chunk.OJGHDWI6.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.Y5Z4ZDTO.js","./chunk.UWIYKGYK.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.747GGBPR.js"))));var ve=W.part((e,t)=>(0,G.jsx)(e.InspectorPane,{...t}),{what:"This card's acts"});function he(e){let t=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&e()},n=globalThis;if(n.requestIdleCallback){let p=n.requestIdleCallback(t,{timeout:5e3});return()=>n.cancelIdleCallback?.(p)}let a=setTimeout(t,2500);return()=>clearTimeout(a)}var ye=150,we="[data-graview-pick], [data-graview-view], [data-graview-record], [data-graview-act], [data-graview-field], a[href]";function ke(e){if(e.closest("[data-graview-face='pages'], [data-graview-popover]"))return null;let t=e.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??e.closest("[data-graview-view]")?.getAttribute("data-graview-view");return t?{face:"scene",on:t,about:[t]}:null}function be(e){let{store:t,principal:n,providers:a}=w(),p=ue(),u=(0,M.useRef)({aimAt:e,store:t,principal:n,providers:a,prepareSections:p});u.current={aimAt:e,store:t,principal:n,providers:a,prepareSections:p},(0,M.useEffect)(()=>{if(typeof document>"u")return;let d=null,l=null,f=()=>{d&&clearTimeout(d.timer),d=null},y=s=>{let r=u.current,v=r.aimAt(s);if(!v)return;let b=JSON.stringify([v.face,v.on,v.about,v.field,v.place,v.act,r.store.log.length]);b!==l&&(l=b,r.prepareSections(v),W.load().then(L=>L.prepareActs(r.store,v,{principal:r.principal,providers:r.providers}),()=>{}))},g=s=>s.target instanceof Element?s.target.closest(we):null,c=s=>{if(s.pointerType==="touch")return;let r=g(s);r!==null&&r===d?.element||(f(),r!==null&&(d={element:r,timer:setTimeout(()=>{d=null,y(r)},ye)}))},m=s=>{if(d===null)return;let r=s.relatedTarget;r instanceof Node&&d.element.contains(r)||f()},k=s=>{if(s.pointerType==="mouse")return;let r=g(s);r&&y(r)},i=s=>{let r=g(s);r&&y(r)};return document.addEventListener("pointerover",c,{passive:!0}),document.addEventListener("pointerout",m,{passive:!0}),document.addEventListener("pointerdown",k,{capture:!0,passive:!0}),document.addEventListener("focusin",i),()=>{f(),document.removeEventListener("pointerover",c),document.removeEventListener("pointerout",m),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("focusin",i)}},[])}function Ge({placement:e="float",openActs:t,aimAt:n}={}){let{menuAt:a,setMenuAt:p,registerActsDoor:u}=w(),{selection:d}=R();be(n??ke),(0,M.useEffect)(()=>{if(W.current)return;let g=()=>{k(),W.prefetch()},c=he(g),m=["pointerdown","keydown"];for(let i of m)document.addEventListener(i,g,{capture:!0,passive:!0});function k(){c();for(let i of m)document.removeEventListener(i,g,{capture:!0})}return k},[]),(0,M.useEffect)(()=>{if(e==="menu")return u({key:ge,open:t??(g=>{let c=g.getBoundingClientRect(),m=g.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??g.closest("[data-graview-view]")?.getAttribute("data-graview-view")??void 0;p({x:Math.round(c.left+Math.min(16,c.width/2)),y:Math.round(Math.min(c.bottom,c.top+36)),...m?{on:m}:{}})})}),()=>u(null)},[e,u,p,t]);let l=a!==null||d.length>0,[f,y]=(0,M.useState)(l);return(0,M.useEffect)(()=>{l&&y(!0)},[l]),!f&&!l?null:(0,G.jsx)(M.Suspense,{fallback:null,children:(0,G.jsx)(ve,{placement:e,chosen:t===void 0})})}var q=h(D(),1),z=h(S(),1),Se=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.5A4AOFOA.js","./chunk.KSXB4LDF.js","./chunk.VZHV25JE.js","./chunk.QVUL2FSI.js","./chunk.SECORXDP.js","./chunk.CHJZ7LST.js","./chunk.AINNENYD.js","./chunk.U5EJSTST.js","./chunk.PW7YH6JV.js","./chunk.SBBNIYVB.js","./chunk.IX6RNGAT.js","./chunk.3H4NVUWV.js","./chunk.XSYBNUXF.js","./chunk.GCVO6N26.js","./chunk.LRRVBM4F.js","./chunk.H243UV3Z.js","./chunk.PKKA6JWA.js","./chunk.5EAQDBBE.js","./chunk.YT2CYCVT.js","./chunk.HJCQ6I3S.js","./chunk.DUUARGPE.js","./chunk.FUQVNXLB.js","./chunk.LAF6GTBN.js","./chunk.QU356VB2.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.3C4RJIJU.js","./chunk.DPP7ITTU.js","./chunk.2OBIO5Y6.js","./chunk.GF7LA4QG.js","./chunk.AEHPDVLQ.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.HPD5ZDZH.js","./chunk.WVUJXDXZ.js","./chunk.52QAIGCD.js","./chunk.PPUAPAWR.js","./chunk.IHFNLKXV.js","./chunk.577PGFUT.js","./chunk.FBY5IUGU.js","./chunk.4K5QCJFH.js","./chunk.GZHZLJBF.js","./chunk.QRMWFEEH.js","./chunk.MVN6H65Q.js","./chunk.OJGHDWI6.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.Y5Z4ZDTO.js","./chunk.UWIYKGYK.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.JMQ6YLQX.js")))),Me=Se.part((e,t)=>{let n=e.DraftFrame;return(0,z.jsx)(n,{...t})},{what:"The view"});function _e(e){let{seatTalk:t}=w();return(0,q.useSyncExternalStore)(t.subscribe,()=>t.get().draft!==null,()=>!1)?(0,z.jsx)(q.Suspense,{fallback:null,children:(0,z.jsx)(Me,{...e})}):null}var I=h(D(),1),T=h(S(),1),de=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.YT2CYCVT.js","./chunk.ZHXX22AT.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.6J7DR7XQ.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.PPUAPAWR.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.Y5Z4ZDTO.js","./chunk.UWIYKGYK.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.BL6VDLAW.js")))),Ae=de.part((e,t)=>{let n=e.QuickAskCard;return(0,T.jsx)(n,{...t})},{what:"The quick ask"});function Ue({face:e,on:t=!0}){let{ai:n,aiDesk:a,selection:p,view:u}=w(),d=ee()?.open??!1,l=t&&N(n)&&!d,f=oe(a),y=(0,I.useRef)(null),g=(0,I.useRef)({selection:p,place:u.within?.view});return g.current={selection:p,place:u.within?.view},(0,I.useEffect)(()=>{if(!l)return;let c=re(a);return c.drawn+=1,F(c),()=>{c.drawn=Math.max(0,c.drawn-1),c.drawn===0&&(c.open=null),F(c)}},[l,a]),(0,I.useEffect)(()=>{if(!l)return;let c=m=>{if(m.defaultPrevented||m.key.toLowerCase()!=="k"||!(m.metaKey||m.ctrlKey)||m.altKey||m.shiftKey)return;let k=y.current?.closest("[data-graview-embed]"),i=m.target,s=!(i instanceof Node)||i===document.body||i===document.documentElement;if(k&&!(s||i instanceof Node&&k.contains(i)))return;m.preventDefault(),de.prefetch();let r=document.activeElement,{selection:v,place:b}=g.current;_(a,{pointed:{...v[0]!==void 0?{on:v[0]}:{},about:v,...b?{place:b}:{}},returnTo:r instanceof HTMLElement&&r!==document.body?r:null})};return window.addEventListener("keydown",c,!0),()=>window.removeEventListener("keydown",c,!0)},[l,a]),l?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("span",{ref:y,hidden:!0,"data-graview-quick-ask":e}),f?(0,T.jsx)(I.Suspense,{fallback:null,children:(0,T.jsx)(Ae,{face:e,opening:f,close:()=>_(a,null)},f.at)}):null]}):null}var C=h(D(),1),x=h(S(),1),U=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.ZHXX22AT.js","./chunk.QVKKXMNK.js","./chunk.ZSW74NVJ.js","./chunk.ZE4CTZQ3.js","./chunk.6J7DR7XQ.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.PPUAPAWR.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.Y5Z4ZDTO.js","./chunk.UWIYKGYK.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.U2PYW5MS.js")))),Ee=U.part((e,t)=>{let n=e.InlineAiMenu;return(0,x.jsx)(n,{...t})},{what:"The AI's suggestions"}),Te=U.part((e,t)=>{let n=e.GhostTray;return(0,x.jsx)(n,{...t})},{quiet:!0});function Ie(){let{ai:e}=w(),t=N(e);return(0,C.useMemo)(()=>t?n=>({id:"inline-ai",heading:"AI",render:a=>(0,x.jsx)(C.Suspense,{fallback:null,children:(0,x.jsx)(Ee,{target:n,close:a})}),prepare:()=>U.prefetch()}):null,[t])}var xe=[];function Ze({children:e}){let t=Ie(),n=(0,C.useMemo)(()=>t?[t]:xe,[t]);return(0,x.jsx)(ce,{sections:n,children:e})}function et(e){let{ai:t,aiDesk:n}=w(),{ghost:a}=Z(n);return a===null||a.onCard||t.off?null:(0,x.jsx)(C.Suspense,{fallback:null,children:(0,x.jsx)(Te,{...e})})}function ot(e={}){return e.scope===void 0?V:X(V,e.scope)}var P=h(D(),1),o=h(S(),1);function dt({inside:e=!1,widthOf:t}={}){let{store:n,view:a,emphasis:p,setEmphasis:u}=w(),d=le(),{selection:l,set:f}=R(),{show:y}=ne(),g=O(),c=(0,P.useMemo)(()=>{let i=new Map;for(let s of n.graph.allEdges()){let r=i.get(s.kind)??{count:0,ends:new Set};r.count+=1;for(let v of[s.from,s.to]){let b=n.graph.getNode(v);b&&r.ends.add(`kind:${b.kind}`)}i.set(s.kind,r)}return[...i.entries()].sort(([s],[r])=>s.localeCompare(r)).map(([s,r])=>({kind:s,count:r.count,ends:[...r.ends]}))},[n,g]),m=Math.max(0,...c.map(i=>i.count));if((0,P.useEffect)(()=>()=>u(null),[u]),!a.overview&&!e||c.length===0)return null;let k=new Set;for(let i of l){if(i.startsWith("kind:")){k.add(i);continue}let s=n.graph.getNode(i);s&&k.add(`kind:${s.kind}`)}return(0,o.jsxs)("section",{"aria-label":"What the lines mean",role:e?"group":void 0,"data-testid":"relation-key",style:e?{display:"grid",gap:1}:{position:"absolute",left:16,top:14,zIndex:K("rail"),display:"grid",gap:1,padding:"8px 10px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",maxWidth:De,animation:"graview-settle 380ms 280ms ease backwards"},children:[e?null:(0,o.jsx)("span",{style:{fontSize:"0.75rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--graview-ink-faint)",paddingBottom:2},children:c.length===1?"1 relation":`${c.length} relations`}),t?(0,o.jsx)(Le,{aloft:a.overview===!0}):null,c.map(({kind:i,count:s,ends:r})=>{let{connector:v,style:b}=$(d,i),L=Ce(n.schema,i),me=p!==null?p===i:k.size===0||r.some(fe=>k.has(fe));return(0,o.jsxs)("button",{type:"button",title:n.schema.edge(i)?.description===void 0?`${s} of these`:L.words,onMouseEnter:()=>u(i),onMouseLeave:()=>u(null),onFocus:()=>u(i),onBlur:()=>u(null),onClick:()=>{f(r),y(null)},style:{all:"unset",outline:"revert-layer",cursor:"pointer",display:"grid",gridTemplateColumns:"30px 1fr auto",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px",borderRadius:6,opacity:me?1:.4},children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",style:{display:"block",opacity:v.visible?1:.35},children:a.overview&&t?(0,o.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",className:"graview-key-ribbon",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:t(s,m)}):(0,o.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",stroke:Q(b),strokeWidth:H(b,!0),strokeDasharray:B[b.pattern],strokeLinecap:"round"})}),(0,o.jsxs)("span",{style:{display:"grid",minWidth:0},"data-graview-relation-words":i,children:[(0,o.jsx)("span",{style:{fontSize:"0.8125rem",color:"var(--graview-ink)"},children:L.words}),(0,o.jsx)("span",{style:{fontSize:"0.6875rem",color:"var(--graview-ink-faint)"},children:L.ends})]}),v.visible?null:(0,o.jsx)("span",{"data-graview-quiet":i,style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontStyle:"italic"},children:"not drawn"}),(0,o.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontVariantNumeric:"tabular-nums"},children:s})]},i)})]})}var De="min(280px, calc(100% - 28px))";function Ce(e,t,n){let a=e.edge(t)?.from??[],p=new Map;for(let l of n!==void 0&&a.includes(n)?[n]:a.length>0?a:[""]){let f=se(e,l,t,"out");p.set(f,[...p.get(f)??[],l])}let u=l=>l==="*"?"anything":j(e,l),d=[...p].map(([l,f])=>{let y=f.flatMap(c=>e.tryDefinition(c)?.edges[t]?.to??[]),g=f[0]&&y.length>0?`${f.map(u).join(", ")} \u2192 ${(y.includes("*")?["*"]:[...new Set(y)]).map(u).join(", ")}`:"";return[l.charAt(0).toUpperCase()+l.slice(1),g]});return{words:d.map(([l])=>l).join(" \xB7 "),ends:d.flatMap(([,l])=>l?[l]:[]).join(" \xB7 ")}}function pt({edgeKind:e,kit:t,width:n=30}){let a=te(),p=(0,P.useMemo)(()=>J(t??a?.brand?.kit),[t,a?.brand?.kit]),{connector:u,style:d}=$(p,e);return(0,o.jsx)("svg",{width:n,height:"8","aria-hidden":"true","data-testid":"relation-mark","data-graview-relation":e,style:{display:"inline-block",verticalAlign:"middle",opacity:u.visible?1:.35},children:(0,o.jsx)("path",{d:`M 1 4 L ${n-1} 4`,fill:"none",stroke:Q(d),strokeWidth:H(d,!0),strokeDasharray:B[d.pattern],strokeLinecap:"round"})})}function Le({aloft:e}){let t={display:"grid",gridTemplateColumns:"30px 1fr",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px"},n={fontSize:"0.75rem",color:"var(--graview-ink-muted)"};return(0,o.jsxs)("div",{role:"group","aria-label":"The lines","data-testid":"line-manners",style:{display:"grid",gap:1,paddingBottom:6,marginBottom:4,borderBottom:"1px solid var(--graview-edge)"},children:[e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:t,"data-graview-manner":"ribbon",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:6})}),(0,o.jsx)("span",{style:n,children:"A relation between two districts, as wide as the links along it \u2014 point at one for its words"})]}),(0,o.jsxs)("div",{style:t,"data-graview-manner":"record",children:[(0,o.jsxs)("svg",{width:"30",height:"10","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M 1 5 L 25 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeLinecap:"round"}),(0,o.jsx)("circle",{cx:26,cy:5,r:3,fill:"var(--graview-accent)"})]}),(0,o.jsx)("span",{style:n,children:"A chosen record's link to another record, labeled with the relation"})]}),(0,o.jsxs)("div",{style:t,"data-graview-manner":"district",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeDasharray:"5 4"})}),(0,o.jsx)("span",{style:n,children:"A chosen record's links into a district, with how many"})]})]}):null,(0,o.jsxs)("div",{style:t,"data-graview-manner":"unsure",children:[(0,o.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeOpacity:ie,strokeWidth:1.8,strokeDasharray:ae,strokeLinecap:"round"})}),(0,o.jsx)("span",{style:n,children:"Unsure: a link its maker was less than sure of, until a person keeps it \u2014 point at its words for what it was based on"})]})]})}var pe=h(D(),1),Y=h(S(),1),Pe=E(A(()=>(__graviewPreload(import.meta.url,["./chunk.3C4RJIJU.js","./chunk.DPP7ITTU.js","./chunk.GF7LA4QG.js","./chunk.AEHPDVLQ.js","./chunk.UT6642FC.js","./chunk.TI4OSTQV.js","./chunk.Z7ZCR4LN.js","./chunk.RIW7SQH4.js","./chunk.FSAHO3LV.js","./chunk.Y5Z4ZDTO.js","./chunk.UWIYKGYK.js","./chunk.X7W27IRI.js","./chunk.AJZBJBMO.js"]),import("./chunk.SD33BD7A.js")))),Ne=Pe.part(e=>(0,Y.jsx)(e.SuggestedTray,{}),{quiet:!0});function vt(){let{store:e}=w(),t=O();return(0,pe.useMemo)(()=>e.log.all().some(a=>a.suggests!==void 0&&!a.withheld),[e,t])?(0,Y.jsx)(Ne,{}):null}export{Ge as a,_e as b,Ue as c,dt as d,De as e,pt as f,Ie as g,Ze as h,et as i,ot as j,vt as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk.RTB4MMF6.js";import"./chunk.6J7DR7XQ.js";import"./chunk.Y5Z4ZDTO.js";import"./chunk.UWIYKGYK.js";import"./chunk.X7W27IRI.js";import"./chunk.AJZBJBMO.js";export{a as ActivityFilter,b as InteractionRow};
|